configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libXTrap 1.0.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='libXTrap'
425 PACKAGE_TARNAME='libXTrap'
426 PACKAGE_VERSION='1.0.0'
427 PACKAGE_STRING='libXTrap 1.0.0'
428 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 PKG_CONFIG ac_pt_PKG_CONFIG XTRAP_CFLAGS XTRAP_LIBS LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805 done
806
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827 do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880 else
881 ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949 ac_env_PKG_CONFIG_value=$PKG_CONFIG
950 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952 ac_env_XTRAP_CFLAGS_set=${XTRAP_CFLAGS+set}
953 ac_env_XTRAP_CFLAGS_value=$XTRAP_CFLAGS
954 ac_cv_env_XTRAP_CFLAGS_set=${XTRAP_CFLAGS+set}
955 ac_cv_env_XTRAP_CFLAGS_value=$XTRAP_CFLAGS
956 ac_env_XTRAP_LIBS_set=${XTRAP_LIBS+set}
957 ac_env_XTRAP_LIBS_value=$XTRAP_LIBS
958 ac_cv_env_XTRAP_LIBS_set=${XTRAP_LIBS+set}
959 ac_cv_env_XTRAP_LIBS_value=$XTRAP_LIBS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
968 \`configure' configures libXTrap 1.0.0 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990 cat <<_ACEOF
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
993 [$ac_default_prefix]
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
995 [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017 _ACEOF
1018
1019 cat <<\_ACEOF
1020
1021 Program names:
1022 --program-prefix=PREFIX prepend PREFIX to installed program names
1023 --program-suffix=SUFFIX append SUFFIX to installed program names
1024 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1025
1026 System types:
1027 --build=BUILD configure for building on BUILD [guessed]
1028 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1029 _ACEOF
1030 fi
1031
1032 if test -n "$ac_init_help"; then
1033 case $ac_init_help in
1034 short | recursive ) echo "Configuration of libXTrap 1.0.0:";;
1035 esac
1036 cat <<\_ACEOF
1037
1038 Optional Features:
1039 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1040 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1041 --enable-maintainer-mode enable make rules and dependencies not useful
1042 (and sometimes confusing) to the casual installer
1043 --disable-dependency-tracking Speeds up one-time builds
1044 --enable-dependency-tracking Do not reject slow dependency extractors
1045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=yes]
1049 --enable-fast-install[=PKGS]
1050 optimize for fast installation [default=yes]
1051 --disable-libtool-lock avoid locking (might break parallel builds)
1052
1053 Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
1061 --with-release-version=STRING
1062 Use release version string in package name
1063
1064 Some influential environment variables:
1065 CC C compiler command
1066 CFLAGS C compiler flags
1067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1068 nonstandard directory <lib dir>
1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070 headers in a nonstandard directory <include dir>
1071 CPP C preprocessor
1072 CXX C++ compiler command
1073 CXXFLAGS C++ compiler flags
1074 CXXCPP C++ preprocessor
1075 F77 Fortran 77 compiler command
1076 FFLAGS Fortran 77 compiler flags
1077 PKG_CONFIG path to pkg-config utility
1078 XTRAP_CFLAGS
1079 C compiler flags for XTRAP, overriding pkg-config
1080 XTRAP_LIBS linker flags for XTRAP, overriding pkg-config
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101 ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157 esac
1158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180 cat <<\_ACEOF
1181 libXTrap configure 1.0.0
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187 _ACEOF
1188 exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by libXTrap $as_me 1.0.0, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1197
1198 $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1274 else
1275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
1286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
1306
1307 cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314 {
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321 ;;
1322 *)
1323 sed -n \
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ;;
1326 esac;
1327 }
1328 echo
1329
1330 cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1354 done | sort
1355 echo
1356 fi
1357
1358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364 echo
1365 sed "/^$/d" confdefs.h | sort
1366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442 else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490 done
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531 am__api_version="1.7"
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
1546 fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557 # Find a good install program. We prefer a C program (faster),
1558 # so one script is as good as another. But avoid the broken or
1559 # incompatible versions:
1560 # SysV /etc/install, /usr/sbin/install
1561 # SunOS /usr/etc/install
1562 # IRIX /sbin/install
1563 # AIX /bin/install
1564 # AmigaOS /C/install, which installs bootblocks on floppy discs
1565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1568 # OS/2's system install, which has a completely different semantic
1569 # ./install, which can be erroneously created by make from ./install.sh.
1570 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1571 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1572 if test -z "$INSTALL"; then
1573 if test "${ac_cv_path_install+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1578 do
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 # Account for people who put trailing slashes in PATH elements.
1582 case $as_dir/ in
1583 ./ | .// | /cC/* | \
1584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1585 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1586 /usr/ucb/* ) ;;
1587 *)
1588 # OSF1 and SCO ODT 3.0 have their own names for install.
1589 # Don't use installbsd from OSF since it installs stuff as root
1590 # by default.
1591 for ac_prog in ginstall scoinst install; do
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1594 if test $ac_prog = install &&
1595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596 # AIX install. It has an incompatible calling convention.
1597 :
1598 elif test $ac_prog = install &&
1599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600 # program-specific install script used by HP pwplus--don't use.
1601 :
1602 else
1603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1604 break 3
1605 fi
1606 fi
1607 done
1608 done
1609 ;;
1610 esac
1611 done
1612
1613
1614 fi
1615 if test "${ac_cv_path_install+set}" = set; then
1616 INSTALL=$ac_cv_path_install
1617 else
1618 # As a last resort, use the slow shell script. We don't cache a
1619 # path for INSTALL within a source directory, because that will
1620 # break other packages using the cache if that directory is
1621 # removed, or if the path is relative.
1622 INSTALL=$ac_install_sh
1623 fi
1624 fi
1625 echo "$as_me:$LINENO: result: $INSTALL" >&5
1626 echo "${ECHO_T}$INSTALL" >&6
1627
1628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1629 # It thinks the first close brace ends the variable substitution.
1630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631
1632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1633
1634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1635
1636 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1637 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1638 # Just in case
1639 sleep 1
1640 echo timestamp > conftest.file
1641 # Do `set' in a subshell so we don't clobber the current shell's
1642 # arguments. Must try -L first in case configure is actually a
1643 # symlink; some systems play weird games with the mod time of symlinks
1644 # (eg FreeBSD returns the mod time of the symlink's containing
1645 # directory).
1646 if (
1647 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1648 if test "$*" = "X"; then
1649 # -L didn't work.
1650 set X `ls -t $srcdir/configure conftest.file`
1651 fi
1652 rm -f conftest.file
1653 if test "$*" != "X $srcdir/configure conftest.file" \
1654 && test "$*" != "X conftest.file $srcdir/configure"; then
1655
1656 # If neither matched, then we have a broken ls. This can happen
1657 # if, for instance, CONFIG_SHELL is bash and it inherits a
1658 # broken ls alias from the environment. This has actually
1659 # happened. Such a system could not be considered "sane".
1660 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1661 alias in your environment" >&5
1662 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1663 alias in your environment" >&2;}
1664 { (exit 1); exit 1; }; }
1665 fi
1666
1667 test "$2" = conftest.file
1668 )
1669 then
1670 # Ok.
1671 :
1672 else
1673 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1674 Check your system clock" >&5
1675 echo "$as_me: error: newly created file is older than distributed files!
1676 Check your system clock" >&2;}
1677 { (exit 1); exit 1; }; }
1678 fi
1679 echo "$as_me:$LINENO: result: yes" >&5
1680 echo "${ECHO_T}yes" >&6
1681 test "$program_prefix" != NONE &&
1682 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1683 # Use a double $ so make ignores it.
1684 test "$program_suffix" != NONE &&
1685 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1686 # Double any \ or $. echo might interpret backslashes.
1687 # By default was `s,x,x', remove it if useless.
1688 cat <<\_ACEOF >conftest.sed
1689 s/[\\$]/&&/g;s/;s,x,x,$//
1690 _ACEOF
1691 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1692 rm conftest.sed
1693
1694
1695 # expand $ac_aux_dir to an absolute path
1696 am_aux_dir=`cd $ac_aux_dir && pwd`
1697
1698 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1699 # Use eval to expand $SHELL
1700 if eval "$MISSING --run true"; then
1701 am_missing_run="$MISSING --run "
1702 else
1703 am_missing_run=
1704 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1705 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1706 fi
1707
1708 for ac_prog in gawk mawk nawk awk
1709 do
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1730 fi
1731 done
1732 done
1733
1734 fi
1735 fi
1736 AWK=$ac_cv_prog_AWK
1737 if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745 test -n "$AWK" && break
1746 done
1747
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 cat >conftest.make <<\_ACEOF
1755 all:
1756 @echo 'ac_maketemp="$(MAKE)"'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1762 else
1763 eval ac_cv_prog_make_${ac_make}_set=no
1764 fi
1765 rm -f conftest.make
1766 fi
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 SET_MAKE=
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1775 fi
1776
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1780 am__leading_dot=.
1781 else
1782 am__leading_dot=_
1783 fi
1784 rmdir .tst 2>/dev/null
1785
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1792 fi
1793
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1798 else
1799 CYGPATH_W=echo
1800 fi
1801 fi
1802
1803
1804 # Define the identity of the package.
1805 PACKAGE='libXTrap'
1806 VERSION='1.0.0'
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1816 _ACEOF
1817
1818 # Some tools Automake needs.
1819
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821
1822
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824
1825
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827
1828
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830
1831
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833
1834
1835 AMTAR=${AMTAR-"${am_missing_run}tar"}
1836
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1838
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'. However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$STRIP"; then
1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1865 fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873 echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 ac_ct_STRIP=$STRIP
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$ac_ct_STRIP"; then
1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_STRIP="strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1903 fi
1904 done
1905 done
1906
1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 fi
1909 fi
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 STRIP=$ac_ct_STRIP
1920 else
1921 STRIP="$ac_cv_prog_STRIP"
1922 fi
1923
1924 fi
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1926
1927 # We need awk for the "check" target. The system "awk" is bad on
1928 # some platforms.
1929
1930
1931
1932 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1933 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1934 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1935 if test "${enable_maintainer_mode+set}" = set; then
1936 enableval="$enable_maintainer_mode"
1937 USE_MAINTAINER_MODE=$enableval
1938 else
1939 USE_MAINTAINER_MODE=no
1940 fi;
1941 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1942 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1943
1944
1945 if test $USE_MAINTAINER_MODE = yes; then
1946 MAINTAINER_MODE_TRUE=
1947 MAINTAINER_MODE_FALSE='#'
1948 else
1949 MAINTAINER_MODE_TRUE='#'
1950 MAINTAINER_MODE_FALSE=
1951 fi
1952
1953 MAINT=$MAINTAINER_MODE_TRUE
1954
1955
1956
1957 ac_config_headers="$ac_config_headers config.h"
1958
1959
1960 # Check for progs
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1987 fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995 echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1997 else
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002 fi
2003 if test -z "$ac_cv_prog_CC"; then
2004 ac_ct_CC=$CC
2005 # Extract the first word of "gcc", so it can be a program name with args.
2006 set dummy gcc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 if test -n "$ac_ct_CC"; then
2013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_CC="gcc"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 break 2
2025 fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040 CC=$ac_ct_CC
2041 else
2042 CC="$ac_cv_prog_CC"
2043 fi
2044
2045 if test -z "$CC"; then
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}cc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_CC="${ac_tool_prefix}cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 CC=$ac_cv_prog_CC
2074 if test -n "$CC"; then
2075 echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082 fi
2083 if test -z "$ac_cv_prog_CC"; then
2084 ac_ct_CC=$CC
2085 # Extract the first word of "cc", so it can be a program name with args.
2086 set dummy cc; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 ac_cv_prog_ac_ct_CC="cc"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 break 2
2105 fi
2106 done
2107 done
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2115 else
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2118 fi
2119
2120 CC=$ac_ct_CC
2121 else
2122 CC="$ac_cv_prog_CC"
2123 fi
2124
2125 fi
2126 if test -z "$CC"; then
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137 ac_prog_rejected=no
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2146 ac_prog_rejected=yes
2147 continue
2148 fi
2149 ac_cv_prog_CC="cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153 done
2154 done
2155
2156 if test $ac_prog_rejected = yes; then
2157 # We found a bogon in the path, so make sure we never use it.
2158 set dummy $ac_cv_prog_CC
2159 shift
2160 if test $# != 0; then
2161 # We chose a different compiler from the bogus one.
2162 # However, it has the same basename, so the bogon will be chosen
2163 # first if we set CC to just the basename; use the full file name.
2164 shift
2165 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2166 fi
2167 fi
2168 fi
2169 fi
2170 CC=$ac_cv_prog_CC
2171 if test -n "$CC"; then
2172 echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2177 fi
2178
2179 fi
2180 if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2182 for ac_prog in cl
2183 do
2184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$CC"; then
2192 ac_cv_prog_CC="$CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212 echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219 test -n "$CC" && break
2220 done
2221 fi
2222 if test -z "$CC"; then
2223 ac_ct_CC=$CC
2224 for ac_prog in cl
2225 do
2226 # Extract the first word of "$ac_prog", so it can be a program name with args.
2227 set dummy $ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$ac_ct_CC"; then
2234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_ac_ct_CC="$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255 echo "${ECHO_T}$ac_ct_CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 test -n "$ac_ct_CC" && break
2262 done
2263
2264 CC=$ac_ct_CC
2265 fi
2266
2267 fi
2268
2269
2270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: no acceptable C compiler found in \$PATH
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2275
2276 # Provide some information about the compiler.
2277 echo "$as_me:$LINENO:" \
2278 "checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2281 (eval $ac_compiler --version </dev/null >&5) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2286 (eval $ac_compiler -v </dev/null >&5) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2291 (eval $ac_compiler -V </dev/null >&5) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302
2303 int
2304 main ()
2305 {
2306
2307 ;
2308 return 0;
2309 }
2310 _ACEOF
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2315 # of exeext.
2316 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2320 (eval $ac_link_default) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 # Find the output, starting from the most likely. This scheme is
2325 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2326 # resort.
2327
2328 # Be careful to initialize this variable, since it used to be cached.
2329 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 ac_cv_exeext=
2331 # b.out is created by i960 compilers.
2332 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 do
2334 test -f "$ac_file" || continue
2335 case $ac_file in
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2337 ;;
2338 conftest.$ac_ext )
2339 # This is the source file.
2340 ;;
2341 [ab].out )
2342 # We found the default executable, but exeext='' is most
2343 # certainly right.
2344 break;;
2345 *.* )
2346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 # FIXME: I believe we export ac_cv_exeext for Libtool,
2348 # but it would be cool to find out if it's true. Does anybody
2349 # maintain Libtool? --akim.
2350 export ac_cv_exeext
2351 break;;
2352 * )
2353 break;;
2354 esac
2355 done
2356 else
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&2;}
2364 { (exit 77); exit 77; }; }
2365 fi
2366
2367 ac_exeext=$ac_cv_exeext
2368 echo "$as_me:$LINENO: result: $ac_file" >&5
2369 echo "${ECHO_T}$ac_file" >&6
2370
2371 # Check the compiler produces executables we can run. If not, either
2372 # the compiler is broken, or we cross compile.
2373 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2374 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2375 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376 # If not cross compiling, check that we can run a simple program.
2377 if test "$cross_compiling" != yes; then
2378 if { ac_try='./$ac_file'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 cross_compiling=no
2385 else
2386 if test "$cross_compiling" = maybe; then
2387 cross_compiling=yes
2388 else
2389 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2390 If you meant to cross compile, use \`--host'.
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot run C compiled programs.
2393 If you meant to cross compile, use \`--host'.
2394 See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2396 fi
2397 fi
2398 fi
2399 echo "$as_me:$LINENO: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2401
2402 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2403 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2407 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2408 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2409 echo "${ECHO_T}$cross_compiling" >&6
2410
2411 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2412 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2420 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 # `rm'.
2422 for ac_file in conftest.exe conftest conftest.*; do
2423 test -f "$ac_file" || continue
2424 case $ac_file in
2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427 export ac_cv_exeext
2428 break;;
2429 * ) break;;
2430 esac
2431 done
2432 else
2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2438 fi
2439
2440 rm -f conftest$ac_cv_exeext
2441 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2442 echo "${ECHO_T}$ac_cv_exeext" >&6
2443
2444 rm -f conftest.$ac_ext
2445 EXEEXT=$ac_cv_exeext
2446 ac_exeext=$EXEEXT
2447 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2448 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2449 if test "${ac_cv_objext+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h. */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2458
2459 int
2460 main ()
2461 {
2462
2463 ;
2464 return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2474 case $ac_file in
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 break;;
2478 esac
2479 done
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513 choke me
2514 #endif
2515
2516 ;
2517 return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 ac_compiler_gnu=yes
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_compiler_gnu=no
2548 fi
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2551
2552 fi
2553 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2554 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2555 GCC=`test $ac_compiler_gnu = yes && echo yes`
2556 ac_test_CFLAGS=${CFLAGS+set}
2557 ac_save_CFLAGS=$CFLAGS
2558 CFLAGS="-g"
2559 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2560 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2561 if test "${ac_cv_prog_cc_g+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2570
2571 int
2572 main ()
2573 {
2574
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cc_g=yes
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 ac_cv_prog_cc_g=no
2607 fi
2608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609 fi
2610 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2612 if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614 elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2616 CFLAGS="-g -O2"
2617 else
2618 CFLAGS="-g"
2619 fi
2620 else
2621 if test "$GCC" = yes; then
2622 CFLAGS="-O2"
2623 else
2624 CFLAGS=
2625 fi
2626 fi
2627 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2628 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2629 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 ac_cv_prog_cc_stdc=no
2633 ac_save_CC=$CC
2634 cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h. */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 #include <stdarg.h>
2641 #include <stdio.h>
2642 #include <sys/types.h>
2643 #include <sys/stat.h>
2644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645 struct buf { int x; };
2646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (p, i)
2648 char **p;
2649 int i;
2650 {
2651 return p[i];
2652 }
2653 static char *f (char * (*g) (char **, int), char **p, ...)
2654 {
2655 char *s;
2656 va_list v;
2657 va_start (v,p);
2658 s = g (p, va_arg (v,int));
2659 va_end (v);
2660 return s;
2661 }
2662
2663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
2666 as 'x'. The following induces an error, until -std1 is added to get
2667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
2669 that's true only with -std1. */
2670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671
2672 int test (int i, double x);
2673 struct s1 {int (*f) (int a);};
2674 struct s2 {int (*f) (double a);};
2675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 int argc;
2677 char **argv;
2678 int
2679 main ()
2680 {
2681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 # Don't try gcc -ansi; that turns off useful extensions and
2687 # breaks some systems' header files.
2688 # AIX -qlanglvl=ansi
2689 # Ultrix and OSF/1 -std1
2690 # HP-UX 10.20 and later -Ae
2691 # HP-UX older versions -Aa -D_HPUX_SOURCE
2692 # SVR4 -Xc -D__EXTENSIONS__
2693 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_c_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_cv_prog_cc_stdc=$ac_arg
2719 break
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 fi
2725 rm -f conftest.err conftest.$ac_objext
2726 done
2727 rm -f conftest.$ac_ext conftest.$ac_objext
2728 CC=$ac_save_CC
2729
2730 fi
2731
2732 case "x$ac_cv_prog_cc_stdc" in
2733 x|xno)
2734 echo "$as_me:$LINENO: result: none needed" >&5
2735 echo "${ECHO_T}none needed" >&6 ;;
2736 *)
2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2738 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2739 CC="$CC $ac_cv_prog_cc_stdc" ;;
2740 esac
2741
2742 # Some people use a C++ compiler to compile C. Since we use `exit',
2743 # in C++ we need to declare it. In case someone uses the same compiler
2744 # for both compiling C and C++ we need to have the C++ compiler decide
2745 # the declaration of exit, since it's the most demanding environment.
2746 cat >conftest.$ac_ext <<_ACEOF
2747 #ifndef __cplusplus
2748 choke me
2749 #endif
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 for ac_declaration in \
2774 '' \
2775 'extern "C" void std::exit (int) throw (); using std::exit;' \
2776 'extern "C" void std::exit (int); using std::exit;' \
2777 'extern "C" void exit (int) throw ();' \
2778 'extern "C" void exit (int);' \
2779 'void exit (int);'
2780 do
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2787 $ac_declaration
2788 #include <stdlib.h>
2789 int
2790 main ()
2791 {
2792 exit (42);
2793 ;
2794 return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 :
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 continue
2825 fi
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2833 $ac_declaration
2834 int
2835 main ()
2836 {
2837 exit (42);
2838 ;
2839 return 0;
2840 }
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 break
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 fi
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 done
2872 rm -f conftest*
2873 if test -n "$ac_declaration"; then
2874 echo '#ifdef __cplusplus' >>confdefs.h
2875 echo $ac_declaration >>confdefs.h
2876 echo '#endif' >>confdefs.h
2877 fi
2878
2879 else
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 fi
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 DEPDIR="${am__leading_dot}deps"
2891
2892 ac_config_commands="$ac_config_commands depfiles"
2893
2894
2895 am_make=${MAKE-make}
2896 cat > confinc << 'END'
2897 am__doit:
2898 @echo done
2899 .PHONY: am__doit
2900 END
2901 # If we don't find an include directive, just comment out the code.
2902 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2903 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2904 am__include="#"
2905 am__quote=
2906 _am_result=none
2907 # First try GNU make style include.
2908 echo "include confinc" > confmf
2909 # We grep out `Entering directory' and `Leaving directory'
2910 # messages which can occur if `w' ends up in MAKEFLAGS.
2911 # In particular we don't look at `^make:' because GNU make might
2912 # be invoked under some other name (usually "gmake"), in which
2913 # case it prints its new name instead of `make'.
2914 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2915 am__include=include
2916 am__quote=
2917 _am_result=GNU
2918 fi
2919 # Now try BSD make style include.
2920 if test "$am__include" = "#"; then
2921 echo '.include "confinc"' > confmf
2922 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2923 am__include=.include
2924 am__quote="\""
2925 _am_result=BSD
2926 fi
2927 fi
2928
2929
2930 echo "$as_me:$LINENO: result: $_am_result" >&5
2931 echo "${ECHO_T}$_am_result" >&6
2932 rm -f confinc confmf
2933
2934 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2935 if test "${enable_dependency_tracking+set}" = set; then
2936 enableval="$enable_dependency_tracking"
2937
2938 fi;
2939 if test "x$enable_dependency_tracking" != xno; then
2940 am_depcomp="$ac_aux_dir/depcomp"
2941 AMDEPBACKSLASH='\'
2942 fi
2943
2944
2945 if test "x$enable_dependency_tracking" != xno; then
2946 AMDEP_TRUE=
2947 AMDEP_FALSE='#'
2948 else
2949 AMDEP_TRUE='#'
2950 AMDEP_FALSE=
2951 fi
2952
2953
2954
2955
2956 depcc="$CC" am_compiler_list=
2957
2958 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2964 # We make a subdir and do the tests there. Otherwise we can end up
2965 # making bogus files that we don't know about and never remove. For
2966 # instance it was reported that on HP-UX the gcc test will end up
2967 # making a dummy file named `D' -- because `-MD' means `put the output
2968 # in D'.
2969 mkdir conftest.dir
2970 # Copy depcomp to subdir because otherwise we won't find it if we're
2971 # using a relative directory.
2972 cp "$am_depcomp" conftest.dir
2973 cd conftest.dir
2974 # We will build objects and dependencies in a subdirectory because
2975 # it helps to detect inapplicable dependency modes. For instance
2976 # both Tru64's cc and ICC support -MD to output dependencies as a
2977 # side effect of compilation, but ICC will put the dependencies in
2978 # the current directory while Tru64 will put them in the object
2979 # directory.
2980 mkdir sub
2981
2982 am_cv_CC_dependencies_compiler_type=none
2983 if test "$am_compiler_list" = ""; then
2984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2985 fi
2986 for depmode in $am_compiler_list; do
2987 # Setup a source with many dependencies, because some compilers
2988 # like to wrap large dependency lists on column 80 (with \), and
2989 # we should not choose a depcomp mode which is confused by this.
2990 #
2991 # We need to recreate these files for each test, as the compiler may
2992 # overwrite some of them when testing with obscure command lines.
2993 # This happens at least with the AIX C compiler.
2994 : > sub/conftest.c
2995 for i in 1 2 3 4 5 6; do
2996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2997 : > sub/conftst$i.h
2998 done
2999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3000
3001 case $depmode in
3002 nosideeffect)
3003 # after this tag, mechanisms are not by side-effect, so they'll
3004 # only be used when explicitly requested
3005 if test "x$enable_dependency_tracking" = xyes; then
3006 continue
3007 else
3008 break
3009 fi
3010 ;;
3011 none) break ;;
3012 esac
3013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3014 # mode. It turns out that the SunPro C++ compiler does not properly
3015 # handle `-M -o', and we need to detect this.
3016 if depmode=$depmode \
3017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3020 >/dev/null 2>conftest.err &&
3021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3024 # icc doesn't choke on unknown options, it will just issue warnings
3025 # (even with -Werror). So we grep stderr for any message
3026 # that says an option was ignored.
3027 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3028 am_cv_CC_dependencies_compiler_type=$depmode
3029 break
3030 fi
3031 fi
3032 done
3033
3034 cd ..
3035 rm -rf conftest.dir
3036 else
3037 am_cv_CC_dependencies_compiler_type=none
3038 fi
3039
3040 fi
3041 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3042 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3044
3045
3046
3047 if
3048 test "x$enable_dependency_tracking" != xno \
3049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3050 am__fastdepCC_TRUE=
3051 am__fastdepCC_FALSE='#'
3052 else
3053 am__fastdepCC_TRUE='#'
3054 am__fastdepCC_FALSE=
3055 fi
3056
3057
3058 # Check whether --enable-shared or --disable-shared was given.
3059 if test "${enable_shared+set}" = set; then
3060 enableval="$enable_shared"
3061 p=${PACKAGE-default}
3062 case $enableval in
3063 yes) enable_shared=yes ;;
3064 no) enable_shared=no ;;
3065 *)
3066 enable_shared=no
3067 # Look at the argument we got. We use all the common list separators.
3068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3069 for pkg in $enableval; do
3070 IFS="$lt_save_ifs"
3071 if test "X$pkg" = "X$p"; then
3072 enable_shared=yes
3073 fi
3074 done
3075 IFS="$lt_save_ifs"
3076 ;;
3077 esac
3078 else
3079 enable_shared=yes
3080 fi;
3081
3082 # Check whether --enable-static or --disable-static was given.
3083 if test "${enable_static+set}" = set; then
3084 enableval="$enable_static"
3085 p=${PACKAGE-default}
3086 case $enableval in
3087 yes) enable_static=yes ;;
3088 no) enable_static=no ;;
3089 *)
3090 enable_static=no
3091 # Look at the argument we got. We use all the common list separators.
3092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3093 for pkg in $enableval; do
3094 IFS="$lt_save_ifs"
3095 if test "X$pkg" = "X$p"; then
3096 enable_static=yes
3097 fi
3098 done
3099 IFS="$lt_save_ifs"
3100 ;;
3101 esac
3102 else
3103 enable_static=yes
3104 fi;
3105
3106 # Check whether --enable-fast-install or --disable-fast-install was given.
3107 if test "${enable_fast_install+set}" = set; then
3108 enableval="$enable_fast_install"
3109 p=${PACKAGE-default}
3110 case $enableval in
3111 yes) enable_fast_install=yes ;;
3112 no) enable_fast_install=no ;;
3113 *)
3114 enable_fast_install=no
3115 # Look at the argument we got. We use all the common list separators.
3116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3117 for pkg in $enableval; do
3118 IFS="$lt_save_ifs"
3119 if test "X$pkg" = "X$p"; then
3120 enable_fast_install=yes
3121 fi
3122 done
3123 IFS="$lt_save_ifs"
3124 ;;
3125 esac
3126 else
3127 enable_fast_install=yes
3128 fi;
3129
3130 # Make sure we can run config.sub.
3131 $ac_config_sub sun4 >/dev/null 2>&1 ||
3132 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3133 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3134 { (exit 1); exit 1; }; }
3135
3136 echo "$as_me:$LINENO: checking build system type" >&5
3137 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3138 if test "${ac_cv_build+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141 ac_cv_build_alias=$build_alias
3142 test -z "$ac_cv_build_alias" &&
3143 ac_cv_build_alias=`$ac_config_guess`
3144 test -z "$ac_cv_build_alias" &&
3145 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3146 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3147 { (exit 1); exit 1; }; }
3148 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3149 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3150 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3151 { (exit 1); exit 1; }; }
3152
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3155 echo "${ECHO_T}$ac_cv_build" >&6
3156 build=$ac_cv_build
3157 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3158 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3159 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3160
3161
3162 echo "$as_me:$LINENO: checking host system type" >&5
3163 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3164 if test "${ac_cv_host+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 ac_cv_host_alias=$host_alias
3168 test -z "$ac_cv_host_alias" &&
3169 ac_cv_host_alias=$ac_cv_build_alias
3170 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3171 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3172 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3173 { (exit 1); exit 1; }; }
3174
3175 fi
3176 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3177 echo "${ECHO_T}$ac_cv_host" >&6
3178 host=$ac_cv_host
3179 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3180 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3181 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3182
3183
3184 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3185 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3186 if test "${lt_cv_path_SED+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 # Loop through the user's path and test for sed and gsed.
3190 # Then use that list of sed's as ones to test for truncation.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for lt_ac_prog in sed gsed; do
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3199 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3200 fi
3201 done
3202 done
3203 done
3204 lt_ac_max=0
3205 lt_ac_count=0
3206 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3207 # along with /bin/sed that truncates output.
3208 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3209 test ! -f $lt_ac_sed && break
3210 cat /dev/null > conftest.in
3211 lt_ac_count=0
3212 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3213 # Check for GNU sed and select it if it is found.
3214 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3215 lt_cv_path_SED=$lt_ac_sed
3216 break
3217 fi
3218 while true; do
3219 cat conftest.in conftest.in >conftest.tmp
3220 mv conftest.tmp conftest.in
3221 cp conftest.in conftest.nl
3222 echo >>conftest.nl
3223 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3224 cmp -s conftest.out conftest.nl || break
3225 # 10000 chars as input seems more than enough
3226 test $lt_ac_count -gt 10 && break
3227 lt_ac_count=`expr $lt_ac_count + 1`
3228 if test $lt_ac_count -gt $lt_ac_max; then
3229 lt_ac_max=$lt_ac_count
3230 lt_cv_path_SED=$lt_ac_sed
3231 fi
3232 done
3233 done
3234 SED=$lt_cv_path_SED
3235
3236 fi
3237
3238 echo "$as_me:$LINENO: result: $SED" >&5
3239 echo "${ECHO_T}$SED" >&6
3240
3241 echo "$as_me:$LINENO: checking for egrep" >&5
3242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3243 if test "${ac_cv_prog_egrep+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3247 then ac_cv_prog_egrep='grep -E'
3248 else ac_cv_prog_egrep='egrep'
3249 fi
3250 fi
3251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3253 EGREP=$ac_cv_prog_egrep
3254
3255
3256
3257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3258 if test "${with_gnu_ld+set}" = set; then
3259 withval="$with_gnu_ld"
3260 test "$withval" = no || with_gnu_ld=yes
3261 else
3262 with_gnu_ld=no
3263 fi;
3264 ac_prog=ld
3265 if test "$GCC" = yes; then
3266 # Check if gcc -print-prog-name=ld gives a path.
3267 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3268 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3269 case $host in
3270 *-*-mingw*)
3271 # gcc leaves a trailing carriage return which upsets mingw
3272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3273 *)
3274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3275 esac
3276 case $ac_prog in
3277 # Accept absolute paths.
3278 [\\/]* | ?:[\\/]*)
3279 re_direlt='/[^/][^/]*/\.\./'
3280 # Canonicalize the pathname of ld
3281 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3283 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3284 done
3285 test -z "$LD" && LD="$ac_prog"
3286 ;;
3287 "")
3288 # If it fails, then pretend we aren't using GCC.
3289 ac_prog=ld
3290 ;;
3291 *)
3292 # If it is relative, then search for the first ld in PATH.
3293 with_gnu_ld=unknown
3294 ;;
3295 esac
3296 elif test "$with_gnu_ld" = yes; then
3297 echo "$as_me:$LINENO: checking for GNU ld" >&5
3298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3299 else
3300 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3302 fi
3303 if test "${lt_cv_path_LD+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 if test -z "$LD"; then
3307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3308 for ac_dir in $PATH; do
3309 IFS="$lt_save_ifs"
3310 test -z "$ac_dir" && ac_dir=.
3311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3312 lt_cv_path_LD="$ac_dir/$ac_prog"
3313 # Check to see if the program is GNU ld. I'd rather use --version,
3314 # but apparently some GNU ld's only accept -v.
3315 # Break only if it was the GNU/non-GNU ld that we prefer.
3316 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3317 *GNU* | *'with BFD'*)
3318 test "$with_gnu_ld" != no && break
3319 ;;
3320 *)
3321 test "$with_gnu_ld" != yes && break
3322 ;;
3323 esac
3324 fi
3325 done
3326 IFS="$lt_save_ifs"
3327 else
3328 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3329 fi
3330 fi
3331
3332 LD="$lt_cv_path_LD"
3333 if test -n "$LD"; then
3334 echo "$as_me:$LINENO: result: $LD" >&5
3335 echo "${ECHO_T}$LD" >&6
3336 else
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3339 fi
3340 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3341 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3342 { (exit 1); exit 1; }; }
3343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3345 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3349 case `$LD -v 2>&1 </dev/null` in
3350 *GNU* | *'with BFD'*)
3351 lt_cv_prog_gnu_ld=yes
3352 ;;
3353 *)
3354 lt_cv_prog_gnu_ld=no
3355 ;;
3356 esac
3357 fi
3358 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3359 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3360 with_gnu_ld=$lt_cv_prog_gnu_ld
3361
3362
3363 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3364 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3365 if test "${lt_cv_ld_reload_flag+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 lt_cv_ld_reload_flag='-r'
3369 fi
3370 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3371 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3372 reload_flag=$lt_cv_ld_reload_flag
3373 case $reload_flag in
3374 "" | " "*) ;;
3375 *) reload_flag=" $reload_flag" ;;
3376 esac
3377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3378
3379 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3380 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3381 if test "${lt_cv_path_NM+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 if test -n "$NM"; then
3385 # Let the user override the test.
3386 lt_cv_path_NM="$NM"
3387 else
3388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3389 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3390 IFS="$lt_save_ifs"
3391 test -z "$ac_dir" && ac_dir=.
3392 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3393 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3394 # Check to see if the nm accepts a BSD-compat flag.
3395 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3396 # nm: unknown option "B" ignored
3397 # Tru64's nm complains that /dev/null is an invalid object file
3398 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3399 */dev/null* | *'Invalid file or object type'*)
3400 lt_cv_path_NM="$tmp_nm -B"
3401 break
3402 ;;
3403 *)
3404 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3405 */dev/null*)
3406 lt_cv_path_NM="$tmp_nm -p"
3407 break
3408 ;;
3409 *)
3410 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3411 continue # so that we can try to find one that supports BSD flags
3412 ;;
3413 esac
3414 esac
3415 fi
3416 done
3417 IFS="$lt_save_ifs"
3418 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3419 fi
3420 fi
3421 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3422 echo "${ECHO_T}$lt_cv_path_NM" >&6
3423 NM="$lt_cv_path_NM"
3424
3425 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3426 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3427 LN_S=$as_ln_s
3428 if test "$LN_S" = "ln -s"; then
3429 echo "$as_me:$LINENO: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6
3431 else
3432 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3433 echo "${ECHO_T}no, using $LN_S" >&6
3434 fi
3435
3436 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3437 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3438 if test "${lt_cv_deplibs_check_method+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 lt_cv_file_magic_cmd='$MAGIC_CMD'
3442 lt_cv_file_magic_test_file=
3443 lt_cv_deplibs_check_method='unknown'
3444 # Need to set the preceding variable on all platforms that support
3445 # interlibrary dependencies.
3446 # 'none' -- dependencies not supported.
3447 # `unknown' -- same as none, but documents that we really don't know.
3448 # 'pass_all' -- all dependencies passed with no checks.
3449 # 'test_compile' -- check by making test program.
3450 # 'file_magic [[regex]]' -- check by looking for files in library path
3451 # which responds to the $file_magic_cmd with a given extended regex.
3452 # If you have `file' or equivalent on your system and you're not sure
3453 # whether `pass_all' will *always* work, you probably want this one.
3454
3455 case $host_os in
3456 aix4* | aix5*)
3457 lt_cv_deplibs_check_method=pass_all
3458 ;;
3459
3460 beos*)
3461 lt_cv_deplibs_check_method=pass_all
3462 ;;
3463
3464 bsdi4*)
3465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3466 lt_cv_file_magic_cmd='/usr/bin/file -L'
3467 lt_cv_file_magic_test_file=/shlib/libc.so
3468 ;;
3469
3470 cygwin*)
3471 # func_win32_libid is a shell function defined in ltmain.sh
3472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3473 lt_cv_file_magic_cmd='func_win32_libid'
3474 ;;
3475
3476 mingw* | pw32*)
3477 # Base MSYS/MinGW do not provide the 'file' command needed by
3478 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3479 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3480 lt_cv_file_magic_cmd='$OBJDUMP -f'
3481 ;;
3482
3483 darwin* | rhapsody*)
3484 lt_cv_deplibs_check_method=pass_all
3485 ;;
3486
3487 freebsd* | kfreebsd*-gnu)
3488 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3489 case $host_cpu in
3490 i*86 )
3491 # Not sure whether the presence of OpenBSD here was a mistake.
3492 # Let's accept both of them until this is cleared up.
3493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3494 lt_cv_file_magic_cmd=/usr/bin/file
3495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3496 ;;
3497 esac
3498 else
3499 lt_cv_deplibs_check_method=pass_all
3500 fi
3501 ;;
3502
3503 gnu*)
3504 lt_cv_deplibs_check_method=pass_all
3505 ;;
3506
3507 hpux10.20* | hpux11*)
3508 lt_cv_file_magic_cmd=/usr/bin/file
3509 case "$host_cpu" in
3510 ia64*)
3511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3513 ;;
3514 hppa*64*)
3515 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]'
3516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3517 ;;
3518 *)
3519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3521 ;;
3522 esac
3523 ;;
3524
3525 irix5* | irix6* | nonstopux*)
3526 case $LD in
3527 *-32|*"-32 ") libmagic=32-bit;;
3528 *-n32|*"-n32 ") libmagic=N32;;
3529 *-64|*"-64 ") libmagic=64-bit;;
3530 *) libmagic=never-match;;
3531 esac
3532 lt_cv_deplibs_check_method=pass_all
3533 ;;
3534
3535 # This must be Linux ELF.
3536 linux*)
3537 case $host_cpu in
3538 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3539 lt_cv_deplibs_check_method=pass_all ;;
3540 *)
3541 # glibc up to 2.1.1 does not perform some relocations on ARM
3542 # this will be overridden with pass_all, but let us keep it just in case
3543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3544 esac
3545 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3546 lt_cv_deplibs_check_method=pass_all
3547 ;;
3548
3549 netbsd*)
3550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3552 else
3553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3554 fi
3555 ;;
3556
3557 newos6*)
3558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3559 lt_cv_file_magic_cmd=/usr/bin/file
3560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3561 ;;
3562
3563 nto-qnx*)
3564 lt_cv_deplibs_check_method=unknown
3565 ;;
3566
3567 openbsd*)
3568 lt_cv_file_magic_cmd=/usr/bin/file
3569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3572 else
3573 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3574 fi
3575 ;;
3576
3577 osf3* | osf4* | osf5*)
3578 lt_cv_deplibs_check_method=pass_all
3579 ;;
3580
3581 sco3.2v5*)
3582 lt_cv_deplibs_check_method=pass_all
3583 ;;
3584
3585 solaris*)
3586 lt_cv_deplibs_check_method=pass_all
3587 ;;
3588
3589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3590 case $host_vendor in
3591 motorola)
3592 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]'
3593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3594 ;;
3595 ncr)
3596 lt_cv_deplibs_check_method=pass_all
3597 ;;
3598 sequent)
3599 lt_cv_file_magic_cmd='/bin/file'
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3601 ;;
3602 sni)
3603 lt_cv_file_magic_cmd='/bin/file'
3604 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3605 lt_cv_file_magic_test_file=/lib/libc.so
3606 ;;
3607 siemens)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610 esac
3611 ;;
3612
3613 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616 esac
3617
3618 fi
3619 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3620 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3621 file_magic_cmd=$lt_cv_file_magic_cmd
3622 deplibs_check_method=$lt_cv_deplibs_check_method
3623 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3624
3625
3626
3627
3628 # If no C compiler was specified, use CC.
3629 LTCC=${LTCC-"$CC"}
3630
3631 # Allow CC to be a program name with arguments.
3632 compiler=$CC
3633
3634
3635 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3636 if test "${enable_libtool_lock+set}" = set; then
3637 enableval="$enable_libtool_lock"
3638
3639 fi;
3640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3641
3642 # Some flags need to be propagated to the compiler or linker for good
3643 # libtool support.
3644 case $host in
3645 ia64-*-hpux*)
3646 # Find out which ABI we are using.
3647 echo 'int i;' > conftest.$ac_ext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; then
3653 case `/usr/bin/file conftest.$ac_objext` in
3654 *ELF-32*)
3655 HPUX_IA64_MODE="32"
3656 ;;
3657 *ELF-64*)
3658 HPUX_IA64_MODE="64"
3659 ;;
3660 esac
3661 fi
3662 rm -rf conftest*
3663 ;;
3664 *-*-irix6*)
3665 # Find out which ABI we are using.
3666 echo '#line 3666 "configure"' > conftest.$ac_ext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; then
3672 if test "$lt_cv_prog_gnu_ld" = yes; then
3673 case `/usr/bin/file conftest.$ac_objext` in
3674 *32-bit*)
3675 LD="${LD-ld} -melf32bsmip"
3676 ;;
3677 *N32*)
3678 LD="${LD-ld} -melf32bmipn32"
3679 ;;
3680 *64-bit*)
3681 LD="${LD-ld} -melf64bmip"
3682 ;;
3683 esac
3684 else
3685 case `/usr/bin/file conftest.$ac_objext` in
3686 *32-bit*)
3687 LD="${LD-ld} -32"
3688 ;;
3689 *N32*)
3690 LD="${LD-ld} -n32"
3691 ;;
3692 *64-bit*)
3693 LD="${LD-ld} -64"
3694 ;;
3695 esac
3696 fi
3697 fi
3698 rm -rf conftest*
3699 ;;
3700
3701 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3702 # Find out which ABI we are using.
3703 echo 'int i;' > conftest.$ac_ext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; then
3709 case "`/usr/bin/file conftest.o`" in
3710 *32-bit*)
3711 case $host in
3712 x86_64-*linux*)
3713 LD="${LD-ld} -m elf_i386"
3714 ;;
3715 ppc64-*linux*|powerpc64-*linux*)
3716 LD="${LD-ld} -m elf32ppclinux"
3717 ;;
3718 s390x-*linux*)
3719 LD="${LD-ld} -m elf_s390"
3720 ;;
3721 sparc64-*linux*)
3722 LD="${LD-ld} -m elf32_sparc"
3723 ;;
3724 esac
3725 ;;
3726 *64-bit*)
3727 case $host in
3728 x86_64-*linux*)
3729 LD="${LD-ld} -m elf_x86_64"
3730 ;;
3731 ppc*-*linux*|powerpc*-*linux*)
3732 LD="${LD-ld} -m elf64ppc"
3733 ;;
3734 s390*-*linux*)
3735 LD="${LD-ld} -m elf64_s390"
3736 ;;
3737 sparc*-*linux*)
3738 LD="${LD-ld} -m elf64_sparc"
3739 ;;
3740 esac
3741 ;;
3742 esac
3743 fi
3744 rm -rf conftest*
3745 ;;
3746
3747 *-*-sco3.2v5*)
3748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3749 SAVE_CFLAGS="$CFLAGS"
3750 CFLAGS="$CFLAGS -belf"
3751 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3752 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3753 if test "${lt_cv_cc_needs_belf+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768
3769 int
3770 main ()
3771 {
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779 (eval $ac_link) 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 lt_cv_cc_needs_belf=yes
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 lt_cv_cc_needs_belf=no
3805 fi
3806 rm -f conftest.err conftest.$ac_objext \
3807 conftest$ac_exeext conftest.$ac_ext
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813
3814 fi
3815 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3816 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3817 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3818 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3819 CFLAGS="$SAVE_CFLAGS"
3820 fi
3821 ;;
3822
3823 esac
3824
3825 need_locks="$enable_libtool_lock"
3826
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3834 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3835 # On Suns, sometimes $CPP names a directory.
3836 if test -n "$CPP" && test -d "$CPP"; then
3837 CPP=
3838 fi
3839 if test -z "$CPP"; then
3840 if test "${ac_cv_prog_CPP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 # Double quotes because CPP needs to be expanded
3844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3845 do
3846 ac_preproc_ok=false
3847 for ac_c_preproc_warn_flag in '' yes
3848 do
3849 # Use a header file that comes with gcc, so configuring glibc
3850 # with a fresh cross-compiler works.
3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852 # <limits.h> exists even on freestanding compilers.
3853 # On the NeXT, cc -E runs the code through the compiler's parser,
3854 # not just through cpp. "Syntax error" is here to catch this case.
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #ifdef __STDC__
3862 # include <limits.h>
3863 #else
3864 # include <assert.h>
3865 #endif
3866 Syntax error
3867 _ACEOF
3868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null; then
3876 if test -s conftest.err; then
3877 ac_cpp_err=$ac_c_preproc_warn_flag
3878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879 else
3880 ac_cpp_err=
3881 fi
3882 else
3883 ac_cpp_err=yes
3884 fi
3885 if test -z "$ac_cpp_err"; then
3886 :
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 # Broken: fails on valid input.
3892 continue
3893 fi
3894 rm -f conftest.err conftest.$ac_ext
3895
3896 # OK, works on sane cases. Now check whether non-existent headers
3897 # can be detected and how.
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <ac_nonexistent.h>
3905 _ACEOF
3906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } >/dev/null; then
3914 if test -s conftest.err; then
3915 ac_cpp_err=$ac_c_preproc_warn_flag
3916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3917 else
3918 ac_cpp_err=
3919 fi
3920 else
3921 ac_cpp_err=yes
3922 fi
3923 if test -z "$ac_cpp_err"; then
3924 # Broken: success on invalid input.
3925 continue
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 # Passes both tests.
3931 ac_preproc_ok=:
3932 break
3933 fi
3934 rm -f conftest.err conftest.$ac_ext
3935
3936 done
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then
3940 break
3941 fi
3942
3943 done
3944 ac_cv_prog_CPP=$CPP
3945
3946 fi
3947 CPP=$ac_cv_prog_CPP
3948 else
3949 ac_cv_prog_CPP=$CPP
3950 fi
3951 echo "$as_me:$LINENO: result: $CPP" >&5
3952 echo "${ECHO_T}$CPP" >&6
3953 ac_preproc_ok=false
3954 for ac_c_preproc_warn_flag in '' yes
3955 do
3956 # Use a header file that comes with gcc, so configuring glibc
3957 # with a fresh cross-compiler works.
3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 # <limits.h> exists even on freestanding compilers.
3960 # On the NeXT, cc -E runs the code through the compiler's parser,
3961 # not just through cpp. "Syntax error" is here to catch this case.
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973 Syntax error
3974 _ACEOF
3975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } >/dev/null; then
3983 if test -s conftest.err; then
3984 ac_cpp_err=$ac_c_preproc_warn_flag
3985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3986 else
3987 ac_cpp_err=
3988 fi
3989 else
3990 ac_cpp_err=yes
3991 fi
3992 if test -z "$ac_cpp_err"; then
3993 :
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 # Broken: fails on valid input.
3999 continue
4000 fi
4001 rm -f conftest.err conftest.$ac_ext
4002
4003 # OK, works on sane cases. Now check whether non-existent headers
4004 # can be detected and how.
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 #include <ac_nonexistent.h>
4012 _ACEOF
4013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } >/dev/null; then
4021 if test -s conftest.err; then
4022 ac_cpp_err=$ac_c_preproc_warn_flag
4023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4024 else
4025 ac_cpp_err=
4026 fi
4027 else
4028 ac_cpp_err=yes
4029 fi
4030 if test -z "$ac_cpp_err"; then
4031 # Broken: success on invalid input.
4032 continue
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 # Passes both tests.
4038 ac_preproc_ok=:
4039 break
4040 fi
4041 rm -f conftest.err conftest.$ac_ext
4042
4043 done
4044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045 rm -f conftest.err conftest.$ac_ext
4046 if $ac_preproc_ok; then
4047 :
4048 else
4049 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details." >&5
4051 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4052 See \`config.log' for more details." >&2;}
4053 { (exit 1); exit 1; }; }
4054 fi
4055
4056 ac_ext=c
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4064 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4065 if test "${ac_cv_header_stdc+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <stdlib.h>
4075 #include <stdarg.h>
4076 #include <string.h>
4077 #include <float.h>
4078
4079 int
4080 main ()
4081 {
4082
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_cv_header_stdc=yes
4110 else
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 ac_cv_header_stdc=no
4115 fi
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117
4118 if test $ac_cv_header_stdc = yes; then
4119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <string.h>
4127
4128 _ACEOF
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "memchr" >/dev/null 2>&1; then
4131 :
4132 else
4133 ac_cv_header_stdc=no
4134 fi
4135 rm -f conftest*
4136
4137 fi
4138
4139 if test $ac_cv_header_stdc = yes; then
4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <stdlib.h>
4148
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "free" >/dev/null 2>&1; then
4152 :
4153 else
4154 ac_cv_header_stdc=no
4155 fi
4156 rm -f conftest*
4157
4158 fi
4159
4160 if test $ac_cv_header_stdc = yes; then
4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162 if test "$cross_compiling" = yes; then
4163 :
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <ctype.h>
4172 #if ((' ' & 0x0FF) == 0x020)
4173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4175 #else
4176 # define ISLOWER(c) \
4177 (('a' <= (c) && (c) <= 'i') \
4178 || ('j' <= (c) && (c) <= 'r') \
4179 || ('s' <= (c) && (c) <= 'z'))
4180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4181 #endif
4182
4183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 int
4185 main ()
4186 {
4187 int i;
4188 for (i = 0; i < 256; i++)
4189 if (XOR (islower (i), ISLOWER (i))
4190 || toupper (i) != TOUPPER (i))
4191 exit(2);
4192 exit (0);
4193 }
4194 _ACEOF
4195 rm -f conftest$ac_exeext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4197 (eval $ac_link) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 :
4207 else
4208 echo "$as_me: program exited with status $ac_status" >&5
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 ( exit $ac_status )
4213 ac_cv_header_stdc=no
4214 fi
4215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216 fi
4217 fi
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4220 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4221 if test $ac_cv_header_stdc = yes; then
4222
4223 cat >>confdefs.h <<\_ACEOF
4224 #define STDC_HEADERS 1
4225 _ACEOF
4226
4227 fi
4228
4229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4240 inttypes.h stdint.h unistd.h
4241 do
4242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243 echo "$as_me:$LINENO: checking for $ac_header" >&5
4244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4255
4256 #include <$ac_header>
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260 (eval $ac_compile) 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -z "$ac_c_werror_flag"
4268 || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4280 eval "$as_ac_Header=yes"
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 eval "$as_ac_Header=no"
4286 fi
4287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288 fi
4289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4292 cat >>confdefs.h <<_ACEOF
4293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 _ACEOF
4295
4296 fi
4297
4298 done
4299
4300
4301
4302 for ac_header in dlfcn.h
4303 do
4304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306 echo "$as_me:$LINENO: checking for $ac_header" >&5
4307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 fi
4311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313 else
4314 # Is the header compilable?
4315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 $ac_includes_default
4324 #include <$ac_header>
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_header_compiler=yes
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ac_header_compiler=no
4354 fi
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4357 echo "${ECHO_T}$ac_header_compiler" >&6
4358
4359 # Is the header present?
4360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <$ac_header>
4369 _ACEOF
4370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null; then
4378 if test -s conftest.err; then
4379 ac_cpp_err=$ac_c_preproc_warn_flag
4380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4381 else
4382 ac_cpp_err=
4383 fi
4384 else
4385 ac_cpp_err=yes
4386 fi
4387 if test -z "$ac_cpp_err"; then
4388 ac_header_preproc=yes
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_header_preproc=no
4394 fi
4395 rm -f conftest.err conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4397 echo "${ECHO_T}$ac_header_preproc" >&6
4398
4399 # So? What about this header?
4400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4401 yes:no: )
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4406 ac_header_preproc=yes
4407 ;;
4408 no:yes:* )
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4421 (
4422 cat <<\_ASBOX
4423 ## ---------------------------------------------------------------------- ##
4424 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4425 ## ---------------------------------------------------------------------- ##
4426 _ASBOX
4427 ) |
4428 sed "s/^/$as_me: WARNING: /" >&2
4429 ;;
4430 esac
4431 echo "$as_me:$LINENO: checking for $ac_header" >&5
4432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 eval "$as_ac_Header=\$ac_header_preproc"
4437 fi
4438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440
4441 fi
4442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4443 cat >>confdefs.h <<_ACEOF
4444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4445 _ACEOF
4446
4447 fi
4448
4449 done
4450
4451 ac_ext=cc
4452 ac_cpp='$CXXCPP $CPPFLAGS'
4453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4456 if test -n "$ac_tool_prefix"; then
4457 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4458 do
4459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_prog_CXX+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$CXX"; then
4467 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4479 fi
4480 done
4481 done
4482
4483 fi
4484 fi
4485 CXX=$ac_cv_prog_CXX
4486 if test -n "$CXX"; then
4487 echo "$as_me:$LINENO: result: $CXX" >&5
4488 echo "${ECHO_T}$CXX" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6
4492 fi
4493
4494 test -n "$CXX" && break
4495 done
4496 fi
4497 if test -z "$CXX"; then
4498 ac_ct_CXX=$CXX
4499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4500 do
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 if test -n "$ac_ct_CXX"; then
4509 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_ac_ct_CXX="$ac_prog"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522 done
4523 done
4524
4525 fi
4526 fi
4527 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4528 if test -n "$ac_ct_CXX"; then
4529 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4530 echo "${ECHO_T}$ac_ct_CXX" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536 test -n "$ac_ct_CXX" && break
4537 done
4538 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4539
4540 CXX=$ac_ct_CXX
4541 fi
4542
4543
4544 # Provide some information about the compiler.
4545 echo "$as_me:$LINENO:" \
4546 "checking for C++ compiler version" >&5
4547 ac_compiler=`set X $ac_compile; echo $2`
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4549 (eval $ac_compiler --version </dev/null >&5) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4554 (eval $ac_compiler -v </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
4564 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h. */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579 #ifndef __GNUC__
4580 choke me
4581 #endif
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -z "$ac_cxx_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 ac_compiler_gnu=yes
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 ac_compiler_gnu=no
4615 fi
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4618
4619 fi
4620 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4622 GXX=`test $ac_compiler_gnu = yes && echo yes`
4623 ac_test_CXXFLAGS=${CXXFLAGS+set}
4624 ac_save_CXXFLAGS=$CXXFLAGS
4625 CXXFLAGS="-g"
4626 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4627 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4628 if test "${ac_cv_prog_cxx_g+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637
4638 int
4639 main ()
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_cxx_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_cv_prog_cxx_g=yes
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 ac_cv_prog_cxx_g=no
4674 fi
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4679 if test "$ac_test_CXXFLAGS" = set; then
4680 CXXFLAGS=$ac_save_CXXFLAGS
4681 elif test $ac_cv_prog_cxx_g = yes; then
4682 if test "$GXX" = yes; then
4683 CXXFLAGS="-g -O2"
4684 else
4685 CXXFLAGS="-g"
4686 fi
4687 else
4688 if test "$GXX" = yes; then
4689 CXXFLAGS="-O2"
4690 else
4691 CXXFLAGS=
4692 fi
4693 fi
4694 for ac_declaration in \
4695 '' \
4696 'extern "C" void std::exit (int) throw (); using std::exit;' \
4697 'extern "C" void std::exit (int); using std::exit;' \
4698 'extern "C" void exit (int) throw ();' \
4699 'extern "C" void exit (int);' \
4700 'void exit (int);'
4701 do
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_declaration
4709 #include <stdlib.h>
4710 int
4711 main ()
4712 {
4713 exit (42);
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -z "$ac_cxx_werror_flag"
4728 || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest.$ac_objext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 :
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 continue
4746 fi
4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 $ac_declaration
4755 int
4756 main ()
4757 {
4758 exit (42);
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>conftest.er1
4766 ac_status=$?
4767 grep -v '^ *+' conftest.er1 >conftest.err
4768 rm -f conftest.er1
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -z "$ac_cxx_werror_flag"
4773 || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 break
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 fi
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 done
4793 rm -f conftest*
4794 if test -n "$ac_declaration"; then
4795 echo '#ifdef __cplusplus' >>confdefs.h
4796 echo $ac_declaration >>confdefs.h
4797 echo '#endif' >>confdefs.h
4798 fi
4799
4800 ac_ext=cc
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805
4806 depcc="$CXX" am_compiler_list=
4807
4808 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4809 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4810 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4814 # We make a subdir and do the tests there. Otherwise we can end up
4815 # making bogus files that we don't know about and never remove. For
4816 # instance it was reported that on HP-UX the gcc test will end up
4817 # making a dummy file named `D' -- because `-MD' means `put the output
4818 # in D'.
4819 mkdir conftest.dir
4820 # Copy depcomp to subdir because otherwise we won't find it if we're
4821 # using a relative directory.
4822 cp "$am_depcomp" conftest.dir
4823 cd conftest.dir
4824 # We will build objects and dependencies in a subdirectory because
4825 # it helps to detect inapplicable dependency modes. For instance
4826 # both Tru64's cc and ICC support -MD to output dependencies as a
4827 # side effect of compilation, but ICC will put the dependencies in
4828 # the current directory while Tru64 will put them in the object
4829 # directory.
4830 mkdir sub
4831
4832 am_cv_CXX_dependencies_compiler_type=none
4833 if test "$am_compiler_list" = ""; then
4834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4835 fi
4836 for depmode in $am_compiler_list; do
4837 # Setup a source with many dependencies, because some compilers
4838 # like to wrap large dependency lists on column 80 (with \), and
4839 # we should not choose a depcomp mode which is confused by this.
4840 #
4841 # We need to recreate these files for each test, as the compiler may
4842 # overwrite some of them when testing with obscure command lines.
4843 # This happens at least with the AIX C compiler.
4844 : > sub/conftest.c
4845 for i in 1 2 3 4 5 6; do
4846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4847 : > sub/conftst$i.h
4848 done
4849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4850
4851 case $depmode in
4852 nosideeffect)
4853 # after this tag, mechanisms are not by side-effect, so they'll
4854 # only be used when explicitly requested
4855 if test "x$enable_dependency_tracking" = xyes; then
4856 continue
4857 else
4858 break
4859 fi
4860 ;;
4861 none) break ;;
4862 esac
4863 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4864 # mode. It turns out that the SunPro C++ compiler does not properly
4865 # handle `-M -o', and we need to detect this.
4866 if depmode=$depmode \
4867 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4869 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4870 >/dev/null 2>conftest.err &&
4871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4872 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4874 # icc doesn't choke on unknown options, it will just issue warnings
4875 # (even with -Werror). So we grep stderr for any message
4876 # that says an option was ignored.
4877 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4878 am_cv_CXX_dependencies_compiler_type=$depmode
4879 break
4880 fi
4881 fi
4882 done
4883
4884 cd ..
4885 rm -rf conftest.dir
4886 else
4887 am_cv_CXX_dependencies_compiler_type=none
4888 fi
4889
4890 fi
4891 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4892 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4893 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4894
4895
4896
4897 if
4898 test "x$enable_dependency_tracking" != xno \
4899 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4900 am__fastdepCXX_TRUE=
4901 am__fastdepCXX_FALSE='#'
4902 else
4903 am__fastdepCXX_TRUE='#'
4904 am__fastdepCXX_FALSE=
4905 fi
4906
4907
4908 ac_ext=cc
4909 ac_cpp='$CXXCPP $CPPFLAGS'
4910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4915 if test -z "$CXXCPP"; then
4916 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 # Double quotes because CXXCPP needs to be expanded
4920 for CXXCPP in "$CXX -E" "/lib/cpp"
4921 do
4922 ac_preproc_ok=false
4923 for ac_cxx_preproc_warn_flag in '' yes
4924 do
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #ifdef __STDC__
4938 # include <limits.h>
4939 #else
4940 # include <assert.h>
4941 #endif
4942 Syntax error
4943 _ACEOF
4944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null; then
4952 if test -s conftest.err; then
4953 ac_cpp_err=$ac_cxx_preproc_warn_flag
4954 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4955 else
4956 ac_cpp_err=
4957 fi
4958 else
4959 ac_cpp_err=yes
4960 fi
4961 if test -z "$ac_cpp_err"; then
4962 :
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968 continue
4969 fi
4970 rm -f conftest.err conftest.$ac_ext
4971
4972 # OK, works on sane cases. Now check whether non-existent headers
4973 # can be detected and how.
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <ac_nonexistent.h>
4981 _ACEOF
4982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } >/dev/null; then
4990 if test -s conftest.err; then
4991 ac_cpp_err=$ac_cxx_preproc_warn_flag
4992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4993 else
4994 ac_cpp_err=
4995 fi
4996 else
4997 ac_cpp_err=yes
4998 fi
4999 if test -z "$ac_cpp_err"; then
5000 # Broken: success on invalid input.
5001 continue
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 # Passes both tests.
5007 ac_preproc_ok=:
5008 break
5009 fi
5010 rm -f conftest.err conftest.$ac_ext
5011
5012 done
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then
5016 break
5017 fi
5018
5019 done
5020 ac_cv_prog_CXXCPP=$CXXCPP
5021
5022 fi
5023 CXXCPP=$ac_cv_prog_CXXCPP
5024 else
5025 ac_cv_prog_CXXCPP=$CXXCPP
5026 fi
5027 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028 echo "${ECHO_T}$CXXCPP" >&6
5029 ac_preproc_ok=false
5030 for ac_cxx_preproc_warn_flag in '' yes
5031 do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #ifdef __STDC__
5045 # include <limits.h>
5046 #else
5047 # include <assert.h>
5048 #endif
5049 Syntax error
5050 _ACEOF
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null; then
5059 if test -s conftest.err; then
5060 ac_cpp_err=$ac_cxx_preproc_warn_flag
5061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5062 else
5063 ac_cpp_err=
5064 fi
5065 else
5066 ac_cpp_err=yes
5067 fi
5068 if test -z "$ac_cpp_err"; then
5069 :
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 # Broken: fails on valid input.
5075 continue
5076 fi
5077 rm -f conftest.err conftest.$ac_ext
5078
5079 # OK, works on sane cases. Now check whether non-existent headers
5080 # can be detected and how.
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h. */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 #include <ac_nonexistent.h>
5088 _ACEOF
5089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null; then
5097 if test -s conftest.err; then
5098 ac_cpp_err=$ac_cxx_preproc_warn_flag
5099 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5100 else
5101 ac_cpp_err=
5102 fi
5103 else
5104 ac_cpp_err=yes
5105 fi
5106 if test -z "$ac_cpp_err"; then
5107 # Broken: success on invalid input.
5108 continue
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 # Passes both tests.
5114 ac_preproc_ok=:
5115 break
5116 fi
5117 rm -f conftest.err conftest.$ac_ext
5118
5119 done
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.err conftest.$ac_ext
5122 if $ac_preproc_ok; then
5123 :
5124 else
5125 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126 See \`config.log' for more details." >&5
5127 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5128 See \`config.log' for more details." >&2;}
5129 { (exit 1); exit 1; }; }
5130 fi
5131
5132 ac_ext=cc
5133 ac_cpp='$CXXCPP $CPPFLAGS'
5134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137
5138
5139 ac_ext=f
5140 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5141 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5143 if test -n "$ac_tool_prefix"; then
5144 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5145 do
5146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5148 echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150 if test "${ac_cv_prog_F77+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 if test -n "$F77"; then
5154 ac_cv_prog_F77="$F77" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169
5170 fi
5171 fi
5172 F77=$ac_cv_prog_F77
5173 if test -n "$F77"; then
5174 echo "$as_me:$LINENO: result: $F77" >&5
5175 echo "${ECHO_T}$F77" >&6
5176 else
5177 echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6
5179 fi
5180
5181 test -n "$F77" && break
5182 done
5183 fi
5184 if test -z "$F77"; then
5185 ac_ct_F77=$F77
5186 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5187 do
5188 # Extract the first word of "$ac_prog", so it can be a program name with args.
5189 set dummy $ac_prog; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 if test -n "$ac_ct_F77"; then
5196 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_F77="$ac_prog"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211
5212 fi
5213 fi
5214 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5215 if test -n "$ac_ct_F77"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5217 echo "${ECHO_T}$ac_ct_F77" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223 test -n "$ac_ct_F77" && break
5224 done
5225
5226 F77=$ac_ct_F77
5227 fi
5228
5229
5230 # Provide some information about the compiler.
5231 echo "$as_me:5231:" \
5232 "checking for Fortran 77 compiler version" >&5
5233 ac_compiler=`set X $ac_compile; echo $2`
5234 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5235 (eval $ac_compiler --version </dev/null >&5) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }
5239 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5240 (eval $ac_compiler -v </dev/null >&5) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }
5244 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5245 (eval $ac_compiler -V </dev/null >&5) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249 rm -f a.out
5250
5251 # If we don't use `.F' as extension, the preprocessor is not run on the
5252 # input file. (Note that this only needs to work for GNU compilers.)
5253 ac_save_ext=$ac_ext
5254 ac_ext=F
5255 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5256 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5257 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 cat >conftest.$ac_ext <<_ACEOF
5261 program main
5262 #ifndef __GNUC__
5263 choke me
5264 #endif
5265
5266 end
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_f77_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_compiler_gnu=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_compiler_gnu=no
5296 fi
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5299
5300 fi
5301 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5302 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5303 ac_ext=$ac_save_ext
5304 ac_test_FFLAGS=${FFLAGS+set}
5305 ac_save_FFLAGS=$FFLAGS
5306 FFLAGS=
5307 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5308 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5309 if test "${ac_cv_prog_f77_g+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 FFLAGS=-g
5313 cat >conftest.$ac_ext <<_ACEOF
5314 program main
5315
5316 end
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_f77_werror_flag"
5328 || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_cv_prog_f77_g=yes
5341 else
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 ac_cv_prog_f77_g=no
5346 fi
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348
5349 fi
5350 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5351 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5352 if test "$ac_test_FFLAGS" = set; then
5353 FFLAGS=$ac_save_FFLAGS
5354 elif test $ac_cv_prog_f77_g = yes; then
5355 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5356 FFLAGS="-g -O2"
5357 else
5358 FFLAGS="-g"
5359 fi
5360 else
5361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5362 FFLAGS="-O2"
5363 else
5364 FFLAGS=
5365 fi
5366 fi
5367
5368 G77=`test $ac_compiler_gnu = yes && echo yes`
5369 ac_ext=c
5370 ac_cpp='$CPP $CPPFLAGS'
5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374
5375
5376
5377 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5378
5379 # find the maximum length of command line arguments
5380 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5381 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5382 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 i=0
5386 teststring="ABCD"
5387
5388 case $build_os in
5389 msdosdjgpp*)
5390 # On DJGPP, this test can blow up pretty badly due to problems in libc
5391 # (any single argument exceeding 2000 bytes causes a buffer overrun
5392 # during glob expansion). Even if it were fixed, the result of this
5393 # check would be larger than it should be.
5394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5395 ;;
5396
5397 gnu*)
5398 # Under GNU Hurd, this test is not required because there is
5399 # no limit to the length of command line arguments.
5400 # Libtool will interpret -1 as no limit whatsoever
5401 lt_cv_sys_max_cmd_len=-1;
5402 ;;
5403
5404 cygwin* | mingw*)
5405 # On Win9x/ME, this test blows up -- it succeeds, but takes
5406 # about 5 minutes as the teststring grows exponentially.
5407 # Worse, since 9x/ME are not pre-emptively multitasking,
5408 # you end up with a "frozen" computer, even though with patience
5409 # the test eventually succeeds (with a max line length of 256k).
5410 # Instead, let's just punt: use the minimum linelength reported by
5411 # all of the supported platforms: 8192 (on NT/2K/XP).
5412 lt_cv_sys_max_cmd_len=8192;
5413 ;;
5414
5415 amigaos*)
5416 # On AmigaOS with pdksh, this test takes hours, literally.
5417 # So we just punt and use a minimum line length of 8192.
5418 lt_cv_sys_max_cmd_len=8192;
5419 ;;
5420
5421 *)
5422 # If test is not a shell built-in, we'll probably end up computing a
5423 # maximum length that is only half of the actual maximum length, but
5424 # we can't tell.
5425 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5426 = "XX$teststring") >/dev/null 2>&1 &&
5427 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5428 lt_cv_sys_max_cmd_len=$new_result &&
5429 test $i != 17 # 1/2 MB should be enough
5430 do
5431 i=`expr $i + 1`
5432 teststring=$teststring$teststring
5433 done
5434 teststring=
5435 # Add a significant safety factor because C++ compilers can tack on massive
5436 # amounts of additional arguments before passing them to the linker.
5437 # It appears as though 1/2 is a usable value.
5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5439 ;;
5440 esac
5441
5442 fi
5443
5444 if test -n $lt_cv_sys_max_cmd_len ; then
5445 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5446 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5447 else
5448 echo "$as_me:$LINENO: result: none" >&5
5449 echo "${ECHO_T}none" >&6
5450 fi
5451
5452
5453
5454
5455 # Check for command to grab the raw symbol name followed by C symbol from nm.
5456 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5457 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5458 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461
5462 # These are sane defaults that work on at least a few old systems.
5463 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464
5465 # Character class describing NM global symbol codes.
5466 symcode='[BCDEGRST]'
5467
5468 # Regexp to match symbols that can be accessed directly from C.
5469 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5470
5471 # Transform the above into a raw symbol and a C symbol.
5472 symxfrm='\1 \2\3 \3'
5473
5474 # Transform an extracted symbol line into a proper C declaration
5475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5476
5477 # Transform an extracted symbol line into symbol name and symbol address
5478 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'"
5479
5480 # Define system-specific variables.
5481 case $host_os in
5482 aix*)
5483 symcode='[BCDT]'
5484 ;;
5485 cygwin* | mingw* | pw32*)
5486 symcode='[ABCDGISTW]'
5487 ;;
5488 hpux*) # Its linker distinguishes data from code symbols
5489 if test "$host_cpu" = ia64; then
5490 symcode='[ABCDEGRST]'
5491 fi
5492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5493 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'"
5494 ;;
5495 irix* | nonstopux*)
5496 symcode='[BCDEGRST]'
5497 ;;
5498 osf*)
5499 symcode='[BCDEGQRST]'
5500 ;;
5501 solaris* | sysv5*)
5502 symcode='[BDRT]'
5503 ;;
5504 sysv4)
5505 symcode='[DFNSTU]'
5506 ;;
5507 esac
5508
5509 # Handle CRLF in mingw tool chain
5510 opt_cr=
5511 case $build_os in
5512 mingw*)
5513 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5514 ;;
5515 esac
5516
5517 # If we're using GNU nm, then use its standard symbol codes.
5518 case `$NM -V 2>&1` in
5519 *GNU* | *'with BFD'*)
5520 symcode='[ABCDGIRSTW]' ;;
5521 esac
5522
5523 # Try without a prefix undercore, then with it.
5524 for ac_symprfx in "" "_"; do
5525
5526 # Write the raw and C identifiers.
5527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5528
5529 # Check to see that the pipe works correctly.
5530 pipe_works=no
5531
5532 rm -f conftest*
5533 cat > conftest.$ac_ext <<EOF
5534 #ifdef __cplusplus
5535 extern "C" {
5536 #endif
5537 char nm_test_var;
5538 void nm_test_func(){}
5539 #ifdef __cplusplus
5540 }
5541 #endif
5542 int main(){nm_test_var='a';nm_test_func();return(0);}
5543 EOF
5544
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; then
5550 # Now try to grab the symbols.
5551 nlist=conftest.nm
5552 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && test -s "$nlist"; then
5557 # Try sorting and uniquifying the output.
5558 if sort "$nlist" | uniq > "$nlist"T; then
5559 mv -f "$nlist"T "$nlist"
5560 else
5561 rm -f "$nlist"T
5562 fi
5563
5564 # Make sure that we snagged all the symbols we need.
5565 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5566 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5567 cat <<EOF > conftest.$ac_ext
5568 #ifdef __cplusplus
5569 extern "C" {
5570 #endif
5571
5572 EOF
5573 # Now generate the symbol file.
5574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5575
5576 cat <<EOF >> conftest.$ac_ext
5577 #if defined (__STDC__) && __STDC__
5578 # define lt_ptr_t void *
5579 #else
5580 # define lt_ptr_t char *
5581 # define const
5582 #endif
5583
5584 /* The mapping between symbol names and symbols. */
5585 const struct {
5586 const char *name;
5587 lt_ptr_t address;
5588 }
5589 lt_preloaded_symbols[] =
5590 {
5591 EOF
5592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5593 cat <<\EOF >> conftest.$ac_ext
5594 {0, (lt_ptr_t) 0}
5595 };
5596
5597 #ifdef __cplusplus
5598 }
5599 #endif
5600 EOF
5601 # Now try linking the two files.
5602 mv conftest.$ac_objext conftstm.$ac_objext
5603 lt_save_LIBS="$LIBS"
5604 lt_save_CFLAGS="$CFLAGS"
5605 LIBS="conftstm.$ac_objext"
5606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5612 pipe_works=yes
5613 fi
5614 LIBS="$lt_save_LIBS"
5615 CFLAGS="$lt_save_CFLAGS"
5616 else
5617 echo "cannot find nm_test_func in $nlist" >&5
5618 fi
5619 else
5620 echo "cannot find nm_test_var in $nlist" >&5
5621 fi
5622 else
5623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5624 fi
5625 else
5626 echo "$progname: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 fi
5629 rm -f conftest* conftst*
5630
5631 # Do not use the global_symbol_pipe unless it works.
5632 if test "$pipe_works" = yes; then
5633 break
5634 else
5635 lt_cv_sys_global_symbol_pipe=
5636 fi
5637 done
5638
5639 fi
5640
5641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5642 lt_cv_sys_global_symbol_to_cdecl=
5643 fi
5644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5645 echo "$as_me:$LINENO: result: failed" >&5
5646 echo "${ECHO_T}failed" >&6
5647 else
5648 echo "$as_me:$LINENO: result: ok" >&5
5649 echo "${ECHO_T}ok" >&6
5650 fi
5651
5652 echo "$as_me:$LINENO: checking for objdir" >&5
5653 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5654 if test "${lt_cv_objdir+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 rm -f .libs 2>/dev/null
5658 mkdir .libs 2>/dev/null
5659 if test -d .libs; then
5660 lt_cv_objdir=.libs
5661 else
5662 # MS-DOS does not allow filenames that begin with a dot.
5663 lt_cv_objdir=_libs
5664 fi
5665 rmdir .libs 2>/dev/null
5666 fi
5667 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5668 echo "${ECHO_T}$lt_cv_objdir" >&6
5669 objdir=$lt_cv_objdir
5670
5671
5672
5673
5674
5675 case $host_os in
5676 aix3*)
5677 # AIX sometimes has problems with the GCC collect2 program. For some
5678 # reason, if we set the COLLECT_NAMES environment variable, the problems
5679 # vanish in a puff of smoke.
5680 if test "X${COLLECT_NAMES+set}" != Xset; then
5681 COLLECT_NAMES=
5682 export COLLECT_NAMES
5683 fi
5684 ;;
5685 esac
5686
5687 # Sed substitution that helps us do robust quoting. It backslashifies
5688 # metacharacters that are still active within double-quoted strings.
5689 Xsed='sed -e s/^X//'
5690 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5691
5692 # Same as above, but do not quote variable references.
5693 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5694
5695 # Sed substitution to delay expansion of an escaped shell variable in a
5696 # double_quote_subst'ed string.
5697 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5698
5699 # Sed substitution to avoid accidental globbing in evaled expressions
5700 no_glob_subst='s/\*/\\\*/g'
5701
5702 # Constants:
5703 rm="rm -f"
5704
5705 # Global variables:
5706 default_ofile=libtool
5707 can_build_shared=yes
5708
5709 # All known linkers require a `.a' archive for static linking (except M$VC,
5710 # which needs '.lib').
5711 libext=a
5712 ltmain="$ac_aux_dir/ltmain.sh"
5713 ofile="$default_ofile"
5714 with_gnu_ld="$lt_cv_prog_gnu_ld"
5715
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}ar; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_AR+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 if test -n "$AR"; then
5725 ac_cv_prog_AR="$AR" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_AR="${ac_tool_prefix}ar"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740
5741 fi
5742 fi
5743 AR=$ac_cv_prog_AR
5744 if test -n "$AR"; then
5745 echo "$as_me:$LINENO: result: $AR" >&5
5746 echo "${ECHO_T}$AR" >&6
5747 else
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5750 fi
5751
5752 fi
5753 if test -z "$ac_cv_prog_AR"; then
5754 ac_ct_AR=$AR
5755 # Extract the first word of "ar", so it can be a program name with args.
5756 set dummy ar; ac_word=$2
5757 echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 if test -n "$ac_ct_AR"; then
5763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_AR="ar"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778
5779 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5780 fi
5781 fi
5782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5783 if test -n "$ac_ct_AR"; then
5784 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5785 echo "${ECHO_T}$ac_ct_AR" >&6
5786 else
5787 echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5789 fi
5790
5791 AR=$ac_ct_AR
5792 else
5793 AR="$ac_cv_prog_AR"
5794 fi
5795
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_prog_RANLIB+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 if test -n "$RANLIB"; then
5805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820
5821 fi
5822 fi
5823 RANLIB=$ac_cv_prog_RANLIB
5824 if test -n "$RANLIB"; then
5825 echo "$as_me:$LINENO: result: $RANLIB" >&5
5826 echo "${ECHO_T}$RANLIB" >&6
5827 else
5828 echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6
5830 fi
5831
5832 fi
5833 if test -z "$ac_cv_prog_RANLIB"; then
5834 ac_ct_RANLIB=$RANLIB
5835 # Extract the first word of "ranlib", so it can be a program name with args.
5836 set dummy ranlib; ac_word=$2
5837 echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5839 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 if test -n "$ac_ct_RANLIB"; then
5843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 ac_cv_prog_ac_ct_RANLIB="ranlib"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856 done
5857 done
5858
5859 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5860 fi
5861 fi
5862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5863 if test -n "$ac_ct_RANLIB"; then
5864 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5865 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5866 else
5867 echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869 fi
5870
5871 RANLIB=$ac_ct_RANLIB
5872 else
5873 RANLIB="$ac_cv_prog_RANLIB"
5874 fi
5875
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}strip; ac_word=$2
5879 echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881 if test "${ac_cv_prog_STRIP+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 if test -n "$STRIP"; then
5885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900
5901 fi
5902 fi
5903 STRIP=$ac_cv_prog_STRIP
5904 if test -n "$STRIP"; then
5905 echo "$as_me:$LINENO: result: $STRIP" >&5
5906 echo "${ECHO_T}$STRIP" >&6
5907 else
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912 fi
5913 if test -z "$ac_cv_prog_STRIP"; then
5914 ac_ct_STRIP=$STRIP
5915 # Extract the first word of "strip", so it can be a program name with args.
5916 set dummy strip; ac_word=$2
5917 echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 if test -n "$ac_ct_STRIP"; then
5923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_STRIP="strip"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938
5939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5940 fi
5941 fi
5942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5943 if test -n "$ac_ct_STRIP"; then
5944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5945 echo "${ECHO_T}$ac_ct_STRIP" >&6
5946 else
5947 echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5949 fi
5950
5951 STRIP=$ac_ct_STRIP
5952 else
5953 STRIP="$ac_cv_prog_STRIP"
5954 fi
5955
5956
5957 old_CC="$CC"
5958 old_CFLAGS="$CFLAGS"
5959
5960 # Set sane defaults for various variables
5961 test -z "$AR" && AR=ar
5962 test -z "$AR_FLAGS" && AR_FLAGS=cru
5963 test -z "$AS" && AS=as
5964 test -z "$CC" && CC=cc
5965 test -z "$LTCC" && LTCC=$CC
5966 test -z "$DLLTOOL" && DLLTOOL=dlltool
5967 test -z "$LD" && LD=ld
5968 test -z "$LN_S" && LN_S="ln -s"
5969 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5970 test -z "$NM" && NM=nm
5971 test -z "$SED" && SED=sed
5972 test -z "$OBJDUMP" && OBJDUMP=objdump
5973 test -z "$RANLIB" && RANLIB=:
5974 test -z "$STRIP" && STRIP=:
5975 test -z "$ac_objext" && ac_objext=o
5976
5977 # Determine commands to create old-style static archives.
5978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5979 old_postinstall_cmds='chmod 644 $oldlib'
5980 old_postuninstall_cmds=
5981
5982 if test -n "$RANLIB"; then
5983 case $host_os in
5984 openbsd*)
5985 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5986 ;;
5987 *)
5988 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5989 ;;
5990 esac
5991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5992 fi
5993
5994 # Only perform the check for file, if the check method requires it
5995 case $deplibs_check_method in
5996 file_magic*)
5997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5998 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5999 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003 case $MAGIC_CMD in
6004 [\\/*] | ?:[\\/]*)
6005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6006 ;;
6007 *)
6008 lt_save_MAGIC_CMD="$MAGIC_CMD"
6009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6011 for ac_dir in $ac_dummy; do
6012 IFS="$lt_save_ifs"
6013 test -z "$ac_dir" && ac_dir=.
6014 if test -f $ac_dir/${ac_tool_prefix}file; then
6015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6016 if test -n "$file_magic_test_file"; then
6017 case $deplibs_check_method in
6018 "file_magic "*)
6019 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6022 $EGREP "$file_magic_regex" > /dev/null; then
6023 :
6024 else
6025 cat <<EOF 1>&2
6026
6027 *** Warning: the command libtool uses to detect shared libraries,
6028 *** $file_magic_cmd, produces output that libtool cannot recognize.
6029 *** The result is that libtool may fail to recognize shared libraries
6030 *** as such. This will affect the creation of libtool libraries that
6031 *** depend on shared libraries, but programs linked with such libtool
6032 *** libraries will work regardless of this problem. Nevertheless, you
6033 *** may want to report the problem to your system manager and/or to
6034 *** bug-libtool (at] gnu.org
6035
6036 EOF
6037 fi ;;
6038 esac
6039 fi
6040 break
6041 fi
6042 done
6043 IFS="$lt_save_ifs"
6044 MAGIC_CMD="$lt_save_MAGIC_CMD"
6045 ;;
6046 esac
6047 fi
6048
6049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6050 if test -n "$MAGIC_CMD"; then
6051 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6052 echo "${ECHO_T}$MAGIC_CMD" >&6
6053 else
6054 echo "$as_me:$LINENO: result: no" >&5
6055 echo "${ECHO_T}no" >&6
6056 fi
6057
6058 if test -z "$lt_cv_path_MAGIC_CMD"; then
6059 if test -n "$ac_tool_prefix"; then
6060 echo "$as_me:$LINENO: checking for file" >&5
6061 echo $ECHO_N "checking for file... $ECHO_C" >&6
6062 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 case $MAGIC_CMD in
6066 [\\/*] | ?:[\\/]*)
6067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6068 ;;
6069 *)
6070 lt_save_MAGIC_CMD="$MAGIC_CMD"
6071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6073 for ac_dir in $ac_dummy; do
6074 IFS="$lt_save_ifs"
6075 test -z "$ac_dir" && ac_dir=.
6076 if test -f $ac_dir/file; then
6077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6078 if test -n "$file_magic_test_file"; then
6079 case $deplibs_check_method in
6080 "file_magic "*)
6081 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6084 $EGREP "$file_magic_regex" > /dev/null; then
6085 :
6086 else
6087 cat <<EOF 1>&2
6088
6089 *** Warning: the command libtool uses to detect shared libraries,
6090 *** $file_magic_cmd, produces output that libtool cannot recognize.
6091 *** The result is that libtool may fail to recognize shared libraries
6092 *** as such. This will affect the creation of libtool libraries that
6093 *** depend on shared libraries, but programs linked with such libtool
6094 *** libraries will work regardless of this problem. Nevertheless, you
6095 *** may want to report the problem to your system manager and/or to
6096 *** bug-libtool (at] gnu.org
6097
6098 EOF
6099 fi ;;
6100 esac
6101 fi
6102 break
6103 fi
6104 done
6105 IFS="$lt_save_ifs"
6106 MAGIC_CMD="$lt_save_MAGIC_CMD"
6107 ;;
6108 esac
6109 fi
6110
6111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6112 if test -n "$MAGIC_CMD"; then
6113 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6114 echo "${ECHO_T}$MAGIC_CMD" >&6
6115 else
6116 echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6118 fi
6119
6120 else
6121 MAGIC_CMD=:
6122 fi
6123 fi
6124
6125 fi
6126 ;;
6127 esac
6128
6129 enable_dlopen=no
6130 enable_win32_dll=no
6131
6132 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6133 if test "${enable_libtool_lock+set}" = set; then
6134 enableval="$enable_libtool_lock"
6135
6136 fi;
6137 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6138
6139
6140 # Check whether --with-pic or --without-pic was given.
6141 if test "${with_pic+set}" = set; then
6142 withval="$with_pic"
6143 pic_mode="$withval"
6144 else
6145 pic_mode=default
6146 fi;
6147 test -z "$pic_mode" && pic_mode=default
6148
6149 # Use C for the default configuration in the libtool script
6150 tagname=
6151 lt_save_CC="$CC"
6152 ac_ext=c
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159 # Source file extension for C test sources.
6160 ac_ext=c
6161
6162 # Object file extension for compiled C test sources.
6163 objext=o
6164 objext=$objext
6165
6166 # Code to be used in simple compile tests
6167 lt_simple_compile_test_code="int some_variable = 0;\n"
6168
6169 # Code to be used in simple link tests
6170 lt_simple_link_test_code='int main(){return(0);}\n'
6171
6172
6173 # If no C compiler was specified, use CC.
6174 LTCC=${LTCC-"$CC"}
6175
6176 # Allow CC to be a program name with arguments.
6177 compiler=$CC
6178
6179
6180 #
6181 # Check for any special shared library compilation flags.
6182 #
6183 lt_prog_cc_shlib=
6184 if test "$GCC" = no; then
6185 case $host_os in
6186 sco3.2v5*)
6187 lt_prog_cc_shlib='-belf'
6188 ;;
6189 esac
6190 fi
6191 if test -n "$lt_prog_cc_shlib"; then
6192 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6193 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6194 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6195 else
6196 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6197 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6198 lt_cv_prog_cc_can_build_shared=no
6199 fi
6200 fi
6201
6202
6203 #
6204 # Check to make sure the static flag actually works.
6205 #
6206 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6207 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6208 if test "${lt_prog_compiler_static_works+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 lt_prog_compiler_static_works=no
6212 save_LDFLAGS="$LDFLAGS"
6213 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6214 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6216 # The compiler can only warn and ignore the option if not recognized
6217 # So say no if there are warnings
6218 if test -s conftest.err; then
6219 # Append any errors to the config.log.
6220 cat conftest.err 1>&5
6221 else
6222 lt_prog_compiler_static_works=yes
6223 fi
6224 fi
6225 $rm conftest*
6226 LDFLAGS="$save_LDFLAGS"
6227
6228 fi
6229 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6230 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6231
6232 if test x"$lt_prog_compiler_static_works" = xyes; then
6233 :
6234 else
6235 lt_prog_compiler_static=
6236 fi
6237
6238
6239
6240
6241 lt_prog_compiler_no_builtin_flag=
6242
6243 if test "$GCC" = yes; then
6244 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6245
6246
6247 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6248 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6249 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 lt_cv_prog_compiler_rtti_exceptions=no
6253 ac_outfile=conftest.$ac_objext
6254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6255 lt_compiler_flag="-fno-rtti -fno-exceptions"
6256 # Insert the option either (1) after the last *FLAGS variable, or
6257 # (2) before a word containing "conftest.", or (3) at the end.
6258 # Note that $ac_compile itself does not contain backslashes and begins
6259 # with a dollar sign (not a hyphen), so the echo should work correctly.
6260 # The option is referenced via a variable to avoid confusing sed.
6261 lt_compile=`echo "$ac_compile" | $SED \
6262 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6264 -e 's:$: $lt_compiler_flag:'`
6265 (eval echo "\"\$as_me:6265: $lt_compile\"" >&5)
6266 (eval "$lt_compile" 2>conftest.err)
6267 ac_status=$?
6268 cat conftest.err >&5
6269 echo "$as_me:6269: \$? = $ac_status" >&5
6270 if (exit $ac_status) && test -s "$ac_outfile"; then
6271 # The compiler can only warn and ignore the option if not recognized
6272 # So say no if there are warnings
6273 if test ! -s conftest.err; then
6274 lt_cv_prog_compiler_rtti_exceptions=yes
6275 fi
6276 fi
6277 $rm conftest*
6278
6279 fi
6280 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6281 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6282
6283 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6284 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6285 else
6286 :
6287 fi
6288
6289 fi
6290
6291 lt_prog_compiler_wl=
6292 lt_prog_compiler_pic=
6293 lt_prog_compiler_static=
6294
6295 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6296 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6297
6298 if test "$GCC" = yes; then
6299 lt_prog_compiler_wl='-Wl,'
6300 lt_prog_compiler_static='-static'
6301
6302 case $host_os in
6303 aix*)
6304 # All AIX code is PIC.
6305 if test "$host_cpu" = ia64; then
6306 # AIX 5 now supports IA64 processor
6307 lt_prog_compiler_static='-Bstatic'
6308 fi
6309 ;;
6310
6311 amigaos*)
6312 # FIXME: we need at least 68020 code to build shared libraries, but
6313 # adding the `-m68020' flag to GCC prevents building anything better,
6314 # like `-m68040'.
6315 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6316 ;;
6317
6318 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6319 # PIC is the default for these OSes.
6320 ;;
6321
6322 mingw* | pw32* | os2*)
6323 # This hack is so that the source file can tell whether it is being
6324 # built for inclusion in a dll (and should export symbols for example).
6325 lt_prog_compiler_pic='-DDLL_EXPORT'
6326 ;;
6327
6328 darwin* | rhapsody*)
6329 # PIC is the default on this platform
6330 # Common symbols not allowed in MH_DYLIB files
6331 lt_prog_compiler_pic='-fno-common'
6332 ;;
6333
6334 msdosdjgpp*)
6335 # Just because we use GCC doesn't mean we suddenly get shared libraries
6336 # on systems that don't support them.
6337 lt_prog_compiler_can_build_shared=no
6338 enable_shared=no
6339 ;;
6340
6341 sysv4*MP*)
6342 if test -d /usr/nec; then
6343 lt_prog_compiler_pic=-Kconform_pic
6344 fi
6345 ;;
6346
6347 hpux*)
6348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6349 # not for PA HP-UX.
6350 case "$host_cpu" in
6351 hppa*64*|ia64*)
6352 # +Z the default
6353 ;;
6354 *)
6355 lt_prog_compiler_pic='-fPIC'
6356 ;;
6357 esac
6358 ;;
6359
6360 *)
6361 lt_prog_compiler_pic='-fPIC'
6362 ;;
6363 esac
6364 else
6365 # PORTME Check for flag to pass linker flags through the system compiler.
6366 case $host_os in
6367 aix*)
6368 lt_prog_compiler_wl='-Wl,'
6369 if test "$host_cpu" = ia64; then
6370 # AIX 5 now supports IA64 processor
6371 lt_prog_compiler_static='-Bstatic'
6372 else
6373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6374 fi
6375 ;;
6376
6377 mingw* | pw32* | os2*)
6378 # This hack is so that the source file can tell whether it is being
6379 # built for inclusion in a dll (and should export symbols for example).
6380 lt_prog_compiler_pic='-DDLL_EXPORT'
6381 ;;
6382
6383 hpux9* | hpux10* | hpux11*)
6384 lt_prog_compiler_wl='-Wl,'
6385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6386 # not for PA HP-UX.
6387 case "$host_cpu" in
6388 hppa*64*|ia64*)
6389 # +Z the default
6390 ;;
6391 *)
6392 lt_prog_compiler_pic='+Z'
6393 ;;
6394 esac
6395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6396 lt_prog_compiler_static='${wl}-a ${wl}archive'
6397 ;;
6398
6399 irix5* | irix6* | nonstopux*)
6400 lt_prog_compiler_wl='-Wl,'
6401 # PIC (with -KPIC) is the default.
6402 lt_prog_compiler_static='-non_shared'
6403 ;;
6404
6405 newsos6)
6406 lt_prog_compiler_pic='-KPIC'
6407 lt_prog_compiler_static='-Bstatic'
6408 ;;
6409
6410 linux*)
6411 case $CC in
6412 icc* | ecc*)
6413 lt_prog_compiler_wl='-Wl,'
6414 lt_prog_compiler_pic='-KPIC'
6415 lt_prog_compiler_static='-static'
6416 ;;
6417 ccc*)
6418 lt_prog_compiler_wl='-Wl,'
6419 # All Alpha code is PIC.
6420 lt_prog_compiler_static='-non_shared'
6421 ;;
6422 esac
6423 ;;
6424
6425 osf3* | osf4* | osf5*)
6426 lt_prog_compiler_wl='-Wl,'
6427 # All OSF/1 code is PIC.
6428 lt_prog_compiler_static='-non_shared'
6429 ;;
6430
6431 sco3.2v5*)
6432 lt_prog_compiler_pic='-Kpic'
6433 lt_prog_compiler_static='-dn'
6434 ;;
6435
6436 solaris*)
6437 lt_prog_compiler_wl='-Wl,'
6438 lt_prog_compiler_pic='-KPIC'
6439 lt_prog_compiler_static='-Bstatic'
6440 ;;
6441
6442 sunos4*)
6443 lt_prog_compiler_wl='-Qoption ld '
6444 lt_prog_compiler_pic='-PIC'
6445 lt_prog_compiler_static='-Bstatic'
6446 ;;
6447
6448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_pic='-KPIC'
6451 lt_prog_compiler_static='-Bstatic'
6452 ;;
6453
6454 sysv4*MP*)
6455 if test -d /usr/nec ;then
6456 lt_prog_compiler_pic='-Kconform_pic'
6457 lt_prog_compiler_static='-Bstatic'
6458 fi
6459 ;;
6460
6461 uts4*)
6462 lt_prog_compiler_pic='-pic'
6463 lt_prog_compiler_static='-Bstatic'
6464 ;;
6465
6466 *)
6467 lt_prog_compiler_can_build_shared=no
6468 ;;
6469 esac
6470 fi
6471
6472 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6473 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6474
6475 #
6476 # Check to make sure the PIC flag actually works.
6477 #
6478 if test -n "$lt_prog_compiler_pic"; then
6479
6480 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6481 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6482 if test "${lt_prog_compiler_pic_works+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 lt_prog_compiler_pic_works=no
6486 ac_outfile=conftest.$ac_objext
6487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6488 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6489 # Insert the option either (1) after the last *FLAGS variable, or
6490 # (2) before a word containing "conftest.", or (3) at the end.
6491 # Note that $ac_compile itself does not contain backslashes and begins
6492 # with a dollar sign (not a hyphen), so the echo should work correctly.
6493 # The option is referenced via a variable to avoid confusing sed.
6494 lt_compile=`echo "$ac_compile" | $SED \
6495 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6497 -e 's:$: $lt_compiler_flag:'`
6498 (eval echo "\"\$as_me:6498: $lt_compile\"" >&5)
6499 (eval "$lt_compile" 2>conftest.err)
6500 ac_status=$?
6501 cat conftest.err >&5
6502 echo "$as_me:6502: \$? = $ac_status" >&5
6503 if (exit $ac_status) && test -s "$ac_outfile"; then
6504 # The compiler can only warn and ignore the option if not recognized
6505 # So say no if there are warnings
6506 if test ! -s conftest.err; then
6507 lt_prog_compiler_pic_works=yes
6508 fi
6509 fi
6510 $rm conftest*
6511
6512 fi
6513 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6514 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6515
6516 if test x"$lt_prog_compiler_pic_works" = xyes; then
6517 case $lt_prog_compiler_pic in
6518 "" | " "*) ;;
6519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6520 esac
6521 else
6522 lt_prog_compiler_pic=
6523 lt_prog_compiler_can_build_shared=no
6524 fi
6525
6526 fi
6527 case "$host_os" in
6528 # For platforms which do not support PIC, -DPIC is meaningless:
6529 *djgpp*)
6530 lt_prog_compiler_pic=
6531 ;;
6532 *)
6533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6534 ;;
6535 esac
6536
6537 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6538 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6539 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 lt_cv_prog_compiler_c_o=no
6543 $rm -r conftest 2>/dev/null
6544 mkdir conftest
6545 cd conftest
6546 mkdir out
6547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6548
6549 lt_compiler_flag="-o out/conftest2.$ac_objext"
6550 # Insert the option either (1) after the last *FLAGS variable, or
6551 # (2) before a word containing "conftest.", or (3) at the end.
6552 # Note that $ac_compile itself does not contain backslashes and begins
6553 # with a dollar sign (not a hyphen), so the echo should work correctly.
6554 lt_compile=`echo "$ac_compile" | $SED \
6555 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6557 -e 's:$: $lt_compiler_flag:'`
6558 (eval echo "\"\$as_me:6558: $lt_compile\"" >&5)
6559 (eval "$lt_compile" 2>out/conftest.err)
6560 ac_status=$?
6561 cat out/conftest.err >&5
6562 echo "$as_me:6562: \$? = $ac_status" >&5
6563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6564 then
6565 # The compiler can only warn and ignore the option if not recognized
6566 # So say no if there are warnings
6567 if test ! -s out/conftest.err; then
6568 lt_cv_prog_compiler_c_o=yes
6569 fi
6570 fi
6571 chmod u+w .
6572 $rm conftest*
6573 # SGI C++ compiler will create directory out/ii_files/ for
6574 # template instantiation
6575 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6576 $rm out/* && rmdir out
6577 cd ..
6578 rmdir conftest
6579 $rm conftest*
6580
6581 fi
6582 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6583 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6584
6585
6586 hard_links="nottested"
6587 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6588 # do not overwrite the value of need_locks provided by the user
6589 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6590 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6591 hard_links=yes
6592 $rm conftest*
6593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6594 touch conftest.a
6595 ln conftest.a conftest.b 2>&5 || hard_links=no
6596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6597 echo "$as_me:$LINENO: result: $hard_links" >&5
6598 echo "${ECHO_T}$hard_links" >&6
6599 if test "$hard_links" = no; then
6600 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6601 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6602 need_locks=warn
6603 fi
6604 else
6605 need_locks=no
6606 fi
6607
6608 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6609 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6610
6611 runpath_var=
6612 allow_undefined_flag=
6613 enable_shared_with_static_runtimes=no
6614 archive_cmds=
6615 archive_expsym_cmds=
6616 old_archive_From_new_cmds=
6617 old_archive_from_expsyms_cmds=
6618 export_dynamic_flag_spec=
6619 whole_archive_flag_spec=
6620 thread_safe_flag_spec=
6621 hardcode_libdir_flag_spec=
6622 hardcode_libdir_flag_spec_ld=
6623 hardcode_libdir_separator=
6624 hardcode_direct=no
6625 hardcode_minus_L=no
6626 hardcode_shlibpath_var=unsupported
6627 link_all_deplibs=unknown
6628 hardcode_automatic=no
6629 module_cmds=
6630 module_expsym_cmds=
6631 always_export_symbols=no
6632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6633 # include_expsyms should be a list of space-separated symbols to be *always*
6634 # included in the symbol list
6635 include_expsyms=
6636 # exclude_expsyms can be an extended regexp of symbols to exclude
6637 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6639 # as well as any symbol that contains `d'.
6640 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6642 # platforms (ab)use it in PIC code, but their linkers get confused if
6643 # the symbol is explicitly referenced. Since portable code cannot
6644 # rely on this symbol name, it's probably fine to never include it in
6645 # preloaded symbol tables.
6646 extract_expsyms_cmds=
6647
6648 case $host_os in
6649 cygwin* | mingw* | pw32*)
6650 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6651 # When not using gcc, we currently assume that we are using
6652 # Microsoft Visual C++.
6653 if test "$GCC" != yes; then
6654 with_gnu_ld=no
6655 fi
6656 ;;
6657 openbsd*)
6658 with_gnu_ld=no
6659 ;;
6660 esac
6661
6662 ld_shlibs=yes
6663 if test "$with_gnu_ld" = yes; then
6664 # If archive_cmds runs LD, not CC, wlarc should be empty
6665 wlarc='${wl}'
6666
6667 # See if GNU ld supports shared libraries.
6668 case $host_os in
6669 aix3* | aix4* | aix5*)
6670 # On AIX/PPC, the GNU linker is very broken
6671 if test "$host_cpu" != ia64; then
6672 ld_shlibs=no
6673 cat <<EOF 1>&2
6674
6675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6676 *** to be unable to reliably create shared libraries on AIX.
6677 *** Therefore, libtool is disabling shared libraries support. If you
6678 *** really care for shared libraries, you may want to modify your PATH
6679 *** so that a non-GNU linker is found, and then restart.
6680
6681 EOF
6682 fi
6683 ;;
6684
6685 amigaos*)
6686 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)'
6687 hardcode_libdir_flag_spec='-L$libdir'
6688 hardcode_minus_L=yes
6689
6690 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
6691 # that the semantics of dynamic libraries on AmigaOS, at least up
6692 # to version 4, is to share data among multiple programs linked
6693 # with the same dynamic library. Since this doesn't match the
6694 # behavior of shared libraries on other platforms, we can't use
6695 # them.
6696 ld_shlibs=no
6697 ;;
6698
6699 beos*)
6700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6701 allow_undefined_flag=unsupported
6702 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
6703 # support --undefined. This deserves some investigation. FIXME
6704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6705 else
6706 ld_shlibs=no
6707 fi
6708 ;;
6709
6710 cygwin* | mingw* | pw32*)
6711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6712 # as there is no search path for DLLs.
6713 hardcode_libdir_flag_spec='-L$libdir'
6714 allow_undefined_flag=unsupported
6715 always_export_symbols=no
6716 enable_shared_with_static_runtimes=yes
6717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6718
6719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6721 # If the export-symbols file already is a .def file (1st line
6722 # is EXPORTS), use it as is; otherwise, prepend...
6723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6724 cp $export_symbols $output_objdir/$soname.def;
6725 else
6726 echo EXPORTS > $output_objdir/$soname.def;
6727 cat $export_symbols >> $output_objdir/$soname.def;
6728 fi~
6729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6730 else
6731 ld_shlibs=no
6732 fi
6733 ;;
6734
6735 netbsd*)
6736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6737 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6738 wlarc=
6739 else
6740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6742 fi
6743 ;;
6744
6745 solaris* | sysv5*)
6746 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6747 ld_shlibs=no
6748 cat <<EOF 1>&2
6749
6750 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6751 *** create shared libraries on Solaris systems. Therefore, libtool
6752 *** is disabling shared libraries support. We urge you to upgrade GNU
6753 *** binutils to release 2.9.1 or newer. Another option is to modify
6754 *** your PATH or compiler configuration so that the native linker is
6755 *** used, and then restart.
6756
6757 EOF
6758 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6761 else
6762 ld_shlibs=no
6763 fi
6764 ;;
6765
6766 sunos4*)
6767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6768 wlarc=
6769 hardcode_direct=yes
6770 hardcode_shlibpath_var=no
6771 ;;
6772
6773 linux*)
6774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6775 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6776 archive_cmds="$tmp_archive_cmds"
6777 supports_anon_versioning=no
6778 case `$LD -v 2>/dev/null` in
6779 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6782 *\ 2.11.*) ;; # other 2.11 versions
6783 *) supports_anon_versioning=yes ;;
6784 esac
6785 if test $supports_anon_versioning = yes; then
6786 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6788 $echo "local: *; };" >> $output_objdir/$libname.ver~
6789 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6790 else
6791 archive_expsym_cmds="$tmp_archive_cmds"
6792 fi
6793 else
6794 ld_shlibs=no
6795 fi
6796 ;;
6797
6798 *)
6799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802 else
6803 ld_shlibs=no
6804 fi
6805 ;;
6806 esac
6807
6808 if test "$ld_shlibs" = yes; then
6809 runpath_var=LD_RUN_PATH
6810 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6811 export_dynamic_flag_spec='${wl}--export-dynamic'
6812 # ancient GNU ld didn't support --whole-archive et. al.
6813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6815 else
6816 whole_archive_flag_spec=
6817 fi
6818 fi
6819 else
6820 # PORTME fill in a description of your system's linker (not GNU ld)
6821 case $host_os in
6822 aix3*)
6823 allow_undefined_flag=unsupported
6824 always_export_symbols=yes
6825 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'
6826 # Note: this linker hardcodes the directories in LIBPATH if there
6827 # are no directories specified by -L.
6828 hardcode_minus_L=yes
6829 if test "$GCC" = yes && test -z "$link_static_flag"; then
6830 # Neither direct hardcoding nor static linking is supported with a
6831 # broken collect2.
6832 hardcode_direct=unsupported
6833 fi
6834 ;;
6835
6836 aix4* | aix5*)
6837 if test "$host_cpu" = ia64; then
6838 # On IA64, the linker does run time linking by default, so we don't
6839 # have to do anything special.
6840 aix_use_runtimelinking=no
6841 exp_sym_flag='-Bexport'
6842 no_entry_flag=""
6843 else
6844 # If we're using GNU nm, then we don't want the "-C" option.
6845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6846 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6847 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'
6848 else
6849 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'
6850 fi
6851 aix_use_runtimelinking=no
6852
6853 # Test if we are trying to use run time linking or normal
6854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6855 # need to do runtime linking.
6856 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6857 for ld_flag in $LDFLAGS; do
6858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6859 aix_use_runtimelinking=yes
6860 break
6861 fi
6862 done
6863 esac
6864
6865 exp_sym_flag='-bexport'
6866 no_entry_flag='-bnoentry'
6867 fi
6868
6869 # When large executables or shared objects are built, AIX ld can
6870 # have problems creating the table of contents. If linking a library
6871 # or program results in "error TOC overflow" add -mminimal-toc to
6872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6874
6875 archive_cmds=''
6876 hardcode_direct=yes
6877 hardcode_libdir_separator=':'
6878 link_all_deplibs=yes
6879
6880 if test "$GCC" = yes; then
6881 case $host_os in aix4.012|aix4.012.*)
6882 # We only want to do this on AIX 4.2 and lower, the check
6883 # below for broken collect2 doesn't work under 4.3+
6884 collect2name=`${CC} -print-prog-name=collect2`
6885 if test -f "$collect2name" && \
6886 strings "$collect2name" | grep resolve_lib_name >/dev/null
6887 then
6888 # We have reworked collect2
6889 hardcode_direct=yes
6890 else
6891 # We have old collect2
6892 hardcode_direct=unsupported
6893 # It fails to find uninstalled libraries when the uninstalled
6894 # path is not listed in the libpath. Setting hardcode_minus_L
6895 # to unsupported forces relinking
6896 hardcode_minus_L=yes
6897 hardcode_libdir_flag_spec='-L$libdir'
6898 hardcode_libdir_separator=
6899 fi
6900 esac
6901 shared_flag='-shared'
6902 else
6903 # not using gcc
6904 if test "$host_cpu" = ia64; then
6905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6906 # chokes on -Wl,-G. The following line is correct:
6907 shared_flag='-G'
6908 else
6909 if test "$aix_use_runtimelinking" = yes; then
6910 shared_flag='${wl}-G'
6911 else
6912 shared_flag='${wl}-bM:SRE'
6913 fi
6914 fi
6915 fi
6916
6917 # It seems that -bexpall does not export symbols beginning with
6918 # underscore (_), so it is better to generate a list of symbols to export.
6919 always_export_symbols=yes
6920 if test "$aix_use_runtimelinking" = yes; then
6921 # Warning - without using the other runtime loading flags (-brtl),
6922 # -berok will link without error, but may produce a broken library.
6923 allow_undefined_flag='-berok'
6924 # Determine the default libpath from the value encoded in an empty executable.
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962
6963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6964 }'`
6965 # Check for a 64-bit object if we didn't find anything.
6966 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; }
6967 }'`; fi
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 fi
6973 rm -f conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
6975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6976
6977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6978 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"
6979 else
6980 if test "$host_cpu" = ia64; then
6981 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6982 allow_undefined_flag="-z nodefs"
6983 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"
6984 else
6985 # Determine the default libpath from the value encoded in an empty executable.
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992
6993 int
6994 main ()
6995 {
6996
6997 ;
6998 return 0;
6999 }
7000 _ACEOF
7001 rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag"
7011 || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023
7024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7025 }'`
7026 # Check for a 64-bit object if we didn't find anything.
7027 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; }
7028 }'`; fi
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 fi
7034 rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7037
7038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7039 # Warning - without using the other run time loading flags,
7040 # -berok will link without error, but may produce a broken library.
7041 no_undefined_flag=' ${wl}-bernotok'
7042 allow_undefined_flag=' ${wl}-berok'
7043 # -bexpall does not export symbols beginning with underscore (_)
7044 always_export_symbols=yes
7045 # Exported symbols can be pulled into shared objects from archives
7046 whole_archive_flag_spec=' '
7047 archive_cmds_need_lc=yes
7048 # This is similar to how AIX traditionally builds it's shared libraries.
7049 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'
7050 fi
7051 fi
7052 ;;
7053
7054 amigaos*)
7055 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)'
7056 hardcode_libdir_flag_spec='-L$libdir'
7057 hardcode_minus_L=yes
7058 # see comment about different semantics on the GNU ld section
7059 ld_shlibs=no
7060 ;;
7061
7062 bsdi4*)
7063 export_dynamic_flag_spec=-rdynamic
7064 ;;
7065
7066 cygwin* | mingw* | pw32*)
7067 # When not using gcc, we currently assume that we are using
7068 # Microsoft Visual C++.
7069 # hardcode_libdir_flag_spec is actually meaningless, as there is
7070 # no search path for DLLs.
7071 hardcode_libdir_flag_spec=' '
7072 allow_undefined_flag=unsupported
7073 # Tell ltmain to make .lib files, not .a files.
7074 libext=lib
7075 # Tell ltmain to make .dll files, not .so files.
7076 shrext_cmds=".dll"
7077 # FIXME: Setting linknames here is a bad hack.
7078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7079 # The linker will automatically build a .lib file if we build a DLL.
7080 old_archive_From_new_cmds='true'
7081 # FIXME: Should let the user specify the lib program.
7082 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7083 fix_srcfile_path='`cygpath -w "$srcfile"`'
7084 enable_shared_with_static_runtimes=yes
7085 ;;
7086
7087 darwin* | rhapsody*)
7088 if test "$GXX" = yes ; then
7089 archive_cmds_need_lc=no
7090 case "$host_os" in
7091 rhapsody* | darwin1.[012])
7092 allow_undefined_flag='-undefined suppress'
7093 ;;
7094 *) # Darwin 1.3 on
7095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7096 allow_undefined_flag='-flat_namespace -undefined suppress'
7097 else
7098 case ${MACOSX_DEPLOYMENT_TARGET} in
7099 10.[012])
7100 allow_undefined_flag='-flat_namespace -undefined suppress'
7101 ;;
7102 10.*)
7103 allow_undefined_flag='-undefined dynamic_lookup'
7104 ;;
7105 esac
7106 fi
7107 ;;
7108 esac
7109 lt_int_apple_cc_single_mod=no
7110 output_verbose_link_cmd='echo'
7111 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7112 lt_int_apple_cc_single_mod=yes
7113 fi
7114 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7115 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7116 else
7117 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7118 fi
7119 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7122 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7123 else
7124 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7125 fi
7126 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}'
7127 hardcode_direct=no
7128 hardcode_automatic=yes
7129 hardcode_shlibpath_var=unsupported
7130 whole_archive_flag_spec='-all_load $convenience'
7131 link_all_deplibs=yes
7132 else
7133 ld_shlibs=no
7134 fi
7135 ;;
7136
7137 dgux*)
7138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7139 hardcode_libdir_flag_spec='-L$libdir'
7140 hardcode_shlibpath_var=no
7141 ;;
7142
7143 freebsd1*)
7144 ld_shlibs=no
7145 ;;
7146
7147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7148 # support. Future versions do this automatically, but an explicit c++rt0.o
7149 # does not break anything, and helps significantly (at the cost of a little
7150 # extra space).
7151 freebsd2.2*)
7152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7153 hardcode_libdir_flag_spec='-R$libdir'
7154 hardcode_direct=yes
7155 hardcode_shlibpath_var=no
7156 ;;
7157
7158 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7159 freebsd2*)
7160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7161 hardcode_direct=yes
7162 hardcode_minus_L=yes
7163 hardcode_shlibpath_var=no
7164 ;;
7165
7166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7167 freebsd* | kfreebsd*-gnu)
7168 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7169 hardcode_libdir_flag_spec='-R$libdir'
7170 hardcode_direct=yes
7171 hardcode_shlibpath_var=no
7172 ;;
7173
7174 hpux9*)
7175 if test "$GCC" = yes; then
7176 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'
7177 else
7178 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'
7179 fi
7180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7181 hardcode_libdir_separator=:
7182 hardcode_direct=yes
7183
7184 # hardcode_minus_L: Not really in the search PATH,
7185 # but as the default location of the library.
7186 hardcode_minus_L=yes
7187 export_dynamic_flag_spec='${wl}-E'
7188 ;;
7189
7190 hpux10* | hpux11*)
7191 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7192 case "$host_cpu" in
7193 hppa*64*|ia64*)
7194 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7195 ;;
7196 *)
7197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7198 ;;
7199 esac
7200 else
7201 case "$host_cpu" in
7202 hppa*64*|ia64*)
7203 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 ;;
7205 *)
7206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7207 ;;
7208 esac
7209 fi
7210 if test "$with_gnu_ld" = no; then
7211 case "$host_cpu" in
7212 hppa*64*)
7213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7214 hardcode_libdir_flag_spec_ld='+b $libdir'
7215 hardcode_libdir_separator=:
7216 hardcode_direct=no
7217 hardcode_shlibpath_var=no
7218 ;;
7219 ia64*)
7220 hardcode_libdir_flag_spec='-L$libdir'
7221 hardcode_direct=no
7222 hardcode_shlibpath_var=no
7223
7224 # hardcode_minus_L: Not really in the search PATH,
7225 # but as the default location of the library.
7226 hardcode_minus_L=yes
7227 ;;
7228 *)
7229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7230 hardcode_libdir_separator=:
7231 hardcode_direct=yes
7232 export_dynamic_flag_spec='${wl}-E'
7233
7234 # hardcode_minus_L: Not really in the search PATH,
7235 # but as the default location of the library.
7236 hardcode_minus_L=yes
7237 ;;
7238 esac
7239 fi
7240 ;;
7241
7242 irix5* | irix6* | nonstopux*)
7243 if test "$GCC" = yes; then
7244 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'
7245 else
7246 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'
7247 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7248 fi
7249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250 hardcode_libdir_separator=:
7251 link_all_deplibs=yes
7252 ;;
7253
7254 netbsd*)
7255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7257 else
7258 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7259 fi
7260 hardcode_libdir_flag_spec='-R$libdir'
7261 hardcode_direct=yes
7262 hardcode_shlibpath_var=no
7263 ;;
7264
7265 newsos6)
7266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7267 hardcode_direct=yes
7268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7269 hardcode_libdir_separator=:
7270 hardcode_shlibpath_var=no
7271 ;;
7272
7273 openbsd*)
7274 hardcode_direct=yes
7275 hardcode_shlibpath_var=no
7276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7279 export_dynamic_flag_spec='${wl}-E'
7280 else
7281 case $host_os in
7282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7284 hardcode_libdir_flag_spec='-R$libdir'
7285 ;;
7286 *)
7287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7289 ;;
7290 esac
7291 fi
7292 ;;
7293
7294 os2*)
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_minus_L=yes
7297 allow_undefined_flag=unsupported
7298 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'
7299 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7300 ;;
7301
7302 osf3*)
7303 if test "$GCC" = yes; then
7304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7305 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'
7306 else
7307 allow_undefined_flag=' -expect_unresolved \*'
7308 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'
7309 fi
7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311 hardcode_libdir_separator=:
7312 ;;
7313
7314 osf4* | osf5*) # as osf3* with the addition of -msym flag
7315 if test "$GCC" = yes; then
7316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7317 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'
7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319 else
7320 allow_undefined_flag=' -expect_unresolved \*'
7321 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'
7322 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7323 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7324
7325 # Both c and cxx compiler support -rpath directly
7326 hardcode_libdir_flag_spec='-rpath $libdir'
7327 fi
7328 hardcode_libdir_separator=:
7329 ;;
7330
7331 sco3.2v5*)
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_shlibpath_var=no
7334 export_dynamic_flag_spec='${wl}-Bexport'
7335 runpath_var=LD_RUN_PATH
7336 hardcode_runpath_var=yes
7337 ;;
7338
7339 solaris*)
7340 no_undefined_flag=' -z text'
7341 if test "$GCC" = yes; then
7342 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7344 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7345 else
7346 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7347 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7349 fi
7350 hardcode_libdir_flag_spec='-R$libdir'
7351 hardcode_shlibpath_var=no
7352 case $host_os in
7353 solaris2.[0-5] | solaris2.[0-5].*) ;;
7354 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7356 esac
7357 link_all_deplibs=yes
7358 ;;
7359
7360 sunos4*)
7361 if test "x$host_vendor" = xsequent; then
7362 # Use $CC to link under sequent, because it throws in some extra .o
7363 # files that make .init and .fini sections work.
7364 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7365 else
7366 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7367 fi
7368 hardcode_libdir_flag_spec='-L$libdir'
7369 hardcode_direct=yes
7370 hardcode_minus_L=yes
7371 hardcode_shlibpath_var=no
7372 ;;
7373
7374 sysv4)
7375 case $host_vendor in
7376 sni)
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_direct=yes # is this really true???
7379 ;;
7380 siemens)
7381 ## LD is ld it makes a PLAMLIB
7382 ## CC just makes a GrossModule.
7383 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7384 reload_cmds='$CC -r -o $output$reload_objs'
7385 hardcode_direct=no
7386 ;;
7387 motorola)
7388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7390 ;;
7391 esac
7392 runpath_var='LD_RUN_PATH'
7393 hardcode_shlibpath_var=no
7394 ;;
7395
7396 sysv4.3*)
7397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398 hardcode_shlibpath_var=no
7399 export_dynamic_flag_spec='-Bexport'
7400 ;;
7401
7402 sysv4*MP*)
7403 if test -d /usr/nec; then
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_shlibpath_var=no
7406 runpath_var=LD_RUN_PATH
7407 hardcode_runpath_var=yes
7408 ld_shlibs=yes
7409 fi
7410 ;;
7411
7412 sysv4.2uw2*)
7413 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_direct=yes
7415 hardcode_minus_L=no
7416 hardcode_shlibpath_var=no
7417 hardcode_runpath_var=yes
7418 runpath_var=LD_RUN_PATH
7419 ;;
7420
7421 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7422 no_undefined_flag='${wl}-z ${wl}text'
7423 if test "$GCC" = yes; then
7424 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7425 else
7426 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 fi
7428 runpath_var='LD_RUN_PATH'
7429 hardcode_shlibpath_var=no
7430 ;;
7431
7432 sysv5*)
7433 no_undefined_flag=' -z text'
7434 # $CC -shared without GNU ld will not create a library from C++
7435 # object files and a static libstdc++, better avoid it by now
7436 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7439 hardcode_libdir_flag_spec=
7440 hardcode_shlibpath_var=no
7441 runpath_var='LD_RUN_PATH'
7442 ;;
7443
7444 uts4*)
7445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446 hardcode_libdir_flag_spec='-L$libdir'
7447 hardcode_shlibpath_var=no
7448 ;;
7449
7450 *)
7451 ld_shlibs=no
7452 ;;
7453 esac
7454 fi
7455
7456 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7457 echo "${ECHO_T}$ld_shlibs" >&6
7458 test "$ld_shlibs" = no && can_build_shared=no
7459
7460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7461 if test "$GCC" = yes; then
7462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7463 fi
7464
7465 #
7466 # Do we need to explicitly link libc?
7467 #
7468 case "x$archive_cmds_need_lc" in
7469 x|xyes)
7470 # Assume -lc should be added
7471 archive_cmds_need_lc=yes
7472
7473 if test "$enable_shared" = yes && test "$GCC" = yes; then
7474 case $archive_cmds in
7475 *'~'*)
7476 # FIXME: we may have to deal with multi-command sequences.
7477 ;;
7478 '$CC '*)
7479 # Test whether the compiler implicitly links with -lc since on some
7480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7481 # to ld, don't add -lc before -lgcc.
7482 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7483 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7484 $rm conftest*
7485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7486
7487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7488 (eval $ac_compile) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } 2>conftest.err; then
7492 soname=conftest
7493 lib=conftest
7494 libobjs=conftest.$ac_objext
7495 deplibs=
7496 wl=$lt_prog_compiler_wl
7497 compiler_flags=-v
7498 linker_flags=-v
7499 verstring=
7500 output_objdir=.
7501 libname=conftest
7502 lt_save_allow_undefined_flag=$allow_undefined_flag
7503 allow_undefined_flag=
7504 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7505 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }
7509 then
7510 archive_cmds_need_lc=no
7511 else
7512 archive_cmds_need_lc=yes
7513 fi
7514 allow_undefined_flag=$lt_save_allow_undefined_flag
7515 else
7516 cat conftest.err 1>&5
7517 fi
7518 $rm conftest*
7519 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7520 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7521 ;;
7522 esac
7523 fi
7524 ;;
7525 esac
7526
7527 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7528 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7529 library_names_spec=
7530 libname_spec='lib$name'
7531 soname_spec=
7532 shrext_cmds=".so"
7533 postinstall_cmds=
7534 postuninstall_cmds=
7535 finish_cmds=
7536 finish_eval=
7537 shlibpath_var=
7538 shlibpath_overrides_runpath=unknown
7539 version_type=none
7540 dynamic_linker="$host_os ld.so"
7541 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7542 if test "$GCC" = yes; then
7543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7544 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7545 # if the path contains ";" then we assume it to be the separator
7546 # otherwise default to the standard path separator (i.e. ":") - it is
7547 # assumed that no part of a normal pathname contains ";" but that should
7548 # okay in the real world where ";" in dirpaths is itself problematic.
7549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7550 else
7551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7552 fi
7553 else
7554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7555 fi
7556 need_lib_prefix=unknown
7557 hardcode_into_libs=no
7558
7559 # when you set need_version to no, make sure it does not cause -set_version
7560 # flags to be left without arguments
7561 need_version=unknown
7562
7563 case $host_os in
7564 aix3*)
7565 version_type=linux
7566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7567 shlibpath_var=LIBPATH
7568
7569 # AIX 3 has no versioning support, so we append a major version to the name.
7570 soname_spec='${libname}${release}${shared_ext}$major'
7571 ;;
7572
7573 aix4* | aix5*)
7574 version_type=linux
7575 need_lib_prefix=no
7576 need_version=no
7577 hardcode_into_libs=yes
7578 if test "$host_cpu" = ia64; then
7579 # AIX 5 supports IA64
7580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7581 shlibpath_var=LD_LIBRARY_PATH
7582 else
7583 # With GCC up to 2.95.x, collect2 would create an import file
7584 # for dependence libraries. The import file would start with
7585 # the line `#! .'. This would cause the generated library to
7586 # depend on `.', always an invalid library. This was fixed in
7587 # development snapshots of GCC prior to 3.0.
7588 case $host_os in
7589 aix4 | aix4.[01] | aix4.[01].*)
7590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7591 echo ' yes '
7592 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7593 :
7594 else
7595 can_build_shared=no
7596 fi
7597 ;;
7598 esac
7599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7600 # soname into executable. Probably we can add versioning support to
7601 # collect2, so additional links can be useful in future.
7602 if test "$aix_use_runtimelinking" = yes; then
7603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7604 # instead of lib<name>.a to let people know that these are not
7605 # typical AIX shared libraries.
7606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7607 else
7608 # We preserve .a as extension for shared libraries through AIX4.2
7609 # and later when we are not doing run time linking.
7610 library_names_spec='${libname}${release}.a $libname.a'
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 fi
7613 shlibpath_var=LIBPATH
7614 fi
7615 ;;
7616
7617 amigaos*)
7618 library_names_spec='$libname.ixlibrary $libname.a'
7619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7620 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'
7621 ;;
7622
7623 beos*)
7624 library_names_spec='${libname}${shared_ext}'
7625 dynamic_linker="$host_os ld.so"
7626 shlibpath_var=LIBRARY_PATH
7627 ;;
7628
7629 bsdi4*)
7630 version_type=linux
7631 need_version=no
7632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7633 soname_spec='${libname}${release}${shared_ext}$major'
7634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7635 shlibpath_var=LD_LIBRARY_PATH
7636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7638 # the default ld.so.conf also contains /usr/contrib/lib and
7639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7640 # libtool to hard-code these into programs
7641 ;;
7642
7643 cygwin* | mingw* | pw32*)
7644 version_type=windows
7645 shrext_cmds=".dll"
7646 need_version=no
7647 need_lib_prefix=no
7648
7649 case $GCC,$host_os in
7650 yes,cygwin* | yes,mingw* | yes,pw32*)
7651 library_names_spec='$libname.dll.a'
7652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7653 postinstall_cmds='base_file=`basename \${file}`~
7654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7655 dldir=$destdir/`dirname \$dlpath`~
7656 test -d \$dldir || mkdir -p \$dldir~
7657 $install_prog $dir/$dlname \$dldir/$dlname'
7658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7659 dlpath=$dir/\$dldll~
7660 $rm \$dlpath'
7661 shlibpath_overrides_runpath=yes
7662
7663 case $host_os in
7664 cygwin*)
7665 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7668 ;;
7669 mingw*)
7670 # MinGW DLLs use traditional 'lib' prefix
7671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7673 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7674 # It is most probably a Windows format PATH printed by
7675 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7676 # path with ; separators, and with drive letters. We can handle the
7677 # drive letters (cygwin fileutils understands them), so leave them,
7678 # especially as we might pass files found there to a mingw objdump,
7679 # which wouldn't understand a cygwinified path. Ahh.
7680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7681 else
7682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7683 fi
7684 ;;
7685 pw32*)
7686 # pw32 DLLs use 'pw' prefix rather than 'lib'
7687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7688 ;;
7689 esac
7690 ;;
7691
7692 *)
7693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7694 ;;
7695 esac
7696 dynamic_linker='Win32 ld.exe'
7697 # FIXME: first we should search . and the directory the executable is in
7698 shlibpath_var=PATH
7699 ;;
7700
7701 darwin* | rhapsody*)
7702 dynamic_linker="$host_os dyld"
7703 version_type=darwin
7704 need_lib_prefix=no
7705 need_version=no
7706 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7707 soname_spec='${libname}${release}${major}$shared_ext'
7708 shlibpath_overrides_runpath=yes
7709 shlibpath_var=DYLD_LIBRARY_PATH
7710 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7711 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7712 if test "$GCC" = yes; then
7713 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"`
7714 else
7715 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7716 fi
7717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7718 ;;
7719
7720 dgux*)
7721 version_type=linux
7722 need_lib_prefix=no
7723 need_version=no
7724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7725 soname_spec='${libname}${release}${shared_ext}$major'
7726 shlibpath_var=LD_LIBRARY_PATH
7727 ;;
7728
7729 freebsd1*)
7730 dynamic_linker=no
7731 ;;
7732
7733 kfreebsd*-gnu)
7734 version_type=linux
7735 need_lib_prefix=no
7736 need_version=no
7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7738 soname_spec='${libname}${release}${shared_ext}$major'
7739 shlibpath_var=LD_LIBRARY_PATH
7740 shlibpath_overrides_runpath=no
7741 hardcode_into_libs=yes
7742 dynamic_linker='GNU ld.so'
7743 ;;
7744
7745 freebsd*)
7746 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7747 version_type=freebsd-$objformat
7748 case $version_type in
7749 freebsd-elf*)
7750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7751 need_version=no
7752 need_lib_prefix=no
7753 ;;
7754 freebsd-*)
7755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7756 need_version=yes
7757 ;;
7758 esac
7759 shlibpath_var=LD_LIBRARY_PATH
7760 case $host_os in
7761 freebsd2*)
7762 shlibpath_overrides_runpath=yes
7763 ;;
7764 freebsd3.01* | freebsdelf3.01*)
7765 shlibpath_overrides_runpath=yes
7766 hardcode_into_libs=yes
7767 ;;
7768 *) # from 3.2 on
7769 shlibpath_overrides_runpath=no
7770 hardcode_into_libs=yes
7771 ;;
7772 esac
7773 ;;
7774
7775 gnu*)
7776 version_type=linux
7777 need_lib_prefix=no
7778 need_version=no
7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7780 soname_spec='${libname}${release}${shared_ext}$major'
7781 shlibpath_var=LD_LIBRARY_PATH
7782 hardcode_into_libs=yes
7783 ;;
7784
7785 hpux9* | hpux10* | hpux11*)
7786 # Give a soname corresponding to the major version so that dld.sl refuses to
7787 # link against other versions.
7788 version_type=sunos
7789 need_lib_prefix=no
7790 need_version=no
7791 case "$host_cpu" in
7792 ia64*)
7793 shrext_cmds='.so'
7794 hardcode_into_libs=yes
7795 dynamic_linker="$host_os dld.so"
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799 soname_spec='${libname}${release}${shared_ext}$major'
7800 if test "X$HPUX_IA64_MODE" = X32; then
7801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7802 else
7803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7804 fi
7805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7806 ;;
7807 hppa*64*)
7808 shrext_cmds='.sl'
7809 hardcode_into_libs=yes
7810 dynamic_linker="$host_os dld.sl"
7811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814 soname_spec='${libname}${release}${shared_ext}$major'
7815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7817 ;;
7818 *)
7819 shrext_cmds='.sl'
7820 dynamic_linker="$host_os dld.sl"
7821 shlibpath_var=SHLIB_PATH
7822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824 soname_spec='${libname}${release}${shared_ext}$major'
7825 ;;
7826 esac
7827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7828 postinstall_cmds='chmod 555 $lib'
7829 ;;
7830
7831 irix5* | irix6* | nonstopux*)
7832 case $host_os in
7833 nonstopux*) version_type=nonstopux ;;
7834 *)
7835 if test "$lt_cv_prog_gnu_ld" = yes; then
7836 version_type=linux
7837 else
7838 version_type=irix
7839 fi ;;
7840 esac
7841 need_lib_prefix=no
7842 need_version=no
7843 soname_spec='${libname}${release}${shared_ext}$major'
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7845 case $host_os in
7846 irix5* | nonstopux*)
7847 libsuff= shlibsuff=
7848 ;;
7849 *)
7850 case $LD in # libtool.m4 will add one of these switches to LD
7851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7852 libsuff= shlibsuff= libmagic=32-bit;;
7853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7854 libsuff=32 shlibsuff=N32 libmagic=N32;;
7855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7857 *) libsuff= shlibsuff= libmagic=never-match;;
7858 esac
7859 ;;
7860 esac
7861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7862 shlibpath_overrides_runpath=no
7863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7865 hardcode_into_libs=yes
7866 ;;
7867
7868 # No shared lib support for Linux oldld, aout, or coff.
7869 linux*oldld* | linux*aout* | linux*coff*)
7870 dynamic_linker=no
7871 ;;
7872
7873 # This must be Linux ELF.
7874 linux*)
7875 version_type=linux
7876 need_lib_prefix=no
7877 need_version=no
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7881 shlibpath_var=LD_LIBRARY_PATH
7882 shlibpath_overrides_runpath=no
7883 # This implies no fast_install, which is unacceptable.
7884 # Some rework will be needed to allow for fast_install
7885 # before this can be enabled.
7886 hardcode_into_libs=yes
7887
7888 # find out which ABI we are using
7889 libsuff=
7890 case "$host_cpu" in
7891 x86_64*|s390x*|powerpc64*)
7892 echo '#line 7892 "configure"' > conftest.$ac_ext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7894 (eval $ac_compile) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; then
7898 case `/usr/bin/file conftest.$ac_objext` in
7899 *64-bit*)
7900 libsuff=64
7901 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7902 ;;
7903 esac
7904 fi
7905 rm -rf conftest*
7906 ;;
7907 esac
7908
7909 # Append ld.so.conf contents to the search path
7910 if test -f /etc/ld.so.conf; then
7911 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7912 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7913 fi
7914
7915 # We used to test for /lib/ld.so.1 and disable shared libraries on
7916 # powerpc, because MkLinux only supported shared libraries with the
7917 # GNU dynamic linker. Since this was broken with cross compilers,
7918 # most powerpc-linux boxes support dynamic linking these days and
7919 # people can always --disable-shared, the test was removed, and we
7920 # assume the GNU/Linux dynamic linker is in use.
7921 dynamic_linker='GNU/Linux ld.so'
7922 ;;
7923
7924 knetbsd*-gnu)
7925 version_type=linux
7926 need_lib_prefix=no
7927 need_version=no
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=no
7932 hardcode_into_libs=yes
7933 dynamic_linker='GNU ld.so'
7934 ;;
7935
7936 netbsd*)
7937 version_type=sunos
7938 need_lib_prefix=no
7939 need_version=no
7940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7943 dynamic_linker='NetBSD (a.out) ld.so'
7944 else
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 dynamic_linker='NetBSD ld.elf_so'
7948 fi
7949 shlibpath_var=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath=yes
7951 hardcode_into_libs=yes
7952 ;;
7953
7954 newsos6)
7955 version_type=linux
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=yes
7959 ;;
7960
7961 nto-qnx*)
7962 version_type=linux
7963 need_lib_prefix=no
7964 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
7968 shlibpath_overrides_runpath=yes
7969 ;;
7970
7971 openbsd*)
7972 version_type=sunos
7973 need_lib_prefix=no
7974 need_version=yes
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7977 shlibpath_var=LD_LIBRARY_PATH
7978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7979 case $host_os in
7980 openbsd2.[89] | openbsd2.[89].*)
7981 shlibpath_overrides_runpath=no
7982 ;;
7983 *)
7984 shlibpath_overrides_runpath=yes
7985 ;;
7986 esac
7987 else
7988 shlibpath_overrides_runpath=yes
7989 fi
7990 ;;
7991
7992 os2*)
7993 libname_spec='$name'
7994 shrext_cmds=".dll"
7995 need_lib_prefix=no
7996 library_names_spec='$libname${shared_ext} $libname.a'
7997 dynamic_linker='OS/2 ld.exe'
7998 shlibpath_var=LIBPATH
7999 ;;
8000
8001 osf3* | osf4* | osf5*)
8002 version_type=osf
8003 need_lib_prefix=no
8004 need_version=no
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8010 ;;
8011
8012 sco3.2v5*)
8013 version_type=osf
8014 soname_spec='${libname}${release}${shared_ext}$major'
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016 shlibpath_var=LD_LIBRARY_PATH
8017 ;;
8018
8019 solaris*)
8020 version_type=linux
8021 need_lib_prefix=no
8022 need_version=no
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 shlibpath_var=LD_LIBRARY_PATH
8026 shlibpath_overrides_runpath=yes
8027 hardcode_into_libs=yes
8028 # ldd complains unless libraries are executable
8029 postinstall_cmds='chmod +x $lib'
8030 ;;
8031
8032 sunos4*)
8033 version_type=sunos
8034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8036 shlibpath_var=LD_LIBRARY_PATH
8037 shlibpath_overrides_runpath=yes
8038 if test "$with_gnu_ld" = yes; then
8039 need_lib_prefix=no
8040 fi
8041 need_version=yes
8042 ;;
8043
8044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8045 version_type=linux
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 case $host_vendor in
8050 sni)
8051 shlibpath_overrides_runpath=no
8052 need_lib_prefix=no
8053 export_dynamic_flag_spec='${wl}-Blargedynsym'
8054 runpath_var=LD_RUN_PATH
8055 ;;
8056 siemens)
8057 need_lib_prefix=no
8058 ;;
8059 motorola)
8060 need_lib_prefix=no
8061 need_version=no
8062 shlibpath_overrides_runpath=no
8063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8064 ;;
8065 esac
8066 ;;
8067
8068 sysv4*MP*)
8069 if test -d /usr/nec ;then
8070 version_type=linux
8071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8072 soname_spec='$libname${shared_ext}.$major'
8073 shlibpath_var=LD_LIBRARY_PATH
8074 fi
8075 ;;
8076
8077 uts4*)
8078 version_type=linux
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080 soname_spec='${libname}${release}${shared_ext}$major'
8081 shlibpath_var=LD_LIBRARY_PATH
8082 ;;
8083
8084 *)
8085 dynamic_linker=no
8086 ;;
8087 esac
8088 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8089 echo "${ECHO_T}$dynamic_linker" >&6
8090 test "$dynamic_linker" = no && can_build_shared=no
8091
8092 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8093 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8094 hardcode_action=
8095 if test -n "$hardcode_libdir_flag_spec" || \
8096 test -n "$runpath_var " || \
8097 test "X$hardcode_automatic"="Xyes" ; then
8098
8099 # We can hardcode non-existant directories.
8100 if test "$hardcode_direct" != no &&
8101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8102 # have to relink, otherwise we might link with an installed library
8103 # when we should be linking with a yet-to-be-installed one
8104 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8105 test "$hardcode_minus_L" != no; then
8106 # Linking always hardcodes the temporary library directory.
8107 hardcode_action=relink
8108 else
8109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8110 hardcode_action=immediate
8111 fi
8112 else
8113 # We cannot hardcode anything, or else we can only hardcode existing
8114 # directories.
8115 hardcode_action=unsupported
8116 fi
8117 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8118 echo "${ECHO_T}$hardcode_action" >&6
8119
8120 if test "$hardcode_action" = relink; then
8121 # Fast installation is not supported
8122 enable_fast_install=no
8123 elif test "$shlibpath_overrides_runpath" = yes ||
8124 test "$enable_shared" = no; then
8125 # Fast installation is not necessary
8126 enable_fast_install=needless
8127 fi
8128
8129 striplib=
8130 old_striplib=
8131 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8132 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8133 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8136 echo "$as_me:$LINENO: result: yes" >&5
8137 echo "${ECHO_T}yes" >&6
8138 else
8139 # FIXME - insert some real tests, host_os isn't really good enough
8140 case $host_os in
8141 darwin*)
8142 if test -n "$STRIP" ; then
8143 striplib="$STRIP -x"
8144 echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8146 else
8147 echo "$as_me:$LINENO: result: no" >&5
8148 echo "${ECHO_T}no" >&6
8149 fi
8150 ;;
8151 *)
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8154 ;;
8155 esac
8156 fi
8157
8158 if test "x$enable_dlopen" != xyes; then
8159 enable_dlopen=unknown
8160 enable_dlopen_self=unknown
8161 enable_dlopen_self_static=unknown
8162 else
8163 lt_cv_dlopen=no
8164 lt_cv_dlopen_libs=
8165
8166 case $host_os in
8167 beos*)
8168 lt_cv_dlopen="load_add_on"
8169 lt_cv_dlopen_libs=
8170 lt_cv_dlopen_self=yes
8171 ;;
8172
8173 mingw* | pw32*)
8174 lt_cv_dlopen="LoadLibrary"
8175 lt_cv_dlopen_libs=
8176 ;;
8177
8178 cygwin*)
8179 lt_cv_dlopen="dlopen"
8180 lt_cv_dlopen_libs=
8181 ;;
8182
8183 darwin*)
8184 # if libdl is installed we need to link against it
8185 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8186 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190 ac_check_lib_save_LIBS=$LIBS
8191 LIBS="-ldl $LIBS"
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 #ifdef __cplusplus
8201 extern "C"
8202 #endif
8203 /* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8205 char dlopen ();
8206 int
8207 main ()
8208 {
8209 dlopen ();
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_lib_dl_dlopen=yes
8237 else
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_lib_dl_dlopen=no
8242 fi
8243 rm -f conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8249 if test $ac_cv_lib_dl_dlopen = yes; then
8250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8251 else
8252
8253 lt_cv_dlopen="dyld"
8254 lt_cv_dlopen_libs=
8255 lt_cv_dlopen_self=yes
8256
8257 fi
8258
8259 ;;
8260
8261 *)
8262 echo "$as_me:$LINENO: checking for shl_load" >&5
8263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8264 if test "${ac_cv_func_shl_load+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275 #define shl_load innocuous_shl_load
8276
8277 /* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char shl_load (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8281
8282 #ifdef __STDC__
8283 # include <limits.h>
8284 #else
8285 # include <assert.h>
8286 #endif
8287
8288 #undef shl_load
8289
8290 /* Override any gcc2 internal prototype to avoid an error. */
8291 #ifdef __cplusplus
8292 extern "C"
8293 {
8294 #endif
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8297 char shl_load ();
8298 /* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8302 choke me
8303 #else
8304 char (*f) () = shl_load;
8305 #endif
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309
8310 int
8311 main ()
8312 {
8313 return f != shl_load;
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_cv_func_shl_load=yes
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_cv_func_shl_load=no
8346 fi
8347 rm -f conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349 fi
8350 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8351 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8352 if test $ac_cv_func_shl_load = yes; then
8353 lt_cv_dlopen="shl_load"
8354 else
8355 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8356 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8357 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-ldld $LIBS"
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375 char shl_load ();
8376 int
8377 main ()
8378 {
8379 shl_load ();
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_lib_dld_shl_load=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_cv_lib_dld_shl_load=no
8412 fi
8413 rm -f conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 LIBS=$ac_check_lib_save_LIBS
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8418 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8419 if test $ac_cv_lib_dld_shl_load = yes; then
8420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8421 else
8422 echo "$as_me:$LINENO: checking for dlopen" >&5
8423 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8424 if test "${ac_cv_func_dlopen+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8435 #define dlopen innocuous_dlopen
8436
8437 /* System header to define __stub macros and hopefully few prototypes,
8438 which can conflict with char dlopen (); below.
8439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8440 <limits.h> exists even on freestanding compilers. */
8441
8442 #ifdef __STDC__
8443 # include <limits.h>
8444 #else
8445 # include <assert.h>
8446 #endif
8447
8448 #undef dlopen
8449
8450 /* Override any gcc2 internal prototype to avoid an error. */
8451 #ifdef __cplusplus
8452 extern "C"
8453 {
8454 #endif
8455 /* We use char because int might match the return type of a gcc2
8456 builtin and then its argument prototype would still apply. */
8457 char dlopen ();
8458 /* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8462 choke me
8463 #else
8464 char (*f) () = dlopen;
8465 #endif
8466 #ifdef __cplusplus
8467 }
8468 #endif
8469
8470 int
8471 main ()
8472 {
8473 return f != dlopen;
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480 (eval $ac_link) 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag"
8488 || 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_dlopen=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_func_dlopen=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_dlopen" >&5
8511 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8512 if test $ac_cv_func_dlopen = yes; then
8513 lt_cv_dlopen="dlopen"
8514 else
8515 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-ldl $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 dlopen ();
8536 int
8537 main ()
8538 {
8539 dlopen ();
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"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_dl_dlopen=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_lib_dl_dlopen=no
8572 fi
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8578 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8579 if test $ac_cv_lib_dl_dlopen = yes; then
8580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8581 else
8582 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8583 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8584 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-lsvld $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595
8596 /* Override any gcc2 internal prototype to avoid an error. */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8602 char dlopen ();
8603 int
8604 main ()
8605 {
8606 dlopen ();
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag"
8621 || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_svld_dlopen=yes
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_cv_lib_svld_dlopen=no
8639 fi
8640 rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8643 fi
8644 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8645 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8646 if test $ac_cv_lib_svld_dlopen = yes; then
8647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8648 else
8649 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8650 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8651 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 ac_check_lib_save_LIBS=$LIBS
8655 LIBS="-ldld $LIBS"
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669 char dld_link ();
8670 int
8671 main ()
8672 {
8673 dld_link ();
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_lib_dld_dld_link=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_cv_lib_dld_dld_link=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 LIBS=$ac_check_lib_save_LIBS
8710 fi
8711 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8712 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8713 if test $ac_cv_lib_dld_dld_link = yes; then
8714 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8715 fi
8716
8717
8718 fi
8719
8720
8721 fi
8722
8723
8724 fi
8725
8726
8727 fi
8728
8729
8730 fi
8731
8732 ;;
8733 esac
8734
8735 if test "x$lt_cv_dlopen" != xno; then
8736 enable_dlopen=yes
8737 else
8738 enable_dlopen=no
8739 fi
8740
8741 case $lt_cv_dlopen in
8742 dlopen)
8743 save_CPPFLAGS="$CPPFLAGS"
8744 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8745
8746 save_LDFLAGS="$LDFLAGS"
8747 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8748
8749 save_LIBS="$LIBS"
8750 LIBS="$lt_cv_dlopen_libs $LIBS"
8751
8752 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8753 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8754 if test "${lt_cv_dlopen_self+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 if test "$cross_compiling" = yes; then :
8758 lt_cv_dlopen_self=cross
8759 else
8760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8761 lt_status=$lt_dlunknown
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8763 "configure"
8764 #include "confdefs.h"
8765
8766 #if HAVE_DLFCN_H
8767 #include <dlfcn.h>
8768 #endif
8769
8770 #include <stdio.h>
8771
8772 #ifdef RTLD_GLOBAL
8773 # define LT_DLGLOBAL RTLD_GLOBAL
8774 #else
8775 # ifdef DL_GLOBAL
8776 # define LT_DLGLOBAL DL_GLOBAL
8777 # else
8778 # define LT_DLGLOBAL 0
8779 # endif
8780 #endif
8781
8782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8783 find out it does not work in some platform. */
8784 #ifndef LT_DLLAZY_OR_NOW
8785 # ifdef RTLD_LAZY
8786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8787 # else
8788 # ifdef DL_LAZY
8789 # define LT_DLLAZY_OR_NOW DL_LAZY
8790 # else
8791 # ifdef RTLD_NOW
8792 # define LT_DLLAZY_OR_NOW RTLD_NOW
8793 # else
8794 # ifdef DL_NOW
8795 # define LT_DLLAZY_OR_NOW DL_NOW
8796 # else
8797 # define LT_DLLAZY_OR_NOW 0
8798 # endif
8799 # endif
8800 # endif
8801 # endif
8802 #endif
8803
8804 #ifdef __cplusplus
8805 extern "C" void exit (int);
8806 #endif
8807
8808 void fnord() { int i=42;}
8809 int main ()
8810 {
8811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8812 int status = $lt_dlunknown;
8813
8814 if (self)
8815 {
8816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8818 /* dlclose (self); */
8819 }
8820
8821 exit (status);
8822 }
8823 EOF
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8829 (./conftest; exit; ) 2>/dev/null
8830 lt_status=$?
8831 case x$lt_status in
8832 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8833 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8834 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8835 esac
8836 else :
8837 # compilation failed
8838 lt_cv_dlopen_self=no
8839 fi
8840 fi
8841 rm -fr conftest*
8842
8843
8844 fi
8845 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8846 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8847
8848 if test "x$lt_cv_dlopen_self" = xyes; then
8849 LDFLAGS="$LDFLAGS $link_static_flag"
8850 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8851 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8852 if test "${lt_cv_dlopen_self_static+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 if test "$cross_compiling" = yes; then :
8856 lt_cv_dlopen_self_static=cross
8857 else
8858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8859 lt_status=$lt_dlunknown
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8861 "configure"
8862 #include "confdefs.h"
8863
8864 #if HAVE_DLFCN_H
8865 #include <dlfcn.h>
8866 #endif
8867
8868 #include <stdio.h>
8869
8870 #ifdef RTLD_GLOBAL
8871 # define LT_DLGLOBAL RTLD_GLOBAL
8872 #else
8873 # ifdef DL_GLOBAL
8874 # define LT_DLGLOBAL DL_GLOBAL
8875 # else
8876 # define LT_DLGLOBAL 0
8877 # endif
8878 #endif
8879
8880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8881 find out it does not work in some platform. */
8882 #ifndef LT_DLLAZY_OR_NOW
8883 # ifdef RTLD_LAZY
8884 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8885 # else
8886 # ifdef DL_LAZY
8887 # define LT_DLLAZY_OR_NOW DL_LAZY
8888 # else
8889 # ifdef RTLD_NOW
8890 # define LT_DLLAZY_OR_NOW RTLD_NOW
8891 # else
8892 # ifdef DL_NOW
8893 # define LT_DLLAZY_OR_NOW DL_NOW
8894 # else
8895 # define LT_DLLAZY_OR_NOW 0
8896 # endif
8897 # endif
8898 # endif
8899 # endif
8900 #endif
8901
8902 #ifdef __cplusplus
8903 extern "C" void exit (int);
8904 #endif
8905
8906 void fnord() { int i=42;}
8907 int main ()
8908 {
8909 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8910 int status = $lt_dlunknown;
8911
8912 if (self)
8913 {
8914 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8915 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8916 /* dlclose (self); */
8917 }
8918
8919 exit (status);
8920 }
8921 EOF
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8927 (./conftest; exit; ) 2>/dev/null
8928 lt_status=$?
8929 case x$lt_status in
8930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8932 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8933 esac
8934 else :
8935 # compilation failed
8936 lt_cv_dlopen_self_static=no
8937 fi
8938 fi
8939 rm -fr conftest*
8940
8941
8942 fi
8943 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8944 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8945 fi
8946
8947 CPPFLAGS="$save_CPPFLAGS"
8948 LDFLAGS="$save_LDFLAGS"
8949 LIBS="$save_LIBS"
8950 ;;
8951 esac
8952
8953 case $lt_cv_dlopen_self in
8954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8955 *) enable_dlopen_self=unknown ;;
8956 esac
8957
8958 case $lt_cv_dlopen_self_static in
8959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8960 *) enable_dlopen_self_static=unknown ;;
8961 esac
8962 fi
8963
8964
8965 # Report which librarie types wil actually be built
8966 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8967 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8968 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8969 echo "${ECHO_T}$can_build_shared" >&6
8970
8971 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8972 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8973 test "$can_build_shared" = "no" && enable_shared=no
8974
8975 # On AIX, shared libraries and static libraries use the same namespace, and
8976 # are all built from PIC.
8977 case "$host_os" in
8978 aix3*)
8979 test "$enable_shared" = yes && enable_static=no
8980 if test -n "$RANLIB"; then
8981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8982 postinstall_cmds='$RANLIB $lib'
8983 fi
8984 ;;
8985
8986 aix4* | aix5*)
8987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8988 test "$enable_shared" = yes && enable_static=no
8989 fi
8990 ;;
8991 darwin* | rhapsody*)
8992 if test "$GCC" = yes; then
8993 archive_cmds_need_lc=no
8994 case "$host_os" in
8995 rhapsody* | darwin1.[012])
8996 allow_undefined_flag='-undefined suppress'
8997 ;;
8998 *) # Darwin 1.3 on
8999 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9000 allow_undefined_flag='-flat_namespace -undefined suppress'
9001 else
9002 case ${MACOSX_DEPLOYMENT_TARGET} in
9003 10.[012])
9004 allow_undefined_flag='-flat_namespace -undefined suppress'
9005 ;;
9006 10.*)
9007 allow_undefined_flag='-undefined dynamic_lookup'
9008 ;;
9009 esac
9010 fi
9011 ;;
9012 esac
9013 output_verbose_link_cmd='echo'
9014 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9015 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9016 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9017 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}'
9018 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}'
9019 hardcode_direct=no
9020 hardcode_automatic=yes
9021 hardcode_shlibpath_var=unsupported
9022 whole_archive_flag_spec='-all_load $convenience'
9023 link_all_deplibs=yes
9024 else
9025 ld_shlibs=no
9026 fi
9027 ;;
9028 esac
9029 echo "$as_me:$LINENO: result: $enable_shared" >&5
9030 echo "${ECHO_T}$enable_shared" >&6
9031
9032 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9033 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9034 # Make sure either enable_shared or enable_static is yes.
9035 test "$enable_shared" = yes || enable_static=yes
9036 echo "$as_me:$LINENO: result: $enable_static" >&5
9037 echo "${ECHO_T}$enable_static" >&6
9038
9039 # The else clause should only fire when bootstrapping the
9040 # libtool distribution, otherwise you forgot to ship ltmain.sh
9041 # with your package, and you will get complaints that there are
9042 # no rules to generate ltmain.sh.
9043 if test -f "$ltmain"; then
9044 # See if we are running on zsh, and set the options which allow our commands through
9045 # without removal of \ escapes.
9046 if test -n "${ZSH_VERSION+set}" ; then
9047 setopt NO_GLOB_SUBST
9048 fi
9049 # Now quote all the things that may contain metacharacters while being
9050 # careful not to overquote the AC_SUBSTed values. We take copies of the
9051 # variables and quote the copies for generation of the libtool script.
9052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9053 SED SHELL STRIP \
9054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9056 deplibs_check_method reload_flag reload_cmds need_locks \
9057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9058 lt_cv_sys_global_symbol_to_c_name_address \
9059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9060 old_postinstall_cmds old_postuninstall_cmds \
9061 compiler \
9062 CC \
9063 LD \
9064 lt_prog_compiler_wl \
9065 lt_prog_compiler_pic \
9066 lt_prog_compiler_static \
9067 lt_prog_compiler_no_builtin_flag \
9068 export_dynamic_flag_spec \
9069 thread_safe_flag_spec \
9070 whole_archive_flag_spec \
9071 enable_shared_with_static_runtimes \
9072 old_archive_cmds \
9073 old_archive_from_new_cmds \
9074 predep_objects \
9075 postdep_objects \
9076 predeps \
9077 postdeps \
9078 compiler_lib_search_path \
9079 archive_cmds \
9080 archive_expsym_cmds \
9081 postinstall_cmds \
9082 postuninstall_cmds \
9083 old_archive_from_expsyms_cmds \
9084 allow_undefined_flag \
9085 no_undefined_flag \
9086 export_symbols_cmds \
9087 hardcode_libdir_flag_spec \
9088 hardcode_libdir_flag_spec_ld \
9089 hardcode_libdir_separator \
9090 hardcode_automatic \
9091 module_cmds \
9092 module_expsym_cmds \
9093 lt_cv_prog_compiler_c_o \
9094 exclude_expsyms \
9095 include_expsyms; do
9096
9097 case $var in
9098 old_archive_cmds | \
9099 old_archive_from_new_cmds | \
9100 archive_cmds | \
9101 archive_expsym_cmds | \
9102 module_cmds | \
9103 module_expsym_cmds | \
9104 old_archive_from_expsyms_cmds | \
9105 export_symbols_cmds | \
9106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9107 postinstall_cmds | postuninstall_cmds | \
9108 old_postinstall_cmds | old_postuninstall_cmds | \
9109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9110 # Double-quote double-evaled strings.
9111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9112 ;;
9113 *)
9114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9115 ;;
9116 esac
9117 done
9118
9119 case $lt_echo in
9120 *'\$0 --fallback-echo"')
9121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9122 ;;
9123 esac
9124
9125 cfgfile="${ofile}T"
9126 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9127 $rm -f "$cfgfile"
9128 { echo "$as_me:$LINENO: creating $ofile" >&5
9129 echo "$as_me: creating $ofile" >&6;}
9130
9131 cat <<__EOF__ >> "$cfgfile"
9132 #! $SHELL
9133
9134 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9135 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9136 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9137 #
9138 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9139 # Free Software Foundation, Inc.
9140 #
9141 # This file is part of GNU Libtool:
9142 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9143 #
9144 # This program is free software; you can redistribute it and/or modify
9145 # it under the terms of the GNU General Public License as published by
9146 # the Free Software Foundation; either version 2 of the License, or
9147 # (at your option) any later version.
9148 #
9149 # This program is distributed in the hope that it will be useful, but
9150 # WITHOUT ANY WARRANTY; without even the implied warranty of
9151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9152 # General Public License for more details.
9153 #
9154 # You should have received a copy of the GNU General Public License
9155 # along with this program; if not, write to the Free Software
9156 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9157 #
9158 # As a special exception to the GNU General Public License, if you
9159 # distribute this file as part of a program that contains a
9160 # configuration script generated by Autoconf, you may include it under
9161 # the same distribution terms that you use for the rest of that program.
9162
9163 # A sed program that does not truncate output.
9164 SED=$lt_SED
9165
9166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9167 Xsed="$SED -e s/^X//"
9168
9169 # The HP-UX ksh and POSIX shell print the target directory to stdout
9170 # if CDPATH is set.
9171 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9172
9173 # The names of the tagged configurations supported by this script.
9174 available_tags=
9175
9176 # ### BEGIN LIBTOOL CONFIG
9177
9178 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9179
9180 # Shell to use when invoking shell scripts.
9181 SHELL=$lt_SHELL
9182
9183 # Whether or not to build shared libraries.
9184 build_libtool_libs=$enable_shared
9185
9186 # Whether or not to build static libraries.
9187 build_old_libs=$enable_static
9188
9189 # Whether or not to add -lc for building shared libraries.
9190 build_libtool_need_lc=$archive_cmds_need_lc
9191
9192 # Whether or not to disallow shared libs when runtime libs are static
9193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9194
9195 # Whether or not to optimize for fast installation.
9196 fast_install=$enable_fast_install
9197
9198 # The host system.
9199 host_alias=$host_alias
9200 host=$host
9201
9202 # An echo program that does not interpret backslashes.
9203 echo=$lt_echo
9204
9205 # The archiver.
9206 AR=$lt_AR
9207 AR_FLAGS=$lt_AR_FLAGS
9208
9209 # A C compiler.
9210 LTCC=$lt_LTCC
9211
9212 # A language-specific compiler.
9213 CC=$lt_compiler
9214
9215 # Is the compiler the GNU C compiler?
9216 with_gcc=$GCC
9217
9218 # An ERE matcher.
9219 EGREP=$lt_EGREP
9220
9221 # The linker used to build libraries.
9222 LD=$lt_LD
9223
9224 # Whether we need hard or soft links.
9225 LN_S=$lt_LN_S
9226
9227 # A BSD-compatible nm program.
9228 NM=$lt_NM
9229
9230 # A symbol stripping program
9231 STRIP=$lt_STRIP
9232
9233 # Used to examine libraries when file_magic_cmd begins "file"
9234 MAGIC_CMD=$MAGIC_CMD
9235
9236 # Used on cygwin: DLL creation program.
9237 DLLTOOL="$DLLTOOL"
9238
9239 # Used on cygwin: object dumper.
9240 OBJDUMP="$OBJDUMP"
9241
9242 # Used on cygwin: assembler.
9243 AS="$AS"
9244
9245 # The name of the directory that contains temporary libtool files.
9246 objdir=$objdir
9247
9248 # How to create reloadable object files.
9249 reload_flag=$lt_reload_flag
9250 reload_cmds=$lt_reload_cmds
9251
9252 # How to pass a linker flag through the compiler.
9253 wl=$lt_lt_prog_compiler_wl
9254
9255 # Object file suffix (normally "o").
9256 objext="$ac_objext"
9257
9258 # Old archive suffix (normally "a").
9259 libext="$libext"
9260
9261 # Shared library suffix (normally ".so").
9262 shrext_cmds='$shrext_cmds'
9263
9264 # Executable file suffix (normally "").
9265 exeext="$exeext"
9266
9267 # Additional compiler flags for building library objects.
9268 pic_flag=$lt_lt_prog_compiler_pic
9269 pic_mode=$pic_mode
9270
9271 # What is the maximum length of a command?
9272 max_cmd_len=$lt_cv_sys_max_cmd_len
9273
9274 # Does compiler simultaneously support -c and -o options?
9275 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9276
9277 # Must we lock files when doing compilation ?
9278 need_locks=$lt_need_locks
9279
9280 # Do we need the lib prefix for modules?
9281 need_lib_prefix=$need_lib_prefix
9282
9283 # Do we need a version for libraries?
9284 need_version=$need_version
9285
9286 # Whether dlopen is supported.
9287 dlopen_support=$enable_dlopen
9288
9289 # Whether dlopen of programs is supported.
9290 dlopen_self=$enable_dlopen_self
9291
9292 # Whether dlopen of statically linked programs is supported.
9293 dlopen_self_static=$enable_dlopen_self_static
9294
9295 # Compiler flag to prevent dynamic linking.
9296 link_static_flag=$lt_lt_prog_compiler_static
9297
9298 # Compiler flag to turn off builtin functions.
9299 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9300
9301 # Compiler flag to allow reflexive dlopens.
9302 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9303
9304 # Compiler flag to generate shared objects directly from archives.
9305 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9306
9307 # Compiler flag to generate thread-safe objects.
9308 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9309
9310 # Library versioning type.
9311 version_type=$version_type
9312
9313 # Format of library name prefix.
9314 libname_spec=$lt_libname_spec
9315
9316 # List of archive names. First name is the real one, the rest are links.
9317 # The last name is the one that the linker finds with -lNAME.
9318 library_names_spec=$lt_library_names_spec
9319
9320 # The coded name of the library, if different from the real name.
9321 soname_spec=$lt_soname_spec
9322
9323 # Commands used to build and install an old-style archive.
9324 RANLIB=$lt_RANLIB
9325 old_archive_cmds=$lt_old_archive_cmds
9326 old_postinstall_cmds=$lt_old_postinstall_cmds
9327 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9328
9329 # Create an old-style archive from a shared archive.
9330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9331
9332 # Create a temporary old-style archive to link instead of a shared archive.
9333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9334
9335 # Commands used to build and install a shared archive.
9336 archive_cmds=$lt_archive_cmds
9337 archive_expsym_cmds=$lt_archive_expsym_cmds
9338 postinstall_cmds=$lt_postinstall_cmds
9339 postuninstall_cmds=$lt_postuninstall_cmds
9340
9341 # Commands used to build a loadable module (assumed same as above if empty)
9342 module_cmds=$lt_module_cmds
9343 module_expsym_cmds=$lt_module_expsym_cmds
9344
9345 # Commands to strip libraries.
9346 old_striplib=$lt_old_striplib
9347 striplib=$lt_striplib
9348
9349 # Dependencies to place before the objects being linked to create a
9350 # shared library.
9351 predep_objects=$lt_predep_objects
9352
9353 # Dependencies to place after the objects being linked to create a
9354 # shared library.
9355 postdep_objects=$lt_postdep_objects
9356
9357 # Dependencies to place before the objects being linked to create a
9358 # shared library.
9359 predeps=$lt_predeps
9360
9361 # Dependencies to place after the objects being linked to create a
9362 # shared library.
9363 postdeps=$lt_postdeps
9364
9365 # The library search path used internally by the compiler when linking
9366 # a shared library.
9367 compiler_lib_search_path=$lt_compiler_lib_search_path
9368
9369 # Method to check whether dependent libraries are shared objects.
9370 deplibs_check_method=$lt_deplibs_check_method
9371
9372 # Command to use when deplibs_check_method == file_magic.
9373 file_magic_cmd=$lt_file_magic_cmd
9374
9375 # Flag that allows shared libraries with undefined symbols to be built.
9376 allow_undefined_flag=$lt_allow_undefined_flag
9377
9378 # Flag that forces no undefined symbols.
9379 no_undefined_flag=$lt_no_undefined_flag
9380
9381 # Commands used to finish a libtool library installation in a directory.
9382 finish_cmds=$lt_finish_cmds
9383
9384 # Same as above, but a single script fragment to be evaled but not shown.
9385 finish_eval=$lt_finish_eval
9386
9387 # Take the output of nm and produce a listing of raw symbols and C names.
9388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9389
9390 # Transform the output of nm in a proper C declaration
9391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9392
9393 # Transform the output of nm in a C name address pair
9394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9395
9396 # This is the shared library runtime path variable.
9397 runpath_var=$runpath_var
9398
9399 # This is the shared library path variable.
9400 shlibpath_var=$shlibpath_var
9401
9402 # Is shlibpath searched before the hard-coded library search path?
9403 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9404
9405 # How to hardcode a shared library path into an executable.
9406 hardcode_action=$hardcode_action
9407
9408 # Whether we should hardcode library paths into libraries.
9409 hardcode_into_libs=$hardcode_into_libs
9410
9411 # Flag to hardcode \$libdir into a binary during linking.
9412 # This must work even if \$libdir does not exist.
9413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9414
9415 # If ld is used when linking, flag to hardcode \$libdir into
9416 # a binary during linking. This must work even if \$libdir does
9417 # not exist.
9418 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9419
9420 # Whether we need a single -rpath flag with a separated argument.
9421 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9422
9423 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9424 # resulting binary.
9425 hardcode_direct=$hardcode_direct
9426
9427 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9428 # resulting binary.
9429 hardcode_minus_L=$hardcode_minus_L
9430
9431 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9432 # the resulting binary.
9433 hardcode_shlibpath_var=$hardcode_shlibpath_var
9434
9435 # Set to yes if building a shared library automatically hardcodes DIR into the library
9436 # and all subsequent libraries and executables linked against it.
9437 hardcode_automatic=$hardcode_automatic
9438
9439 # Variables whose values should be saved in libtool wrapper scripts and
9440 # restored at relink time.
9441 variables_saved_for_relink="$variables_saved_for_relink"
9442
9443 # Whether libtool must link a program against all its dependency libraries.
9444 link_all_deplibs=$link_all_deplibs
9445
9446 # Compile-time system search path for libraries
9447 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9448
9449 # Run-time system search path for libraries
9450 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9451
9452 # Fix the shell variable \$srcfile for the compiler.
9453 fix_srcfile_path="$fix_srcfile_path"
9454
9455 # Set to yes if exported symbols are required.
9456 always_export_symbols=$always_export_symbols
9457
9458 # The commands to list exported symbols.
9459 export_symbols_cmds=$lt_export_symbols_cmds
9460
9461 # The commands to extract the exported symbol list from a shared archive.
9462 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9463
9464 # Symbols that should not be listed in the preloaded symbols.
9465 exclude_expsyms=$lt_exclude_expsyms
9466
9467 # Symbols that must always be exported.
9468 include_expsyms=$lt_include_expsyms
9469
9470 # ### END LIBTOOL CONFIG
9471
9472 __EOF__
9473
9474
9475 case $host_os in
9476 aix3*)
9477 cat <<\EOF >> "$cfgfile"
9478
9479 # AIX sometimes has problems with the GCC collect2 program. For some
9480 # reason, if we set the COLLECT_NAMES environment variable, the problems
9481 # vanish in a puff of smoke.
9482 if test "X${COLLECT_NAMES+set}" != Xset; then
9483 COLLECT_NAMES=
9484 export COLLECT_NAMES
9485 fi
9486 EOF
9487 ;;
9488 esac
9489
9490 # We use sed instead of cat because bash on DJGPP gets confused if
9491 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9492 # text mode, it properly converts lines to CR/LF. This bash problem
9493 # is reportedly fixed, but why not run on old versions too?
9494 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9495
9496 mv -f "$cfgfile" "$ofile" || \
9497 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9498 chmod +x "$ofile"
9499
9500 else
9501 # If there is no Makefile yet, we rely on a make rule to execute
9502 # `config.status --recheck' to rerun these tests and create the
9503 # libtool script then.
9504 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9505 if test -f "$ltmain_in"; then
9506 test -f Makefile && make "$ltmain"
9507 fi
9508 fi
9509
9510
9511 ac_ext=c
9512 ac_cpp='$CPP $CPPFLAGS'
9513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9516
9517 CC="$lt_save_CC"
9518
9519
9520 # Check whether --with-tags or --without-tags was given.
9521 if test "${with_tags+set}" = set; then
9522 withval="$with_tags"
9523 tagnames="$withval"
9524 fi;
9525
9526 if test -f "$ltmain" && test -n "$tagnames"; then
9527 if test ! -f "${ofile}"; then
9528 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9529 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9530 fi
9531
9532 if test -z "$LTCC"; then
9533 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9534 if test -z "$LTCC"; then
9535 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9536 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9537 else
9538 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9539 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9540 fi
9541 fi
9542
9543 # Extract list of available tagged configurations in $ofile.
9544 # Note that this assumes the entire list is on one line.
9545 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9546
9547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9548 for tagname in $tagnames; do
9549 IFS="$lt_save_ifs"
9550 # Check whether tagname contains only valid characters
9551 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9552 "") ;;
9553 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9554 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9555 { (exit 1); exit 1; }; }
9556 ;;
9557 esac
9558
9559 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9560 then
9561 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9562 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9563 { (exit 1); exit 1; }; }
9564 fi
9565
9566 # Update the list of available tags.
9567 if test -n "$tagname"; then
9568 echo appending configuration tag \"$tagname\" to $ofile
9569
9570 case $tagname in
9571 CXX)
9572 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9573 ac_ext=cc
9574 ac_cpp='$CXXCPP $CPPFLAGS'
9575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9578
9579
9580
9581
9582 archive_cmds_need_lc_CXX=no
9583 allow_undefined_flag_CXX=
9584 always_export_symbols_CXX=no
9585 archive_expsym_cmds_CXX=
9586 export_dynamic_flag_spec_CXX=
9587 hardcode_direct_CXX=no
9588 hardcode_libdir_flag_spec_CXX=
9589 hardcode_libdir_flag_spec_ld_CXX=
9590 hardcode_libdir_separator_CXX=
9591 hardcode_minus_L_CXX=no
9592 hardcode_automatic_CXX=no
9593 module_cmds_CXX=
9594 module_expsym_cmds_CXX=
9595 link_all_deplibs_CXX=unknown
9596 old_archive_cmds_CXX=$old_archive_cmds
9597 no_undefined_flag_CXX=
9598 whole_archive_flag_spec_CXX=
9599 enable_shared_with_static_runtimes_CXX=no
9600
9601 # Dependencies to place before and after the object being linked:
9602 predep_objects_CXX=
9603 postdep_objects_CXX=
9604 predeps_CXX=
9605 postdeps_CXX=
9606 compiler_lib_search_path_CXX=
9607
9608 # Source file extension for C++ test sources.
9609 ac_ext=cc
9610
9611 # Object file extension for compiled C++ test sources.
9612 objext=o
9613 objext_CXX=$objext
9614
9615 # Code to be used in simple compile tests
9616 lt_simple_compile_test_code="int some_variable = 0;\n"
9617
9618 # Code to be used in simple link tests
9619 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9620
9621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9622
9623 # If no C compiler was specified, use CC.
9624 LTCC=${LTCC-"$CC"}
9625
9626 # Allow CC to be a program name with arguments.
9627 compiler=$CC
9628
9629
9630 # Allow CC to be a program name with arguments.
9631 lt_save_CC=$CC
9632 lt_save_LD=$LD
9633 lt_save_GCC=$GCC
9634 GCC=$GXX
9635 lt_save_with_gnu_ld=$with_gnu_ld
9636 lt_save_path_LD=$lt_cv_path_LD
9637 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9638 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9639 else
9640 unset lt_cv_prog_gnu_ld
9641 fi
9642 if test -n "${lt_cv_path_LDCXX+set}"; then
9643 lt_cv_path_LD=$lt_cv_path_LDCXX
9644 else
9645 unset lt_cv_path_LD
9646 fi
9647 test -z "${LDCXX+set}" || LD=$LDCXX
9648 CC=${CXX-"c++"}
9649 compiler=$CC
9650 compiler_CXX=$CC
9651 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9652
9653 # We don't want -fno-exception wen compiling C++ code, so set the
9654 # no_builtin_flag separately
9655 if test "$GXX" = yes; then
9656 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9657 else
9658 lt_prog_compiler_no_builtin_flag_CXX=
9659 fi
9660
9661 if test "$GXX" = yes; then
9662 # Set up default GNU C++ configuration
9663
9664
9665 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9666 if test "${with_gnu_ld+set}" = set; then
9667 withval="$with_gnu_ld"
9668 test "$withval" = no || with_gnu_ld=yes
9669 else
9670 with_gnu_ld=no
9671 fi;
9672 ac_prog=ld
9673 if test "$GCC" = yes; then
9674 # Check if gcc -print-prog-name=ld gives a path.
9675 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9676 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9677 case $host in
9678 *-*-mingw*)
9679 # gcc leaves a trailing carriage return which upsets mingw
9680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9681 *)
9682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9683 esac
9684 case $ac_prog in
9685 # Accept absolute paths.
9686 [\\/]* | ?:[\\/]*)
9687 re_direlt='/[^/][^/]*/\.\./'
9688 # Canonicalize the pathname of ld
9689 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9690 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9691 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9692 done
9693 test -z "$LD" && LD="$ac_prog"
9694 ;;
9695 "")
9696 # If it fails, then pretend we aren't using GCC.
9697 ac_prog=ld
9698 ;;
9699 *)
9700 # If it is relative, then search for the first ld in PATH.
9701 with_gnu_ld=unknown
9702 ;;
9703 esac
9704 elif test "$with_gnu_ld" = yes; then
9705 echo "$as_me:$LINENO: checking for GNU ld" >&5
9706 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9707 else
9708 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9709 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9710 fi
9711 if test "${lt_cv_path_LD+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 if test -z "$LD"; then
9715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9716 for ac_dir in $PATH; do
9717 IFS="$lt_save_ifs"
9718 test -z "$ac_dir" && ac_dir=.
9719 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9720 lt_cv_path_LD="$ac_dir/$ac_prog"
9721 # Check to see if the program is GNU ld. I'd rather use --version,
9722 # but apparently some GNU ld's only accept -v.
9723 # Break only if it was the GNU/non-GNU ld that we prefer.
9724 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9725 *GNU* | *'with BFD'*)
9726 test "$with_gnu_ld" != no && break
9727 ;;
9728 *)
9729 test "$with_gnu_ld" != yes && break
9730 ;;
9731 esac
9732 fi
9733 done
9734 IFS="$lt_save_ifs"
9735 else
9736 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9737 fi
9738 fi
9739
9740 LD="$lt_cv_path_LD"
9741 if test -n "$LD"; then
9742 echo "$as_me:$LINENO: result: $LD" >&5
9743 echo "${ECHO_T}$LD" >&6
9744 else
9745 echo "$as_me:$LINENO: result: no" >&5
9746 echo "${ECHO_T}no" >&6
9747 fi
9748 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9749 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9750 { (exit 1); exit 1; }; }
9751 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9752 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9753 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9757 case `$LD -v 2>&1 </dev/null` in
9758 *GNU* | *'with BFD'*)
9759 lt_cv_prog_gnu_ld=yes
9760 ;;
9761 *)
9762 lt_cv_prog_gnu_ld=no
9763 ;;
9764 esac
9765 fi
9766 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9767 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9768 with_gnu_ld=$lt_cv_prog_gnu_ld
9769
9770
9771
9772 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9773 # archiving commands below assume that GNU ld is being used.
9774 if test "$with_gnu_ld" = yes; then
9775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 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'
9777
9778 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9780
9781 # If archive_cmds runs LD, not CC, wlarc should be empty
9782 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9783 # investigate it a little bit more. (MM)
9784 wlarc='${wl}'
9785
9786 # ancient GNU ld didn't support --whole-archive et. al.
9787 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9788 grep 'no-whole-archive' > /dev/null; then
9789 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9790 else
9791 whole_archive_flag_spec_CXX=
9792 fi
9793 else
9794 with_gnu_ld=no
9795 wlarc=
9796
9797 # A generic and very simple default shared library creation
9798 # command for GNU C++ for the case where it uses the native
9799 # linker, instead of GNU ld. If possible, this setting should
9800 # overridden to take advantage of the native linker features on
9801 # the platform it is being used on.
9802 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9803 fi
9804
9805 # Commands to make compiler produce verbose output that lists
9806 # what "hidden" libraries, object files and flags are used when
9807 # linking a shared library.
9808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9809
9810 else
9811 GXX=no
9812 with_gnu_ld=no
9813 wlarc=
9814 fi
9815
9816 # PORTME: fill in a description of your system's C++ link characteristics
9817 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9818 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9819 ld_shlibs_CXX=yes
9820 case $host_os in
9821 aix3*)
9822 # FIXME: insert proper C++ library support
9823 ld_shlibs_CXX=no
9824 ;;
9825 aix4* | aix5*)
9826 if test "$host_cpu" = ia64; then
9827 # On IA64, the linker does run time linking by default, so we don't
9828 # have to do anything special.
9829 aix_use_runtimelinking=no
9830 exp_sym_flag='-Bexport'
9831 no_entry_flag=""
9832 else
9833 aix_use_runtimelinking=no
9834
9835 # Test if we are trying to use run time linking or normal
9836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9837 # need to do runtime linking.
9838 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9839 for ld_flag in $LDFLAGS; do
9840 case $ld_flag in
9841 *-brtl*)
9842 aix_use_runtimelinking=yes
9843 break
9844 ;;
9845 esac
9846 done
9847 esac
9848
9849 exp_sym_flag='-bexport'
9850 no_entry_flag='-bnoentry'
9851 fi
9852
9853 # When large executables or shared objects are built, AIX ld can
9854 # have problems creating the table of contents. If linking a library
9855 # or program results in "error TOC overflow" add -mminimal-toc to
9856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9858
9859 archive_cmds_CXX=''
9860 hardcode_direct_CXX=yes
9861 hardcode_libdir_separator_CXX=':'
9862 link_all_deplibs_CXX=yes
9863
9864 if test "$GXX" = yes; then
9865 case $host_os in aix4.012|aix4.012.*)
9866 # We only want to do this on AIX 4.2 and lower, the check
9867 # below for broken collect2 doesn't work under 4.3+
9868 collect2name=`${CC} -print-prog-name=collect2`
9869 if test -f "$collect2name" && \
9870 strings "$collect2name" | grep resolve_lib_name >/dev/null
9871 then
9872 # We have reworked collect2
9873 hardcode_direct_CXX=yes
9874 else
9875 # We have old collect2
9876 hardcode_direct_CXX=unsupported
9877 # It fails to find uninstalled libraries when the uninstalled
9878 # path is not listed in the libpath. Setting hardcode_minus_L
9879 # to unsupported forces relinking
9880 hardcode_minus_L_CXX=yes
9881 hardcode_libdir_flag_spec_CXX='-L$libdir'
9882 hardcode_libdir_separator_CXX=
9883 fi
9884 esac
9885 shared_flag='-shared'
9886 else
9887 # not using gcc
9888 if test "$host_cpu" = ia64; then
9889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9890 # chokes on -Wl,-G. The following line is correct:
9891 shared_flag='-G'
9892 else
9893 if test "$aix_use_runtimelinking" = yes; then
9894 shared_flag='${wl}-G'
9895 else
9896 shared_flag='${wl}-bM:SRE'
9897 fi
9898 fi
9899 fi
9900
9901 # It seems that -bexpall does not export symbols beginning with
9902 # underscore (_), so it is better to generate a list of symbols to export.
9903 always_export_symbols_CXX=yes
9904 if test "$aix_use_runtimelinking" = yes; then
9905 # Warning - without using the other runtime loading flags (-brtl),
9906 # -berok will link without error, but may produce a broken library.
9907 allow_undefined_flag_CXX='-berok'
9908 # Determine the default libpath from the value encoded in an empty executable.
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915
9916 int
9917 main ()
9918 {
9919
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_cxx_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946
9947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9948 }'`
9949 # Check for a 64-bit object if we didn't find anything.
9950 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; }
9951 }'`; fi
9952 else
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9955
9956 fi
9957 rm -f conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9960
9961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9962
9963 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"
9964 else
9965 if test "$host_cpu" = ia64; then
9966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9967 allow_undefined_flag_CXX="-z nodefs"
9968 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"
9969 else
9970 # Determine the default libpath from the value encoded in an empty executable.
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977
9978 int
9979 main ()
9980 {
9981
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_cxx_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008
10009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10010 }'`
10011 # Check for a 64-bit object if we didn't find anything.
10012 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; }
10013 }'`; fi
10014 else
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 fi
10019 rm -f conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10022
10023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10024 # Warning - without using the other run time loading flags,
10025 # -berok will link without error, but may produce a broken library.
10026 no_undefined_flag_CXX=' ${wl}-bernotok'
10027 allow_undefined_flag_CXX=' ${wl}-berok'
10028 # -bexpall does not export symbols beginning with underscore (_)
10029 always_export_symbols_CXX=yes
10030 # Exported symbols can be pulled into shared objects from archives
10031 whole_archive_flag_spec_CXX=' '
10032 archive_cmds_need_lc_CXX=yes
10033 # This is similar to how AIX traditionally builds it's shared libraries.
10034 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'
10035 fi
10036 fi
10037 ;;
10038 chorus*)
10039 case $cc_basename in
10040 *)
10041 # FIXME: insert proper C++ library support
10042 ld_shlibs_CXX=no
10043 ;;
10044 esac
10045 ;;
10046
10047 cygwin* | mingw* | pw32*)
10048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10049 # as there is no search path for DLLs.
10050 hardcode_libdir_flag_spec_CXX='-L$libdir'
10051 allow_undefined_flag_CXX=unsupported
10052 always_export_symbols_CXX=no
10053 enable_shared_with_static_runtimes_CXX=yes
10054
10055 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10056 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'
10057 # If the export-symbols file already is a .def file (1st line
10058 # is EXPORTS), use it as is; otherwise, prepend...
10059 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10060 cp $export_symbols $output_objdir/$soname.def;
10061 else
10062 echo EXPORTS > $output_objdir/$soname.def;
10063 cat $export_symbols >> $output_objdir/$soname.def;
10064 fi~
10065 $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'
10066 else
10067 ld_shlibs_CXX=no
10068 fi
10069 ;;
10070
10071 darwin* | rhapsody*)
10072 if test "$GXX" = yes; then
10073 archive_cmds_need_lc_CXX=no
10074 case "$host_os" in
10075 rhapsody* | darwin1.[012])
10076 allow_undefined_flag_CXX='-undefined suppress'
10077 ;;
10078 *) # Darwin 1.3 on
10079 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10080 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10081 else
10082 case ${MACOSX_DEPLOYMENT_TARGET} in
10083 10.[012])
10084 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10085 ;;
10086 10.*)
10087 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10088 ;;
10089 esac
10090 fi
10091 ;;
10092 esac
10093 lt_int_apple_cc_single_mod=no
10094 output_verbose_link_cmd='echo'
10095 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10096 lt_int_apple_cc_single_mod=yes
10097 fi
10098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10099 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10100 else
10101 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10102 fi
10103 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10104
10105 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10106 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10107 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}'
10108 else
10109 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10110 fi
10111 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}'
10112 hardcode_direct_CXX=no
10113 hardcode_automatic_CXX=yes
10114 hardcode_shlibpath_var_CXX=unsupported
10115 whole_archive_flag_spec_CXX='-all_load $convenience'
10116 link_all_deplibs_CXX=yes
10117 else
10118 ld_shlibs_CXX=no
10119 fi
10120 ;;
10121
10122 dgux*)
10123 case $cc_basename in
10124 ec++)
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128 ghcx)
10129 # Green Hills C++ Compiler
10130 # FIXME: insert proper C++ library support
10131 ld_shlibs_CXX=no
10132 ;;
10133 *)
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 esac
10138 ;;
10139 freebsd12*)
10140 # C++ shared libraries reported to be fairly broken before switch to ELF
10141 ld_shlibs_CXX=no
10142 ;;
10143 freebsd-elf*)
10144 archive_cmds_need_lc_CXX=no
10145 ;;
10146 freebsd* | kfreebsd*-gnu)
10147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10148 # conventions
10149 ld_shlibs_CXX=yes
10150 ;;
10151 gnu*)
10152 ;;
10153 hpux9*)
10154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10155 hardcode_libdir_separator_CXX=:
10156 export_dynamic_flag_spec_CXX='${wl}-E'
10157 hardcode_direct_CXX=yes
10158 hardcode_minus_L_CXX=yes # Not in the search PATH,
10159 # but as the default
10160 # location of the library.
10161
10162 case $cc_basename in
10163 CC)
10164 # FIXME: insert proper C++ library support
10165 ld_shlibs_CXX=no
10166 ;;
10167 aCC)
10168 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'
10169 # Commands to make compiler produce verbose output that lists
10170 # what "hidden" libraries, object files and flags are used when
10171 # linking a shared library.
10172 #
10173 # There doesn't appear to be a way to prevent this compiler from
10174 # explicitly linking system object files so we need to strip them
10175 # from the output so that they don't get included in the library
10176 # dependencies.
10177 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'
10178 ;;
10179 *)
10180 if test "$GXX" = yes; then
10181 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'
10182 else
10183 # FIXME: insert proper C++ library support
10184 ld_shlibs_CXX=no
10185 fi
10186 ;;
10187 esac
10188 ;;
10189 hpux10*|hpux11*)
10190 if test $with_gnu_ld = no; then
10191 case "$host_cpu" in
10192 hppa*64*)
10193 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10194 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10195 hardcode_libdir_separator_CXX=:
10196 ;;
10197 ia64*)
10198 hardcode_libdir_flag_spec_CXX='-L$libdir'
10199 ;;
10200 *)
10201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10202 hardcode_libdir_separator_CXX=:
10203 export_dynamic_flag_spec_CXX='${wl}-E'
10204 ;;
10205 esac
10206 fi
10207 case "$host_cpu" in
10208 hppa*64*)
10209 hardcode_direct_CXX=no
10210 hardcode_shlibpath_var_CXX=no
10211 ;;
10212 ia64*)
10213 hardcode_direct_CXX=no
10214 hardcode_shlibpath_var_CXX=no
10215 hardcode_minus_L_CXX=yes # Not in the search PATH,
10216 # but as the default
10217 # location of the library.
10218 ;;
10219 *)
10220 hardcode_direct_CXX=yes
10221 hardcode_minus_L_CXX=yes # Not in the search PATH,
10222 # but as the default
10223 # location of the library.
10224 ;;
10225 esac
10226
10227 case $cc_basename in
10228 CC)
10229 # FIXME: insert proper C++ library support
10230 ld_shlibs_CXX=no
10231 ;;
10232 aCC)
10233 case "$host_cpu" in
10234 hppa*64*|ia64*)
10235 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10236 ;;
10237 *)
10238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10239 ;;
10240 esac
10241 # Commands to make compiler produce verbose output that lists
10242 # what "hidden" libraries, object files and flags are used when
10243 # linking a shared library.
10244 #
10245 # There doesn't appear to be a way to prevent this compiler from
10246 # explicitly linking system object files so we need to strip them
10247 # from the output so that they don't get included in the library
10248 # dependencies.
10249 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'
10250 ;;
10251 *)
10252 if test "$GXX" = yes; then
10253 if test $with_gnu_ld = no; then
10254 case "$host_cpu" in
10255 ia64*|hppa*64*)
10256 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10257 ;;
10258 *)
10259 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'
10260 ;;
10261 esac
10262 fi
10263 else
10264 # FIXME: insert proper C++ library support
10265 ld_shlibs_CXX=no
10266 fi
10267 ;;
10268 esac
10269 ;;
10270 irix5* | irix6*)
10271 case $cc_basename in
10272 CC)
10273 # SGI C++
10274 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10275
10276 # Archives containing C++ object files must be created using
10277 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10278 # necessary to make sure instantiated templates are included
10279 # in the archive.
10280 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10281 ;;
10282 *)
10283 if test "$GXX" = yes; then
10284 if test "$with_gnu_ld" = no; then
10285 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10286 else
10287 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'
10288 fi
10289 fi
10290 link_all_deplibs_CXX=yes
10291 ;;
10292 esac
10293 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10294 hardcode_libdir_separator_CXX=:
10295 ;;
10296 linux*)
10297 case $cc_basename in
10298 KCC)
10299 # Kuck and Associates, Inc. (KAI) C++ Compiler
10300
10301 # KCC will only create a shared library if the output file
10302 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10303 # to its proper name (with version) after linking.
10304 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'
10305 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'
10306 # Commands to make compiler produce verbose output that lists
10307 # what "hidden" libraries, object files and flags are used when
10308 # linking a shared library.
10309 #
10310 # There doesn't appear to be a way to prevent this compiler from
10311 # explicitly linking system object files so we need to strip them
10312 # from the output so that they don't get included in the library
10313 # dependencies.
10314 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'
10315
10316 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10318
10319 # Archives containing C++ object files must be created using
10320 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10321 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10322 ;;
10323 icpc)
10324 # Intel C++
10325 with_gnu_ld=yes
10326 archive_cmds_need_lc_CXX=no
10327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328 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'
10329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10332 ;;
10333 cxx)
10334 # Compaq C++
10335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10336 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'
10337
10338 runpath_var=LD_RUN_PATH
10339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10340 hardcode_libdir_separator_CXX=:
10341
10342 # Commands to make compiler produce verbose output that lists
10343 # what "hidden" libraries, object files and flags are used when
10344 # linking a shared library.
10345 #
10346 # There doesn't appear to be a way to prevent this compiler from
10347 # explicitly linking system object files so we need to strip them
10348 # from the output so that they don't get included in the library
10349 # dependencies.
10350 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'
10351 ;;
10352 esac
10353 ;;
10354 lynxos*)
10355 # FIXME: insert proper C++ library support
10356 ld_shlibs_CXX=no
10357 ;;
10358 m88k*)
10359 # FIXME: insert proper C++ library support
10360 ld_shlibs_CXX=no
10361 ;;
10362 mvs*)
10363 case $cc_basename in
10364 cxx)
10365 # FIXME: insert proper C++ library support
10366 ld_shlibs_CXX=no
10367 ;;
10368 *)
10369 # FIXME: insert proper C++ library support
10370 ld_shlibs_CXX=no
10371 ;;
10372 esac
10373 ;;
10374 netbsd*)
10375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10376 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10377 wlarc=
10378 hardcode_libdir_flag_spec_CXX='-R$libdir'
10379 hardcode_direct_CXX=yes
10380 hardcode_shlibpath_var_CXX=no
10381 fi
10382 # Workaround some broken pre-1.5 toolchains
10383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10384 ;;
10385 osf3*)
10386 case $cc_basename in
10387 KCC)
10388 # Kuck and Associates, Inc. (KAI) C++ Compiler
10389
10390 # KCC will only create a shared library if the output file
10391 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10392 # to its proper name (with version) after linking.
10393 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'
10394
10395 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10396 hardcode_libdir_separator_CXX=:
10397
10398 # Archives containing C++ object files must be created using
10399 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10400 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10401
10402 ;;
10403 RCC)
10404 # Rational C++ 2.4.1
10405 # FIXME: insert proper C++ library support
10406 ld_shlibs_CXX=no
10407 ;;
10408 cxx)
10409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10410 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10411
10412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10413 hardcode_libdir_separator_CXX=:
10414
10415 # Commands to make compiler produce verbose output that lists
10416 # what "hidden" libraries, object files and flags are used when
10417 # linking a shared library.
10418 #
10419 # There doesn't appear to be a way to prevent this compiler from
10420 # explicitly linking system object files so we need to strip them
10421 # from the output so that they don't get included in the library
10422 # dependencies.
10423 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'
10424 ;;
10425 *)
10426 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10427 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10428 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10429
10430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10431 hardcode_libdir_separator_CXX=:
10432
10433 # Commands to make compiler produce verbose output that lists
10434 # what "hidden" libraries, object files and flags are used when
10435 # linking a shared library.
10436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10437
10438 else
10439 # FIXME: insert proper C++ library support
10440 ld_shlibs_CXX=no
10441 fi
10442 ;;
10443 esac
10444 ;;
10445 osf4* | osf5*)
10446 case $cc_basename in
10447 KCC)
10448 # Kuck and Associates, Inc. (KAI) C++ Compiler
10449
10450 # KCC will only create a shared library if the output file
10451 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10452 # to its proper name (with version) after linking.
10453 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'
10454
10455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10456 hardcode_libdir_separator_CXX=:
10457
10458 # Archives containing C++ object files must be created using
10459 # the KAI C++ compiler.
10460 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10461 ;;
10462 RCC)
10463 # Rational C++ 2.4.1
10464 # FIXME: insert proper C++ library support
10465 ld_shlibs_CXX=no
10466 ;;
10467 cxx)
10468 allow_undefined_flag_CXX=' -expect_unresolved \*'
10469 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10470 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10471 echo "-hidden">> $lib.exp~
10472 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10473 $rm $lib.exp'
10474
10475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10476 hardcode_libdir_separator_CXX=:
10477
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10481 #
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10485 # dependencies.
10486 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'
10487 ;;
10488 *)
10489 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10490 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10491 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10492
10493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10494 hardcode_libdir_separator_CXX=:
10495
10496 # Commands to make compiler produce verbose output that lists
10497 # what "hidden" libraries, object files and flags are used when
10498 # linking a shared library.
10499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10500
10501 else
10502 # FIXME: insert proper C++ library support
10503 ld_shlibs_CXX=no
10504 fi
10505 ;;
10506 esac
10507 ;;
10508 psos*)
10509 # FIXME: insert proper C++ library support
10510 ld_shlibs_CXX=no
10511 ;;
10512 sco*)
10513 archive_cmds_need_lc_CXX=no
10514 case $cc_basename in
10515 CC)
10516 # FIXME: insert proper C++ library support
10517 ld_shlibs_CXX=no
10518 ;;
10519 *)
10520 # FIXME: insert proper C++ library support
10521 ld_shlibs_CXX=no
10522 ;;
10523 esac
10524 ;;
10525 sunos4*)
10526 case $cc_basename in
10527 CC)
10528 # Sun C++ 4.x
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10531 ;;
10532 lcc)
10533 # Lucid
10534 # FIXME: insert proper C++ library support
10535 ld_shlibs_CXX=no
10536 ;;
10537 *)
10538 # FIXME: insert proper C++ library support
10539 ld_shlibs_CXX=no
10540 ;;
10541 esac
10542 ;;
10543 solaris*)
10544 case $cc_basename in
10545 CC)
10546 # Sun C++ 4.2, 5.x and Centerline C++
10547 no_undefined_flag_CXX=' -zdefs'
10548 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10549 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10550 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10551
10552 hardcode_libdir_flag_spec_CXX='-R$libdir'
10553 hardcode_shlibpath_var_CXX=no
10554 case $host_os in
10555 solaris2.0-5 | solaris2.0-5.*) ;;
10556 *)
10557 # The C++ compiler is used as linker so we must use $wl
10558 # flag to pass the commands to the underlying system
10559 # linker.
10560 # Supported since Solaris 2.6 (maybe 2.5.1?)
10561 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10562 ;;
10563 esac
10564 link_all_deplibs_CXX=yes
10565
10566 # Commands to make compiler produce verbose output that lists
10567 # what "hidden" libraries, object files and flags are used when
10568 # linking a shared library.
10569 #
10570 # There doesn't appear to be a way to prevent this compiler from
10571 # explicitly linking system object files so we need to strip them
10572 # from the output so that they don't get included in the library
10573 # dependencies.
10574 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10575
10576 # Archives containing C++ object files must be created using
10577 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10578 # necessary to make sure instantiated templates are included
10579 # in the archive.
10580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10581 ;;
10582 gcx)
10583 # Green Hills C++ Compiler
10584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10585
10586 # The C++ compiler must be used to create the archive.
10587 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10588 ;;
10589 *)
10590 # GNU C++ compiler with Solaris linker
10591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10592 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10593 if $CC --version | grep -v '^2\.7' > /dev/null; then
10594 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10595 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10596 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10597
10598 # Commands to make compiler produce verbose output that lists
10599 # what "hidden" libraries, object files and flags are used when
10600 # linking a shared library.
10601 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10602 else
10603 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10604 # platform.
10605 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10606 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10607 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10608
10609 # Commands to make compiler produce verbose output that lists
10610 # what "hidden" libraries, object files and flags are used when
10611 # linking a shared library.
10612 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10613 fi
10614
10615 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10616 fi
10617 ;;
10618 esac
10619 ;;
10620 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10621 archive_cmds_need_lc_CXX=no
10622 ;;
10623 tandem*)
10624 case $cc_basename in
10625 NCC)
10626 # NonStop-UX NCC 3.20
10627 # FIXME: insert proper C++ library support
10628 ld_shlibs_CXX=no
10629 ;;
10630 *)
10631 # FIXME: insert proper C++ library support
10632 ld_shlibs_CXX=no
10633 ;;
10634 esac
10635 ;;
10636 vxworks*)
10637 # FIXME: insert proper C++ library support
10638 ld_shlibs_CXX=no
10639 ;;
10640 *)
10641 # FIXME: insert proper C++ library support
10642 ld_shlibs_CXX=no
10643 ;;
10644 esac
10645 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10646 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10647 test "$ld_shlibs_CXX" = no && can_build_shared=no
10648
10649 GCC_CXX="$GXX"
10650 LD_CXX="$LD"
10651
10652
10653 cat > conftest.$ac_ext <<EOF
10654 class Foo
10655 {
10656 public:
10657 Foo (void) { a = 0; }
10658 private:
10659 int a;
10660 };
10661 EOF
10662
10663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10664 (eval $ac_compile) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; then
10668 # Parse the compiler output and extract the necessary
10669 # objects, libraries and library flags.
10670
10671 # Sentinel used to keep track of whether or not we are before
10672 # the conftest object file.
10673 pre_test_object_deps_done=no
10674
10675 # The `*' in the case matches for architectures that use `case' in
10676 # $output_verbose_cmd can trigger glob expansion during the loop
10677 # eval without this substitution.
10678 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10679
10680 for p in `eval $output_verbose_link_cmd`; do
10681 case $p in
10682
10683 -L* | -R* | -l*)
10684 # Some compilers place space between "-{L,R}" and the path.
10685 # Remove the space.
10686 if test $p = "-L" \
10687 || test $p = "-R"; then
10688 prev=$p
10689 continue
10690 else
10691 prev=
10692 fi
10693
10694 if test "$pre_test_object_deps_done" = no; then
10695 case $p in
10696 -L* | -R*)
10697 # Internal compiler library paths should come after those
10698 # provided the user. The postdeps already come after the
10699 # user supplied libs so there is no need to process them.
10700 if test -z "$compiler_lib_search_path_CXX"; then
10701 compiler_lib_search_path_CXX="${prev}${p}"
10702 else
10703 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10704 fi
10705 ;;
10706 # The "-l" case would never come before the object being
10707 # linked, so don't bother handling this case.
10708 esac
10709 else
10710 if test -z "$postdeps_CXX"; then
10711 postdeps_CXX="${prev}${p}"
10712 else
10713 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10714 fi
10715 fi
10716 ;;
10717
10718 *.$objext)
10719 # This assumes that the test object file only shows up
10720 # once in the compiler output.
10721 if test "$p" = "conftest.$objext"; then
10722 pre_test_object_deps_done=yes
10723 continue
10724 fi
10725
10726 if test "$pre_test_object_deps_done" = no; then
10727 if test -z "$predep_objects_CXX"; then
10728 predep_objects_CXX="$p"
10729 else
10730 predep_objects_CXX="$predep_objects_CXX $p"
10731 fi
10732 else
10733 if test -z "$postdep_objects_CXX"; then
10734 postdep_objects_CXX="$p"
10735 else
10736 postdep_objects_CXX="$postdep_objects_CXX $p"
10737 fi
10738 fi
10739 ;;
10740
10741 *) ;; # Ignore the rest.
10742
10743 esac
10744 done
10745
10746 # Clean up.
10747 rm -f a.out a.exe
10748 else
10749 echo "libtool.m4: error: problem compiling CXX test program"
10750 fi
10751
10752 $rm -f confest.$objext
10753
10754 case " $postdeps_CXX " in
10755 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10756 esac
10757
10758 lt_prog_compiler_wl_CXX=
10759 lt_prog_compiler_pic_CXX=
10760 lt_prog_compiler_static_CXX=
10761
10762 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10764
10765 # C++ specific cases for pic, static, wl, etc.
10766 if test "$GXX" = yes; then
10767 lt_prog_compiler_wl_CXX='-Wl,'
10768 lt_prog_compiler_static_CXX='-static'
10769
10770 case $host_os in
10771 aix*)
10772 # All AIX code is PIC.
10773 if test "$host_cpu" = ia64; then
10774 # AIX 5 now supports IA64 processor
10775 lt_prog_compiler_static_CXX='-Bstatic'
10776 fi
10777 ;;
10778 amigaos*)
10779 # FIXME: we need at least 68020 code to build shared libraries, but
10780 # adding the `-m68020' flag to GCC prevents building anything better,
10781 # like `-m68040'.
10782 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10783 ;;
10784 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10785 # PIC is the default for these OSes.
10786 ;;
10787 mingw* | os2* | pw32*)
10788 # This hack is so that the source file can tell whether it is being
10789 # built for inclusion in a dll (and should export symbols for example).
10790 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10791 ;;
10792 darwin* | rhapsody*)
10793 # PIC is the default on this platform
10794 # Common symbols not allowed in MH_DYLIB files
10795 lt_prog_compiler_pic_CXX='-fno-common'
10796 ;;
10797 *djgpp*)
10798 # DJGPP does not support shared libraries at all
10799 lt_prog_compiler_pic_CXX=
10800 ;;
10801 sysv4*MP*)
10802 if test -d /usr/nec; then
10803 lt_prog_compiler_pic_CXX=-Kconform_pic
10804 fi
10805 ;;
10806 hpux*)
10807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10808 # not for PA HP-UX.
10809 case "$host_cpu" in
10810 hppa*64*|ia64*)
10811 ;;
10812 *)
10813 lt_prog_compiler_pic_CXX='-fPIC'
10814 ;;
10815 esac
10816 ;;
10817 *)
10818 lt_prog_compiler_pic_CXX='-fPIC'
10819 ;;
10820 esac
10821 else
10822 case $host_os in
10823 aix4* | aix5*)
10824 # All AIX code is PIC.
10825 if test "$host_cpu" = ia64; then
10826 # AIX 5 now supports IA64 processor
10827 lt_prog_compiler_static_CXX='-Bstatic'
10828 else
10829 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10830 fi
10831 ;;
10832 chorus*)
10833 case $cc_basename in
10834 cxch68)
10835 # Green Hills C++ Compiler
10836 # _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"
10837 ;;
10838 esac
10839 ;;
10840 dgux*)
10841 case $cc_basename in
10842 ec++)
10843 lt_prog_compiler_pic_CXX='-KPIC'
10844 ;;
10845 ghcx)
10846 # Green Hills C++ Compiler
10847 lt_prog_compiler_pic_CXX='-pic'
10848 ;;
10849 *)
10850 ;;
10851 esac
10852 ;;
10853 freebsd* | kfreebsd*-gnu)
10854 # FreeBSD uses GNU C++
10855 ;;
10856 hpux9* | hpux10* | hpux11*)
10857 case $cc_basename in
10858 CC)
10859 lt_prog_compiler_wl_CXX='-Wl,'
10860 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10861 if test "$host_cpu" != ia64; then
10862 lt_prog_compiler_pic_CXX='+Z'
10863 fi
10864 ;;
10865 aCC)
10866 lt_prog_compiler_wl_CXX='-Wl,'
10867 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10868 case "$host_cpu" in
10869 hppa*64*|ia64*)
10870 # +Z the default
10871 ;;
10872 *)
10873 lt_prog_compiler_pic_CXX='+Z'
10874 ;;
10875 esac
10876 ;;
10877 *)
10878 ;;
10879 esac
10880 ;;
10881 irix5* | irix6* | nonstopux*)
10882 case $cc_basename in
10883 CC)
10884 lt_prog_compiler_wl_CXX='-Wl,'
10885 lt_prog_compiler_static_CXX='-non_shared'
10886 # CC pic flag -KPIC is the default.
10887 ;;
10888 *)
10889 ;;
10890 esac
10891 ;;
10892 linux*)
10893 case $cc_basename in
10894 KCC)
10895 # KAI C++ Compiler
10896 lt_prog_compiler_wl_CXX='--backend -Wl,'
10897 lt_prog_compiler_pic_CXX='-fPIC'
10898 ;;
10899 icpc)
10900 # Intel C++
10901 lt_prog_compiler_wl_CXX='-Wl,'
10902 lt_prog_compiler_pic_CXX='-KPIC'
10903 lt_prog_compiler_static_CXX='-static'
10904 ;;
10905 cxx)
10906 # Compaq C++
10907 # Make sure the PIC flag is empty. It appears that all Alpha
10908 # Linux and Compaq Tru64 Unix objects are PIC.
10909 lt_prog_compiler_pic_CXX=
10910 lt_prog_compiler_static_CXX='-non_shared'
10911 ;;
10912 *)
10913 ;;
10914 esac
10915 ;;
10916 lynxos*)
10917 ;;
10918 m88k*)
10919 ;;
10920 mvs*)
10921 case $cc_basename in
10922 cxx)
10923 lt_prog_compiler_pic_CXX='-W c,exportall'
10924 ;;
10925 *)
10926 ;;
10927 esac
10928 ;;
10929 netbsd*)
10930 ;;
10931 osf3* | osf4* | osf5*)
10932 case $cc_basename in
10933 KCC)
10934 lt_prog_compiler_wl_CXX='--backend -Wl,'
10935 ;;
10936 RCC)
10937 # Rational C++ 2.4.1
10938 lt_prog_compiler_pic_CXX='-pic'
10939 ;;
10940 cxx)
10941 # Digital/Compaq C++
10942 lt_prog_compiler_wl_CXX='-Wl,'
10943 # Make sure the PIC flag is empty. It appears that all Alpha
10944 # Linux and Compaq Tru64 Unix objects are PIC.
10945 lt_prog_compiler_pic_CXX=
10946 lt_prog_compiler_static_CXX='-non_shared'
10947 ;;
10948 *)
10949 ;;
10950 esac
10951 ;;
10952 psos*)
10953 ;;
10954 sco*)
10955 case $cc_basename in
10956 CC)
10957 lt_prog_compiler_pic_CXX='-fPIC'
10958 ;;
10959 *)
10960 ;;
10961 esac
10962 ;;
10963 solaris*)
10964 case $cc_basename in
10965 CC)
10966 # Sun C++ 4.2, 5.x and Centerline C++
10967 lt_prog_compiler_pic_CXX='-KPIC'
10968 lt_prog_compiler_static_CXX='-Bstatic'
10969 lt_prog_compiler_wl_CXX='-Qoption ld '
10970 ;;
10971 gcx)
10972 # Green Hills C++ Compiler
10973 lt_prog_compiler_pic_CXX='-PIC'
10974 ;;
10975 *)
10976 ;;
10977 esac
10978 ;;
10979 sunos4*)
10980 case $cc_basename in
10981 CC)
10982 # Sun C++ 4.x
10983 lt_prog_compiler_pic_CXX='-pic'
10984 lt_prog_compiler_static_CXX='-Bstatic'
10985 ;;
10986 lcc)
10987 # Lucid
10988 lt_prog_compiler_pic_CXX='-pic'
10989 ;;
10990 *)
10991 ;;
10992 esac
10993 ;;
10994 tandem*)
10995 case $cc_basename in
10996 NCC)
10997 # NonStop-UX NCC 3.20
10998 lt_prog_compiler_pic_CXX='-KPIC'
10999 ;;
11000 *)
11001 ;;
11002 esac
11003 ;;
11004 unixware*)
11005 ;;
11006 vxworks*)
11007 ;;
11008 *)
11009 lt_prog_compiler_can_build_shared_CXX=no
11010 ;;
11011 esac
11012 fi
11013
11014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11015 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11016
11017 #
11018 # Check to make sure the PIC flag actually works.
11019 #
11020 if test -n "$lt_prog_compiler_pic_CXX"; then
11021
11022 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11023 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11024 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027 lt_prog_compiler_pic_works_CXX=no
11028 ac_outfile=conftest.$ac_objext
11029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11030 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11031 # Insert the option either (1) after the last *FLAGS variable, or
11032 # (2) before a word containing "conftest.", or (3) at the end.
11033 # Note that $ac_compile itself does not contain backslashes and begins
11034 # with a dollar sign (not a hyphen), so the echo should work correctly.
11035 # The option is referenced via a variable to avoid confusing sed.
11036 lt_compile=`echo "$ac_compile" | $SED \
11037 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11039 -e 's:$: $lt_compiler_flag:'`
11040 (eval echo "\"\$as_me:11040: $lt_compile\"" >&5)
11041 (eval "$lt_compile" 2>conftest.err)
11042 ac_status=$?
11043 cat conftest.err >&5
11044 echo "$as_me:11044: \$? = $ac_status" >&5
11045 if (exit $ac_status) && test -s "$ac_outfile"; then
11046 # The compiler can only warn and ignore the option if not recognized
11047 # So say no if there are warnings
11048 if test ! -s conftest.err; then
11049 lt_prog_compiler_pic_works_CXX=yes
11050 fi
11051 fi
11052 $rm conftest*
11053
11054 fi
11055 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11056 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11057
11058 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11059 case $lt_prog_compiler_pic_CXX in
11060 "" | " "*) ;;
11061 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11062 esac
11063 else
11064 lt_prog_compiler_pic_CXX=
11065 lt_prog_compiler_can_build_shared_CXX=no
11066 fi
11067
11068 fi
11069 case "$host_os" in
11070 # For platforms which do not support PIC, -DPIC is meaningless:
11071 *djgpp*)
11072 lt_prog_compiler_pic_CXX=
11073 ;;
11074 *)
11075 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11076 ;;
11077 esac
11078
11079 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11080 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11081 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 lt_cv_prog_compiler_c_o_CXX=no
11085 $rm -r conftest 2>/dev/null
11086 mkdir conftest
11087 cd conftest
11088 mkdir out
11089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11090
11091 lt_compiler_flag="-o out/conftest2.$ac_objext"
11092 # Insert the option either (1) after the last *FLAGS variable, or
11093 # (2) before a word containing "conftest.", or (3) at the end.
11094 # Note that $ac_compile itself does not contain backslashes and begins
11095 # with a dollar sign (not a hyphen), so the echo should work correctly.
11096 lt_compile=`echo "$ac_compile" | $SED \
11097 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11099 -e 's:$: $lt_compiler_flag:'`
11100 (eval echo "\"\$as_me:11100: $lt_compile\"" >&5)
11101 (eval "$lt_compile" 2>out/conftest.err)
11102 ac_status=$?
11103 cat out/conftest.err >&5
11104 echo "$as_me:11104: \$? = $ac_status" >&5
11105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11106 then
11107 # The compiler can only warn and ignore the option if not recognized
11108 # So say no if there are warnings
11109 if test ! -s out/conftest.err; then
11110 lt_cv_prog_compiler_c_o_CXX=yes
11111 fi
11112 fi
11113 chmod u+w .
11114 $rm conftest*
11115 # SGI C++ compiler will create directory out/ii_files/ for
11116 # template instantiation
11117 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11118 $rm out/* && rmdir out
11119 cd ..
11120 rmdir conftest
11121 $rm conftest*
11122
11123 fi
11124 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11126
11127
11128 hard_links="nottested"
11129 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11130 # do not overwrite the value of need_locks provided by the user
11131 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11133 hard_links=yes
11134 $rm conftest*
11135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11136 touch conftest.a
11137 ln conftest.a conftest.b 2>&5 || hard_links=no
11138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11139 echo "$as_me:$LINENO: result: $hard_links" >&5
11140 echo "${ECHO_T}$hard_links" >&6
11141 if test "$hard_links" = no; then
11142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11144 need_locks=warn
11145 fi
11146 else
11147 need_locks=no
11148 fi
11149
11150 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11152
11153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11154 case $host_os in
11155 aix4* | aix5*)
11156 # If we're using GNU nm, then we don't want the "-C" option.
11157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11159 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'
11160 else
11161 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'
11162 fi
11163 ;;
11164 pw32*)
11165 export_symbols_cmds_CXX="$ltdll_cmds"
11166 ;;
11167 cygwin* | mingw*)
11168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11169 ;;
11170 *)
11171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11172 ;;
11173 esac
11174
11175 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11176 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11177 test "$ld_shlibs_CXX" = no && can_build_shared=no
11178
11179 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11180 if test "$GCC" = yes; then
11181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11182 fi
11183
11184 #
11185 # Do we need to explicitly link libc?
11186 #
11187 case "x$archive_cmds_need_lc_CXX" in
11188 x|xyes)
11189 # Assume -lc should be added
11190 archive_cmds_need_lc_CXX=yes
11191
11192 if test "$enable_shared" = yes && test "$GCC" = yes; then
11193 case $archive_cmds_CXX in
11194 *'~'*)
11195 # FIXME: we may have to deal with multi-command sequences.
11196 ;;
11197 '$CC '*)
11198 # Test whether the compiler implicitly links with -lc since on some
11199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11200 # to ld, don't add -lc before -lgcc.
11201 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11202 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11203 $rm conftest*
11204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11205
11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11207 (eval $ac_compile) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } 2>conftest.err; then
11211 soname=conftest
11212 lib=conftest
11213 libobjs=conftest.$ac_objext
11214 deplibs=
11215 wl=$lt_prog_compiler_wl_CXX
11216 compiler_flags=-v
11217 linker_flags=-v
11218 verstring=
11219 output_objdir=.
11220 libname=conftest
11221 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11222 allow_undefined_flag_CXX=
11223 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11224 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }
11228 then
11229 archive_cmds_need_lc_CXX=no
11230 else
11231 archive_cmds_need_lc_CXX=yes
11232 fi
11233 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11234 else
11235 cat conftest.err 1>&5
11236 fi
11237 $rm conftest*
11238 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11239 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11240 ;;
11241 esac
11242 fi
11243 ;;
11244 esac
11245
11246 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11247 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11248 library_names_spec=
11249 libname_spec='lib$name'
11250 soname_spec=
11251 shrext_cmds=".so"
11252 postinstall_cmds=
11253 postuninstall_cmds=
11254 finish_cmds=
11255 finish_eval=
11256 shlibpath_var=
11257 shlibpath_overrides_runpath=unknown
11258 version_type=none
11259 dynamic_linker="$host_os ld.so"
11260 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11261 if test "$GCC" = yes; then
11262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11263 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11264 # if the path contains ";" then we assume it to be the separator
11265 # otherwise default to the standard path separator (i.e. ":") - it is
11266 # assumed that no part of a normal pathname contains ";" but that should
11267 # okay in the real world where ";" in dirpaths is itself problematic.
11268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11269 else
11270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11271 fi
11272 else
11273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11274 fi
11275 need_lib_prefix=unknown
11276 hardcode_into_libs=no
11277
11278 # when you set need_version to no, make sure it does not cause -set_version
11279 # flags to be left without arguments
11280 need_version=unknown
11281
11282 case $host_os in
11283 aix3*)
11284 version_type=linux
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11286 shlibpath_var=LIBPATH
11287
11288 # AIX 3 has no versioning support, so we append a major version to the name.
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 ;;
11291
11292 aix4* | aix5*)
11293 version_type=linux
11294 need_lib_prefix=no
11295 need_version=no
11296 hardcode_into_libs=yes
11297 if test "$host_cpu" = ia64; then
11298 # AIX 5 supports IA64
11299 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 else
11302 # With GCC up to 2.95.x, collect2 would create an import file
11303 # for dependence libraries. The import file would start with
11304 # the line `#! .'. This would cause the generated library to
11305 # depend on `.', always an invalid library. This was fixed in
11306 # development snapshots of GCC prior to 3.0.
11307 case $host_os in
11308 aix4 | aix4.[01] | aix4.[01].*)
11309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11310 echo ' yes '
11311 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11312 :
11313 else
11314 can_build_shared=no
11315 fi
11316 ;;
11317 esac
11318 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11319 # soname into executable. Probably we can add versioning support to
11320 # collect2, so additional links can be useful in future.
11321 if test "$aix_use_runtimelinking" = yes; then
11322 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11323 # instead of lib<name>.a to let people know that these are not
11324 # typical AIX shared libraries.
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 else
11327 # We preserve .a as extension for shared libraries through AIX4.2
11328 # and later when we are not doing run time linking.
11329 library_names_spec='${libname}${release}.a $libname.a'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 fi
11332 shlibpath_var=LIBPATH
11333 fi
11334 ;;
11335
11336 amigaos*)
11337 library_names_spec='$libname.ixlibrary $libname.a'
11338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11339 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'
11340 ;;
11341
11342 beos*)
11343 library_names_spec='${libname}${shared_ext}'
11344 dynamic_linker="$host_os ld.so"
11345 shlibpath_var=LIBRARY_PATH
11346 ;;
11347
11348 bsdi4*)
11349 version_type=linux
11350 need_version=no
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11357 # the default ld.so.conf also contains /usr/contrib/lib and
11358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11359 # libtool to hard-code these into programs
11360 ;;
11361
11362 cygwin* | mingw* | pw32*)
11363 version_type=windows
11364 shrext_cmds=".dll"
11365 need_version=no
11366 need_lib_prefix=no
11367
11368 case $GCC,$host_os in
11369 yes,cygwin* | yes,mingw* | yes,pw32*)
11370 library_names_spec='$libname.dll.a'
11371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11372 postinstall_cmds='base_file=`basename \${file}`~
11373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11374 dldir=$destdir/`dirname \$dlpath`~
11375 test -d \$dldir || mkdir -p \$dldir~
11376 $install_prog $dir/$dlname \$dldir/$dlname'
11377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11378 dlpath=$dir/\$dldll~
11379 $rm \$dlpath'
11380 shlibpath_overrides_runpath=yes
11381
11382 case $host_os in
11383 cygwin*)
11384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11387 ;;
11388 mingw*)
11389 # MinGW DLLs use traditional 'lib' prefix
11390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11393 # It is most probably a Windows format PATH printed by
11394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11395 # path with ; separators, and with drive letters. We can handle the
11396 # drive letters (cygwin fileutils understands them), so leave them,
11397 # especially as we might pass files found there to a mingw objdump,
11398 # which wouldn't understand a cygwinified path. Ahh.
11399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11400 else
11401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11402 fi
11403 ;;
11404 pw32*)
11405 # pw32 DLLs use 'pw' prefix rather than 'lib'
11406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11407 ;;
11408 esac
11409 ;;
11410
11411 *)
11412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11413 ;;
11414 esac
11415 dynamic_linker='Win32 ld.exe'
11416 # FIXME: first we should search . and the directory the executable is in
11417 shlibpath_var=PATH
11418 ;;
11419
11420 darwin* | rhapsody*)
11421 dynamic_linker="$host_os dyld"
11422 version_type=darwin
11423 need_lib_prefix=no
11424 need_version=no
11425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11426 soname_spec='${libname}${release}${major}$shared_ext'
11427 shlibpath_overrides_runpath=yes
11428 shlibpath_var=DYLD_LIBRARY_PATH
11429 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11430 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11431 if test "$GCC" = yes; then
11432 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"`
11433 else
11434 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11435 fi
11436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11437 ;;
11438
11439 dgux*)
11440 version_type=linux
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 ;;
11447
11448 freebsd1*)
11449 dynamic_linker=no
11450 ;;
11451
11452 kfreebsd*-gnu)
11453 version_type=linux
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=no
11460 hardcode_into_libs=yes
11461 dynamic_linker='GNU ld.so'
11462 ;;
11463
11464 freebsd*)
11465 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11466 version_type=freebsd-$objformat
11467 case $version_type in
11468 freebsd-elf*)
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11470 need_version=no
11471 need_lib_prefix=no
11472 ;;
11473 freebsd-*)
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11475 need_version=yes
11476 ;;
11477 esac
11478 shlibpath_var=LD_LIBRARY_PATH
11479 case $host_os in
11480 freebsd2*)
11481 shlibpath_overrides_runpath=yes
11482 ;;
11483 freebsd3.01* | freebsdelf3.01*)
11484 shlibpath_overrides_runpath=yes
11485 hardcode_into_libs=yes
11486 ;;
11487 *) # from 3.2 on
11488 shlibpath_overrides_runpath=no
11489 hardcode_into_libs=yes
11490 ;;
11491 esac
11492 ;;
11493
11494 gnu*)
11495 version_type=linux
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 hardcode_into_libs=yes
11502 ;;
11503
11504 hpux9* | hpux10* | hpux11*)
11505 # Give a soname corresponding to the major version so that dld.sl refuses to
11506 # link against other versions.
11507 version_type=sunos
11508 need_lib_prefix=no
11509 need_version=no
11510 case "$host_cpu" in
11511 ia64*)
11512 shrext_cmds='.so'
11513 hardcode_into_libs=yes
11514 dynamic_linker="$host_os dld.so"
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 if test "X$HPUX_IA64_MODE" = X32; then
11520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11521 else
11522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11523 fi
11524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11525 ;;
11526 hppa*64*)
11527 shrext_cmds='.sl'
11528 hardcode_into_libs=yes
11529 dynamic_linker="$host_os dld.sl"
11530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11536 ;;
11537 *)
11538 shrext_cmds='.sl'
11539 dynamic_linker="$host_os dld.sl"
11540 shlibpath_var=SHLIB_PATH
11541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 ;;
11545 esac
11546 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11547 postinstall_cmds='chmod 555 $lib'
11548 ;;
11549
11550 irix5* | irix6* | nonstopux*)
11551 case $host_os in
11552 nonstopux*) version_type=nonstopux ;;
11553 *)
11554 if test "$lt_cv_prog_gnu_ld" = yes; then
11555 version_type=linux
11556 else
11557 version_type=irix
11558 fi ;;
11559 esac
11560 need_lib_prefix=no
11561 need_version=no
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 case $host_os in
11565 irix5* | nonstopux*)
11566 libsuff= shlibsuff=
11567 ;;
11568 *)
11569 case $LD in # libtool.m4 will add one of these switches to LD
11570 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11571 libsuff= shlibsuff= libmagic=32-bit;;
11572 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11573 libsuff=32 shlibsuff=N32 libmagic=N32;;
11574 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11575 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11576 *) libsuff= shlibsuff= libmagic=never-match;;
11577 esac
11578 ;;
11579 esac
11580 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11581 shlibpath_overrides_runpath=no
11582 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11583 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11584 hardcode_into_libs=yes
11585 ;;
11586
11587 # No shared lib support for Linux oldld, aout, or coff.
11588 linux*oldld* | linux*aout* | linux*coff*)
11589 dynamic_linker=no
11590 ;;
11591
11592 # This must be Linux ELF.
11593 linux*)
11594 version_type=linux
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=no
11602 # This implies no fast_install, which is unacceptable.
11603 # Some rework will be needed to allow for fast_install
11604 # before this can be enabled.
11605 hardcode_into_libs=yes
11606
11607 # find out which ABI we are using
11608 libsuff=
11609 case "$host_cpu" in
11610 x86_64*|s390x*|powerpc64*)
11611 echo '#line 11611 "configure"' > conftest.$ac_ext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; then
11617 case `/usr/bin/file conftest.$ac_objext` in
11618 *64-bit*)
11619 libsuff=64
11620 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11621 ;;
11622 esac
11623 fi
11624 rm -rf conftest*
11625 ;;
11626 esac
11627
11628 # Append ld.so.conf contents to the search path
11629 if test -f /etc/ld.so.conf; then
11630 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11631 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11632 fi
11633
11634 # We used to test for /lib/ld.so.1 and disable shared libraries on
11635 # powerpc, because MkLinux only supported shared libraries with the
11636 # GNU dynamic linker. Since this was broken with cross compilers,
11637 # most powerpc-linux boxes support dynamic linking these days and
11638 # people can always --disable-shared, the test was removed, and we
11639 # assume the GNU/Linux dynamic linker is in use.
11640 dynamic_linker='GNU/Linux ld.so'
11641 ;;
11642
11643 knetbsd*-gnu)
11644 version_type=linux
11645 need_lib_prefix=no
11646 need_version=no
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=no
11651 hardcode_into_libs=yes
11652 dynamic_linker='GNU ld.so'
11653 ;;
11654
11655 netbsd*)
11656 version_type=sunos
11657 need_lib_prefix=no
11658 need_version=no
11659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11662 dynamic_linker='NetBSD (a.out) ld.so'
11663 else
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 dynamic_linker='NetBSD ld.elf_so'
11667 fi
11668 shlibpath_var=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath=yes
11670 hardcode_into_libs=yes
11671 ;;
11672
11673 newsos6)
11674 version_type=linux
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 shlibpath_overrides_runpath=yes
11678 ;;
11679
11680 nto-qnx*)
11681 version_type=linux
11682 need_lib_prefix=no
11683 need_version=no
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 soname_spec='${libname}${release}${shared_ext}$major'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes
11688 ;;
11689
11690 openbsd*)
11691 version_type=sunos
11692 need_lib_prefix=no
11693 need_version=yes
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698 case $host_os in
11699 openbsd2.[89] | openbsd2.[89].*)
11700 shlibpath_overrides_runpath=no
11701 ;;
11702 *)
11703 shlibpath_overrides_runpath=yes
11704 ;;
11705 esac
11706 else
11707 shlibpath_overrides_runpath=yes
11708 fi
11709 ;;
11710
11711 os2*)
11712 libname_spec='$name'
11713 shrext_cmds=".dll"
11714 need_lib_prefix=no
11715 library_names_spec='$libname${shared_ext} $libname.a'
11716 dynamic_linker='OS/2 ld.exe'
11717 shlibpath_var=LIBPATH
11718 ;;
11719
11720 osf3* | osf4* | osf5*)
11721 version_type=osf
11722 need_lib_prefix=no
11723 need_version=no
11724 soname_spec='${libname}${release}${shared_ext}$major'
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11729 ;;
11730
11731 sco3.2v5*)
11732 version_type=osf
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 ;;
11737
11738 solaris*)
11739 version_type=linux
11740 need_lib_prefix=no
11741 need_version=no
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=yes
11746 hardcode_into_libs=yes
11747 # ldd complains unless libraries are executable
11748 postinstall_cmds='chmod +x $lib'
11749 ;;
11750
11751 sunos4*)
11752 version_type=sunos
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=yes
11757 if test "$with_gnu_ld" = yes; then
11758 need_lib_prefix=no
11759 fi
11760 need_version=yes
11761 ;;
11762
11763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11764 version_type=linux
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 case $host_vendor in
11769 sni)
11770 shlibpath_overrides_runpath=no
11771 need_lib_prefix=no
11772 export_dynamic_flag_spec='${wl}-Blargedynsym'
11773 runpath_var=LD_RUN_PATH
11774 ;;
11775 siemens)
11776 need_lib_prefix=no
11777 ;;
11778 motorola)
11779 need_lib_prefix=no
11780 need_version=no
11781 shlibpath_overrides_runpath=no
11782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11783 ;;
11784 esac
11785 ;;
11786
11787 sysv4*MP*)
11788 if test -d /usr/nec ;then
11789 version_type=linux
11790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11791 soname_spec='$libname${shared_ext}.$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 fi
11794 ;;
11795
11796 uts4*)
11797 version_type=linux
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 ;;
11802
11803 *)
11804 dynamic_linker=no
11805 ;;
11806 esac
11807 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11808 echo "${ECHO_T}$dynamic_linker" >&6
11809 test "$dynamic_linker" = no && can_build_shared=no
11810
11811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11813 hardcode_action_CXX=
11814 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11815 test -n "$runpath_var CXX" || \
11816 test "X$hardcode_automatic_CXX"="Xyes" ; then
11817
11818 # We can hardcode non-existant directories.
11819 if test "$hardcode_direct_CXX" != no &&
11820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11821 # have to relink, otherwise we might link with an installed library
11822 # when we should be linking with a yet-to-be-installed one
11823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11824 test "$hardcode_minus_L_CXX" != no; then
11825 # Linking always hardcodes the temporary library directory.
11826 hardcode_action_CXX=relink
11827 else
11828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11829 hardcode_action_CXX=immediate
11830 fi
11831 else
11832 # We cannot hardcode anything, or else we can only hardcode existing
11833 # directories.
11834 hardcode_action_CXX=unsupported
11835 fi
11836 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11837 echo "${ECHO_T}$hardcode_action_CXX" >&6
11838
11839 if test "$hardcode_action_CXX" = relink; then
11840 # Fast installation is not supported
11841 enable_fast_install=no
11842 elif test "$shlibpath_overrides_runpath" = yes ||
11843 test "$enable_shared" = no; then
11844 # Fast installation is not necessary
11845 enable_fast_install=needless
11846 fi
11847
11848 striplib=
11849 old_striplib=
11850 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11852 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11855 echo "$as_me:$LINENO: result: yes" >&5
11856 echo "${ECHO_T}yes" >&6
11857 else
11858 # FIXME - insert some real tests, host_os isn't really good enough
11859 case $host_os in
11860 darwin*)
11861 if test -n "$STRIP" ; then
11862 striplib="$STRIP -x"
11863 echo "$as_me:$LINENO: result: yes" >&5
11864 echo "${ECHO_T}yes" >&6
11865 else
11866 echo "$as_me:$LINENO: result: no" >&5
11867 echo "${ECHO_T}no" >&6
11868 fi
11869 ;;
11870 *)
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 ;;
11874 esac
11875 fi
11876
11877 if test "x$enable_dlopen" != xyes; then
11878 enable_dlopen=unknown
11879 enable_dlopen_self=unknown
11880 enable_dlopen_self_static=unknown
11881 else
11882 lt_cv_dlopen=no
11883 lt_cv_dlopen_libs=
11884
11885 case $host_os in
11886 beos*)
11887 lt_cv_dlopen="load_add_on"
11888 lt_cv_dlopen_libs=
11889 lt_cv_dlopen_self=yes
11890 ;;
11891
11892 mingw* | pw32*)
11893 lt_cv_dlopen="LoadLibrary"
11894 lt_cv_dlopen_libs=
11895 ;;
11896
11897 cygwin*)
11898 lt_cv_dlopen="dlopen"
11899 lt_cv_dlopen_libs=
11900 ;;
11901
11902 darwin*)
11903 # if libdl is installed we need to link against it
11904 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-ldl $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char dlopen ();
11925 int
11926 main ()
11927 {
11928 dlopen ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_cxx_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_lib_dl_dlopen=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_cv_lib_dl_dlopen=no
11961 fi
11962 rm -f conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11967 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11968 if test $ac_cv_lib_dl_dlopen = yes; then
11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11970 else
11971
11972 lt_cv_dlopen="dyld"
11973 lt_cv_dlopen_libs=
11974 lt_cv_dlopen_self=yes
11975
11976 fi
11977
11978 ;;
11979
11980 *)
11981 echo "$as_me:$LINENO: checking for shl_load" >&5
11982 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11983 if test "${ac_cv_func_shl_load+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994 #define shl_load innocuous_shl_load
11995
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char shl_load (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12000
12001 #ifdef __STDC__
12002 # include <limits.h>
12003 #else
12004 # include <assert.h>
12005 #endif
12006
12007 #undef shl_load
12008
12009 /* Override any gcc2 internal prototype to avoid an error. */
12010 #ifdef __cplusplus
12011 extern "C"
12012 {
12013 #endif
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016 char shl_load ();
12017 /* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12021 choke me
12022 #else
12023 char (*f) () = shl_load;
12024 #endif
12025 #ifdef __cplusplus
12026 }
12027 #endif
12028
12029 int
12030 main ()
12031 {
12032 return f != shl_load;
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_cxx_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_func_shl_load=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_cv_func_shl_load=no
12065 fi
12066 rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 fi
12069 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12070 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12071 if test $ac_cv_func_shl_load = yes; then
12072 lt_cv_dlopen="shl_load"
12073 else
12074 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12075 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12076 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079 ac_check_lib_save_LIBS=$LIBS
12080 LIBS="-ldld $LIBS"
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087
12088 /* Override any gcc2 internal prototype to avoid an error. */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 /* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094 char shl_load ();
12095 int
12096 main ()
12097 {
12098 shl_load ();
12099 ;
12100 return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_cxx_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_dld_shl_load=yes
12126 else
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_lib_dld_shl_load=no
12131 fi
12132 rm -f conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12135 fi
12136 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12138 if test $ac_cv_lib_dld_shl_load = yes; then
12139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12140 else
12141 echo "$as_me:$LINENO: checking for dlopen" >&5
12142 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12143 if test "${ac_cv_func_dlopen+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 else
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12154 #define dlopen innocuous_dlopen
12155
12156 /* System header to define __stub macros and hopefully few prototypes,
12157 which can conflict with char dlopen (); below.
12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12159 <limits.h> exists even on freestanding compilers. */
12160
12161 #ifdef __STDC__
12162 # include <limits.h>
12163 #else
12164 # include <assert.h>
12165 #endif
12166
12167 #undef dlopen
12168
12169 /* Override any gcc2 internal prototype to avoid an error. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 {
12173 #endif
12174 /* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12176 char dlopen ();
12177 /* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12181 choke me
12182 #else
12183 char (*f) () = dlopen;
12184 #endif
12185 #ifdef __cplusplus
12186 }
12187 #endif
12188
12189 int
12190 main ()
12191 {
12192 return f != dlopen;
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_cxx_werror_flag"
12207 || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_func_dlopen=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_cv_func_dlopen=no
12225 fi
12226 rm -f conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
12228 fi
12229 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12230 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12231 if test $ac_cv_func_dlopen = yes; then
12232 lt_cv_dlopen="dlopen"
12233 else
12234 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-ldl $LIBS"
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247
12248 /* Override any gcc2 internal prototype to avoid an error. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12254 char dlopen ();
12255 int
12256 main ()
12257 {
12258 dlopen ();
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_cxx_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest$ac_exeext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_lib_dl_dlopen=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 ac_cv_lib_dl_dlopen=no
12291 fi
12292 rm -f conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12295 fi
12296 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12297 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12298 if test $ac_cv_lib_dl_dlopen = yes; then
12299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12300 else
12301 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12302 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12303 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lsvld $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char dlopen ();
12322 int
12323 main ()
12324 {
12325 dlopen ();
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_cxx_werror_flag"
12340 || test ! -s conftest.err'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_lib_svld_dlopen=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ac_cv_lib_svld_dlopen=no
12358 fi
12359 rm -f conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12362 fi
12363 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12364 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12365 if test $ac_cv_lib_svld_dlopen = yes; then
12366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12367 else
12368 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12369 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12370 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373 ac_check_lib_save_LIBS=$LIBS
12374 LIBS="-ldld $LIBS"
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381
12382 /* Override any gcc2 internal prototype to avoid an error. */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12388 char dld_link ();
12389 int
12390 main ()
12391 {
12392 dld_link ();
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399 (eval $ac_link) 2>conftest.er1
12400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_cxx_werror_flag"
12407 || test ! -s conftest.err'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; } &&
12413 { ac_try='test -s conftest$ac_exeext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 ac_cv_lib_dld_dld_link=yes
12420 else
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_cv_lib_dld_dld_link=no
12425 fi
12426 rm -f conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12429 fi
12430 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12431 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12432 if test $ac_cv_lib_dld_dld_link = yes; then
12433 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12434 fi
12435
12436
12437 fi
12438
12439
12440 fi
12441
12442
12443 fi
12444
12445
12446 fi
12447
12448
12449 fi
12450
12451 ;;
12452 esac
12453
12454 if test "x$lt_cv_dlopen" != xno; then
12455 enable_dlopen=yes
12456 else
12457 enable_dlopen=no
12458 fi
12459
12460 case $lt_cv_dlopen in
12461 dlopen)
12462 save_CPPFLAGS="$CPPFLAGS"
12463 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12464
12465 save_LDFLAGS="$LDFLAGS"
12466 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12467
12468 save_LIBS="$LIBS"
12469 LIBS="$lt_cv_dlopen_libs $LIBS"
12470
12471 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12472 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12473 if test "${lt_cv_dlopen_self+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476 if test "$cross_compiling" = yes; then :
12477 lt_cv_dlopen_self=cross
12478 else
12479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12480 lt_status=$lt_dlunknown
12481 cat > conftest.$ac_ext <<EOF
12482 #line 12482 "configure"
12483 #include "confdefs.h"
12484
12485 #if HAVE_DLFCN_H
12486 #include <dlfcn.h>
12487 #endif
12488
12489 #include <stdio.h>
12490
12491 #ifdef RTLD_GLOBAL
12492 # define LT_DLGLOBAL RTLD_GLOBAL
12493 #else
12494 # ifdef DL_GLOBAL
12495 # define LT_DLGLOBAL DL_GLOBAL
12496 # else
12497 # define LT_DLGLOBAL 0
12498 # endif
12499 #endif
12500
12501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12502 find out it does not work in some platform. */
12503 #ifndef LT_DLLAZY_OR_NOW
12504 # ifdef RTLD_LAZY
12505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12506 # else
12507 # ifdef DL_LAZY
12508 # define LT_DLLAZY_OR_NOW DL_LAZY
12509 # else
12510 # ifdef RTLD_NOW
12511 # define LT_DLLAZY_OR_NOW RTLD_NOW
12512 # else
12513 # ifdef DL_NOW
12514 # define LT_DLLAZY_OR_NOW DL_NOW
12515 # else
12516 # define LT_DLLAZY_OR_NOW 0
12517 # endif
12518 # endif
12519 # endif
12520 # endif
12521 #endif
12522
12523 #ifdef __cplusplus
12524 extern "C" void exit (int);
12525 #endif
12526
12527 void fnord() { int i=42;}
12528 int main ()
12529 {
12530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12531 int status = $lt_dlunknown;
12532
12533 if (self)
12534 {
12535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12536 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12537 /* dlclose (self); */
12538 }
12539
12540 exit (status);
12541 }
12542 EOF
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12548 (./conftest; exit; ) 2>/dev/null
12549 lt_status=$?
12550 case x$lt_status in
12551 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12552 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12553 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12554 esac
12555 else :
12556 # compilation failed
12557 lt_cv_dlopen_self=no
12558 fi
12559 fi
12560 rm -fr conftest*
12561
12562
12563 fi
12564 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12565 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12566
12567 if test "x$lt_cv_dlopen_self" = xyes; then
12568 LDFLAGS="$LDFLAGS $link_static_flag"
12569 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12570 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12571 if test "${lt_cv_dlopen_self_static+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 if test "$cross_compiling" = yes; then :
12575 lt_cv_dlopen_self_static=cross
12576 else
12577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12578 lt_status=$lt_dlunknown
12579 cat > conftest.$ac_ext <<EOF
12580 #line 12580 "configure"
12581 #include "confdefs.h"
12582
12583 #if HAVE_DLFCN_H
12584 #include <dlfcn.h>
12585 #endif
12586
12587 #include <stdio.h>
12588
12589 #ifdef RTLD_GLOBAL
12590 # define LT_DLGLOBAL RTLD_GLOBAL
12591 #else
12592 # ifdef DL_GLOBAL
12593 # define LT_DLGLOBAL DL_GLOBAL
12594 # else
12595 # define LT_DLGLOBAL 0
12596 # endif
12597 #endif
12598
12599 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12600 find out it does not work in some platform. */
12601 #ifndef LT_DLLAZY_OR_NOW
12602 # ifdef RTLD_LAZY
12603 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12604 # else
12605 # ifdef DL_LAZY
12606 # define LT_DLLAZY_OR_NOW DL_LAZY
12607 # else
12608 # ifdef RTLD_NOW
12609 # define LT_DLLAZY_OR_NOW RTLD_NOW
12610 # else
12611 # ifdef DL_NOW
12612 # define LT_DLLAZY_OR_NOW DL_NOW
12613 # else
12614 # define LT_DLLAZY_OR_NOW 0
12615 # endif
12616 # endif
12617 # endif
12618 # endif
12619 #endif
12620
12621 #ifdef __cplusplus
12622 extern "C" void exit (int);
12623 #endif
12624
12625 void fnord() { int i=42;}
12626 int main ()
12627 {
12628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12629 int status = $lt_dlunknown;
12630
12631 if (self)
12632 {
12633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12634 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12635 /* dlclose (self); */
12636 }
12637
12638 exit (status);
12639 }
12640 EOF
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12646 (./conftest; exit; ) 2>/dev/null
12647 lt_status=$?
12648 case x$lt_status in
12649 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12650 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12651 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12652 esac
12653 else :
12654 # compilation failed
12655 lt_cv_dlopen_self_static=no
12656 fi
12657 fi
12658 rm -fr conftest*
12659
12660
12661 fi
12662 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12663 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12664 fi
12665
12666 CPPFLAGS="$save_CPPFLAGS"
12667 LDFLAGS="$save_LDFLAGS"
12668 LIBS="$save_LIBS"
12669 ;;
12670 esac
12671
12672 case $lt_cv_dlopen_self in
12673 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12674 *) enable_dlopen_self=unknown ;;
12675 esac
12676
12677 case $lt_cv_dlopen_self_static in
12678 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12679 *) enable_dlopen_self_static=unknown ;;
12680 esac
12681 fi
12682
12683
12684 # The else clause should only fire when bootstrapping the
12685 # libtool distribution, otherwise you forgot to ship ltmain.sh
12686 # with your package, and you will get complaints that there are
12687 # no rules to generate ltmain.sh.
12688 if test -f "$ltmain"; then
12689 # See if we are running on zsh, and set the options which allow our commands through
12690 # without removal of \ escapes.
12691 if test -n "${ZSH_VERSION+set}" ; then
12692 setopt NO_GLOB_SUBST
12693 fi
12694 # Now quote all the things that may contain metacharacters while being
12695 # careful not to overquote the AC_SUBSTed values. We take copies of the
12696 # variables and quote the copies for generation of the libtool script.
12697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12698 SED SHELL STRIP \
12699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12701 deplibs_check_method reload_flag reload_cmds need_locks \
12702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12703 lt_cv_sys_global_symbol_to_c_name_address \
12704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12705 old_postinstall_cmds old_postuninstall_cmds \
12706 compiler_CXX \
12707 CC_CXX \
12708 LD_CXX \
12709 lt_prog_compiler_wl_CXX \
12710 lt_prog_compiler_pic_CXX \
12711 lt_prog_compiler_static_CXX \
12712 lt_prog_compiler_no_builtin_flag_CXX \
12713 export_dynamic_flag_spec_CXX \
12714 thread_safe_flag_spec_CXX \
12715 whole_archive_flag_spec_CXX \
12716 enable_shared_with_static_runtimes_CXX \
12717 old_archive_cmds_CXX \
12718 old_archive_from_new_cmds_CXX \
12719 predep_objects_CXX \
12720 postdep_objects_CXX \
12721 predeps_CXX \
12722 postdeps_CXX \
12723 compiler_lib_search_path_CXX \
12724 archive_cmds_CXX \
12725 archive_expsym_cmds_CXX \
12726 postinstall_cmds_CXX \
12727 postuninstall_cmds_CXX \
12728 old_archive_from_expsyms_cmds_CXX \
12729 allow_undefined_flag_CXX \
12730 no_undefined_flag_CXX \
12731 export_symbols_cmds_CXX \
12732 hardcode_libdir_flag_spec_CXX \
12733 hardcode_libdir_flag_spec_ld_CXX \
12734 hardcode_libdir_separator_CXX \
12735 hardcode_automatic_CXX \
12736 module_cmds_CXX \
12737 module_expsym_cmds_CXX \
12738 lt_cv_prog_compiler_c_o_CXX \
12739 exclude_expsyms_CXX \
12740 include_expsyms_CXX; do
12741
12742 case $var in
12743 old_archive_cmds_CXX | \
12744 old_archive_from_new_cmds_CXX | \
12745 archive_cmds_CXX | \
12746 archive_expsym_cmds_CXX | \
12747 module_cmds_CXX | \
12748 module_expsym_cmds_CXX | \
12749 old_archive_from_expsyms_cmds_CXX | \
12750 export_symbols_cmds_CXX | \
12751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12752 postinstall_cmds | postuninstall_cmds | \
12753 old_postinstall_cmds | old_postuninstall_cmds | \
12754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12755 # Double-quote double-evaled strings.
12756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12757 ;;
12758 *)
12759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12760 ;;
12761 esac
12762 done
12763
12764 case $lt_echo in
12765 *'\$0 --fallback-echo"')
12766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12767 ;;
12768 esac
12769
12770 cfgfile="$ofile"
12771
12772 cat <<__EOF__ >> "$cfgfile"
12773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12774
12775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12776
12777 # Shell to use when invoking shell scripts.
12778 SHELL=$lt_SHELL
12779
12780 # Whether or not to build shared libraries.
12781 build_libtool_libs=$enable_shared
12782
12783 # Whether or not to build static libraries.
12784 build_old_libs=$enable_static
12785
12786 # Whether or not to add -lc for building shared libraries.
12787 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12788
12789 # Whether or not to disallow shared libs when runtime libs are static
12790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12791
12792 # Whether or not to optimize for fast installation.
12793 fast_install=$enable_fast_install
12794
12795 # The host system.
12796 host_alias=$host_alias
12797 host=$host
12798
12799 # An echo program that does not interpret backslashes.
12800 echo=$lt_echo
12801
12802 # The archiver.
12803 AR=$lt_AR
12804 AR_FLAGS=$lt_AR_FLAGS
12805
12806 # A C compiler.
12807 LTCC=$lt_LTCC
12808
12809 # A language-specific compiler.
12810 CC=$lt_compiler_CXX
12811
12812 # Is the compiler the GNU C compiler?
12813 with_gcc=$GCC_CXX
12814
12815 # An ERE matcher.
12816 EGREP=$lt_EGREP
12817
12818 # The linker used to build libraries.
12819 LD=$lt_LD_CXX
12820
12821 # Whether we need hard or soft links.
12822 LN_S=$lt_LN_S
12823
12824 # A BSD-compatible nm program.
12825 NM=$lt_NM
12826
12827 # A symbol stripping program
12828 STRIP=$lt_STRIP
12829
12830 # Used to examine libraries when file_magic_cmd begins "file"
12831 MAGIC_CMD=$MAGIC_CMD
12832
12833 # Used on cygwin: DLL creation program.
12834 DLLTOOL="$DLLTOOL"
12835
12836 # Used on cygwin: object dumper.
12837 OBJDUMP="$OBJDUMP"
12838
12839 # Used on cygwin: assembler.
12840 AS="$AS"
12841
12842 # The name of the directory that contains temporary libtool files.
12843 objdir=$objdir
12844
12845 # How to create reloadable object files.
12846 reload_flag=$lt_reload_flag
12847 reload_cmds=$lt_reload_cmds
12848
12849 # How to pass a linker flag through the compiler.
12850 wl=$lt_lt_prog_compiler_wl_CXX
12851
12852 # Object file suffix (normally "o").
12853 objext="$ac_objext"
12854
12855 # Old archive suffix (normally "a").
12856 libext="$libext"
12857
12858 # Shared library suffix (normally ".so").
12859 shrext_cmds='$shrext_cmds'
12860
12861 # Executable file suffix (normally "").
12862 exeext="$exeext"
12863
12864 # Additional compiler flags for building library objects.
12865 pic_flag=$lt_lt_prog_compiler_pic_CXX
12866 pic_mode=$pic_mode
12867
12868 # What is the maximum length of a command?
12869 max_cmd_len=$lt_cv_sys_max_cmd_len
12870
12871 # Does compiler simultaneously support -c and -o options?
12872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12873
12874 # Must we lock files when doing compilation ?
12875 need_locks=$lt_need_locks
12876
12877 # Do we need the lib prefix for modules?
12878 need_lib_prefix=$need_lib_prefix
12879
12880 # Do we need a version for libraries?
12881 need_version=$need_version
12882
12883 # Whether dlopen is supported.
12884 dlopen_support=$enable_dlopen
12885
12886 # Whether dlopen of programs is supported.
12887 dlopen_self=$enable_dlopen_self
12888
12889 # Whether dlopen of statically linked programs is supported.
12890 dlopen_self_static=$enable_dlopen_self_static
12891
12892 # Compiler flag to prevent dynamic linking.
12893 link_static_flag=$lt_lt_prog_compiler_static_CXX
12894
12895 # Compiler flag to turn off builtin functions.
12896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12897
12898 # Compiler flag to allow reflexive dlopens.
12899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12900
12901 # Compiler flag to generate shared objects directly from archives.
12902 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12903
12904 # Compiler flag to generate thread-safe objects.
12905 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12906
12907 # Library versioning type.
12908 version_type=$version_type
12909
12910 # Format of library name prefix.
12911 libname_spec=$lt_libname_spec
12912
12913 # List of archive names. First name is the real one, the rest are links.
12914 # The last name is the one that the linker finds with -lNAME.
12915 library_names_spec=$lt_library_names_spec
12916
12917 # The coded name of the library, if different from the real name.
12918 soname_spec=$lt_soname_spec
12919
12920 # Commands used to build and install an old-style archive.
12921 RANLIB=$lt_RANLIB
12922 old_archive_cmds=$lt_old_archive_cmds_CXX
12923 old_postinstall_cmds=$lt_old_postinstall_cmds
12924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12925
12926 # Create an old-style archive from a shared archive.
12927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12928
12929 # Create a temporary old-style archive to link instead of a shared archive.
12930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12931
12932 # Commands used to build and install a shared archive.
12933 archive_cmds=$lt_archive_cmds_CXX
12934 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12935 postinstall_cmds=$lt_postinstall_cmds
12936 postuninstall_cmds=$lt_postuninstall_cmds
12937
12938 # Commands used to build a loadable module (assumed same as above if empty)
12939 module_cmds=$lt_module_cmds_CXX
12940 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12941
12942 # Commands to strip libraries.
12943 old_striplib=$lt_old_striplib
12944 striplib=$lt_striplib
12945
12946 # Dependencies to place before the objects being linked to create a
12947 # shared library.
12948 predep_objects=$lt_predep_objects_CXX
12949
12950 # Dependencies to place after the objects being linked to create a
12951 # shared library.
12952 postdep_objects=$lt_postdep_objects_CXX
12953
12954 # Dependencies to place before the objects being linked to create a
12955 # shared library.
12956 predeps=$lt_predeps_CXX
12957
12958 # Dependencies to place after the objects being linked to create a
12959 # shared library.
12960 postdeps=$lt_postdeps_CXX
12961
12962 # The library search path used internally by the compiler when linking
12963 # a shared library.
12964 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12965
12966 # Method to check whether dependent libraries are shared objects.
12967 deplibs_check_method=$lt_deplibs_check_method
12968
12969 # Command to use when deplibs_check_method == file_magic.
12970 file_magic_cmd=$lt_file_magic_cmd
12971
12972 # Flag that allows shared libraries with undefined symbols to be built.
12973 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12974
12975 # Flag that forces no undefined symbols.
12976 no_undefined_flag=$lt_no_undefined_flag_CXX
12977
12978 # Commands used to finish a libtool library installation in a directory.
12979 finish_cmds=$lt_finish_cmds
12980
12981 # Same as above, but a single script fragment to be evaled but not shown.
12982 finish_eval=$lt_finish_eval
12983
12984 # Take the output of nm and produce a listing of raw symbols and C names.
12985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12986
12987 # Transform the output of nm in a proper C declaration
12988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12989
12990 # Transform the output of nm in a C name address pair
12991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12992
12993 # This is the shared library runtime path variable.
12994 runpath_var=$runpath_var
12995
12996 # This is the shared library path variable.
12997 shlibpath_var=$shlibpath_var
12998
12999 # Is shlibpath searched before the hard-coded library search path?
13000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13001
13002 # How to hardcode a shared library path into an executable.
13003 hardcode_action=$hardcode_action_CXX
13004
13005 # Whether we should hardcode library paths into libraries.
13006 hardcode_into_libs=$hardcode_into_libs
13007
13008 # Flag to hardcode \$libdir into a binary during linking.
13009 # This must work even if \$libdir does not exist.
13010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13011
13012 # If ld is used when linking, flag to hardcode \$libdir into
13013 # a binary during linking. This must work even if \$libdir does
13014 # not exist.
13015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13016
13017 # Whether we need a single -rpath flag with a separated argument.
13018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13019
13020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13021 # resulting binary.
13022 hardcode_direct=$hardcode_direct_CXX
13023
13024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13025 # resulting binary.
13026 hardcode_minus_L=$hardcode_minus_L_CXX
13027
13028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13029 # the resulting binary.
13030 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13031
13032 # Set to yes if building a shared library automatically hardcodes DIR into the library
13033 # and all subsequent libraries and executables linked against it.
13034 hardcode_automatic=$hardcode_automatic_CXX
13035
13036 # Variables whose values should be saved in libtool wrapper scripts and
13037 # restored at relink time.
13038 variables_saved_for_relink="$variables_saved_for_relink"
13039
13040 # Whether libtool must link a program against all its dependency libraries.
13041 link_all_deplibs=$link_all_deplibs_CXX
13042
13043 # Compile-time system search path for libraries
13044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13045
13046 # Run-time system search path for libraries
13047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13048
13049 # Fix the shell variable \$srcfile for the compiler.
13050 fix_srcfile_path="$fix_srcfile_path_CXX"
13051
13052 # Set to yes if exported symbols are required.
13053 always_export_symbols=$always_export_symbols_CXX
13054
13055 # The commands to list exported symbols.
13056 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13057
13058 # The commands to extract the exported symbol list from a shared archive.
13059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13060
13061 # Symbols that should not be listed in the preloaded symbols.
13062 exclude_expsyms=$lt_exclude_expsyms_CXX
13063
13064 # Symbols that must always be exported.
13065 include_expsyms=$lt_include_expsyms_CXX
13066
13067 # ### END LIBTOOL TAG CONFIG: $tagname
13068
13069 __EOF__
13070
13071
13072 else
13073 # If there is no Makefile yet, we rely on a make rule to execute
13074 # `config.status --recheck' to rerun these tests and create the
13075 # libtool script then.
13076 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13077 if test -f "$ltmain_in"; then
13078 test -f Makefile && make "$ltmain"
13079 fi
13080 fi
13081
13082
13083 ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089 CC=$lt_save_CC
13090 LDCXX=$LD
13091 LD=$lt_save_LD
13092 GCC=$lt_save_GCC
13093 with_gnu_ldcxx=$with_gnu_ld
13094 with_gnu_ld=$lt_save_with_gnu_ld
13095 lt_cv_path_LDCXX=$lt_cv_path_LD
13096 lt_cv_path_LD=$lt_save_path_LD
13097 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13098 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13099
13100 else
13101 tagname=""
13102 fi
13103 ;;
13104
13105 F77)
13106 if test -n "$F77" && test "X$F77" != "Xno"; then
13107
13108 ac_ext=f
13109 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13110 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13112
13113
13114 archive_cmds_need_lc_F77=no
13115 allow_undefined_flag_F77=
13116 always_export_symbols_F77=no
13117 archive_expsym_cmds_F77=
13118 export_dynamic_flag_spec_F77=
13119 hardcode_direct_F77=no
13120 hardcode_libdir_flag_spec_F77=
13121 hardcode_libdir_flag_spec_ld_F77=
13122 hardcode_libdir_separator_F77=
13123 hardcode_minus_L_F77=no
13124 hardcode_automatic_F77=no
13125 module_cmds_F77=
13126 module_expsym_cmds_F77=
13127 link_all_deplibs_F77=unknown
13128 old_archive_cmds_F77=$old_archive_cmds
13129 no_undefined_flag_F77=
13130 whole_archive_flag_spec_F77=
13131 enable_shared_with_static_runtimes_F77=no
13132
13133 # Source file extension for f77 test sources.
13134 ac_ext=f
13135
13136 # Object file extension for compiled f77 test sources.
13137 objext=o
13138 objext_F77=$objext
13139
13140 # Code to be used in simple compile tests
13141 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13142
13143 # Code to be used in simple link tests
13144 lt_simple_link_test_code=" program t\n end\n"
13145
13146 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13147
13148 # If no C compiler was specified, use CC.
13149 LTCC=${LTCC-"$CC"}
13150
13151 # Allow CC to be a program name with arguments.
13152 compiler=$CC
13153
13154
13155 # Allow CC to be a program name with arguments.
13156 lt_save_CC="$CC"
13157 CC=${F77-"f77"}
13158 compiler=$CC
13159 compiler_F77=$CC
13160 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13161
13162 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13163 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13164 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13165 echo "${ECHO_T}$can_build_shared" >&6
13166
13167 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13168 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13169 test "$can_build_shared" = "no" && enable_shared=no
13170
13171 # On AIX, shared libraries and static libraries use the same namespace, and
13172 # are all built from PIC.
13173 case "$host_os" in
13174 aix3*)
13175 test "$enable_shared" = yes && enable_static=no
13176 if test -n "$RANLIB"; then
13177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13178 postinstall_cmds='$RANLIB $lib'
13179 fi
13180 ;;
13181 aix4* | aix5*)
13182 test "$enable_shared" = yes && enable_static=no
13183 ;;
13184 esac
13185 echo "$as_me:$LINENO: result: $enable_shared" >&5
13186 echo "${ECHO_T}$enable_shared" >&6
13187
13188 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13189 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13190 # Make sure either enable_shared or enable_static is yes.
13191 test "$enable_shared" = yes || enable_static=yes
13192 echo "$as_me:$LINENO: result: $enable_static" >&5
13193 echo "${ECHO_T}$enable_static" >&6
13194
13195 test "$ld_shlibs_F77" = no && can_build_shared=no
13196
13197 GCC_F77="$G77"
13198 LD_F77="$LD"
13199
13200 lt_prog_compiler_wl_F77=
13201 lt_prog_compiler_pic_F77=
13202 lt_prog_compiler_static_F77=
13203
13204 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13205 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13206
13207 if test "$GCC" = yes; then
13208 lt_prog_compiler_wl_F77='-Wl,'
13209 lt_prog_compiler_static_F77='-static'
13210
13211 case $host_os in
13212 aix*)
13213 # All AIX code is PIC.
13214 if test "$host_cpu" = ia64; then
13215 # AIX 5 now supports IA64 processor
13216 lt_prog_compiler_static_F77='-Bstatic'
13217 fi
13218 ;;
13219
13220 amigaos*)
13221 # FIXME: we need at least 68020 code to build shared libraries, but
13222 # adding the `-m68020' flag to GCC prevents building anything better,
13223 # like `-m68040'.
13224 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13225 ;;
13226
13227 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13228 # PIC is the default for these OSes.
13229 ;;
13230
13231 mingw* | pw32* | os2*)
13232 # This hack is so that the source file can tell whether it is being
13233 # built for inclusion in a dll (and should export symbols for example).
13234 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13235 ;;
13236
13237 darwin* | rhapsody*)
13238 # PIC is the default on this platform
13239 # Common symbols not allowed in MH_DYLIB files
13240 lt_prog_compiler_pic_F77='-fno-common'
13241 ;;
13242
13243 msdosdjgpp*)
13244 # Just because we use GCC doesn't mean we suddenly get shared libraries
13245 # on systems that don't support them.
13246 lt_prog_compiler_can_build_shared_F77=no
13247 enable_shared=no
13248 ;;
13249
13250 sysv4*MP*)
13251 if test -d /usr/nec; then
13252 lt_prog_compiler_pic_F77=-Kconform_pic
13253 fi
13254 ;;
13255
13256 hpux*)
13257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13258 # not for PA HP-UX.
13259 case "$host_cpu" in
13260 hppa*64*|ia64*)
13261 # +Z the default
13262 ;;
13263 *)
13264 lt_prog_compiler_pic_F77='-fPIC'
13265 ;;
13266 esac
13267 ;;
13268
13269 *)
13270 lt_prog_compiler_pic_F77='-fPIC'
13271 ;;
13272 esac
13273 else
13274 # PORTME Check for flag to pass linker flags through the system compiler.
13275 case $host_os in
13276 aix*)
13277 lt_prog_compiler_wl_F77='-Wl,'
13278 if test "$host_cpu" = ia64; then
13279 # AIX 5 now supports IA64 processor
13280 lt_prog_compiler_static_F77='-Bstatic'
13281 else
13282 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13283 fi
13284 ;;
13285
13286 mingw* | pw32* | os2*)
13287 # This hack is so that the source file can tell whether it is being
13288 # built for inclusion in a dll (and should export symbols for example).
13289 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13290 ;;
13291
13292 hpux9* | hpux10* | hpux11*)
13293 lt_prog_compiler_wl_F77='-Wl,'
13294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13295 # not for PA HP-UX.
13296 case "$host_cpu" in
13297 hppa*64*|ia64*)
13298 # +Z the default
13299 ;;
13300 *)
13301 lt_prog_compiler_pic_F77='+Z'
13302 ;;
13303 esac
13304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13305 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13306 ;;
13307
13308 irix5* | irix6* | nonstopux*)
13309 lt_prog_compiler_wl_F77='-Wl,'
13310 # PIC (with -KPIC) is the default.
13311 lt_prog_compiler_static_F77='-non_shared'
13312 ;;
13313
13314 newsos6)
13315 lt_prog_compiler_pic_F77='-KPIC'
13316 lt_prog_compiler_static_F77='-Bstatic'
13317 ;;
13318
13319 linux*)
13320 case $CC in
13321 icc* | ecc*)
13322 lt_prog_compiler_wl_F77='-Wl,'
13323 lt_prog_compiler_pic_F77='-KPIC'
13324 lt_prog_compiler_static_F77='-static'
13325 ;;
13326 ccc*)
13327 lt_prog_compiler_wl_F77='-Wl,'
13328 # All Alpha code is PIC.
13329 lt_prog_compiler_static_F77='-non_shared'
13330 ;;
13331 esac
13332 ;;
13333
13334 osf3* | osf4* | osf5*)
13335 lt_prog_compiler_wl_F77='-Wl,'
13336 # All OSF/1 code is PIC.
13337 lt_prog_compiler_static_F77='-non_shared'
13338 ;;
13339
13340 sco3.2v5*)
13341 lt_prog_compiler_pic_F77='-Kpic'
13342 lt_prog_compiler_static_F77='-dn'
13343 ;;
13344
13345 solaris*)
13346 lt_prog_compiler_wl_F77='-Wl,'
13347 lt_prog_compiler_pic_F77='-KPIC'
13348 lt_prog_compiler_static_F77='-Bstatic'
13349 ;;
13350
13351 sunos4*)
13352 lt_prog_compiler_wl_F77='-Qoption ld '
13353 lt_prog_compiler_pic_F77='-PIC'
13354 lt_prog_compiler_static_F77='-Bstatic'
13355 ;;
13356
13357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 lt_prog_compiler_pic_F77='-KPIC'
13360 lt_prog_compiler_static_F77='-Bstatic'
13361 ;;
13362
13363 sysv4*MP*)
13364 if test -d /usr/nec ;then
13365 lt_prog_compiler_pic_F77='-Kconform_pic'
13366 lt_prog_compiler_static_F77='-Bstatic'
13367 fi
13368 ;;
13369
13370 uts4*)
13371 lt_prog_compiler_pic_F77='-pic'
13372 lt_prog_compiler_static_F77='-Bstatic'
13373 ;;
13374
13375 *)
13376 lt_prog_compiler_can_build_shared_F77=no
13377 ;;
13378 esac
13379 fi
13380
13381 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13382 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13383
13384 #
13385 # Check to make sure the PIC flag actually works.
13386 #
13387 if test -n "$lt_prog_compiler_pic_F77"; then
13388
13389 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13390 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13391 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394 lt_prog_compiler_pic_works_F77=no
13395 ac_outfile=conftest.$ac_objext
13396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13397 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13398 # Insert the option either (1) after the last *FLAGS variable, or
13399 # (2) before a word containing "conftest.", or (3) at the end.
13400 # Note that $ac_compile itself does not contain backslashes and begins
13401 # with a dollar sign (not a hyphen), so the echo should work correctly.
13402 # The option is referenced via a variable to avoid confusing sed.
13403 lt_compile=`echo "$ac_compile" | $SED \
13404 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13406 -e 's:$: $lt_compiler_flag:'`
13407 (eval echo "\"\$as_me:13407: $lt_compile\"" >&5)
13408 (eval "$lt_compile" 2>conftest.err)
13409 ac_status=$?
13410 cat conftest.err >&5
13411 echo "$as_me:13411: \$? = $ac_status" >&5
13412 if (exit $ac_status) && test -s "$ac_outfile"; then
13413 # The compiler can only warn and ignore the option if not recognized
13414 # So say no if there are warnings
13415 if test ! -s conftest.err; then
13416 lt_prog_compiler_pic_works_F77=yes
13417 fi
13418 fi
13419 $rm conftest*
13420
13421 fi
13422 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13423 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13424
13425 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13426 case $lt_prog_compiler_pic_F77 in
13427 "" | " "*) ;;
13428 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13429 esac
13430 else
13431 lt_prog_compiler_pic_F77=
13432 lt_prog_compiler_can_build_shared_F77=no
13433 fi
13434
13435 fi
13436 case "$host_os" in
13437 # For platforms which do not support PIC, -DPIC is meaningless:
13438 *djgpp*)
13439 lt_prog_compiler_pic_F77=
13440 ;;
13441 *)
13442 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13443 ;;
13444 esac
13445
13446 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13447 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13448 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 lt_cv_prog_compiler_c_o_F77=no
13452 $rm -r conftest 2>/dev/null
13453 mkdir conftest
13454 cd conftest
13455 mkdir out
13456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13457
13458 lt_compiler_flag="-o out/conftest2.$ac_objext"
13459 # Insert the option either (1) after the last *FLAGS variable, or
13460 # (2) before a word containing "conftest.", or (3) at the end.
13461 # Note that $ac_compile itself does not contain backslashes and begins
13462 # with a dollar sign (not a hyphen), so the echo should work correctly.
13463 lt_compile=`echo "$ac_compile" | $SED \
13464 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13466 -e 's:$: $lt_compiler_flag:'`
13467 (eval echo "\"\$as_me:13467: $lt_compile\"" >&5)
13468 (eval "$lt_compile" 2>out/conftest.err)
13469 ac_status=$?
13470 cat out/conftest.err >&5
13471 echo "$as_me:13471: \$? = $ac_status" >&5
13472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13473 then
13474 # The compiler can only warn and ignore the option if not recognized
13475 # So say no if there are warnings
13476 if test ! -s out/conftest.err; then
13477 lt_cv_prog_compiler_c_o_F77=yes
13478 fi
13479 fi
13480 chmod u+w .
13481 $rm conftest*
13482 # SGI C++ compiler will create directory out/ii_files/ for
13483 # template instantiation
13484 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13485 $rm out/* && rmdir out
13486 cd ..
13487 rmdir conftest
13488 $rm conftest*
13489
13490 fi
13491 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13493
13494
13495 hard_links="nottested"
13496 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13497 # do not overwrite the value of need_locks provided by the user
13498 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13500 hard_links=yes
13501 $rm conftest*
13502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13503 touch conftest.a
13504 ln conftest.a conftest.b 2>&5 || hard_links=no
13505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13506 echo "$as_me:$LINENO: result: $hard_links" >&5
13507 echo "${ECHO_T}$hard_links" >&6
13508 if test "$hard_links" = no; then
13509 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13511 need_locks=warn
13512 fi
13513 else
13514 need_locks=no
13515 fi
13516
13517 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13519
13520 runpath_var=
13521 allow_undefined_flag_F77=
13522 enable_shared_with_static_runtimes_F77=no
13523 archive_cmds_F77=
13524 archive_expsym_cmds_F77=
13525 old_archive_From_new_cmds_F77=
13526 old_archive_from_expsyms_cmds_F77=
13527 export_dynamic_flag_spec_F77=
13528 whole_archive_flag_spec_F77=
13529 thread_safe_flag_spec_F77=
13530 hardcode_libdir_flag_spec_F77=
13531 hardcode_libdir_flag_spec_ld_F77=
13532 hardcode_libdir_separator_F77=
13533 hardcode_direct_F77=no
13534 hardcode_minus_L_F77=no
13535 hardcode_shlibpath_var_F77=unsupported
13536 link_all_deplibs_F77=unknown
13537 hardcode_automatic_F77=no
13538 module_cmds_F77=
13539 module_expsym_cmds_F77=
13540 always_export_symbols_F77=no
13541 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13542 # include_expsyms should be a list of space-separated symbols to be *always*
13543 # included in the symbol list
13544 include_expsyms_F77=
13545 # exclude_expsyms can be an extended regexp of symbols to exclude
13546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13548 # as well as any symbol that contains `d'.
13549 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13551 # platforms (ab)use it in PIC code, but their linkers get confused if
13552 # the symbol is explicitly referenced. Since portable code cannot
13553 # rely on this symbol name, it's probably fine to never include it in
13554 # preloaded symbol tables.
13555 extract_expsyms_cmds=
13556
13557 case $host_os in
13558 cygwin* | mingw* | pw32*)
13559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13560 # When not using gcc, we currently assume that we are using
13561 # Microsoft Visual C++.
13562 if test "$GCC" != yes; then
13563 with_gnu_ld=no
13564 fi
13565 ;;
13566 openbsd*)
13567 with_gnu_ld=no
13568 ;;
13569 esac
13570
13571 ld_shlibs_F77=yes
13572 if test "$with_gnu_ld" = yes; then
13573 # If archive_cmds runs LD, not CC, wlarc should be empty
13574 wlarc='${wl}'
13575
13576 # See if GNU ld supports shared libraries.
13577 case $host_os in
13578 aix3* | aix4* | aix5*)
13579 # On AIX/PPC, the GNU linker is very broken
13580 if test "$host_cpu" != ia64; then
13581 ld_shlibs_F77=no
13582 cat <<EOF 1>&2
13583
13584 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13585 *** to be unable to reliably create shared libraries on AIX.
13586 *** Therefore, libtool is disabling shared libraries support. If you
13587 *** really care for shared libraries, you may want to modify your PATH
13588 *** so that a non-GNU linker is found, and then restart.
13589
13590 EOF
13591 fi
13592 ;;
13593
13594 amigaos*)
13595 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)'
13596 hardcode_libdir_flag_spec_F77='-L$libdir'
13597 hardcode_minus_L_F77=yes
13598
13599 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13600 # that the semantics of dynamic libraries on AmigaOS, at least up
13601 # to version 4, is to share data among multiple programs linked
13602 # with the same dynamic library. Since this doesn't match the
13603 # behavior of shared libraries on other platforms, we can't use
13604 # them.
13605 ld_shlibs_F77=no
13606 ;;
13607
13608 beos*)
13609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13610 allow_undefined_flag_F77=unsupported
13611 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13612 # support --undefined. This deserves some investigation. FIXME
13613 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614 else
13615 ld_shlibs_F77=no
13616 fi
13617 ;;
13618
13619 cygwin* | mingw* | pw32*)
13620 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13621 # as there is no search path for DLLs.
13622 hardcode_libdir_flag_spec_F77='-L$libdir'
13623 allow_undefined_flag_F77=unsupported
13624 always_export_symbols_F77=no
13625 enable_shared_with_static_runtimes_F77=yes
13626 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13627
13628 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13629 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13630 # If the export-symbols file already is a .def file (1st line
13631 # is EXPORTS), use it as is; otherwise, prepend...
13632 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13633 cp $export_symbols $output_objdir/$soname.def;
13634 else
13635 echo EXPORTS > $output_objdir/$soname.def;
13636 cat $export_symbols >> $output_objdir/$soname.def;
13637 fi~
13638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13639 else
13640 ld_shlibs=no
13641 fi
13642 ;;
13643
13644 netbsd*)
13645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13646 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13647 wlarc=
13648 else
13649 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13650 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13651 fi
13652 ;;
13653
13654 solaris* | sysv5*)
13655 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13656 ld_shlibs_F77=no
13657 cat <<EOF 1>&2
13658
13659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13660 *** create shared libraries on Solaris systems. Therefore, libtool
13661 *** is disabling shared libraries support. We urge you to upgrade GNU
13662 *** binutils to release 2.9.1 or newer. Another option is to modify
13663 *** your PATH or compiler configuration so that the native linker is
13664 *** used, and then restart.
13665
13666 EOF
13667 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13668 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13669 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13670 else
13671 ld_shlibs_F77=no
13672 fi
13673 ;;
13674
13675 sunos4*)
13676 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13677 wlarc=
13678 hardcode_direct_F77=yes
13679 hardcode_shlibpath_var_F77=no
13680 ;;
13681
13682 linux*)
13683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13684 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685 archive_cmds_F77="$tmp_archive_cmds"
13686 supports_anon_versioning=no
13687 case `$LD -v 2>/dev/null` in
13688 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13691 *\ 2.11.*) ;; # other 2.11 versions
13692 *) supports_anon_versioning=yes ;;
13693 esac
13694 if test $supports_anon_versioning = yes; then
13695 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13697 $echo "local: *; };" >> $output_objdir/$libname.ver~
13698 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13699 else
13700 archive_expsym_cmds_F77="$tmp_archive_cmds"
13701 fi
13702 else
13703 ld_shlibs_F77=no
13704 fi
13705 ;;
13706
13707 *)
13708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13710 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13711 else
13712 ld_shlibs_F77=no
13713 fi
13714 ;;
13715 esac
13716
13717 if test "$ld_shlibs_F77" = yes; then
13718 runpath_var=LD_RUN_PATH
13719 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13720 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13721 # ancient GNU ld didn't support --whole-archive et. al.
13722 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13723 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13724 else
13725 whole_archive_flag_spec_F77=
13726 fi
13727 fi
13728 else
13729 # PORTME fill in a description of your system's linker (not GNU ld)
13730 case $host_os in
13731 aix3*)
13732 allow_undefined_flag_F77=unsupported
13733 always_export_symbols_F77=yes
13734 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'
13735 # Note: this linker hardcodes the directories in LIBPATH if there
13736 # are no directories specified by -L.
13737 hardcode_minus_L_F77=yes
13738 if test "$GCC" = yes && test -z "$link_static_flag"; then
13739 # Neither direct hardcoding nor static linking is supported with a
13740 # broken collect2.
13741 hardcode_direct_F77=unsupported
13742 fi
13743 ;;
13744
13745 aix4* | aix5*)
13746 if test "$host_cpu" = ia64; then
13747 # On IA64, the linker does run time linking by default, so we don't
13748 # have to do anything special.
13749 aix_use_runtimelinking=no
13750 exp_sym_flag='-Bexport'
13751 no_entry_flag=""
13752 else
13753 # If we're using GNU nm, then we don't want the "-C" option.
13754 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13755 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13756 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'
13757 else
13758 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'
13759 fi
13760 aix_use_runtimelinking=no
13761
13762 # Test if we are trying to use run time linking or normal
13763 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13764 # need to do runtime linking.
13765 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13766 for ld_flag in $LDFLAGS; do
13767 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13768 aix_use_runtimelinking=yes
13769 break
13770 fi
13771 done
13772 esac
13773
13774 exp_sym_flag='-bexport'
13775 no_entry_flag='-bnoentry'
13776 fi
13777
13778 # When large executables or shared objects are built, AIX ld can
13779 # have problems creating the table of contents. If linking a library
13780 # or program results in "error TOC overflow" add -mminimal-toc to
13781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13783
13784 archive_cmds_F77=''
13785 hardcode_direct_F77=yes
13786 hardcode_libdir_separator_F77=':'
13787 link_all_deplibs_F77=yes
13788
13789 if test "$GCC" = yes; then
13790 case $host_os in aix4.012|aix4.012.*)
13791 # We only want to do this on AIX 4.2 and lower, the check
13792 # below for broken collect2 doesn't work under 4.3+
13793 collect2name=`${CC} -print-prog-name=collect2`
13794 if test -f "$collect2name" && \
13795 strings "$collect2name" | grep resolve_lib_name >/dev/null
13796 then
13797 # We have reworked collect2
13798 hardcode_direct_F77=yes
13799 else
13800 # We have old collect2
13801 hardcode_direct_F77=unsupported
13802 # It fails to find uninstalled libraries when the uninstalled
13803 # path is not listed in the libpath. Setting hardcode_minus_L
13804 # to unsupported forces relinking
13805 hardcode_minus_L_F77=yes
13806 hardcode_libdir_flag_spec_F77='-L$libdir'
13807 hardcode_libdir_separator_F77=
13808 fi
13809 esac
13810 shared_flag='-shared'
13811 else
13812 # not using gcc
13813 if test "$host_cpu" = ia64; then
13814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13815 # chokes on -Wl,-G. The following line is correct:
13816 shared_flag='-G'
13817 else
13818 if test "$aix_use_runtimelinking" = yes; then
13819 shared_flag='${wl}-G'
13820 else
13821 shared_flag='${wl}-bM:SRE'
13822 fi
13823 fi
13824 fi
13825
13826 # It seems that -bexpall does not export symbols beginning with
13827 # underscore (_), so it is better to generate a list of symbols to export.
13828 always_export_symbols_F77=yes
13829 if test "$aix_use_runtimelinking" = yes; then
13830 # Warning - without using the other runtime loading flags (-brtl),
13831 # -berok will link without error, but may produce a broken library.
13832 allow_undefined_flag_F77='-berok'
13833 # Determine the default libpath from the value encoded in an empty executable.
13834 cat >conftest.$ac_ext <<_ACEOF
13835 program main
13836
13837 end
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_f77_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861
13862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13863 }'`
13864 # Check for a 64-bit object if we didn't find anything.
13865 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; }
13866 }'`; fi
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 fi
13872 rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13875
13876 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13877 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"
13878 else
13879 if test "$host_cpu" = ia64; then
13880 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13881 allow_undefined_flag_F77="-z nodefs"
13882 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"
13883 else
13884 # Determine the default libpath from the value encoded in an empty executable.
13885 cat >conftest.$ac_ext <<_ACEOF
13886 program main
13887
13888 end
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892 (eval $ac_link) 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_f77_werror_flag"
13900 || test ! -s conftest.err'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest$ac_exeext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912
13913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13914 }'`
13915 # Check for a 64-bit object if we didn't find anything.
13916 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; }
13917 }'`; fi
13918 else
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922 fi
13923 rm -f conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13926
13927 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13928 # Warning - without using the other run time loading flags,
13929 # -berok will link without error, but may produce a broken library.
13930 no_undefined_flag_F77=' ${wl}-bernotok'
13931 allow_undefined_flag_F77=' ${wl}-berok'
13932 # -bexpall does not export symbols beginning with underscore (_)
13933 always_export_symbols_F77=yes
13934 # Exported symbols can be pulled into shared objects from archives
13935 whole_archive_flag_spec_F77=' '
13936 archive_cmds_need_lc_F77=yes
13937 # This is similar to how AIX traditionally builds it's shared libraries.
13938 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'
13939 fi
13940 fi
13941 ;;
13942
13943 amigaos*)
13944 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)'
13945 hardcode_libdir_flag_spec_F77='-L$libdir'
13946 hardcode_minus_L_F77=yes
13947 # see comment about different semantics on the GNU ld section
13948 ld_shlibs_F77=no
13949 ;;
13950
13951 bsdi4*)
13952 export_dynamic_flag_spec_F77=-rdynamic
13953 ;;
13954
13955 cygwin* | mingw* | pw32*)
13956 # When not using gcc, we currently assume that we are using
13957 # Microsoft Visual C++.
13958 # hardcode_libdir_flag_spec is actually meaningless, as there is
13959 # no search path for DLLs.
13960 hardcode_libdir_flag_spec_F77=' '
13961 allow_undefined_flag_F77=unsupported
13962 # Tell ltmain to make .lib files, not .a files.
13963 libext=lib
13964 # Tell ltmain to make .dll files, not .so files.
13965 shrext_cmds=".dll"
13966 # FIXME: Setting linknames here is a bad hack.
13967 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13968 # The linker will automatically build a .lib file if we build a DLL.
13969 old_archive_From_new_cmds_F77='true'
13970 # FIXME: Should let the user specify the lib program.
13971 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13972 fix_srcfile_path='`cygpath -w "$srcfile"`'
13973 enable_shared_with_static_runtimes_F77=yes
13974 ;;
13975
13976 darwin* | rhapsody*)
13977 if test "$GXX" = yes ; then
13978 archive_cmds_need_lc_F77=no
13979 case "$host_os" in
13980 rhapsody* | darwin1.[012])
13981 allow_undefined_flag_F77='-undefined suppress'
13982 ;;
13983 *) # Darwin 1.3 on
13984 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13985 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13986 else
13987 case ${MACOSX_DEPLOYMENT_TARGET} in
13988 10.[012])
13989 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13990 ;;
13991 10.*)
13992 allow_undefined_flag_F77='-undefined dynamic_lookup'
13993 ;;
13994 esac
13995 fi
13996 ;;
13997 esac
13998 lt_int_apple_cc_single_mod=no
13999 output_verbose_link_cmd='echo'
14000 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14001 lt_int_apple_cc_single_mod=yes
14002 fi
14003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14004 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14005 else
14006 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14007 fi
14008 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14010 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14011 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14012 else
14013 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14014 fi
14015 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}'
14016 hardcode_direct_F77=no
14017 hardcode_automatic_F77=yes
14018 hardcode_shlibpath_var_F77=unsupported
14019 whole_archive_flag_spec_F77='-all_load $convenience'
14020 link_all_deplibs_F77=yes
14021 else
14022 ld_shlibs_F77=no
14023 fi
14024 ;;
14025
14026 dgux*)
14027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14028 hardcode_libdir_flag_spec_F77='-L$libdir'
14029 hardcode_shlibpath_var_F77=no
14030 ;;
14031
14032 freebsd1*)
14033 ld_shlibs_F77=no
14034 ;;
14035
14036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14037 # support. Future versions do this automatically, but an explicit c++rt0.o
14038 # does not break anything, and helps significantly (at the cost of a little
14039 # extra space).
14040 freebsd2.2*)
14041 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14042 hardcode_libdir_flag_spec_F77='-R$libdir'
14043 hardcode_direct_F77=yes
14044 hardcode_shlibpath_var_F77=no
14045 ;;
14046
14047 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14048 freebsd2*)
14049 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14050 hardcode_direct_F77=yes
14051 hardcode_minus_L_F77=yes
14052 hardcode_shlibpath_var_F77=no
14053 ;;
14054
14055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14056 freebsd* | kfreebsd*-gnu)
14057 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14058 hardcode_libdir_flag_spec_F77='-R$libdir'
14059 hardcode_direct_F77=yes
14060 hardcode_shlibpath_var_F77=no
14061 ;;
14062
14063 hpux9*)
14064 if test "$GCC" = yes; then
14065 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'
14066 else
14067 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'
14068 fi
14069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14070 hardcode_libdir_separator_F77=:
14071 hardcode_direct_F77=yes
14072
14073 # hardcode_minus_L: Not really in the search PATH,
14074 # but as the default location of the library.
14075 hardcode_minus_L_F77=yes
14076 export_dynamic_flag_spec_F77='${wl}-E'
14077 ;;
14078
14079 hpux10* | hpux11*)
14080 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14081 case "$host_cpu" in
14082 hppa*64*|ia64*)
14083 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 ;;
14085 *)
14086 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14087 ;;
14088 esac
14089 else
14090 case "$host_cpu" in
14091 hppa*64*|ia64*)
14092 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14093 ;;
14094 *)
14095 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14096 ;;
14097 esac
14098 fi
14099 if test "$with_gnu_ld" = no; then
14100 case "$host_cpu" in
14101 hppa*64*)
14102 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14103 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14104 hardcode_libdir_separator_F77=:
14105 hardcode_direct_F77=no
14106 hardcode_shlibpath_var_F77=no
14107 ;;
14108 ia64*)
14109 hardcode_libdir_flag_spec_F77='-L$libdir'
14110 hardcode_direct_F77=no
14111 hardcode_shlibpath_var_F77=no
14112
14113 # hardcode_minus_L: Not really in the search PATH,
14114 # but as the default location of the library.
14115 hardcode_minus_L_F77=yes
14116 ;;
14117 *)
14118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14119 hardcode_libdir_separator_F77=:
14120 hardcode_direct_F77=yes
14121 export_dynamic_flag_spec_F77='${wl}-E'
14122
14123 # hardcode_minus_L: Not really in the search PATH,
14124 # but as the default location of the library.
14125 hardcode_minus_L_F77=yes
14126 ;;
14127 esac
14128 fi
14129 ;;
14130
14131 irix5* | irix6* | nonstopux*)
14132 if test "$GCC" = yes; then
14133 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'
14134 else
14135 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'
14136 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14137 fi
14138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14139 hardcode_libdir_separator_F77=:
14140 link_all_deplibs_F77=yes
14141 ;;
14142
14143 netbsd*)
14144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14145 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14146 else
14147 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14148 fi
14149 hardcode_libdir_flag_spec_F77='-R$libdir'
14150 hardcode_direct_F77=yes
14151 hardcode_shlibpath_var_F77=no
14152 ;;
14153
14154 newsos6)
14155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14156 hardcode_direct_F77=yes
14157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14158 hardcode_libdir_separator_F77=:
14159 hardcode_shlibpath_var_F77=no
14160 ;;
14161
14162 openbsd*)
14163 hardcode_direct_F77=yes
14164 hardcode_shlibpath_var_F77=no
14165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14166 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14167 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14168 export_dynamic_flag_spec_F77='${wl}-E'
14169 else
14170 case $host_os in
14171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14172 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_libdir_flag_spec_F77='-R$libdir'
14174 ;;
14175 *)
14176 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14177 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14178 ;;
14179 esac
14180 fi
14181 ;;
14182
14183 os2*)
14184 hardcode_libdir_flag_spec_F77='-L$libdir'
14185 hardcode_minus_L_F77=yes
14186 allow_undefined_flag_F77=unsupported
14187 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'
14188 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14189 ;;
14190
14191 osf3*)
14192 if test "$GCC" = yes; then
14193 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14194 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'
14195 else
14196 allow_undefined_flag_F77=' -expect_unresolved \*'
14197 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'
14198 fi
14199 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14200 hardcode_libdir_separator_F77=:
14201 ;;
14202
14203 osf4* | osf5*) # as osf3* with the addition of -msym flag
14204 if test "$GCC" = yes; then
14205 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14206 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'
14207 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14208 else
14209 allow_undefined_flag_F77=' -expect_unresolved \*'
14210 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'
14211 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~
14212 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14213
14214 # Both c and cxx compiler support -rpath directly
14215 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14216 fi
14217 hardcode_libdir_separator_F77=:
14218 ;;
14219
14220 sco3.2v5*)
14221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14222 hardcode_shlibpath_var_F77=no
14223 export_dynamic_flag_spec_F77='${wl}-Bexport'
14224 runpath_var=LD_RUN_PATH
14225 hardcode_runpath_var=yes
14226 ;;
14227
14228 solaris*)
14229 no_undefined_flag_F77=' -z text'
14230 if test "$GCC" = yes; then
14231 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14233 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14234 else
14235 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14238 fi
14239 hardcode_libdir_flag_spec_F77='-R$libdir'
14240 hardcode_shlibpath_var_F77=no
14241 case $host_os in
14242 solaris2.[0-5] | solaris2.[0-5].*) ;;
14243 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14244 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14245 esac
14246 link_all_deplibs_F77=yes
14247 ;;
14248
14249 sunos4*)
14250 if test "x$host_vendor" = xsequent; then
14251 # Use $CC to link under sequent, because it throws in some extra .o
14252 # files that make .init and .fini sections work.
14253 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14254 else
14255 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14256 fi
14257 hardcode_libdir_flag_spec_F77='-L$libdir'
14258 hardcode_direct_F77=yes
14259 hardcode_minus_L_F77=yes
14260 hardcode_shlibpath_var_F77=no
14261 ;;
14262
14263 sysv4)
14264 case $host_vendor in
14265 sni)
14266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14267 hardcode_direct_F77=yes # is this really true???
14268 ;;
14269 siemens)
14270 ## LD is ld it makes a PLAMLIB
14271 ## CC just makes a GrossModule.
14272 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14273 reload_cmds_F77='$CC -r -o $output$reload_objs'
14274 hardcode_direct_F77=no
14275 ;;
14276 motorola)
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14279 ;;
14280 esac
14281 runpath_var='LD_RUN_PATH'
14282 hardcode_shlibpath_var_F77=no
14283 ;;
14284
14285 sysv4.3*)
14286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14287 hardcode_shlibpath_var_F77=no
14288 export_dynamic_flag_spec_F77='-Bexport'
14289 ;;
14290
14291 sysv4*MP*)
14292 if test -d /usr/nec; then
14293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14294 hardcode_shlibpath_var_F77=no
14295 runpath_var=LD_RUN_PATH
14296 hardcode_runpath_var=yes
14297 ld_shlibs_F77=yes
14298 fi
14299 ;;
14300
14301 sysv4.2uw2*)
14302 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14303 hardcode_direct_F77=yes
14304 hardcode_minus_L_F77=no
14305 hardcode_shlibpath_var_F77=no
14306 hardcode_runpath_var=yes
14307 runpath_var=LD_RUN_PATH
14308 ;;
14309
14310 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14311 no_undefined_flag_F77='${wl}-z ${wl}text'
14312 if test "$GCC" = yes; then
14313 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14314 else
14315 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14316 fi
14317 runpath_var='LD_RUN_PATH'
14318 hardcode_shlibpath_var_F77=no
14319 ;;
14320
14321 sysv5*)
14322 no_undefined_flag_F77=' -z text'
14323 # $CC -shared without GNU ld will not create a library from C++
14324 # object files and a static libstdc++, better avoid it by now
14325 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14326 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14327 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14328 hardcode_libdir_flag_spec_F77=
14329 hardcode_shlibpath_var_F77=no
14330 runpath_var='LD_RUN_PATH'
14331 ;;
14332
14333 uts4*)
14334 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14335 hardcode_libdir_flag_spec_F77='-L$libdir'
14336 hardcode_shlibpath_var_F77=no
14337 ;;
14338
14339 *)
14340 ld_shlibs_F77=no
14341 ;;
14342 esac
14343 fi
14344
14345 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14346 echo "${ECHO_T}$ld_shlibs_F77" >&6
14347 test "$ld_shlibs_F77" = no && can_build_shared=no
14348
14349 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14350 if test "$GCC" = yes; then
14351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14352 fi
14353
14354 #
14355 # Do we need to explicitly link libc?
14356 #
14357 case "x$archive_cmds_need_lc_F77" in
14358 x|xyes)
14359 # Assume -lc should be added
14360 archive_cmds_need_lc_F77=yes
14361
14362 if test "$enable_shared" = yes && test "$GCC" = yes; then
14363 case $archive_cmds_F77 in
14364 *'~'*)
14365 # FIXME: we may have to deal with multi-command sequences.
14366 ;;
14367 '$CC '*)
14368 # Test whether the compiler implicitly links with -lc since on some
14369 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14370 # to ld, don't add -lc before -lgcc.
14371 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14372 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14373 $rm conftest*
14374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14375
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } 2>conftest.err; then
14381 soname=conftest
14382 lib=conftest
14383 libobjs=conftest.$ac_objext
14384 deplibs=
14385 wl=$lt_prog_compiler_wl_F77
14386 compiler_flags=-v
14387 linker_flags=-v
14388 verstring=
14389 output_objdir=.
14390 libname=conftest
14391 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14392 allow_undefined_flag_F77=
14393 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14394 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }
14398 then
14399 archive_cmds_need_lc_F77=no
14400 else
14401 archive_cmds_need_lc_F77=yes
14402 fi
14403 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14404 else
14405 cat conftest.err 1>&5
14406 fi
14407 $rm conftest*
14408 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14409 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14410 ;;
14411 esac
14412 fi
14413 ;;
14414 esac
14415
14416 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14417 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14418 library_names_spec=
14419 libname_spec='lib$name'
14420 soname_spec=
14421 shrext_cmds=".so"
14422 postinstall_cmds=
14423 postuninstall_cmds=
14424 finish_cmds=
14425 finish_eval=
14426 shlibpath_var=
14427 shlibpath_overrides_runpath=unknown
14428 version_type=none
14429 dynamic_linker="$host_os ld.so"
14430 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14431 if test "$GCC" = yes; then
14432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14433 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14434 # if the path contains ";" then we assume it to be the separator
14435 # otherwise default to the standard path separator (i.e. ":") - it is
14436 # assumed that no part of a normal pathname contains ";" but that should
14437 # okay in the real world where ";" in dirpaths is itself problematic.
14438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14439 else
14440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14441 fi
14442 else
14443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14444 fi
14445 need_lib_prefix=unknown
14446 hardcode_into_libs=no
14447
14448 # when you set need_version to no, make sure it does not cause -set_version
14449 # flags to be left without arguments
14450 need_version=unknown
14451
14452 case $host_os in
14453 aix3*)
14454 version_type=linux
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14456 shlibpath_var=LIBPATH
14457
14458 # AIX 3 has no versioning support, so we append a major version to the name.
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 ;;
14461
14462 aix4* | aix5*)
14463 version_type=linux
14464 need_lib_prefix=no
14465 need_version=no
14466 hardcode_into_libs=yes
14467 if test "$host_cpu" = ia64; then
14468 # AIX 5 supports IA64
14469 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14470 shlibpath_var=LD_LIBRARY_PATH
14471 else
14472 # With GCC up to 2.95.x, collect2 would create an import file
14473 # for dependence libraries. The import file would start with
14474 # the line `#! .'. This would cause the generated library to
14475 # depend on `.', always an invalid library. This was fixed in
14476 # development snapshots of GCC prior to 3.0.
14477 case $host_os in
14478 aix4 | aix4.[01] | aix4.[01].*)
14479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14480 echo ' yes '
14481 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14482 :
14483 else
14484 can_build_shared=no
14485 fi
14486 ;;
14487 esac
14488 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14489 # soname into executable. Probably we can add versioning support to
14490 # collect2, so additional links can be useful in future.
14491 if test "$aix_use_runtimelinking" = yes; then
14492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14493 # instead of lib<name>.a to let people know that these are not
14494 # typical AIX shared libraries.
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496 else
14497 # We preserve .a as extension for shared libraries through AIX4.2
14498 # and later when we are not doing run time linking.
14499 library_names_spec='${libname}${release}.a $libname.a'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 fi
14502 shlibpath_var=LIBPATH
14503 fi
14504 ;;
14505
14506 amigaos*)
14507 library_names_spec='$libname.ixlibrary $libname.a'
14508 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14509 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'
14510 ;;
14511
14512 beos*)
14513 library_names_spec='${libname}${shared_ext}'
14514 dynamic_linker="$host_os ld.so"
14515 shlibpath_var=LIBRARY_PATH
14516 ;;
14517
14518 bsdi4*)
14519 version_type=linux
14520 need_version=no
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14527 # the default ld.so.conf also contains /usr/contrib/lib and
14528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14529 # libtool to hard-code these into programs
14530 ;;
14531
14532 cygwin* | mingw* | pw32*)
14533 version_type=windows
14534 shrext_cmds=".dll"
14535 need_version=no
14536 need_lib_prefix=no
14537
14538 case $GCC,$host_os in
14539 yes,cygwin* | yes,mingw* | yes,pw32*)
14540 library_names_spec='$libname.dll.a'
14541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14542 postinstall_cmds='base_file=`basename \${file}`~
14543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14544 dldir=$destdir/`dirname \$dlpath`~
14545 test -d \$dldir || mkdir -p \$dldir~
14546 $install_prog $dir/$dlname \$dldir/$dlname'
14547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14548 dlpath=$dir/\$dldll~
14549 $rm \$dlpath'
14550 shlibpath_overrides_runpath=yes
14551
14552 case $host_os in
14553 cygwin*)
14554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14557 ;;
14558 mingw*)
14559 # MinGW DLLs use traditional 'lib' prefix
14560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14563 # It is most probably a Windows format PATH printed by
14564 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14565 # path with ; separators, and with drive letters. We can handle the
14566 # drive letters (cygwin fileutils understands them), so leave them,
14567 # especially as we might pass files found there to a mingw objdump,
14568 # which wouldn't understand a cygwinified path. Ahh.
14569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14570 else
14571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14572 fi
14573 ;;
14574 pw32*)
14575 # pw32 DLLs use 'pw' prefix rather than 'lib'
14576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14577 ;;
14578 esac
14579 ;;
14580
14581 *)
14582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14583 ;;
14584 esac
14585 dynamic_linker='Win32 ld.exe'
14586 # FIXME: first we should search . and the directory the executable is in
14587 shlibpath_var=PATH
14588 ;;
14589
14590 darwin* | rhapsody*)
14591 dynamic_linker="$host_os dyld"
14592 version_type=darwin
14593 need_lib_prefix=no
14594 need_version=no
14595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14596 soname_spec='${libname}${release}${major}$shared_ext'
14597 shlibpath_overrides_runpath=yes
14598 shlibpath_var=DYLD_LIBRARY_PATH
14599 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14601 if test "$GCC" = yes; then
14602 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"`
14603 else
14604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14605 fi
14606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14607 ;;
14608
14609 dgux*)
14610 version_type=linux
14611 need_lib_prefix=no
14612 need_version=no
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 ;;
14617
14618 freebsd1*)
14619 dynamic_linker=no
14620 ;;
14621
14622 kfreebsd*-gnu)
14623 version_type=linux
14624 need_lib_prefix=no
14625 need_version=no
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 shlibpath_overrides_runpath=no
14630 hardcode_into_libs=yes
14631 dynamic_linker='GNU ld.so'
14632 ;;
14633
14634 freebsd*)
14635 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14636 version_type=freebsd-$objformat
14637 case $version_type in
14638 freebsd-elf*)
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14640 need_version=no
14641 need_lib_prefix=no
14642 ;;
14643 freebsd-*)
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14645 need_version=yes
14646 ;;
14647 esac
14648 shlibpath_var=LD_LIBRARY_PATH
14649 case $host_os in
14650 freebsd2*)
14651 shlibpath_overrides_runpath=yes
14652 ;;
14653 freebsd3.01* | freebsdelf3.01*)
14654 shlibpath_overrides_runpath=yes
14655 hardcode_into_libs=yes
14656 ;;
14657 *) # from 3.2 on
14658 shlibpath_overrides_runpath=no
14659 hardcode_into_libs=yes
14660 ;;
14661 esac
14662 ;;
14663
14664 gnu*)
14665 version_type=linux
14666 need_lib_prefix=no
14667 need_version=no
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 hardcode_into_libs=yes
14672 ;;
14673
14674 hpux9* | hpux10* | hpux11*)
14675 # Give a soname corresponding to the major version so that dld.sl refuses to
14676 # link against other versions.
14677 version_type=sunos
14678 need_lib_prefix=no
14679 need_version=no
14680 case "$host_cpu" in
14681 ia64*)
14682 shrext_cmds='.so'
14683 hardcode_into_libs=yes
14684 dynamic_linker="$host_os dld.so"
14685 shlibpath_var=LD_LIBRARY_PATH
14686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 soname_spec='${libname}${release}${shared_ext}$major'
14689 if test "X$HPUX_IA64_MODE" = X32; then
14690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14691 else
14692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14693 fi
14694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14695 ;;
14696 hppa*64*)
14697 shrext_cmds='.sl'
14698 hardcode_into_libs=yes
14699 dynamic_linker="$host_os dld.sl"
14700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14706 ;;
14707 *)
14708 shrext_cmds='.sl'
14709 dynamic_linker="$host_os dld.sl"
14710 shlibpath_var=SHLIB_PATH
14711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 ;;
14715 esac
14716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14717 postinstall_cmds='chmod 555 $lib'
14718 ;;
14719
14720 irix5* | irix6* | nonstopux*)
14721 case $host_os in
14722 nonstopux*) version_type=nonstopux ;;
14723 *)
14724 if test "$lt_cv_prog_gnu_ld" = yes; then
14725 version_type=linux
14726 else
14727 version_type=irix
14728 fi ;;
14729 esac
14730 need_lib_prefix=no
14731 need_version=no
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14734 case $host_os in
14735 irix5* | nonstopux*)
14736 libsuff= shlibsuff=
14737 ;;
14738 *)
14739 case $LD in # libtool.m4 will add one of these switches to LD
14740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14741 libsuff= shlibsuff= libmagic=32-bit;;
14742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14743 libsuff=32 shlibsuff=N32 libmagic=N32;;
14744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14745 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14746 *) libsuff= shlibsuff= libmagic=never-match;;
14747 esac
14748 ;;
14749 esac
14750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14751 shlibpath_overrides_runpath=no
14752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14754 hardcode_into_libs=yes
14755 ;;
14756
14757 # No shared lib support for Linux oldld, aout, or coff.
14758 linux*oldld* | linux*aout* | linux*coff*)
14759 dynamic_linker=no
14760 ;;
14761
14762 # This must be Linux ELF.
14763 linux*)
14764 version_type=linux
14765 need_lib_prefix=no
14766 need_version=no
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath=no
14772 # This implies no fast_install, which is unacceptable.
14773 # Some rework will be needed to allow for fast_install
14774 # before this can be enabled.
14775 hardcode_into_libs=yes
14776
14777 # find out which ABI we are using
14778 libsuff=
14779 case "$host_cpu" in
14780 x86_64*|s390x*|powerpc64*)
14781 echo '#line 14781 "configure"' > conftest.$ac_ext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783 (eval $ac_compile) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; then
14787 case `/usr/bin/file conftest.$ac_objext` in
14788 *64-bit*)
14789 libsuff=64
14790 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14791 ;;
14792 esac
14793 fi
14794 rm -rf conftest*
14795 ;;
14796 esac
14797
14798 # Append ld.so.conf contents to the search path
14799 if test -f /etc/ld.so.conf; then
14800 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14801 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14802 fi
14803
14804 # We used to test for /lib/ld.so.1 and disable shared libraries on
14805 # powerpc, because MkLinux only supported shared libraries with the
14806 # GNU dynamic linker. Since this was broken with cross compilers,
14807 # most powerpc-linux boxes support dynamic linking these days and
14808 # people can always --disable-shared, the test was removed, and we
14809 # assume the GNU/Linux dynamic linker is in use.
14810 dynamic_linker='GNU/Linux ld.so'
14811 ;;
14812
14813 knetbsd*-gnu)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=no
14821 hardcode_into_libs=yes
14822 dynamic_linker='GNU ld.so'
14823 ;;
14824
14825 netbsd*)
14826 version_type=sunos
14827 need_lib_prefix=no
14828 need_version=no
14829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14832 dynamic_linker='NetBSD (a.out) ld.so'
14833 else
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 dynamic_linker='NetBSD ld.elf_so'
14837 fi
14838 shlibpath_var=LD_LIBRARY_PATH
14839 shlibpath_overrides_runpath=yes
14840 hardcode_into_libs=yes
14841 ;;
14842
14843 newsos6)
14844 version_type=linux
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 ;;
14849
14850 nto-qnx*)
14851 version_type=linux
14852 need_lib_prefix=no
14853 need_version=no
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 ;;
14859
14860 openbsd*)
14861 version_type=sunos
14862 need_lib_prefix=no
14863 need_version=yes
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14868 case $host_os in
14869 openbsd2.[89] | openbsd2.[89].*)
14870 shlibpath_overrides_runpath=no
14871 ;;
14872 *)
14873 shlibpath_overrides_runpath=yes
14874 ;;
14875 esac
14876 else
14877 shlibpath_overrides_runpath=yes
14878 fi
14879 ;;
14880
14881 os2*)
14882 libname_spec='$name'
14883 shrext_cmds=".dll"
14884 need_lib_prefix=no
14885 library_names_spec='$libname${shared_ext} $libname.a'
14886 dynamic_linker='OS/2 ld.exe'
14887 shlibpath_var=LIBPATH
14888 ;;
14889
14890 osf3* | osf4* | osf5*)
14891 version_type=osf
14892 need_lib_prefix=no
14893 need_version=no
14894 soname_spec='${libname}${release}${shared_ext}$major'
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14899 ;;
14900
14901 sco3.2v5*)
14902 version_type=osf
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 ;;
14907
14908 solaris*)
14909 version_type=linux
14910 need_lib_prefix=no
14911 need_version=no
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath=yes
14916 hardcode_into_libs=yes
14917 # ldd complains unless libraries are executable
14918 postinstall_cmds='chmod +x $lib'
14919 ;;
14920
14921 sunos4*)
14922 version_type=sunos
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=yes
14927 if test "$with_gnu_ld" = yes; then
14928 need_lib_prefix=no
14929 fi
14930 need_version=yes
14931 ;;
14932
14933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14934 version_type=linux
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 case $host_vendor in
14939 sni)
14940 shlibpath_overrides_runpath=no
14941 need_lib_prefix=no
14942 export_dynamic_flag_spec='${wl}-Blargedynsym'
14943 runpath_var=LD_RUN_PATH
14944 ;;
14945 siemens)
14946 need_lib_prefix=no
14947 ;;
14948 motorola)
14949 need_lib_prefix=no
14950 need_version=no
14951 shlibpath_overrides_runpath=no
14952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14953 ;;
14954 esac
14955 ;;
14956
14957 sysv4*MP*)
14958 if test -d /usr/nec ;then
14959 version_type=linux
14960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14961 soname_spec='$libname${shared_ext}.$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 fi
14964 ;;
14965
14966 uts4*)
14967 version_type=linux
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 ;;
14972
14973 *)
14974 dynamic_linker=no
14975 ;;
14976 esac
14977 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14978 echo "${ECHO_T}$dynamic_linker" >&6
14979 test "$dynamic_linker" = no && can_build_shared=no
14980
14981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14983 hardcode_action_F77=
14984 if test -n "$hardcode_libdir_flag_spec_F77" || \
14985 test -n "$runpath_var F77" || \
14986 test "X$hardcode_automatic_F77"="Xyes" ; then
14987
14988 # We can hardcode non-existant directories.
14989 if test "$hardcode_direct_F77" != no &&
14990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14991 # have to relink, otherwise we might link with an installed library
14992 # when we should be linking with a yet-to-be-installed one
14993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14994 test "$hardcode_minus_L_F77" != no; then
14995 # Linking always hardcodes the temporary library directory.
14996 hardcode_action_F77=relink
14997 else
14998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14999 hardcode_action_F77=immediate
15000 fi
15001 else
15002 # We cannot hardcode anything, or else we can only hardcode existing
15003 # directories.
15004 hardcode_action_F77=unsupported
15005 fi
15006 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15007 echo "${ECHO_T}$hardcode_action_F77" >&6
15008
15009 if test "$hardcode_action_F77" = relink; then
15010 # Fast installation is not supported
15011 enable_fast_install=no
15012 elif test "$shlibpath_overrides_runpath" = yes ||
15013 test "$enable_shared" = no; then
15014 # Fast installation is not necessary
15015 enable_fast_install=needless
15016 fi
15017
15018 striplib=
15019 old_striplib=
15020 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15025 echo "$as_me:$LINENO: result: yes" >&5
15026 echo "${ECHO_T}yes" >&6
15027 else
15028 # FIXME - insert some real tests, host_os isn't really good enough
15029 case $host_os in
15030 darwin*)
15031 if test -n "$STRIP" ; then
15032 striplib="$STRIP -x"
15033 echo "$as_me:$LINENO: result: yes" >&5
15034 echo "${ECHO_T}yes" >&6
15035 else
15036 echo "$as_me:$LINENO: result: no" >&5
15037 echo "${ECHO_T}no" >&6
15038 fi
15039 ;;
15040 *)
15041 echo "$as_me:$LINENO: result: no" >&5
15042 echo "${ECHO_T}no" >&6
15043 ;;
15044 esac
15045 fi
15046
15047
15048
15049 # The else clause should only fire when bootstrapping the
15050 # libtool distribution, otherwise you forgot to ship ltmain.sh
15051 # with your package, and you will get complaints that there are
15052 # no rules to generate ltmain.sh.
15053 if test -f "$ltmain"; then
15054 # See if we are running on zsh, and set the options which allow our commands through
15055 # without removal of \ escapes.
15056 if test -n "${ZSH_VERSION+set}" ; then
15057 setopt NO_GLOB_SUBST
15058 fi
15059 # Now quote all the things that may contain metacharacters while being
15060 # careful not to overquote the AC_SUBSTed values. We take copies of the
15061 # variables and quote the copies for generation of the libtool script.
15062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15063 SED SHELL STRIP \
15064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15066 deplibs_check_method reload_flag reload_cmds need_locks \
15067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15068 lt_cv_sys_global_symbol_to_c_name_address \
15069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15070 old_postinstall_cmds old_postuninstall_cmds \
15071 compiler_F77 \
15072 CC_F77 \
15073 LD_F77 \
15074 lt_prog_compiler_wl_F77 \
15075 lt_prog_compiler_pic_F77 \
15076 lt_prog_compiler_static_F77 \
15077 lt_prog_compiler_no_builtin_flag_F77 \
15078 export_dynamic_flag_spec_F77 \
15079 thread_safe_flag_spec_F77 \
15080 whole_archive_flag_spec_F77 \
15081 enable_shared_with_static_runtimes_F77 \
15082 old_archive_cmds_F77 \
15083 old_archive_from_new_cmds_F77 \
15084 predep_objects_F77 \
15085 postdep_objects_F77 \
15086 predeps_F77 \
15087 postdeps_F77 \
15088 compiler_lib_search_path_F77 \
15089 archive_cmds_F77 \
15090 archive_expsym_cmds_F77 \
15091 postinstall_cmds_F77 \
15092 postuninstall_cmds_F77 \
15093 old_archive_from_expsyms_cmds_F77 \
15094 allow_undefined_flag_F77 \
15095 no_undefined_flag_F77 \
15096 export_symbols_cmds_F77 \
15097 hardcode_libdir_flag_spec_F77 \
15098 hardcode_libdir_flag_spec_ld_F77 \
15099 hardcode_libdir_separator_F77 \
15100 hardcode_automatic_F77 \
15101 module_cmds_F77 \
15102 module_expsym_cmds_F77 \
15103 lt_cv_prog_compiler_c_o_F77 \
15104 exclude_expsyms_F77 \
15105 include_expsyms_F77; do
15106
15107 case $var in
15108 old_archive_cmds_F77 | \
15109 old_archive_from_new_cmds_F77 | \
15110 archive_cmds_F77 | \
15111 archive_expsym_cmds_F77 | \
15112 module_cmds_F77 | \
15113 module_expsym_cmds_F77 | \
15114 old_archive_from_expsyms_cmds_F77 | \
15115 export_symbols_cmds_F77 | \
15116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15117 postinstall_cmds | postuninstall_cmds | \
15118 old_postinstall_cmds | old_postuninstall_cmds | \
15119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15120 # Double-quote double-evaled strings.
15121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15122 ;;
15123 *)
15124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15125 ;;
15126 esac
15127 done
15128
15129 case $lt_echo in
15130 *'\$0 --fallback-echo"')
15131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15132 ;;
15133 esac
15134
15135 cfgfile="$ofile"
15136
15137 cat <<__EOF__ >> "$cfgfile"
15138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15139
15140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15141
15142 # Shell to use when invoking shell scripts.
15143 SHELL=$lt_SHELL
15144
15145 # Whether or not to build shared libraries.
15146 build_libtool_libs=$enable_shared
15147
15148 # Whether or not to build static libraries.
15149 build_old_libs=$enable_static
15150
15151 # Whether or not to add -lc for building shared libraries.
15152 build_libtool_need_lc=$archive_cmds_need_lc_F77
15153
15154 # Whether or not to disallow shared libs when runtime libs are static
15155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15156
15157 # Whether or not to optimize for fast installation.
15158 fast_install=$enable_fast_install
15159
15160 # The host system.
15161 host_alias=$host_alias
15162 host=$host
15163
15164 # An echo program that does not interpret backslashes.
15165 echo=$lt_echo
15166
15167 # The archiver.
15168 AR=$lt_AR
15169 AR_FLAGS=$lt_AR_FLAGS
15170
15171 # A C compiler.
15172 LTCC=$lt_LTCC
15173
15174 # A language-specific compiler.
15175 CC=$lt_compiler_F77
15176
15177 # Is the compiler the GNU C compiler?
15178 with_gcc=$GCC_F77
15179
15180 # An ERE matcher.
15181 EGREP=$lt_EGREP
15182
15183 # The linker used to build libraries.
15184 LD=$lt_LD_F77
15185
15186 # Whether we need hard or soft links.
15187 LN_S=$lt_LN_S
15188
15189 # A BSD-compatible nm program.
15190 NM=$lt_NM
15191
15192 # A symbol stripping program
15193 STRIP=$lt_STRIP
15194
15195 # Used to examine libraries when file_magic_cmd begins "file"
15196 MAGIC_CMD=$MAGIC_CMD
15197
15198 # Used on cygwin: DLL creation program.
15199 DLLTOOL="$DLLTOOL"
15200
15201 # Used on cygwin: object dumper.
15202 OBJDUMP="$OBJDUMP"
15203
15204 # Used on cygwin: assembler.
15205 AS="$AS"
15206
15207 # The name of the directory that contains temporary libtool files.
15208 objdir=$objdir
15209
15210 # How to create reloadable object files.
15211 reload_flag=$lt_reload_flag
15212 reload_cmds=$lt_reload_cmds
15213
15214 # How to pass a linker flag through the compiler.
15215 wl=$lt_lt_prog_compiler_wl_F77
15216
15217 # Object file suffix (normally "o").
15218 objext="$ac_objext"
15219
15220 # Old archive suffix (normally "a").
15221 libext="$libext"
15222
15223 # Shared library suffix (normally ".so").
15224 shrext_cmds='$shrext_cmds'
15225
15226 # Executable file suffix (normally "").
15227 exeext="$exeext"
15228
15229 # Additional compiler flags for building library objects.
15230 pic_flag=$lt_lt_prog_compiler_pic_F77
15231 pic_mode=$pic_mode
15232
15233 # What is the maximum length of a command?
15234 max_cmd_len=$lt_cv_sys_max_cmd_len
15235
15236 # Does compiler simultaneously support -c and -o options?
15237 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15238
15239 # Must we lock files when doing compilation ?
15240 need_locks=$lt_need_locks
15241
15242 # Do we need the lib prefix for modules?
15243 need_lib_prefix=$need_lib_prefix
15244
15245 # Do we need a version for libraries?
15246 need_version=$need_version
15247
15248 # Whether dlopen is supported.
15249 dlopen_support=$enable_dlopen
15250
15251 # Whether dlopen of programs is supported.
15252 dlopen_self=$enable_dlopen_self
15253
15254 # Whether dlopen of statically linked programs is supported.
15255 dlopen_self_static=$enable_dlopen_self_static
15256
15257 # Compiler flag to prevent dynamic linking.
15258 link_static_flag=$lt_lt_prog_compiler_static_F77
15259
15260 # Compiler flag to turn off builtin functions.
15261 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15262
15263 # Compiler flag to allow reflexive dlopens.
15264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15265
15266 # Compiler flag to generate shared objects directly from archives.
15267 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15268
15269 # Compiler flag to generate thread-safe objects.
15270 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15271
15272 # Library versioning type.
15273 version_type=$version_type
15274
15275 # Format of library name prefix.
15276 libname_spec=$lt_libname_spec
15277
15278 # List of archive names. First name is the real one, the rest are links.
15279 # The last name is the one that the linker finds with -lNAME.
15280 library_names_spec=$lt_library_names_spec
15281
15282 # The coded name of the library, if different from the real name.
15283 soname_spec=$lt_soname_spec
15284
15285 # Commands used to build and install an old-style archive.
15286 RANLIB=$lt_RANLIB
15287 old_archive_cmds=$lt_old_archive_cmds_F77
15288 old_postinstall_cmds=$lt_old_postinstall_cmds
15289 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15290
15291 # Create an old-style archive from a shared archive.
15292 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15293
15294 # Create a temporary old-style archive to link instead of a shared archive.
15295 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15296
15297 # Commands used to build and install a shared archive.
15298 archive_cmds=$lt_archive_cmds_F77
15299 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15300 postinstall_cmds=$lt_postinstall_cmds
15301 postuninstall_cmds=$lt_postuninstall_cmds
15302
15303 # Commands used to build a loadable module (assumed same as above if empty)
15304 module_cmds=$lt_module_cmds_F77
15305 module_expsym_cmds=$lt_module_expsym_cmds_F77
15306
15307 # Commands to strip libraries.
15308 old_striplib=$lt_old_striplib
15309 striplib=$lt_striplib
15310
15311 # Dependencies to place before the objects being linked to create a
15312 # shared library.
15313 predep_objects=$lt_predep_objects_F77
15314
15315 # Dependencies to place after the objects being linked to create a
15316 # shared library.
15317 postdep_objects=$lt_postdep_objects_F77
15318
15319 # Dependencies to place before the objects being linked to create a
15320 # shared library.
15321 predeps=$lt_predeps_F77
15322
15323 # Dependencies to place after the objects being linked to create a
15324 # shared library.
15325 postdeps=$lt_postdeps_F77
15326
15327 # The library search path used internally by the compiler when linking
15328 # a shared library.
15329 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15330
15331 # Method to check whether dependent libraries are shared objects.
15332 deplibs_check_method=$lt_deplibs_check_method
15333
15334 # Command to use when deplibs_check_method == file_magic.
15335 file_magic_cmd=$lt_file_magic_cmd
15336
15337 # Flag that allows shared libraries with undefined symbols to be built.
15338 allow_undefined_flag=$lt_allow_undefined_flag_F77
15339
15340 # Flag that forces no undefined symbols.
15341 no_undefined_flag=$lt_no_undefined_flag_F77
15342
15343 # Commands used to finish a libtool library installation in a directory.
15344 finish_cmds=$lt_finish_cmds
15345
15346 # Same as above, but a single script fragment to be evaled but not shown.
15347 finish_eval=$lt_finish_eval
15348
15349 # Take the output of nm and produce a listing of raw symbols and C names.
15350 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15351
15352 # Transform the output of nm in a proper C declaration
15353 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15354
15355 # Transform the output of nm in a C name address pair
15356 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15357
15358 # This is the shared library runtime path variable.
15359 runpath_var=$runpath_var
15360
15361 # This is the shared library path variable.
15362 shlibpath_var=$shlibpath_var
15363
15364 # Is shlibpath searched before the hard-coded library search path?
15365 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15366
15367 # How to hardcode a shared library path into an executable.
15368 hardcode_action=$hardcode_action_F77
15369
15370 # Whether we should hardcode library paths into libraries.
15371 hardcode_into_libs=$hardcode_into_libs
15372
15373 # Flag to hardcode \$libdir into a binary during linking.
15374 # This must work even if \$libdir does not exist.
15375 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15376
15377 # If ld is used when linking, flag to hardcode \$libdir into
15378 # a binary during linking. This must work even if \$libdir does
15379 # not exist.
15380 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15381
15382 # Whether we need a single -rpath flag with a separated argument.
15383 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15384
15385 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15386 # resulting binary.
15387 hardcode_direct=$hardcode_direct_F77
15388
15389 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15390 # resulting binary.
15391 hardcode_minus_L=$hardcode_minus_L_F77
15392
15393 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15394 # the resulting binary.
15395 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15396
15397 # Set to yes if building a shared library automatically hardcodes DIR into the library
15398 # and all subsequent libraries and executables linked against it.
15399 hardcode_automatic=$hardcode_automatic_F77
15400
15401 # Variables whose values should be saved in libtool wrapper scripts and
15402 # restored at relink time.
15403 variables_saved_for_relink="$variables_saved_for_relink"
15404
15405 # Whether libtool must link a program against all its dependency libraries.
15406 link_all_deplibs=$link_all_deplibs_F77
15407
15408 # Compile-time system search path for libraries
15409 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15410
15411 # Run-time system search path for libraries
15412 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15413
15414 # Fix the shell variable \$srcfile for the compiler.
15415 fix_srcfile_path="$fix_srcfile_path_F77"
15416
15417 # Set to yes if exported symbols are required.
15418 always_export_symbols=$always_export_symbols_F77
15419
15420 # The commands to list exported symbols.
15421 export_symbols_cmds=$lt_export_symbols_cmds_F77
15422
15423 # The commands to extract the exported symbol list from a shared archive.
15424 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15425
15426 # Symbols that should not be listed in the preloaded symbols.
15427 exclude_expsyms=$lt_exclude_expsyms_F77
15428
15429 # Symbols that must always be exported.
15430 include_expsyms=$lt_include_expsyms_F77
15431
15432 # ### END LIBTOOL TAG CONFIG: $tagname
15433
15434 __EOF__
15435
15436
15437 else
15438 # If there is no Makefile yet, we rely on a make rule to execute
15439 # `config.status --recheck' to rerun these tests and create the
15440 # libtool script then.
15441 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15442 if test -f "$ltmain_in"; then
15443 test -f Makefile && make "$ltmain"
15444 fi
15445 fi
15446
15447
15448 ac_ext=c
15449 ac_cpp='$CPP $CPPFLAGS'
15450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15453
15454 CC="$lt_save_CC"
15455
15456 else
15457 tagname=""
15458 fi
15459 ;;
15460
15461 GCJ)
15462 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15463
15464
15465
15466 # Source file extension for Java test sources.
15467 ac_ext=java
15468
15469 # Object file extension for compiled Java test sources.
15470 objext=o
15471 objext_GCJ=$objext
15472
15473 # Code to be used in simple compile tests
15474 lt_simple_compile_test_code="class foo {}\n"
15475
15476 # Code to be used in simple link tests
15477 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15478
15479 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15480
15481 # If no C compiler was specified, use CC.
15482 LTCC=${LTCC-"$CC"}
15483
15484 # Allow CC to be a program name with arguments.
15485 compiler=$CC
15486
15487
15488 # Allow CC to be a program name with arguments.
15489 lt_save_CC="$CC"
15490 CC=${GCJ-"gcj"}
15491 compiler=$CC
15492 compiler_GCJ=$CC
15493
15494 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15495 archive_cmds_need_lc_GCJ=no
15496
15497
15498 lt_prog_compiler_no_builtin_flag_GCJ=
15499
15500 if test "$GCC" = yes; then
15501 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15502
15503
15504 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15505 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15506 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 lt_cv_prog_compiler_rtti_exceptions=no
15510 ac_outfile=conftest.$ac_objext
15511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15512 lt_compiler_flag="-fno-rtti -fno-exceptions"
15513 # Insert the option either (1) after the last *FLAGS variable, or
15514 # (2) before a word containing "conftest.", or (3) at the end.
15515 # Note that $ac_compile itself does not contain backslashes and begins
15516 # with a dollar sign (not a hyphen), so the echo should work correctly.
15517 # The option is referenced via a variable to avoid confusing sed.
15518 lt_compile=`echo "$ac_compile" | $SED \
15519 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15521 -e 's:$: $lt_compiler_flag:'`
15522 (eval echo "\"\$as_me:15522: $lt_compile\"" >&5)
15523 (eval "$lt_compile" 2>conftest.err)
15524 ac_status=$?
15525 cat conftest.err >&5
15526 echo "$as_me:15526: \$? = $ac_status" >&5
15527 if (exit $ac_status) && test -s "$ac_outfile"; then
15528 # The compiler can only warn and ignore the option if not recognized
15529 # So say no if there are warnings
15530 if test ! -s conftest.err; then
15531 lt_cv_prog_compiler_rtti_exceptions=yes
15532 fi
15533 fi
15534 $rm conftest*
15535
15536 fi
15537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15538 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15539
15540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15541 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15542 else
15543 :
15544 fi
15545
15546 fi
15547
15548 lt_prog_compiler_wl_GCJ=
15549 lt_prog_compiler_pic_GCJ=
15550 lt_prog_compiler_static_GCJ=
15551
15552 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15553 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15554
15555 if test "$GCC" = yes; then
15556 lt_prog_compiler_wl_GCJ='-Wl,'
15557 lt_prog_compiler_static_GCJ='-static'
15558
15559 case $host_os in
15560 aix*)
15561 # All AIX code is PIC.
15562 if test "$host_cpu" = ia64; then
15563 # AIX 5 now supports IA64 processor
15564 lt_prog_compiler_static_GCJ='-Bstatic'
15565 fi
15566 ;;
15567
15568 amigaos*)
15569 # FIXME: we need at least 68020 code to build shared libraries, but
15570 # adding the `-m68020' flag to GCC prevents building anything better,
15571 # like `-m68040'.
15572 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15573 ;;
15574
15575 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15576 # PIC is the default for these OSes.
15577 ;;
15578
15579 mingw* | pw32* | os2*)
15580 # This hack is so that the source file can tell whether it is being
15581 # built for inclusion in a dll (and should export symbols for example).
15582 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15583 ;;
15584
15585 darwin* | rhapsody*)
15586 # PIC is the default on this platform
15587 # Common symbols not allowed in MH_DYLIB files
15588 lt_prog_compiler_pic_GCJ='-fno-common'
15589 ;;
15590
15591 msdosdjgpp*)
15592 # Just because we use GCC doesn't mean we suddenly get shared libraries
15593 # on systems that don't support them.
15594 lt_prog_compiler_can_build_shared_GCJ=no
15595 enable_shared=no
15596 ;;
15597
15598 sysv4*MP*)
15599 if test -d /usr/nec; then
15600 lt_prog_compiler_pic_GCJ=-Kconform_pic
15601 fi
15602 ;;
15603
15604 hpux*)
15605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15606 # not for PA HP-UX.
15607 case "$host_cpu" in
15608 hppa*64*|ia64*)
15609 # +Z the default
15610 ;;
15611 *)
15612 lt_prog_compiler_pic_GCJ='-fPIC'
15613 ;;
15614 esac
15615 ;;
15616
15617 *)
15618 lt_prog_compiler_pic_GCJ='-fPIC'
15619 ;;
15620 esac
15621 else
15622 # PORTME Check for flag to pass linker flags through the system compiler.
15623 case $host_os in
15624 aix*)
15625 lt_prog_compiler_wl_GCJ='-Wl,'
15626 if test "$host_cpu" = ia64; then
15627 # AIX 5 now supports IA64 processor
15628 lt_prog_compiler_static_GCJ='-Bstatic'
15629 else
15630 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15631 fi
15632 ;;
15633
15634 mingw* | pw32* | os2*)
15635 # This hack is so that the source file can tell whether it is being
15636 # built for inclusion in a dll (and should export symbols for example).
15637 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15638 ;;
15639
15640 hpux9* | hpux10* | hpux11*)
15641 lt_prog_compiler_wl_GCJ='-Wl,'
15642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15643 # not for PA HP-UX.
15644 case "$host_cpu" in
15645 hppa*64*|ia64*)
15646 # +Z the default
15647 ;;
15648 *)
15649 lt_prog_compiler_pic_GCJ='+Z'
15650 ;;
15651 esac
15652 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15653 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15654 ;;
15655
15656 irix5* | irix6* | nonstopux*)
15657 lt_prog_compiler_wl_GCJ='-Wl,'
15658 # PIC (with -KPIC) is the default.
15659 lt_prog_compiler_static_GCJ='-non_shared'
15660 ;;
15661
15662 newsos6)
15663 lt_prog_compiler_pic_GCJ='-KPIC'
15664 lt_prog_compiler_static_GCJ='-Bstatic'
15665 ;;
15666
15667 linux*)
15668 case $CC in
15669 icc* | ecc*)
15670 lt_prog_compiler_wl_GCJ='-Wl,'
15671 lt_prog_compiler_pic_GCJ='-KPIC'
15672 lt_prog_compiler_static_GCJ='-static'
15673 ;;
15674 ccc*)
15675 lt_prog_compiler_wl_GCJ='-Wl,'
15676 # All Alpha code is PIC.
15677 lt_prog_compiler_static_GCJ='-non_shared'
15678 ;;
15679 esac
15680 ;;
15681
15682 osf3* | osf4* | osf5*)
15683 lt_prog_compiler_wl_GCJ='-Wl,'
15684 # All OSF/1 code is PIC.
15685 lt_prog_compiler_static_GCJ='-non_shared'
15686 ;;
15687
15688 sco3.2v5*)
15689 lt_prog_compiler_pic_GCJ='-Kpic'
15690 lt_prog_compiler_static_GCJ='-dn'
15691 ;;
15692
15693 solaris*)
15694 lt_prog_compiler_wl_GCJ='-Wl,'
15695 lt_prog_compiler_pic_GCJ='-KPIC'
15696 lt_prog_compiler_static_GCJ='-Bstatic'
15697 ;;
15698
15699 sunos4*)
15700 lt_prog_compiler_wl_GCJ='-Qoption ld '
15701 lt_prog_compiler_pic_GCJ='-PIC'
15702 lt_prog_compiler_static_GCJ='-Bstatic'
15703 ;;
15704
15705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 lt_prog_compiler_pic_GCJ='-KPIC'
15708 lt_prog_compiler_static_GCJ='-Bstatic'
15709 ;;
15710
15711 sysv4*MP*)
15712 if test -d /usr/nec ;then
15713 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15714 lt_prog_compiler_static_GCJ='-Bstatic'
15715 fi
15716 ;;
15717
15718 uts4*)
15719 lt_prog_compiler_pic_GCJ='-pic'
15720 lt_prog_compiler_static_GCJ='-Bstatic'
15721 ;;
15722
15723 *)
15724 lt_prog_compiler_can_build_shared_GCJ=no
15725 ;;
15726 esac
15727 fi
15728
15729 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15730 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15731
15732 #
15733 # Check to make sure the PIC flag actually works.
15734 #
15735 if test -n "$lt_prog_compiler_pic_GCJ"; then
15736
15737 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15738 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15739 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742 lt_prog_compiler_pic_works_GCJ=no
15743 ac_outfile=conftest.$ac_objext
15744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15745 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15746 # Insert the option either (1) after the last *FLAGS variable, or
15747 # (2) before a word containing "conftest.", or (3) at the end.
15748 # Note that $ac_compile itself does not contain backslashes and begins
15749 # with a dollar sign (not a hyphen), so the echo should work correctly.
15750 # The option is referenced via a variable to avoid confusing sed.
15751 lt_compile=`echo "$ac_compile" | $SED \
15752 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15754 -e 's:$: $lt_compiler_flag:'`
15755 (eval echo "\"\$as_me:15755: $lt_compile\"" >&5)
15756 (eval "$lt_compile" 2>conftest.err)
15757 ac_status=$?
15758 cat conftest.err >&5
15759 echo "$as_me:15759: \$? = $ac_status" >&5
15760 if (exit $ac_status) && test -s "$ac_outfile"; then
15761 # The compiler can only warn and ignore the option if not recognized
15762 # So say no if there are warnings
15763 if test ! -s conftest.err; then
15764 lt_prog_compiler_pic_works_GCJ=yes
15765 fi
15766 fi
15767 $rm conftest*
15768
15769 fi
15770 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15771 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15772
15773 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15774 case $lt_prog_compiler_pic_GCJ in
15775 "" | " "*) ;;
15776 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15777 esac
15778 else
15779 lt_prog_compiler_pic_GCJ=
15780 lt_prog_compiler_can_build_shared_GCJ=no
15781 fi
15782
15783 fi
15784 case "$host_os" in
15785 # For platforms which do not support PIC, -DPIC is meaningless:
15786 *djgpp*)
15787 lt_prog_compiler_pic_GCJ=
15788 ;;
15789 *)
15790 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15791 ;;
15792 esac
15793
15794 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15796 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799 lt_cv_prog_compiler_c_o_GCJ=no
15800 $rm -r conftest 2>/dev/null
15801 mkdir conftest
15802 cd conftest
15803 mkdir out
15804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15805
15806 lt_compiler_flag="-o out/conftest2.$ac_objext"
15807 # Insert the option either (1) after the last *FLAGS variable, or
15808 # (2) before a word containing "conftest.", or (3) at the end.
15809 # Note that $ac_compile itself does not contain backslashes and begins
15810 # with a dollar sign (not a hyphen), so the echo should work correctly.
15811 lt_compile=`echo "$ac_compile" | $SED \
15812 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15814 -e 's:$: $lt_compiler_flag:'`
15815 (eval echo "\"\$as_me:15815: $lt_compile\"" >&5)
15816 (eval "$lt_compile" 2>out/conftest.err)
15817 ac_status=$?
15818 cat out/conftest.err >&5
15819 echo "$as_me:15819: \$? = $ac_status" >&5
15820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15821 then
15822 # The compiler can only warn and ignore the option if not recognized
15823 # So say no if there are warnings
15824 if test ! -s out/conftest.err; then
15825 lt_cv_prog_compiler_c_o_GCJ=yes
15826 fi
15827 fi
15828 chmod u+w .
15829 $rm conftest*
15830 # SGI C++ compiler will create directory out/ii_files/ for
15831 # template instantiation
15832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15833 $rm out/* && rmdir out
15834 cd ..
15835 rmdir conftest
15836 $rm conftest*
15837
15838 fi
15839 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15841
15842
15843 hard_links="nottested"
15844 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15845 # do not overwrite the value of need_locks provided by the user
15846 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15848 hard_links=yes
15849 $rm conftest*
15850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15851 touch conftest.a
15852 ln conftest.a conftest.b 2>&5 || hard_links=no
15853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15854 echo "$as_me:$LINENO: result: $hard_links" >&5
15855 echo "${ECHO_T}$hard_links" >&6
15856 if test "$hard_links" = no; then
15857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15859 need_locks=warn
15860 fi
15861 else
15862 need_locks=no
15863 fi
15864
15865 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15867
15868 runpath_var=
15869 allow_undefined_flag_GCJ=
15870 enable_shared_with_static_runtimes_GCJ=no
15871 archive_cmds_GCJ=
15872 archive_expsym_cmds_GCJ=
15873 old_archive_From_new_cmds_GCJ=
15874 old_archive_from_expsyms_cmds_GCJ=
15875 export_dynamic_flag_spec_GCJ=
15876 whole_archive_flag_spec_GCJ=
15877 thread_safe_flag_spec_GCJ=
15878 hardcode_libdir_flag_spec_GCJ=
15879 hardcode_libdir_flag_spec_ld_GCJ=
15880 hardcode_libdir_separator_GCJ=
15881 hardcode_direct_GCJ=no
15882 hardcode_minus_L_GCJ=no
15883 hardcode_shlibpath_var_GCJ=unsupported
15884 link_all_deplibs_GCJ=unknown
15885 hardcode_automatic_GCJ=no
15886 module_cmds_GCJ=
15887 module_expsym_cmds_GCJ=
15888 always_export_symbols_GCJ=no
15889 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15890 # include_expsyms should be a list of space-separated symbols to be *always*
15891 # included in the symbol list
15892 include_expsyms_GCJ=
15893 # exclude_expsyms can be an extended regexp of symbols to exclude
15894 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15895 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15896 # as well as any symbol that contains `d'.
15897 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15898 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15899 # platforms (ab)use it in PIC code, but their linkers get confused if
15900 # the symbol is explicitly referenced. Since portable code cannot
15901 # rely on this symbol name, it's probably fine to never include it in
15902 # preloaded symbol tables.
15903 extract_expsyms_cmds=
15904
15905 case $host_os in
15906 cygwin* | mingw* | pw32*)
15907 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15908 # When not using gcc, we currently assume that we are using
15909 # Microsoft Visual C++.
15910 if test "$GCC" != yes; then
15911 with_gnu_ld=no
15912 fi
15913 ;;
15914 openbsd*)
15915 with_gnu_ld=no
15916 ;;
15917 esac
15918
15919 ld_shlibs_GCJ=yes
15920 if test "$with_gnu_ld" = yes; then
15921 # If archive_cmds runs LD, not CC, wlarc should be empty
15922 wlarc='${wl}'
15923
15924 # See if GNU ld supports shared libraries.
15925 case $host_os in
15926 aix3* | aix4* | aix5*)
15927 # On AIX/PPC, the GNU linker is very broken
15928 if test "$host_cpu" != ia64; then
15929 ld_shlibs_GCJ=no
15930 cat <<EOF 1>&2
15931
15932 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15933 *** to be unable to reliably create shared libraries on AIX.
15934 *** Therefore, libtool is disabling shared libraries support. If you
15935 *** really care for shared libraries, you may want to modify your PATH
15936 *** so that a non-GNU linker is found, and then restart.
15937
15938 EOF
15939 fi
15940 ;;
15941
15942 amigaos*)
15943 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)'
15944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15945 hardcode_minus_L_GCJ=yes
15946
15947 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
15948 # that the semantics of dynamic libraries on AmigaOS, at least up
15949 # to version 4, is to share data among multiple programs linked
15950 # with the same dynamic library. Since this doesn't match the
15951 # behavior of shared libraries on other platforms, we can't use
15952 # them.
15953 ld_shlibs_GCJ=no
15954 ;;
15955
15956 beos*)
15957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15958 allow_undefined_flag_GCJ=unsupported
15959 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15960 # support --undefined. This deserves some investigation. FIXME
15961 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 else
15963 ld_shlibs_GCJ=no
15964 fi
15965 ;;
15966
15967 cygwin* | mingw* | pw32*)
15968 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15969 # as there is no search path for DLLs.
15970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15971 allow_undefined_flag_GCJ=unsupported
15972 always_export_symbols_GCJ=no
15973 enable_shared_with_static_runtimes_GCJ=yes
15974 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15975
15976 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15977 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15978 # If the export-symbols file already is a .def file (1st line
15979 # is EXPORTS), use it as is; otherwise, prepend...
15980 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15981 cp $export_symbols $output_objdir/$soname.def;
15982 else
15983 echo EXPORTS > $output_objdir/$soname.def;
15984 cat $export_symbols >> $output_objdir/$soname.def;
15985 fi~
15986 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15987 else
15988 ld_shlibs=no
15989 fi
15990 ;;
15991
15992 netbsd*)
15993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15994 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15995 wlarc=
15996 else
15997 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15998 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15999 fi
16000 ;;
16001
16002 solaris* | sysv5*)
16003 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16004 ld_shlibs_GCJ=no
16005 cat <<EOF 1>&2
16006
16007 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16008 *** create shared libraries on Solaris systems. Therefore, libtool
16009 *** is disabling shared libraries support. We urge you to upgrade GNU
16010 *** binutils to release 2.9.1 or newer. Another option is to modify
16011 *** your PATH or compiler configuration so that the native linker is
16012 *** used, and then restart.
16013
16014 EOF
16015 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16018 else
16019 ld_shlibs_GCJ=no
16020 fi
16021 ;;
16022
16023 sunos4*)
16024 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16025 wlarc=
16026 hardcode_direct_GCJ=yes
16027 hardcode_shlibpath_var_GCJ=no
16028 ;;
16029
16030 linux*)
16031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16032 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16033 archive_cmds_GCJ="$tmp_archive_cmds"
16034 supports_anon_versioning=no
16035 case `$LD -v 2>/dev/null` in
16036 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16039 *\ 2.11.*) ;; # other 2.11 versions
16040 *) supports_anon_versioning=yes ;;
16041 esac
16042 if test $supports_anon_versioning = yes; then
16043 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16044 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16045 $echo "local: *; };" >> $output_objdir/$libname.ver~
16046 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16047 else
16048 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16049 fi
16050 else
16051 ld_shlibs_GCJ=no
16052 fi
16053 ;;
16054
16055 *)
16056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16059 else
16060 ld_shlibs_GCJ=no
16061 fi
16062 ;;
16063 esac
16064
16065 if test "$ld_shlibs_GCJ" = yes; then
16066 runpath_var=LD_RUN_PATH
16067 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16068 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16069 # ancient GNU ld didn't support --whole-archive et. al.
16070 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16071 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16072 else
16073 whole_archive_flag_spec_GCJ=
16074 fi
16075 fi
16076 else
16077 # PORTME fill in a description of your system's linker (not GNU ld)
16078 case $host_os in
16079 aix3*)
16080 allow_undefined_flag_GCJ=unsupported
16081 always_export_symbols_GCJ=yes
16082 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'
16083 # Note: this linker hardcodes the directories in LIBPATH if there
16084 # are no directories specified by -L.
16085 hardcode_minus_L_GCJ=yes
16086 if test "$GCC" = yes && test -z "$link_static_flag"; then
16087 # Neither direct hardcoding nor static linking is supported with a
16088 # broken collect2.
16089 hardcode_direct_GCJ=unsupported
16090 fi
16091 ;;
16092
16093 aix4* | aix5*)
16094 if test "$host_cpu" = ia64; then
16095 # On IA64, the linker does run time linking by default, so we don't
16096 # have to do anything special.
16097 aix_use_runtimelinking=no
16098 exp_sym_flag='-Bexport'
16099 no_entry_flag=""
16100 else
16101 # If we're using GNU nm, then we don't want the "-C" option.
16102 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16103 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16104 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'
16105 else
16106 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'
16107 fi
16108 aix_use_runtimelinking=no
16109
16110 # Test if we are trying to use run time linking or normal
16111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16112 # need to do runtime linking.
16113 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16114 for ld_flag in $LDFLAGS; do
16115 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16116 aix_use_runtimelinking=yes
16117 break
16118 fi
16119 done
16120 esac
16121
16122 exp_sym_flag='-bexport'
16123 no_entry_flag='-bnoentry'
16124 fi
16125
16126 # When large executables or shared objects are built, AIX ld can
16127 # have problems creating the table of contents. If linking a library
16128 # or program results in "error TOC overflow" add -mminimal-toc to
16129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16131
16132 archive_cmds_GCJ=''
16133 hardcode_direct_GCJ=yes
16134 hardcode_libdir_separator_GCJ=':'
16135 link_all_deplibs_GCJ=yes
16136
16137 if test "$GCC" = yes; then
16138 case $host_os in aix4.012|aix4.012.*)
16139 # We only want to do this on AIX 4.2 and lower, the check
16140 # below for broken collect2 doesn't work under 4.3+
16141 collect2name=`${CC} -print-prog-name=collect2`
16142 if test -f "$collect2name" && \
16143 strings "$collect2name" | grep resolve_lib_name >/dev/null
16144 then
16145 # We have reworked collect2
16146 hardcode_direct_GCJ=yes
16147 else
16148 # We have old collect2
16149 hardcode_direct_GCJ=unsupported
16150 # It fails to find uninstalled libraries when the uninstalled
16151 # path is not listed in the libpath. Setting hardcode_minus_L
16152 # to unsupported forces relinking
16153 hardcode_minus_L_GCJ=yes
16154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16155 hardcode_libdir_separator_GCJ=
16156 fi
16157 esac
16158 shared_flag='-shared'
16159 else
16160 # not using gcc
16161 if test "$host_cpu" = ia64; then
16162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16163 # chokes on -Wl,-G. The following line is correct:
16164 shared_flag='-G'
16165 else
16166 if test "$aix_use_runtimelinking" = yes; then
16167 shared_flag='${wl}-G'
16168 else
16169 shared_flag='${wl}-bM:SRE'
16170 fi
16171 fi
16172 fi
16173
16174 # It seems that -bexpall does not export symbols beginning with
16175 # underscore (_), so it is better to generate a list of symbols to export.
16176 always_export_symbols_GCJ=yes
16177 if test "$aix_use_runtimelinking" = yes; then
16178 # Warning - without using the other runtime loading flags (-brtl),
16179 # -berok will link without error, but may produce a broken library.
16180 allow_undefined_flag_GCJ='-berok'
16181 # Determine the default libpath from the value encoded in an empty executable.
16182 cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h. */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188
16189 int
16190 main ()
16191 {
16192
16193 ;
16194 return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199 (eval $ac_link) 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest$ac_exeext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219
16220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16221 }'`
16222 # Check for a 64-bit object if we didn't find anything.
16223 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; }
16224 }'`; fi
16225 else
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 fi
16230 rm -f conftest.err conftest.$ac_objext \
16231 conftest$ac_exeext conftest.$ac_ext
16232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16233
16234 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16235 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"
16236 else
16237 if test "$host_cpu" = ia64; then
16238 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16239 allow_undefined_flag_GCJ="-z nodefs"
16240 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"
16241 else
16242 # Determine the default libpath from the value encoded in an empty executable.
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249
16250 int
16251 main ()
16252 {
16253
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16260 (eval $ac_link) 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -z "$ac_c_werror_flag"
16268 || test ! -s conftest.err'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest$ac_exeext'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16280
16281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16282 }'`
16283 # Check for a 64-bit object if we didn't find anything.
16284 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; }
16285 }'`; fi
16286 else
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 fi
16291 rm -f conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16294
16295 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16296 # Warning - without using the other run time loading flags,
16297 # -berok will link without error, but may produce a broken library.
16298 no_undefined_flag_GCJ=' ${wl}-bernotok'
16299 allow_undefined_flag_GCJ=' ${wl}-berok'
16300 # -bexpall does not export symbols beginning with underscore (_)
16301 always_export_symbols_GCJ=yes
16302 # Exported symbols can be pulled into shared objects from archives
16303 whole_archive_flag_spec_GCJ=' '
16304 archive_cmds_need_lc_GCJ=yes
16305 # This is similar to how AIX traditionally builds it's shared libraries.
16306 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'
16307 fi
16308 fi
16309 ;;
16310
16311 amigaos*)
16312 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)'
16313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16314 hardcode_minus_L_GCJ=yes
16315 # see comment about different semantics on the GNU ld section
16316 ld_shlibs_GCJ=no
16317 ;;
16318
16319 bsdi4*)
16320 export_dynamic_flag_spec_GCJ=-rdynamic
16321 ;;
16322
16323 cygwin* | mingw* | pw32*)
16324 # When not using gcc, we currently assume that we are using
16325 # Microsoft Visual C++.
16326 # hardcode_libdir_flag_spec is actually meaningless, as there is
16327 # no search path for DLLs.
16328 hardcode_libdir_flag_spec_GCJ=' '
16329 allow_undefined_flag_GCJ=unsupported
16330 # Tell ltmain to make .lib files, not .a files.
16331 libext=lib
16332 # Tell ltmain to make .dll files, not .so files.
16333 shrext_cmds=".dll"
16334 # FIXME: Setting linknames here is a bad hack.
16335 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16336 # The linker will automatically build a .lib file if we build a DLL.
16337 old_archive_From_new_cmds_GCJ='true'
16338 # FIXME: Should let the user specify the lib program.
16339 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16340 fix_srcfile_path='`cygpath -w "$srcfile"`'
16341 enable_shared_with_static_runtimes_GCJ=yes
16342 ;;
16343
16344 darwin* | rhapsody*)
16345 if test "$GXX" = yes ; then
16346 archive_cmds_need_lc_GCJ=no
16347 case "$host_os" in
16348 rhapsody* | darwin1.[012])
16349 allow_undefined_flag_GCJ='-undefined suppress'
16350 ;;
16351 *) # Darwin 1.3 on
16352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16353 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16354 else
16355 case ${MACOSX_DEPLOYMENT_TARGET} in
16356 10.[012])
16357 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16358 ;;
16359 10.*)
16360 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16361 ;;
16362 esac
16363 fi
16364 ;;
16365 esac
16366 lt_int_apple_cc_single_mod=no
16367 output_verbose_link_cmd='echo'
16368 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16369 lt_int_apple_cc_single_mod=yes
16370 fi
16371 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16372 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16373 else
16374 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16375 fi
16376 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16377 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16379 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16380 else
16381 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16382 fi
16383 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}'
16384 hardcode_direct_GCJ=no
16385 hardcode_automatic_GCJ=yes
16386 hardcode_shlibpath_var_GCJ=unsupported
16387 whole_archive_flag_spec_GCJ='-all_load $convenience'
16388 link_all_deplibs_GCJ=yes
16389 else
16390 ld_shlibs_GCJ=no
16391 fi
16392 ;;
16393
16394 dgux*)
16395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397 hardcode_shlibpath_var_GCJ=no
16398 ;;
16399
16400 freebsd1*)
16401 ld_shlibs_GCJ=no
16402 ;;
16403
16404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16405 # support. Future versions do this automatically, but an explicit c++rt0.o
16406 # does not break anything, and helps significantly (at the cost of a little
16407 # extra space).
16408 freebsd2.2*)
16409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16410 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16411 hardcode_direct_GCJ=yes
16412 hardcode_shlibpath_var_GCJ=no
16413 ;;
16414
16415 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16416 freebsd2*)
16417 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16418 hardcode_direct_GCJ=yes
16419 hardcode_minus_L_GCJ=yes
16420 hardcode_shlibpath_var_GCJ=no
16421 ;;
16422
16423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16424 freebsd* | kfreebsd*-gnu)
16425 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16426 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16427 hardcode_direct_GCJ=yes
16428 hardcode_shlibpath_var_GCJ=no
16429 ;;
16430
16431 hpux9*)
16432 if test "$GCC" = yes; then
16433 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'
16434 else
16435 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'
16436 fi
16437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16438 hardcode_libdir_separator_GCJ=:
16439 hardcode_direct_GCJ=yes
16440
16441 # hardcode_minus_L: Not really in the search PATH,
16442 # but as the default location of the library.
16443 hardcode_minus_L_GCJ=yes
16444 export_dynamic_flag_spec_GCJ='${wl}-E'
16445 ;;
16446
16447 hpux10* | hpux11*)
16448 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16449 case "$host_cpu" in
16450 hppa*64*|ia64*)
16451 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 ;;
16453 *)
16454 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16455 ;;
16456 esac
16457 else
16458 case "$host_cpu" in
16459 hppa*64*|ia64*)
16460 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16461 ;;
16462 *)
16463 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16464 ;;
16465 esac
16466 fi
16467 if test "$with_gnu_ld" = no; then
16468 case "$host_cpu" in
16469 hppa*64*)
16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16472 hardcode_libdir_separator_GCJ=:
16473 hardcode_direct_GCJ=no
16474 hardcode_shlibpath_var_GCJ=no
16475 ;;
16476 ia64*)
16477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16478 hardcode_direct_GCJ=no
16479 hardcode_shlibpath_var_GCJ=no
16480
16481 # hardcode_minus_L: Not really in the search PATH,
16482 # but as the default location of the library.
16483 hardcode_minus_L_GCJ=yes
16484 ;;
16485 *)
16486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16487 hardcode_libdir_separator_GCJ=:
16488 hardcode_direct_GCJ=yes
16489 export_dynamic_flag_spec_GCJ='${wl}-E'
16490
16491 # hardcode_minus_L: Not really in the search PATH,
16492 # but as the default location of the library.
16493 hardcode_minus_L_GCJ=yes
16494 ;;
16495 esac
16496 fi
16497 ;;
16498
16499 irix5* | irix6* | nonstopux*)
16500 if test "$GCC" = yes; then
16501 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'
16502 else
16503 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'
16504 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16505 fi
16506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16507 hardcode_libdir_separator_GCJ=:
16508 link_all_deplibs_GCJ=yes
16509 ;;
16510
16511 netbsd*)
16512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16514 else
16515 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16516 fi
16517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16518 hardcode_direct_GCJ=yes
16519 hardcode_shlibpath_var_GCJ=no
16520 ;;
16521
16522 newsos6)
16523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct_GCJ=yes
16525 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16526 hardcode_libdir_separator_GCJ=:
16527 hardcode_shlibpath_var_GCJ=no
16528 ;;
16529
16530 openbsd*)
16531 hardcode_direct_GCJ=yes
16532 hardcode_shlibpath_var_GCJ=no
16533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16534 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16536 export_dynamic_flag_spec_GCJ='${wl}-E'
16537 else
16538 case $host_os in
16539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16540 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16542 ;;
16543 *)
16544 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16546 ;;
16547 esac
16548 fi
16549 ;;
16550
16551 os2*)
16552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553 hardcode_minus_L_GCJ=yes
16554 allow_undefined_flag_GCJ=unsupported
16555 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'
16556 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16557 ;;
16558
16559 osf3*)
16560 if test "$GCC" = yes; then
16561 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16562 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'
16563 else
16564 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16565 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'
16566 fi
16567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16568 hardcode_libdir_separator_GCJ=:
16569 ;;
16570
16571 osf4* | osf5*) # as osf3* with the addition of -msym flag
16572 if test "$GCC" = yes; then
16573 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16574 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'
16575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16576 else
16577 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16578 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'
16579 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~
16580 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16581
16582 # Both c and cxx compiler support -rpath directly
16583 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16584 fi
16585 hardcode_libdir_separator_GCJ=:
16586 ;;
16587
16588 sco3.2v5*)
16589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590 hardcode_shlibpath_var_GCJ=no
16591 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16592 runpath_var=LD_RUN_PATH
16593 hardcode_runpath_var=yes
16594 ;;
16595
16596 solaris*)
16597 no_undefined_flag_GCJ=' -z text'
16598 if test "$GCC" = yes; then
16599 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16602 else
16603 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16604 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16606 fi
16607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608 hardcode_shlibpath_var_GCJ=no
16609 case $host_os in
16610 solaris2.[0-5] | solaris2.[0-5].*) ;;
16611 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16612 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16613 esac
16614 link_all_deplibs_GCJ=yes
16615 ;;
16616
16617 sunos4*)
16618 if test "x$host_vendor" = xsequent; then
16619 # Use $CC to link under sequent, because it throws in some extra .o
16620 # files that make .init and .fini sections work.
16621 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16622 else
16623 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16624 fi
16625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626 hardcode_direct_GCJ=yes
16627 hardcode_minus_L_GCJ=yes
16628 hardcode_shlibpath_var_GCJ=no
16629 ;;
16630
16631 sysv4)
16632 case $host_vendor in
16633 sni)
16634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635 hardcode_direct_GCJ=yes # is this really true???
16636 ;;
16637 siemens)
16638 ## LD is ld it makes a PLAMLIB
16639 ## CC just makes a GrossModule.
16640 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16641 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16642 hardcode_direct_GCJ=no
16643 ;;
16644 motorola)
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16647 ;;
16648 esac
16649 runpath_var='LD_RUN_PATH'
16650 hardcode_shlibpath_var_GCJ=no
16651 ;;
16652
16653 sysv4.3*)
16654 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_shlibpath_var_GCJ=no
16656 export_dynamic_flag_spec_GCJ='-Bexport'
16657 ;;
16658
16659 sysv4*MP*)
16660 if test -d /usr/nec; then
16661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_shlibpath_var_GCJ=no
16663 runpath_var=LD_RUN_PATH
16664 hardcode_runpath_var=yes
16665 ld_shlibs_GCJ=yes
16666 fi
16667 ;;
16668
16669 sysv4.2uw2*)
16670 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_direct_GCJ=yes
16672 hardcode_minus_L_GCJ=no
16673 hardcode_shlibpath_var_GCJ=no
16674 hardcode_runpath_var=yes
16675 runpath_var=LD_RUN_PATH
16676 ;;
16677
16678 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16679 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16680 if test "$GCC" = yes; then
16681 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 else
16683 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16684 fi
16685 runpath_var='LD_RUN_PATH'
16686 hardcode_shlibpath_var_GCJ=no
16687 ;;
16688
16689 sysv5*)
16690 no_undefined_flag_GCJ=' -z text'
16691 # $CC -shared without GNU ld will not create a library from C++
16692 # object files and a static libstdc++, better avoid it by now
16693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16696 hardcode_libdir_flag_spec_GCJ=
16697 hardcode_shlibpath_var_GCJ=no
16698 runpath_var='LD_RUN_PATH'
16699 ;;
16700
16701 uts4*)
16702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16704 hardcode_shlibpath_var_GCJ=no
16705 ;;
16706
16707 *)
16708 ld_shlibs_GCJ=no
16709 ;;
16710 esac
16711 fi
16712
16713 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16714 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16715 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16716
16717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16718 if test "$GCC" = yes; then
16719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16720 fi
16721
16722 #
16723 # Do we need to explicitly link libc?
16724 #
16725 case "x$archive_cmds_need_lc_GCJ" in
16726 x|xyes)
16727 # Assume -lc should be added
16728 archive_cmds_need_lc_GCJ=yes
16729
16730 if test "$enable_shared" = yes && test "$GCC" = yes; then
16731 case $archive_cmds_GCJ in
16732 *'~'*)
16733 # FIXME: we may have to deal with multi-command sequences.
16734 ;;
16735 '$CC '*)
16736 # Test whether the compiler implicitly links with -lc since on some
16737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16738 # to ld, don't add -lc before -lgcc.
16739 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16741 $rm conftest*
16742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16743
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } 2>conftest.err; then
16749 soname=conftest
16750 lib=conftest
16751 libobjs=conftest.$ac_objext
16752 deplibs=
16753 wl=$lt_prog_compiler_wl_GCJ
16754 compiler_flags=-v
16755 linker_flags=-v
16756 verstring=
16757 output_objdir=.
16758 libname=conftest
16759 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16760 allow_undefined_flag_GCJ=
16761 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16762 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }
16766 then
16767 archive_cmds_need_lc_GCJ=no
16768 else
16769 archive_cmds_need_lc_GCJ=yes
16770 fi
16771 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16772 else
16773 cat conftest.err 1>&5
16774 fi
16775 $rm conftest*
16776 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16777 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16778 ;;
16779 esac
16780 fi
16781 ;;
16782 esac
16783
16784 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16786 library_names_spec=
16787 libname_spec='lib$name'
16788 soname_spec=
16789 shrext_cmds=".so"
16790 postinstall_cmds=
16791 postuninstall_cmds=
16792 finish_cmds=
16793 finish_eval=
16794 shlibpath_var=
16795 shlibpath_overrides_runpath=unknown
16796 version_type=none
16797 dynamic_linker="$host_os ld.so"
16798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16799 if test "$GCC" = yes; then
16800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16802 # if the path contains ";" then we assume it to be the separator
16803 # otherwise default to the standard path separator (i.e. ":") - it is
16804 # assumed that no part of a normal pathname contains ";" but that should
16805 # okay in the real world where ";" in dirpaths is itself problematic.
16806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16807 else
16808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16809 fi
16810 else
16811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16812 fi
16813 need_lib_prefix=unknown
16814 hardcode_into_libs=no
16815
16816 # when you set need_version to no, make sure it does not cause -set_version
16817 # flags to be left without arguments
16818 need_version=unknown
16819
16820 case $host_os in
16821 aix3*)
16822 version_type=linux
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16824 shlibpath_var=LIBPATH
16825
16826 # AIX 3 has no versioning support, so we append a major version to the name.
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 ;;
16829
16830 aix4* | aix5*)
16831 version_type=linux
16832 need_lib_prefix=no
16833 need_version=no
16834 hardcode_into_libs=yes
16835 if test "$host_cpu" = ia64; then
16836 # AIX 5 supports IA64
16837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 else
16840 # With GCC up to 2.95.x, collect2 would create an import file
16841 # for dependence libraries. The import file would start with
16842 # the line `#! .'. This would cause the generated library to
16843 # depend on `.', always an invalid library. This was fixed in
16844 # development snapshots of GCC prior to 3.0.
16845 case $host_os in
16846 aix4 | aix4.[01] | aix4.[01].*)
16847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16848 echo ' yes '
16849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16850 :
16851 else
16852 can_build_shared=no
16853 fi
16854 ;;
16855 esac
16856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16857 # soname into executable. Probably we can add versioning support to
16858 # collect2, so additional links can be useful in future.
16859 if test "$aix_use_runtimelinking" = yes; then
16860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16861 # instead of lib<name>.a to let people know that these are not
16862 # typical AIX shared libraries.
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 else
16865 # We preserve .a as extension for shared libraries through AIX4.2
16866 # and later when we are not doing run time linking.
16867 library_names_spec='${libname}${release}.a $libname.a'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 fi
16870 shlibpath_var=LIBPATH
16871 fi
16872 ;;
16873
16874 amigaos*)
16875 library_names_spec='$libname.ixlibrary $libname.a'
16876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16877 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'
16878 ;;
16879
16880 beos*)
16881 library_names_spec='${libname}${shared_ext}'
16882 dynamic_linker="$host_os ld.so"
16883 shlibpath_var=LIBRARY_PATH
16884 ;;
16885
16886 bsdi4*)
16887 version_type=linux
16888 need_version=no
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16895 # the default ld.so.conf also contains /usr/contrib/lib and
16896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16897 # libtool to hard-code these into programs
16898 ;;
16899
16900 cygwin* | mingw* | pw32*)
16901 version_type=windows
16902 shrext_cmds=".dll"
16903 need_version=no
16904 need_lib_prefix=no
16905
16906 case $GCC,$host_os in
16907 yes,cygwin* | yes,mingw* | yes,pw32*)
16908 library_names_spec='$libname.dll.a'
16909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910 postinstall_cmds='base_file=`basename \${file}`~
16911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16912 dldir=$destdir/`dirname \$dlpath`~
16913 test -d \$dldir || mkdir -p \$dldir~
16914 $install_prog $dir/$dlname \$dldir/$dlname'
16915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916 dlpath=$dir/\$dldll~
16917 $rm \$dlpath'
16918 shlibpath_overrides_runpath=yes
16919
16920 case $host_os in
16921 cygwin*)
16922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16925 ;;
16926 mingw*)
16927 # MinGW DLLs use traditional 'lib' prefix
16928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16931 # It is most probably a Windows format PATH printed by
16932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16933 # path with ; separators, and with drive letters. We can handle the
16934 # drive letters (cygwin fileutils understands them), so leave them,
16935 # especially as we might pass files found there to a mingw objdump,
16936 # which wouldn't understand a cygwinified path. Ahh.
16937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16938 else
16939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16940 fi
16941 ;;
16942 pw32*)
16943 # pw32 DLLs use 'pw' prefix rather than 'lib'
16944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16945 ;;
16946 esac
16947 ;;
16948
16949 *)
16950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16951 ;;
16952 esac
16953 dynamic_linker='Win32 ld.exe'
16954 # FIXME: first we should search . and the directory the executable is in
16955 shlibpath_var=PATH
16956 ;;
16957
16958 darwin* | rhapsody*)
16959 dynamic_linker="$host_os dyld"
16960 version_type=darwin
16961 need_lib_prefix=no
16962 need_version=no
16963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16964 soname_spec='${libname}${release}${major}$shared_ext'
16965 shlibpath_overrides_runpath=yes
16966 shlibpath_var=DYLD_LIBRARY_PATH
16967 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16968 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16969 if test "$GCC" = yes; then
16970 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"`
16971 else
16972 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16973 fi
16974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16975 ;;
16976
16977 dgux*)
16978 version_type=linux
16979 need_lib_prefix=no
16980 need_version=no
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 ;;
16985
16986 freebsd1*)
16987 dynamic_linker=no
16988 ;;
16989
16990 kfreebsd*-gnu)
16991 version_type=linux
16992 need_lib_prefix=no
16993 need_version=no
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=no
16998 hardcode_into_libs=yes
16999 dynamic_linker='GNU ld.so'
17000 ;;
17001
17002 freebsd*)
17003 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17004 version_type=freebsd-$objformat
17005 case $version_type in
17006 freebsd-elf*)
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17008 need_version=no
17009 need_lib_prefix=no
17010 ;;
17011 freebsd-*)
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17013 need_version=yes
17014 ;;
17015 esac
17016 shlibpath_var=LD_LIBRARY_PATH
17017 case $host_os in
17018 freebsd2*)
17019 shlibpath_overrides_runpath=yes
17020 ;;
17021 freebsd3.01* | freebsdelf3.01*)
17022 shlibpath_overrides_runpath=yes
17023 hardcode_into_libs=yes
17024 ;;
17025 *) # from 3.2 on
17026 shlibpath_overrides_runpath=no
17027 hardcode_into_libs=yes
17028 ;;
17029 esac
17030 ;;
17031
17032 gnu*)
17033 version_type=linux
17034 need_lib_prefix=no
17035 need_version=no
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 hardcode_into_libs=yes
17040 ;;
17041
17042 hpux9* | hpux10* | hpux11*)
17043 # Give a soname corresponding to the major version so that dld.sl refuses to
17044 # link against other versions.
17045 version_type=sunos
17046 need_lib_prefix=no
17047 need_version=no
17048 case "$host_cpu" in
17049 ia64*)
17050 shrext_cmds='.so'
17051 hardcode_into_libs=yes
17052 dynamic_linker="$host_os dld.so"
17053 shlibpath_var=LD_LIBRARY_PATH
17054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 if test "X$HPUX_IA64_MODE" = X32; then
17058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17059 else
17060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17061 fi
17062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17063 ;;
17064 hppa*64*)
17065 shrext_cmds='.sl'
17066 hardcode_into_libs=yes
17067 dynamic_linker="$host_os dld.sl"
17068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17074 ;;
17075 *)
17076 shrext_cmds='.sl'
17077 dynamic_linker="$host_os dld.sl"
17078 shlibpath_var=SHLIB_PATH
17079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081 soname_spec='${libname}${release}${shared_ext}$major'
17082 ;;
17083 esac
17084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17085 postinstall_cmds='chmod 555 $lib'
17086 ;;
17087
17088 irix5* | irix6* | nonstopux*)
17089 case $host_os in
17090 nonstopux*) version_type=nonstopux ;;
17091 *)
17092 if test "$lt_cv_prog_gnu_ld" = yes; then
17093 version_type=linux
17094 else
17095 version_type=irix
17096 fi ;;
17097 esac
17098 need_lib_prefix=no
17099 need_version=no
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17102 case $host_os in
17103 irix5* | nonstopux*)
17104 libsuff= shlibsuff=
17105 ;;
17106 *)
17107 case $LD in # libtool.m4 will add one of these switches to LD
17108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17109 libsuff= shlibsuff= libmagic=32-bit;;
17110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17111 libsuff=32 shlibsuff=N32 libmagic=N32;;
17112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17114 *) libsuff= shlibsuff= libmagic=never-match;;
17115 esac
17116 ;;
17117 esac
17118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17119 shlibpath_overrides_runpath=no
17120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17122 hardcode_into_libs=yes
17123 ;;
17124
17125 # No shared lib support for Linux oldld, aout, or coff.
17126 linux*oldld* | linux*aout* | linux*coff*)
17127 dynamic_linker=no
17128 ;;
17129
17130 # This must be Linux ELF.
17131 linux*)
17132 version_type=linux
17133 need_lib_prefix=no
17134 need_version=no
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=no
17140 # This implies no fast_install, which is unacceptable.
17141 # Some rework will be needed to allow for fast_install
17142 # before this can be enabled.
17143 hardcode_into_libs=yes
17144
17145 # find out which ABI we are using
17146 libsuff=
17147 case "$host_cpu" in
17148 x86_64*|s390x*|powerpc64*)
17149 echo '#line 17149 "configure"' > conftest.$ac_ext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; then
17155 case `/usr/bin/file conftest.$ac_objext` in
17156 *64-bit*)
17157 libsuff=64
17158 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17159 ;;
17160 esac
17161 fi
17162 rm -rf conftest*
17163 ;;
17164 esac
17165
17166 # Append ld.so.conf contents to the search path
17167 if test -f /etc/ld.so.conf; then
17168 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17169 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17170 fi
17171
17172 # We used to test for /lib/ld.so.1 and disable shared libraries on
17173 # powerpc, because MkLinux only supported shared libraries with the
17174 # GNU dynamic linker. Since this was broken with cross compilers,
17175 # most powerpc-linux boxes support dynamic linking these days and
17176 # people can always --disable-shared, the test was removed, and we
17177 # assume the GNU/Linux dynamic linker is in use.
17178 dynamic_linker='GNU/Linux ld.so'
17179 ;;
17180
17181 knetbsd*-gnu)
17182 version_type=linux
17183 need_lib_prefix=no
17184 need_version=no
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17190 dynamic_linker='GNU ld.so'
17191 ;;
17192
17193 netbsd*)
17194 version_type=sunos
17195 need_lib_prefix=no
17196 need_version=no
17197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17200 dynamic_linker='NetBSD (a.out) ld.so'
17201 else
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 dynamic_linker='NetBSD ld.elf_so'
17205 fi
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=yes
17208 hardcode_into_libs=yes
17209 ;;
17210
17211 newsos6)
17212 version_type=linux
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=yes
17216 ;;
17217
17218 nto-qnx*)
17219 version_type=linux
17220 need_lib_prefix=no
17221 need_version=no
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 soname_spec='${libname}${release}${shared_ext}$major'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 shlibpath_overrides_runpath=yes
17226 ;;
17227
17228 openbsd*)
17229 version_type=sunos
17230 need_lib_prefix=no
17231 need_version=yes
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17236 case $host_os in
17237 openbsd2.[89] | openbsd2.[89].*)
17238 shlibpath_overrides_runpath=no
17239 ;;
17240 *)
17241 shlibpath_overrides_runpath=yes
17242 ;;
17243 esac
17244 else
17245 shlibpath_overrides_runpath=yes
17246 fi
17247 ;;
17248
17249 os2*)
17250 libname_spec='$name'
17251 shrext_cmds=".dll"
17252 need_lib_prefix=no
17253 library_names_spec='$libname${shared_ext} $libname.a'
17254 dynamic_linker='OS/2 ld.exe'
17255 shlibpath_var=LIBPATH
17256 ;;
17257
17258 osf3* | osf4* | osf5*)
17259 version_type=osf
17260 need_lib_prefix=no
17261 need_version=no
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17267 ;;
17268
17269 sco3.2v5*)
17270 version_type=osf
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 ;;
17275
17276 solaris*)
17277 version_type=linux
17278 need_lib_prefix=no
17279 need_version=no
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath=yes
17284 hardcode_into_libs=yes
17285 # ldd complains unless libraries are executable
17286 postinstall_cmds='chmod +x $lib'
17287 ;;
17288
17289 sunos4*)
17290 version_type=sunos
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17295 if test "$with_gnu_ld" = yes; then
17296 need_lib_prefix=no
17297 fi
17298 need_version=yes
17299 ;;
17300
17301 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17302 version_type=linux
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 case $host_vendor in
17307 sni)
17308 shlibpath_overrides_runpath=no
17309 need_lib_prefix=no
17310 export_dynamic_flag_spec='${wl}-Blargedynsym'
17311 runpath_var=LD_RUN_PATH
17312 ;;
17313 siemens)
17314 need_lib_prefix=no
17315 ;;
17316 motorola)
17317 need_lib_prefix=no
17318 need_version=no
17319 shlibpath_overrides_runpath=no
17320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17321 ;;
17322 esac
17323 ;;
17324
17325 sysv4*MP*)
17326 if test -d /usr/nec ;then
17327 version_type=linux
17328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17329 soname_spec='$libname${shared_ext}.$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 fi
17332 ;;
17333
17334 uts4*)
17335 version_type=linux
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 shlibpath_var=LD_LIBRARY_PATH
17339 ;;
17340
17341 *)
17342 dynamic_linker=no
17343 ;;
17344 esac
17345 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17346 echo "${ECHO_T}$dynamic_linker" >&6
17347 test "$dynamic_linker" = no && can_build_shared=no
17348
17349 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17350 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17351 hardcode_action_GCJ=
17352 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17353 test -n "$runpath_var GCJ" || \
17354 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17355
17356 # We can hardcode non-existant directories.
17357 if test "$hardcode_direct_GCJ" != no &&
17358 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17359 # have to relink, otherwise we might link with an installed library
17360 # when we should be linking with a yet-to-be-installed one
17361 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17362 test "$hardcode_minus_L_GCJ" != no; then
17363 # Linking always hardcodes the temporary library directory.
17364 hardcode_action_GCJ=relink
17365 else
17366 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17367 hardcode_action_GCJ=immediate
17368 fi
17369 else
17370 # We cannot hardcode anything, or else we can only hardcode existing
17371 # directories.
17372 hardcode_action_GCJ=unsupported
17373 fi
17374 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17375 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17376
17377 if test "$hardcode_action_GCJ" = relink; then
17378 # Fast installation is not supported
17379 enable_fast_install=no
17380 elif test "$shlibpath_overrides_runpath" = yes ||
17381 test "$enable_shared" = no; then
17382 # Fast installation is not necessary
17383 enable_fast_install=needless
17384 fi
17385
17386 striplib=
17387 old_striplib=
17388 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17389 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17390 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17393 echo "$as_me:$LINENO: result: yes" >&5
17394 echo "${ECHO_T}yes" >&6
17395 else
17396 # FIXME - insert some real tests, host_os isn't really good enough
17397 case $host_os in
17398 darwin*)
17399 if test -n "$STRIP" ; then
17400 striplib="$STRIP -x"
17401 echo "$as_me:$LINENO: result: yes" >&5
17402 echo "${ECHO_T}yes" >&6
17403 else
17404 echo "$as_me:$LINENO: result: no" >&5
17405 echo "${ECHO_T}no" >&6
17406 fi
17407 ;;
17408 *)
17409 echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6
17411 ;;
17412 esac
17413 fi
17414
17415 if test "x$enable_dlopen" != xyes; then
17416 enable_dlopen=unknown
17417 enable_dlopen_self=unknown
17418 enable_dlopen_self_static=unknown
17419 else
17420 lt_cv_dlopen=no
17421 lt_cv_dlopen_libs=
17422
17423 case $host_os in
17424 beos*)
17425 lt_cv_dlopen="load_add_on"
17426 lt_cv_dlopen_libs=
17427 lt_cv_dlopen_self=yes
17428 ;;
17429
17430 mingw* | pw32*)
17431 lt_cv_dlopen="LoadLibrary"
17432 lt_cv_dlopen_libs=
17433 ;;
17434
17435 cygwin*)
17436 lt_cv_dlopen="dlopen"
17437 lt_cv_dlopen_libs=
17438 ;;
17439
17440 darwin*)
17441 # if libdl is installed we need to link against it
17442 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17443 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447 ac_check_lib_save_LIBS=$LIBS
17448 LIBS="-ldl $LIBS"
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455
17456 /* Override any gcc2 internal prototype to avoid an error. */
17457 #ifdef __cplusplus
17458 extern "C"
17459 #endif
17460 /* We use char because int might match the return type of a gcc2
17461 builtin and then its argument prototype would still apply. */
17462 char dlopen ();
17463 int
17464 main ()
17465 {
17466 dlopen ();
17467 ;
17468 return 0;
17469 }
17470 _ACEOF
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17473 (eval $ac_link) 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_lib_dl_dlopen=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 ac_cv_lib_dl_dlopen=no
17499 fi
17500 rm -f conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502 LIBS=$ac_check_lib_save_LIBS
17503 fi
17504 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17505 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17506 if test $ac_cv_lib_dl_dlopen = yes; then
17507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17508 else
17509
17510 lt_cv_dlopen="dyld"
17511 lt_cv_dlopen_libs=
17512 lt_cv_dlopen_self=yes
17513
17514 fi
17515
17516 ;;
17517
17518 *)
17519 echo "$as_me:$LINENO: checking for shl_load" >&5
17520 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17521 if test "${ac_cv_func_shl_load+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17532 #define shl_load innocuous_shl_load
17533
17534 /* System header to define __stub macros and hopefully few prototypes,
17535 which can conflict with char shl_load (); below.
17536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17537 <limits.h> exists even on freestanding compilers. */
17538
17539 #ifdef __STDC__
17540 # include <limits.h>
17541 #else
17542 # include <assert.h>
17543 #endif
17544
17545 #undef shl_load
17546
17547 /* Override any gcc2 internal prototype to avoid an error. */
17548 #ifdef __cplusplus
17549 extern "C"
17550 {
17551 #endif
17552 /* We use char because int might match the return type of a gcc2
17553 builtin and then its argument prototype would still apply. */
17554 char shl_load ();
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17559 choke me
17560 #else
17561 char (*f) () = shl_load;
17562 #endif
17563 #ifdef __cplusplus
17564 }
17565 #endif
17566
17567 int
17568 main ()
17569 {
17570 return f != shl_load;
17571 ;
17572 return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577 (eval $ac_link) 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_func_shl_load=yes
17598 else
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 ac_cv_func_shl_load=no
17603 fi
17604 rm -f conftest.err conftest.$ac_objext \
17605 conftest$ac_exeext conftest.$ac_ext
17606 fi
17607 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17608 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17609 if test $ac_cv_func_shl_load = yes; then
17610 lt_cv_dlopen="shl_load"
17611 else
17612 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17613 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17614 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617 ac_check_lib_save_LIBS=$LIBS
17618 LIBS="-ldld $LIBS"
17619 cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h. */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625
17626 /* Override any gcc2 internal prototype to avoid an error. */
17627 #ifdef __cplusplus
17628 extern "C"
17629 #endif
17630 /* We use char because int might match the return type of a gcc2
17631 builtin and then its argument prototype would still apply. */
17632 char shl_load ();
17633 int
17634 main ()
17635 {
17636 shl_load ();
17637 ;
17638 return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext conftest$ac_exeext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643 (eval $ac_link) 2>conftest.er1
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest$ac_exeext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_lib_dld_shl_load=yes
17664 else
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_cv_lib_dld_shl_load=no
17669 fi
17670 rm -f conftest.err conftest.$ac_objext \
17671 conftest$ac_exeext conftest.$ac_ext
17672 LIBS=$ac_check_lib_save_LIBS
17673 fi
17674 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17675 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17676 if test $ac_cv_lib_dld_shl_load = yes; then
17677 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17678 else
17679 echo "$as_me:$LINENO: checking for dlopen" >&5
17680 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17681 if test "${ac_cv_func_dlopen+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define dlopen innocuous_dlopen
17693
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char dlopen (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17698
17699 #ifdef __STDC__
17700 # include <limits.h>
17701 #else
17702 # include <assert.h>
17703 #endif
17704
17705 #undef dlopen
17706
17707 /* Override any gcc2 internal prototype to avoid an error. */
17708 #ifdef __cplusplus
17709 extern "C"
17710 {
17711 #endif
17712 /* We use char because int might match the return type of a gcc2
17713 builtin and then its argument prototype would still apply. */
17714 char dlopen ();
17715 /* The GNU C library defines this for functions which it implements
17716 to always fail with ENOSYS. Some functions are actually named
17717 something starting with __ and the normal name is an alias. */
17718 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17719 choke me
17720 #else
17721 char (*f) () = dlopen;
17722 #endif
17723 #ifdef __cplusplus
17724 }
17725 #endif
17726
17727 int
17728 main ()
17729 {
17730 return f != dlopen;
17731 ;
17732 return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737 (eval $ac_link) 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag"
17745 || test ! -s conftest.err'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest$ac_exeext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_func_dlopen=yes
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762 ac_cv_func_dlopen=no
17763 fi
17764 rm -f conftest.err conftest.$ac_objext \
17765 conftest$ac_exeext conftest.$ac_ext
17766 fi
17767 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17768 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17769 if test $ac_cv_func_dlopen = yes; then
17770 lt_cv_dlopen="dlopen"
17771 else
17772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17773 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777 ac_check_lib_save_LIBS=$LIBS
17778 LIBS="-ldl $LIBS"
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h. */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785
17786 /* Override any gcc2 internal prototype to avoid an error. */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 /* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17792 char dlopen ();
17793 int
17794 main ()
17795 {
17796 dlopen ();
17797 ;
17798 return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try='test -z "$ac_c_werror_flag"
17811 || test ! -s conftest.err'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest$ac_exeext'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_cv_lib_dl_dlopen=yes
17824 else
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_cv_lib_dl_dlopen=no
17829 fi
17830 rm -f conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext conftest.$ac_ext
17832 LIBS=$ac_check_lib_save_LIBS
17833 fi
17834 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17835 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17836 if test $ac_cv_lib_dl_dlopen = yes; then
17837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17838 else
17839 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17840 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844 ac_check_lib_save_LIBS=$LIBS
17845 LIBS="-lsvld $LIBS"
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852
17853 /* Override any gcc2 internal prototype to avoid an error. */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 /* We use char because int might match the return type of a gcc2
17858 builtin and then its argument prototype would still apply. */
17859 char dlopen ();
17860 int
17861 main ()
17862 {
17863 dlopen ();
17864 ;
17865 return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag"
17878 || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest$ac_exeext'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_cv_lib_svld_dlopen=yes
17891 else
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 ac_cv_lib_svld_dlopen=no
17896 fi
17897 rm -f conftest.err conftest.$ac_objext \
17898 conftest$ac_exeext conftest.$ac_ext
17899 LIBS=$ac_check_lib_save_LIBS
17900 fi
17901 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17902 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17903 if test $ac_cv_lib_svld_dlopen = yes; then
17904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17905 else
17906 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17907 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17908 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911 ac_check_lib_save_LIBS=$LIBS
17912 LIBS="-ldld $LIBS"
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919
17920 /* Override any gcc2 internal prototype to avoid an error. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 /* We use char because int might match the return type of a gcc2
17925 builtin and then its argument prototype would still apply. */
17926 char dld_link ();
17927 int
17928 main ()
17929 {
17930 dld_link ();
17931 ;
17932 return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17937 (eval $ac_link) 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || 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_dld_dld_link=yes
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
17969 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17970 if test $ac_cv_lib_dld_dld_link = yes; then
17971 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17972 fi
17973
17974
17975 fi
17976
17977
17978 fi
17979
17980
17981 fi
17982
17983
17984 fi
17985
17986
17987 fi
17988
17989 ;;
17990 esac
17991
17992 if test "x$lt_cv_dlopen" != xno; then
17993 enable_dlopen=yes
17994 else
17995 enable_dlopen=no
17996 fi
17997
17998 case $lt_cv_dlopen in
17999 dlopen)
18000 save_CPPFLAGS="$CPPFLAGS"
18001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18002
18003 save_LDFLAGS="$LDFLAGS"
18004 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18005
18006 save_LIBS="$LIBS"
18007 LIBS="$lt_cv_dlopen_libs $LIBS"
18008
18009 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18010 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18011 if test "${lt_cv_dlopen_self+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 if test "$cross_compiling" = yes; then :
18015 lt_cv_dlopen_self=cross
18016 else
18017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18018 lt_status=$lt_dlunknown
18019 cat > conftest.$ac_ext <<EOF
18020 #line 18020 "configure"
18021 #include "confdefs.h"
18022
18023 #if HAVE_DLFCN_H
18024 #include <dlfcn.h>
18025 #endif
18026
18027 #include <stdio.h>
18028
18029 #ifdef RTLD_GLOBAL
18030 # define LT_DLGLOBAL RTLD_GLOBAL
18031 #else
18032 # ifdef DL_GLOBAL
18033 # define LT_DLGLOBAL DL_GLOBAL
18034 # else
18035 # define LT_DLGLOBAL 0
18036 # endif
18037 #endif
18038
18039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18040 find out it does not work in some platform. */
18041 #ifndef LT_DLLAZY_OR_NOW
18042 # ifdef RTLD_LAZY
18043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18044 # else
18045 # ifdef DL_LAZY
18046 # define LT_DLLAZY_OR_NOW DL_LAZY
18047 # else
18048 # ifdef RTLD_NOW
18049 # define LT_DLLAZY_OR_NOW RTLD_NOW
18050 # else
18051 # ifdef DL_NOW
18052 # define LT_DLLAZY_OR_NOW DL_NOW
18053 # else
18054 # define LT_DLLAZY_OR_NOW 0
18055 # endif
18056 # endif
18057 # endif
18058 # endif
18059 #endif
18060
18061 #ifdef __cplusplus
18062 extern "C" void exit (int);
18063 #endif
18064
18065 void fnord() { int i=42;}
18066 int main ()
18067 {
18068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18069 int status = $lt_dlunknown;
18070
18071 if (self)
18072 {
18073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18075 /* dlclose (self); */
18076 }
18077
18078 exit (status);
18079 }
18080 EOF
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18086 (./conftest; exit; ) 2>/dev/null
18087 lt_status=$?
18088 case x$lt_status in
18089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18091 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18092 esac
18093 else :
18094 # compilation failed
18095 lt_cv_dlopen_self=no
18096 fi
18097 fi
18098 rm -fr conftest*
18099
18100
18101 fi
18102 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18103 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18104
18105 if test "x$lt_cv_dlopen_self" = xyes; then
18106 LDFLAGS="$LDFLAGS $link_static_flag"
18107 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18108 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18109 if test "${lt_cv_dlopen_self_static+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112 if test "$cross_compiling" = yes; then :
18113 lt_cv_dlopen_self_static=cross
18114 else
18115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18116 lt_status=$lt_dlunknown
18117 cat > conftest.$ac_ext <<EOF
18118 #line 18118 "configure"
18119 #include "confdefs.h"
18120
18121 #if HAVE_DLFCN_H
18122 #include <dlfcn.h>
18123 #endif
18124
18125 #include <stdio.h>
18126
18127 #ifdef RTLD_GLOBAL
18128 # define LT_DLGLOBAL RTLD_GLOBAL
18129 #else
18130 # ifdef DL_GLOBAL
18131 # define LT_DLGLOBAL DL_GLOBAL
18132 # else
18133 # define LT_DLGLOBAL 0
18134 # endif
18135 #endif
18136
18137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18138 find out it does not work in some platform. */
18139 #ifndef LT_DLLAZY_OR_NOW
18140 # ifdef RTLD_LAZY
18141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18142 # else
18143 # ifdef DL_LAZY
18144 # define LT_DLLAZY_OR_NOW DL_LAZY
18145 # else
18146 # ifdef RTLD_NOW
18147 # define LT_DLLAZY_OR_NOW RTLD_NOW
18148 # else
18149 # ifdef DL_NOW
18150 # define LT_DLLAZY_OR_NOW DL_NOW
18151 # else
18152 # define LT_DLLAZY_OR_NOW 0
18153 # endif
18154 # endif
18155 # endif
18156 # endif
18157 #endif
18158
18159 #ifdef __cplusplus
18160 extern "C" void exit (int);
18161 #endif
18162
18163 void fnord() { int i=42;}
18164 int main ()
18165 {
18166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18167 int status = $lt_dlunknown;
18168
18169 if (self)
18170 {
18171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18173 /* dlclose (self); */
18174 }
18175
18176 exit (status);
18177 }
18178 EOF
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18184 (./conftest; exit; ) 2>/dev/null
18185 lt_status=$?
18186 case x$lt_status in
18187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18189 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18190 esac
18191 else :
18192 # compilation failed
18193 lt_cv_dlopen_self_static=no
18194 fi
18195 fi
18196 rm -fr conftest*
18197
18198
18199 fi
18200 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18201 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18202 fi
18203
18204 CPPFLAGS="$save_CPPFLAGS"
18205 LDFLAGS="$save_LDFLAGS"
18206 LIBS="$save_LIBS"
18207 ;;
18208 esac
18209
18210 case $lt_cv_dlopen_self in
18211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18212 *) enable_dlopen_self=unknown ;;
18213 esac
18214
18215 case $lt_cv_dlopen_self_static in
18216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18217 *) enable_dlopen_self_static=unknown ;;
18218 esac
18219 fi
18220
18221
18222 # The else clause should only fire when bootstrapping the
18223 # libtool distribution, otherwise you forgot to ship ltmain.sh
18224 # with your package, and you will get complaints that there are
18225 # no rules to generate ltmain.sh.
18226 if test -f "$ltmain"; then
18227 # See if we are running on zsh, and set the options which allow our commands through
18228 # without removal of \ escapes.
18229 if test -n "${ZSH_VERSION+set}" ; then
18230 setopt NO_GLOB_SUBST
18231 fi
18232 # Now quote all the things that may contain metacharacters while being
18233 # careful not to overquote the AC_SUBSTed values. We take copies of the
18234 # variables and quote the copies for generation of the libtool script.
18235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18236 SED SHELL STRIP \
18237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18239 deplibs_check_method reload_flag reload_cmds need_locks \
18240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18241 lt_cv_sys_global_symbol_to_c_name_address \
18242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18243 old_postinstall_cmds old_postuninstall_cmds \
18244 compiler_GCJ \
18245 CC_GCJ \
18246 LD_GCJ \
18247 lt_prog_compiler_wl_GCJ \
18248 lt_prog_compiler_pic_GCJ \
18249 lt_prog_compiler_static_GCJ \
18250 lt_prog_compiler_no_builtin_flag_GCJ \
18251 export_dynamic_flag_spec_GCJ \
18252 thread_safe_flag_spec_GCJ \
18253 whole_archive_flag_spec_GCJ \
18254 enable_shared_with_static_runtimes_GCJ \
18255 old_archive_cmds_GCJ \
18256 old_archive_from_new_cmds_GCJ \
18257 predep_objects_GCJ \
18258 postdep_objects_GCJ \
18259 predeps_GCJ \
18260 postdeps_GCJ \
18261 compiler_lib_search_path_GCJ \
18262 archive_cmds_GCJ \
18263 archive_expsym_cmds_GCJ \
18264 postinstall_cmds_GCJ \
18265 postuninstall_cmds_GCJ \
18266 old_archive_from_expsyms_cmds_GCJ \
18267 allow_undefined_flag_GCJ \
18268 no_undefined_flag_GCJ \
18269 export_symbols_cmds_GCJ \
18270 hardcode_libdir_flag_spec_GCJ \
18271 hardcode_libdir_flag_spec_ld_GCJ \
18272 hardcode_libdir_separator_GCJ \
18273 hardcode_automatic_GCJ \
18274 module_cmds_GCJ \
18275 module_expsym_cmds_GCJ \
18276 lt_cv_prog_compiler_c_o_GCJ \
18277 exclude_expsyms_GCJ \
18278 include_expsyms_GCJ; do
18279
18280 case $var in
18281 old_archive_cmds_GCJ | \
18282 old_archive_from_new_cmds_GCJ | \
18283 archive_cmds_GCJ | \
18284 archive_expsym_cmds_GCJ | \
18285 module_cmds_GCJ | \
18286 module_expsym_cmds_GCJ | \
18287 old_archive_from_expsyms_cmds_GCJ | \
18288 export_symbols_cmds_GCJ | \
18289 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18290 postinstall_cmds | postuninstall_cmds | \
18291 old_postinstall_cmds | old_postuninstall_cmds | \
18292 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18293 # Double-quote double-evaled strings.
18294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18295 ;;
18296 *)
18297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18298 ;;
18299 esac
18300 done
18301
18302 case $lt_echo in
18303 *'\$0 --fallback-echo"')
18304 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18305 ;;
18306 esac
18307
18308 cfgfile="$ofile"
18309
18310 cat <<__EOF__ >> "$cfgfile"
18311 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18312
18313 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18314
18315 # Shell to use when invoking shell scripts.
18316 SHELL=$lt_SHELL
18317
18318 # Whether or not to build shared libraries.
18319 build_libtool_libs=$enable_shared
18320
18321 # Whether or not to build static libraries.
18322 build_old_libs=$enable_static
18323
18324 # Whether or not to add -lc for building shared libraries.
18325 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18326
18327 # Whether or not to disallow shared libs when runtime libs are static
18328 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18329
18330 # Whether or not to optimize for fast installation.
18331 fast_install=$enable_fast_install
18332
18333 # The host system.
18334 host_alias=$host_alias
18335 host=$host
18336
18337 # An echo program that does not interpret backslashes.
18338 echo=$lt_echo
18339
18340 # The archiver.
18341 AR=$lt_AR
18342 AR_FLAGS=$lt_AR_FLAGS
18343
18344 # A C compiler.
18345 LTCC=$lt_LTCC
18346
18347 # A language-specific compiler.
18348 CC=$lt_compiler_GCJ
18349
18350 # Is the compiler the GNU C compiler?
18351 with_gcc=$GCC_GCJ
18352
18353 # An ERE matcher.
18354 EGREP=$lt_EGREP
18355
18356 # The linker used to build libraries.
18357 LD=$lt_LD_GCJ
18358
18359 # Whether we need hard or soft links.
18360 LN_S=$lt_LN_S
18361
18362 # A BSD-compatible nm program.
18363 NM=$lt_NM
18364
18365 # A symbol stripping program
18366 STRIP=$lt_STRIP
18367
18368 # Used to examine libraries when file_magic_cmd begins "file"
18369 MAGIC_CMD=$MAGIC_CMD
18370
18371 # Used on cygwin: DLL creation program.
18372 DLLTOOL="$DLLTOOL"
18373
18374 # Used on cygwin: object dumper.
18375 OBJDUMP="$OBJDUMP"
18376
18377 # Used on cygwin: assembler.
18378 AS="$AS"
18379
18380 # The name of the directory that contains temporary libtool files.
18381 objdir=$objdir
18382
18383 # How to create reloadable object files.
18384 reload_flag=$lt_reload_flag
18385 reload_cmds=$lt_reload_cmds
18386
18387 # How to pass a linker flag through the compiler.
18388 wl=$lt_lt_prog_compiler_wl_GCJ
18389
18390 # Object file suffix (normally "o").
18391 objext="$ac_objext"
18392
18393 # Old archive suffix (normally "a").
18394 libext="$libext"
18395
18396 # Shared library suffix (normally ".so").
18397 shrext_cmds='$shrext_cmds'
18398
18399 # Executable file suffix (normally "").
18400 exeext="$exeext"
18401
18402 # Additional compiler flags for building library objects.
18403 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18404 pic_mode=$pic_mode
18405
18406 # What is the maximum length of a command?
18407 max_cmd_len=$lt_cv_sys_max_cmd_len
18408
18409 # Does compiler simultaneously support -c and -o options?
18410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18411
18412 # Must we lock files when doing compilation ?
18413 need_locks=$lt_need_locks
18414
18415 # Do we need the lib prefix for modules?
18416 need_lib_prefix=$need_lib_prefix
18417
18418 # Do we need a version for libraries?
18419 need_version=$need_version
18420
18421 # Whether dlopen is supported.
18422 dlopen_support=$enable_dlopen
18423
18424 # Whether dlopen of programs is supported.
18425 dlopen_self=$enable_dlopen_self
18426
18427 # Whether dlopen of statically linked programs is supported.
18428 dlopen_self_static=$enable_dlopen_self_static
18429
18430 # Compiler flag to prevent dynamic linking.
18431 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18432
18433 # Compiler flag to turn off builtin functions.
18434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18435
18436 # Compiler flag to allow reflexive dlopens.
18437 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18438
18439 # Compiler flag to generate shared objects directly from archives.
18440 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18441
18442 # Compiler flag to generate thread-safe objects.
18443 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18444
18445 # Library versioning type.
18446 version_type=$version_type
18447
18448 # Format of library name prefix.
18449 libname_spec=$lt_libname_spec
18450
18451 # List of archive names. First name is the real one, the rest are links.
18452 # The last name is the one that the linker finds with -lNAME.
18453 library_names_spec=$lt_library_names_spec
18454
18455 # The coded name of the library, if different from the real name.
18456 soname_spec=$lt_soname_spec
18457
18458 # Commands used to build and install an old-style archive.
18459 RANLIB=$lt_RANLIB
18460 old_archive_cmds=$lt_old_archive_cmds_GCJ
18461 old_postinstall_cmds=$lt_old_postinstall_cmds
18462 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18463
18464 # Create an old-style archive from a shared archive.
18465 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18466
18467 # Create a temporary old-style archive to link instead of a shared archive.
18468 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18469
18470 # Commands used to build and install a shared archive.
18471 archive_cmds=$lt_archive_cmds_GCJ
18472 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18473 postinstall_cmds=$lt_postinstall_cmds
18474 postuninstall_cmds=$lt_postuninstall_cmds
18475
18476 # Commands used to build a loadable module (assumed same as above if empty)
18477 module_cmds=$lt_module_cmds_GCJ
18478 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18479
18480 # Commands to strip libraries.
18481 old_striplib=$lt_old_striplib
18482 striplib=$lt_striplib
18483
18484 # Dependencies to place before the objects being linked to create a
18485 # shared library.
18486 predep_objects=$lt_predep_objects_GCJ
18487
18488 # Dependencies to place after the objects being linked to create a
18489 # shared library.
18490 postdep_objects=$lt_postdep_objects_GCJ
18491
18492 # Dependencies to place before the objects being linked to create a
18493 # shared library.
18494 predeps=$lt_predeps_GCJ
18495
18496 # Dependencies to place after the objects being linked to create a
18497 # shared library.
18498 postdeps=$lt_postdeps_GCJ
18499
18500 # The library search path used internally by the compiler when linking
18501 # a shared library.
18502 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18503
18504 # Method to check whether dependent libraries are shared objects.
18505 deplibs_check_method=$lt_deplibs_check_method
18506
18507 # Command to use when deplibs_check_method == file_magic.
18508 file_magic_cmd=$lt_file_magic_cmd
18509
18510 # Flag that allows shared libraries with undefined symbols to be built.
18511 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18512
18513 # Flag that forces no undefined symbols.
18514 no_undefined_flag=$lt_no_undefined_flag_GCJ
18515
18516 # Commands used to finish a libtool library installation in a directory.
18517 finish_cmds=$lt_finish_cmds
18518
18519 # Same as above, but a single script fragment to be evaled but not shown.
18520 finish_eval=$lt_finish_eval
18521
18522 # Take the output of nm and produce a listing of raw symbols and C names.
18523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18524
18525 # Transform the output of nm in a proper C declaration
18526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18527
18528 # Transform the output of nm in a C name address pair
18529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18530
18531 # This is the shared library runtime path variable.
18532 runpath_var=$runpath_var
18533
18534 # This is the shared library path variable.
18535 shlibpath_var=$shlibpath_var
18536
18537 # Is shlibpath searched before the hard-coded library search path?
18538 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18539
18540 # How to hardcode a shared library path into an executable.
18541 hardcode_action=$hardcode_action_GCJ
18542
18543 # Whether we should hardcode library paths into libraries.
18544 hardcode_into_libs=$hardcode_into_libs
18545
18546 # Flag to hardcode \$libdir into a binary during linking.
18547 # This must work even if \$libdir does not exist.
18548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18549
18550 # If ld is used when linking, flag to hardcode \$libdir into
18551 # a binary during linking. This must work even if \$libdir does
18552 # not exist.
18553 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18554
18555 # Whether we need a single -rpath flag with a separated argument.
18556 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18557
18558 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18559 # resulting binary.
18560 hardcode_direct=$hardcode_direct_GCJ
18561
18562 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18563 # resulting binary.
18564 hardcode_minus_L=$hardcode_minus_L_GCJ
18565
18566 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18567 # the resulting binary.
18568 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18569
18570 # Set to yes if building a shared library automatically hardcodes DIR into the library
18571 # and all subsequent libraries and executables linked against it.
18572 hardcode_automatic=$hardcode_automatic_GCJ
18573
18574 # Variables whose values should be saved in libtool wrapper scripts and
18575 # restored at relink time.
18576 variables_saved_for_relink="$variables_saved_for_relink"
18577
18578 # Whether libtool must link a program against all its dependency libraries.
18579 link_all_deplibs=$link_all_deplibs_GCJ
18580
18581 # Compile-time system search path for libraries
18582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18583
18584 # Run-time system search path for libraries
18585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18586
18587 # Fix the shell variable \$srcfile for the compiler.
18588 fix_srcfile_path="$fix_srcfile_path_GCJ"
18589
18590 # Set to yes if exported symbols are required.
18591 always_export_symbols=$always_export_symbols_GCJ
18592
18593 # The commands to list exported symbols.
18594 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18595
18596 # The commands to extract the exported symbol list from a shared archive.
18597 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18598
18599 # Symbols that should not be listed in the preloaded symbols.
18600 exclude_expsyms=$lt_exclude_expsyms_GCJ
18601
18602 # Symbols that must always be exported.
18603 include_expsyms=$lt_include_expsyms_GCJ
18604
18605 # ### END LIBTOOL TAG CONFIG: $tagname
18606
18607 __EOF__
18608
18609
18610 else
18611 # If there is no Makefile yet, we rely on a make rule to execute
18612 # `config.status --recheck' to rerun these tests and create the
18613 # libtool script then.
18614 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18615 if test -f "$ltmain_in"; then
18616 test -f Makefile && make "$ltmain"
18617 fi
18618 fi
18619
18620
18621 ac_ext=c
18622 ac_cpp='$CPP $CPPFLAGS'
18623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18626
18627 CC="$lt_save_CC"
18628
18629 else
18630 tagname=""
18631 fi
18632 ;;
18633
18634 RC)
18635
18636
18637
18638 # Source file extension for RC test sources.
18639 ac_ext=rc
18640
18641 # Object file extension for compiled RC test sources.
18642 objext=o
18643 objext_RC=$objext
18644
18645 # Code to be used in simple compile tests
18646 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18647
18648 # Code to be used in simple link tests
18649 lt_simple_link_test_code="$lt_simple_compile_test_code"
18650
18651 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18652
18653 # If no C compiler was specified, use CC.
18654 LTCC=${LTCC-"$CC"}
18655
18656 # Allow CC to be a program name with arguments.
18657 compiler=$CC
18658
18659
18660 # Allow CC to be a program name with arguments.
18661 lt_save_CC="$CC"
18662 CC=${RC-"windres"}
18663 compiler=$CC
18664 compiler_RC=$CC
18665 lt_cv_prog_compiler_c_o_RC=yes
18666
18667 # The else clause should only fire when bootstrapping the
18668 # libtool distribution, otherwise you forgot to ship ltmain.sh
18669 # with your package, and you will get complaints that there are
18670 # no rules to generate ltmain.sh.
18671 if test -f "$ltmain"; then
18672 # See if we are running on zsh, and set the options which allow our commands through
18673 # without removal of \ escapes.
18674 if test -n "${ZSH_VERSION+set}" ; then
18675 setopt NO_GLOB_SUBST
18676 fi
18677 # Now quote all the things that may contain metacharacters while being
18678 # careful not to overquote the AC_SUBSTed values. We take copies of the
18679 # variables and quote the copies for generation of the libtool script.
18680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18681 SED SHELL STRIP \
18682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18684 deplibs_check_method reload_flag reload_cmds need_locks \
18685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18686 lt_cv_sys_global_symbol_to_c_name_address \
18687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18688 old_postinstall_cmds old_postuninstall_cmds \
18689 compiler_RC \
18690 CC_RC \
18691 LD_RC \
18692 lt_prog_compiler_wl_RC \
18693 lt_prog_compiler_pic_RC \
18694 lt_prog_compiler_static_RC \
18695 lt_prog_compiler_no_builtin_flag_RC \
18696 export_dynamic_flag_spec_RC \
18697 thread_safe_flag_spec_RC \
18698 whole_archive_flag_spec_RC \
18699 enable_shared_with_static_runtimes_RC \
18700 old_archive_cmds_RC \
18701 old_archive_from_new_cmds_RC \
18702 predep_objects_RC \
18703 postdep_objects_RC \
18704 predeps_RC \
18705 postdeps_RC \
18706 compiler_lib_search_path_RC \
18707 archive_cmds_RC \
18708 archive_expsym_cmds_RC \
18709 postinstall_cmds_RC \
18710 postuninstall_cmds_RC \
18711 old_archive_from_expsyms_cmds_RC \
18712 allow_undefined_flag_RC \
18713 no_undefined_flag_RC \
18714 export_symbols_cmds_RC \
18715 hardcode_libdir_flag_spec_RC \
18716 hardcode_libdir_flag_spec_ld_RC \
18717 hardcode_libdir_separator_RC \
18718 hardcode_automatic_RC \
18719 module_cmds_RC \
18720 module_expsym_cmds_RC \
18721 lt_cv_prog_compiler_c_o_RC \
18722 exclude_expsyms_RC \
18723 include_expsyms_RC; do
18724
18725 case $var in
18726 old_archive_cmds_RC | \
18727 old_archive_from_new_cmds_RC | \
18728 archive_cmds_RC | \
18729 archive_expsym_cmds_RC | \
18730 module_cmds_RC | \
18731 module_expsym_cmds_RC | \
18732 old_archive_from_expsyms_cmds_RC | \
18733 export_symbols_cmds_RC | \
18734 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18735 postinstall_cmds | postuninstall_cmds | \
18736 old_postinstall_cmds | old_postuninstall_cmds | \
18737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18738 # Double-quote double-evaled strings.
18739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18740 ;;
18741 *)
18742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18743 ;;
18744 esac
18745 done
18746
18747 case $lt_echo in
18748 *'\$0 --fallback-echo"')
18749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18750 ;;
18751 esac
18752
18753 cfgfile="$ofile"
18754
18755 cat <<__EOF__ >> "$cfgfile"
18756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18757
18758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18759
18760 # Shell to use when invoking shell scripts.
18761 SHELL=$lt_SHELL
18762
18763 # Whether or not to build shared libraries.
18764 build_libtool_libs=$enable_shared
18765
18766 # Whether or not to build static libraries.
18767 build_old_libs=$enable_static
18768
18769 # Whether or not to add -lc for building shared libraries.
18770 build_libtool_need_lc=$archive_cmds_need_lc_RC
18771
18772 # Whether or not to disallow shared libs when runtime libs are static
18773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18774
18775 # Whether or not to optimize for fast installation.
18776 fast_install=$enable_fast_install
18777
18778 # The host system.
18779 host_alias=$host_alias
18780 host=$host
18781
18782 # An echo program that does not interpret backslashes.
18783 echo=$lt_echo
18784
18785 # The archiver.
18786 AR=$lt_AR
18787 AR_FLAGS=$lt_AR_FLAGS
18788
18789 # A C compiler.
18790 LTCC=$lt_LTCC
18791
18792 # A language-specific compiler.
18793 CC=$lt_compiler_RC
18794
18795 # Is the compiler the GNU C compiler?
18796 with_gcc=$GCC_RC
18797
18798 # An ERE matcher.
18799 EGREP=$lt_EGREP
18800
18801 # The linker used to build libraries.
18802 LD=$lt_LD_RC
18803
18804 # Whether we need hard or soft links.
18805 LN_S=$lt_LN_S
18806
18807 # A BSD-compatible nm program.
18808 NM=$lt_NM
18809
18810 # A symbol stripping program
18811 STRIP=$lt_STRIP
18812
18813 # Used to examine libraries when file_magic_cmd begins "file"
18814 MAGIC_CMD=$MAGIC_CMD
18815
18816 # Used on cygwin: DLL creation program.
18817 DLLTOOL="$DLLTOOL"
18818
18819 # Used on cygwin: object dumper.
18820 OBJDUMP="$OBJDUMP"
18821
18822 # Used on cygwin: assembler.
18823 AS="$AS"
18824
18825 # The name of the directory that contains temporary libtool files.
18826 objdir=$objdir
18827
18828 # How to create reloadable object files.
18829 reload_flag=$lt_reload_flag
18830 reload_cmds=$lt_reload_cmds
18831
18832 # How to pass a linker flag through the compiler.
18833 wl=$lt_lt_prog_compiler_wl_RC
18834
18835 # Object file suffix (normally "o").
18836 objext="$ac_objext"
18837
18838 # Old archive suffix (normally "a").
18839 libext="$libext"
18840
18841 # Shared library suffix (normally ".so").
18842 shrext_cmds='$shrext_cmds'
18843
18844 # Executable file suffix (normally "").
18845 exeext="$exeext"
18846
18847 # Additional compiler flags for building library objects.
18848 pic_flag=$lt_lt_prog_compiler_pic_RC
18849 pic_mode=$pic_mode
18850
18851 # What is the maximum length of a command?
18852 max_cmd_len=$lt_cv_sys_max_cmd_len
18853
18854 # Does compiler simultaneously support -c and -o options?
18855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18856
18857 # Must we lock files when doing compilation ?
18858 need_locks=$lt_need_locks
18859
18860 # Do we need the lib prefix for modules?
18861 need_lib_prefix=$need_lib_prefix
18862
18863 # Do we need a version for libraries?
18864 need_version=$need_version
18865
18866 # Whether dlopen is supported.
18867 dlopen_support=$enable_dlopen
18868
18869 # Whether dlopen of programs is supported.
18870 dlopen_self=$enable_dlopen_self
18871
18872 # Whether dlopen of statically linked programs is supported.
18873 dlopen_self_static=$enable_dlopen_self_static
18874
18875 # Compiler flag to prevent dynamic linking.
18876 link_static_flag=$lt_lt_prog_compiler_static_RC
18877
18878 # Compiler flag to turn off builtin functions.
18879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18880
18881 # Compiler flag to allow reflexive dlopens.
18882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18883
18884 # Compiler flag to generate shared objects directly from archives.
18885 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18886
18887 # Compiler flag to generate thread-safe objects.
18888 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18889
18890 # Library versioning type.
18891 version_type=$version_type
18892
18893 # Format of library name prefix.
18894 libname_spec=$lt_libname_spec
18895
18896 # List of archive names. First name is the real one, the rest are links.
18897 # The last name is the one that the linker finds with -lNAME.
18898 library_names_spec=$lt_library_names_spec
18899
18900 # The coded name of the library, if different from the real name.
18901 soname_spec=$lt_soname_spec
18902
18903 # Commands used to build and install an old-style archive.
18904 RANLIB=$lt_RANLIB
18905 old_archive_cmds=$lt_old_archive_cmds_RC
18906 old_postinstall_cmds=$lt_old_postinstall_cmds
18907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18908
18909 # Create an old-style archive from a shared archive.
18910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18911
18912 # Create a temporary old-style archive to link instead of a shared archive.
18913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18914
18915 # Commands used to build and install a shared archive.
18916 archive_cmds=$lt_archive_cmds_RC
18917 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18918 postinstall_cmds=$lt_postinstall_cmds
18919 postuninstall_cmds=$lt_postuninstall_cmds
18920
18921 # Commands used to build a loadable module (assumed same as above if empty)
18922 module_cmds=$lt_module_cmds_RC
18923 module_expsym_cmds=$lt_module_expsym_cmds_RC
18924
18925 # Commands to strip libraries.
18926 old_striplib=$lt_old_striplib
18927 striplib=$lt_striplib
18928
18929 # Dependencies to place before the objects being linked to create a
18930 # shared library.
18931 predep_objects=$lt_predep_objects_RC
18932
18933 # Dependencies to place after the objects being linked to create a
18934 # shared library.
18935 postdep_objects=$lt_postdep_objects_RC
18936
18937 # Dependencies to place before the objects being linked to create a
18938 # shared library.
18939 predeps=$lt_predeps_RC
18940
18941 # Dependencies to place after the objects being linked to create a
18942 # shared library.
18943 postdeps=$lt_postdeps_RC
18944
18945 # The library search path used internally by the compiler when linking
18946 # a shared library.
18947 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18948
18949 # Method to check whether dependent libraries are shared objects.
18950 deplibs_check_method=$lt_deplibs_check_method
18951
18952 # Command to use when deplibs_check_method == file_magic.
18953 file_magic_cmd=$lt_file_magic_cmd
18954
18955 # Flag that allows shared libraries with undefined symbols to be built.
18956 allow_undefined_flag=$lt_allow_undefined_flag_RC
18957
18958 # Flag that forces no undefined symbols.
18959 no_undefined_flag=$lt_no_undefined_flag_RC
18960
18961 # Commands used to finish a libtool library installation in a directory.
18962 finish_cmds=$lt_finish_cmds
18963
18964 # Same as above, but a single script fragment to be evaled but not shown.
18965 finish_eval=$lt_finish_eval
18966
18967 # Take the output of nm and produce a listing of raw symbols and C names.
18968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18969
18970 # Transform the output of nm in a proper C declaration
18971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18972
18973 # Transform the output of nm in a C name address pair
18974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18975
18976 # This is the shared library runtime path variable.
18977 runpath_var=$runpath_var
18978
18979 # This is the shared library path variable.
18980 shlibpath_var=$shlibpath_var
18981
18982 # Is shlibpath searched before the hard-coded library search path?
18983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18984
18985 # How to hardcode a shared library path into an executable.
18986 hardcode_action=$hardcode_action_RC
18987
18988 # Whether we should hardcode library paths into libraries.
18989 hardcode_into_libs=$hardcode_into_libs
18990
18991 # Flag to hardcode \$libdir into a binary during linking.
18992 # This must work even if \$libdir does not exist.
18993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18994
18995 # If ld is used when linking, flag to hardcode \$libdir into
18996 # a binary during linking. This must work even if \$libdir does
18997 # not exist.
18998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18999
19000 # Whether we need a single -rpath flag with a separated argument.
19001 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19002
19003 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19004 # resulting binary.
19005 hardcode_direct=$hardcode_direct_RC
19006
19007 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19008 # resulting binary.
19009 hardcode_minus_L=$hardcode_minus_L_RC
19010
19011 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19012 # the resulting binary.
19013 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19014
19015 # Set to yes if building a shared library automatically hardcodes DIR into the library
19016 # and all subsequent libraries and executables linked against it.
19017 hardcode_automatic=$hardcode_automatic_RC
19018
19019 # Variables whose values should be saved in libtool wrapper scripts and
19020 # restored at relink time.
19021 variables_saved_for_relink="$variables_saved_for_relink"
19022
19023 # Whether libtool must link a program against all its dependency libraries.
19024 link_all_deplibs=$link_all_deplibs_RC
19025
19026 # Compile-time system search path for libraries
19027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19028
19029 # Run-time system search path for libraries
19030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19031
19032 # Fix the shell variable \$srcfile for the compiler.
19033 fix_srcfile_path="$fix_srcfile_path_RC"
19034
19035 # Set to yes if exported symbols are required.
19036 always_export_symbols=$always_export_symbols_RC
19037
19038 # The commands to list exported symbols.
19039 export_symbols_cmds=$lt_export_symbols_cmds_RC
19040
19041 # The commands to extract the exported symbol list from a shared archive.
19042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19043
19044 # Symbols that should not be listed in the preloaded symbols.
19045 exclude_expsyms=$lt_exclude_expsyms_RC
19046
19047 # Symbols that must always be exported.
19048 include_expsyms=$lt_include_expsyms_RC
19049
19050 # ### END LIBTOOL TAG CONFIG: $tagname
19051
19052 __EOF__
19053
19054
19055 else
19056 # If there is no Makefile yet, we rely on a make rule to execute
19057 # `config.status --recheck' to rerun these tests and create the
19058 # libtool script then.
19059 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19060 if test -f "$ltmain_in"; then
19061 test -f Makefile && make "$ltmain"
19062 fi
19063 fi
19064
19065
19066 ac_ext=c
19067 ac_cpp='$CPP $CPPFLAGS'
19068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19071
19072 CC="$lt_save_CC"
19073
19074 ;;
19075
19076 *)
19077 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19078 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19079 { (exit 1); exit 1; }; }
19080 ;;
19081 esac
19082
19083 # Append the new tag name to the list of available tags.
19084 if test -n "$tagname" ; then
19085 available_tags="$available_tags $tagname"
19086 fi
19087 fi
19088 done
19089 IFS="$lt_save_ifs"
19090
19091 # Now substitute the updated list of available tags.
19092 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19093 mv "${ofile}T" "$ofile"
19094 chmod +x "$ofile"
19095 else
19096 rm -f "${ofile}T"
19097 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19098 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19099 { (exit 1); exit 1; }; }
19100 fi
19101 fi
19102
19103
19104
19105 # This can be used to rebuild libtool when needed
19106 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19107
19108 # Always use our own libtool.
19109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19110
19111 # Prevent multiple expansion
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133 # Check for dependencies
19134
19135
19136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19137 if test -n "$ac_tool_prefix"; then
19138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19140 echo "$as_me:$LINENO: checking for $ac_word" >&5
19141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19142 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145 case $PKG_CONFIG in
19146 [\\/]* | ?:[\\/]*)
19147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19148 ;;
19149 *)
19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19152 do
19153 IFS=$as_save_IFS
19154 test -z "$as_dir" && as_dir=.
19155 for ac_exec_ext in '' $ac_executable_extensions; do
19156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19159 break 2
19160 fi
19161 done
19162 done
19163
19164 ;;
19165 esac
19166 fi
19167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19168
19169 if test -n "$PKG_CONFIG"; then
19170 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19171 echo "${ECHO_T}$PKG_CONFIG" >&6
19172 else
19173 echo "$as_me:$LINENO: result: no" >&5
19174 echo "${ECHO_T}no" >&6
19175 fi
19176
19177 fi
19178 if test -z "$ac_cv_path_PKG_CONFIG"; then
19179 ac_pt_PKG_CONFIG=$PKG_CONFIG
19180 # Extract the first word of "pkg-config", so it can be a program name with args.
19181 set dummy pkg-config; ac_word=$2
19182 echo "$as_me:$LINENO: checking for $ac_word" >&5
19183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19184 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187 case $ac_pt_PKG_CONFIG in
19188 [\\/]* | ?:[\\/]*)
19189 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19190 ;;
19191 *)
19192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19193 for as_dir in $PATH
19194 do
19195 IFS=$as_save_IFS
19196 test -z "$as_dir" && as_dir=.
19197 for ac_exec_ext in '' $ac_executable_extensions; do
19198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19201 break 2
19202 fi
19203 done
19204 done
19205
19206 ;;
19207 esac
19208 fi
19209 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19210
19211 if test -n "$ac_pt_PKG_CONFIG"; then
19212 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19213 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19214 else
19215 echo "$as_me:$LINENO: result: no" >&5
19216 echo "${ECHO_T}no" >&6
19217 fi
19218
19219 PKG_CONFIG=$ac_pt_PKG_CONFIG
19220 else
19221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19222 fi
19223
19224 fi
19225 if test -n "$PKG_CONFIG"; then
19226 _pkg_min_version=0.9.0
19227 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19228 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19230 echo "$as_me:$LINENO: result: yes" >&5
19231 echo "${ECHO_T}yes" >&6
19232 else
19233 echo "$as_me:$LINENO: result: no" >&5
19234 echo "${ECHO_T}no" >&6
19235 PKG_CONFIG=""
19236 fi
19237
19238 fi
19239
19240 pkg_failed=no
19241 echo "$as_me:$LINENO: checking for XTRAP" >&5
19242 echo $ECHO_N "checking for XTRAP... $ECHO_C" >&6
19243
19244 if test -n "$PKG_CONFIG"; then
19245 if test -n "$XTRAP_CFLAGS"; then
19246 pkg_cv_XTRAP_CFLAGS="$XTRAP_CFLAGS"
19247 else
19248 if test -n "$PKG_CONFIG" && \
19249 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt trapproto xext xextproto\"") >&5
19250 ($PKG_CONFIG --exists --print-errors "x11 xt trapproto xext xextproto") 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; then
19254 pkg_cv_XTRAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xt trapproto xext xextproto" 2>/dev/null`
19255 else
19256 pkg_failed=yes
19257 fi
19258 fi
19259 else
19260 pkg_failed=untried
19261 fi
19262 if test -n "$PKG_CONFIG"; then
19263 if test -n "$XTRAP_LIBS"; then
19264 pkg_cv_XTRAP_LIBS="$XTRAP_LIBS"
19265 else
19266 if test -n "$PKG_CONFIG" && \
19267 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt trapproto xext xextproto\"") >&5
19268 ($PKG_CONFIG --exists --print-errors "x11 xt trapproto xext xextproto") 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; then
19272 pkg_cv_XTRAP_LIBS=`$PKG_CONFIG --libs "x11 xt trapproto xext xextproto" 2>/dev/null`
19273 else
19274 pkg_failed=yes
19275 fi
19276 fi
19277 else
19278 pkg_failed=untried
19279 fi
19280
19281
19282
19283 if test $pkg_failed = yes; then
19284
19285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19286 _pkg_short_errors_supported=yes
19287 else
19288 _pkg_short_errors_supported=no
19289 fi
19290 if test $_pkg_short_errors_supported = yes; then
19291 XTRAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xt trapproto xext xextproto"`
19292 else
19293 XTRAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xt trapproto xext xextproto"`
19294 fi
19295 # Put the nasty error message in config.log where it belongs
19296 echo "$XTRAP_PKG_ERRORS" >&5
19297
19298 { { echo "$as_me:$LINENO: error: Package requirements (x11 xt trapproto xext xextproto) were not met:
19299
19300 $XTRAP_PKG_ERRORS
19301
19302 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19303 installed software in a non-standard prefix.
19304
19305 Alternatively, you may set the environment variables XTRAP_CFLAGS
19306 and XTRAP_LIBS to avoid the need to call pkg-config.
19307 See the pkg-config man page for more details.
19308 " >&5
19309 echo "$as_me: error: Package requirements (x11 xt trapproto xext xextproto) were not met:
19310
19311 $XTRAP_PKG_ERRORS
19312
19313 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19314 installed software in a non-standard prefix.
19315
19316 Alternatively, you may set the environment variables XTRAP_CFLAGS
19317 and XTRAP_LIBS to avoid the need to call pkg-config.
19318 See the pkg-config man page for more details.
19319 " >&2;}
19320 { (exit 1); exit 1; }; }
19321 elif test $pkg_failed = untried; then
19322 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19323 is in your PATH or set the PKG_CONFIG environment variable to the full
19324 path to pkg-config.
19325
19326 Alternatively, you may set the environment variables XTRAP_CFLAGS
19327 and XTRAP_LIBS to avoid the need to call pkg-config.
19328 See the pkg-config man page for more details.
19329
19330 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19331 See \`config.log' for more details." >&5
19332 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19333 is in your PATH or set the PKG_CONFIG environment variable to the full
19334 path to pkg-config.
19335
19336 Alternatively, you may set the environment variables XTRAP_CFLAGS
19337 and XTRAP_LIBS to avoid the need to call pkg-config.
19338 See the pkg-config man page for more details.
19339
19340 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19341 See \`config.log' for more details." >&2;}
19342 { (exit 1); exit 1; }; }
19343 else
19344 XTRAP_CFLAGS=$pkg_cv_XTRAP_CFLAGS
19345 XTRAP_LIBS=$pkg_cv_XTRAP_LIBS
19346 echo "$as_me:$LINENO: result: yes" >&5
19347 echo "${ECHO_T}yes" >&6
19348 :
19349 fi
19350
19351
19352
19353
19354
19355 # Check whether --with-release-version or --without-release-version was given.
19356 if test "${with_release_version+set}" = set; then
19357 withval="$with_release_version"
19358 RELEASE_VERSION="$withval"
19359 else
19360 RELEASE_VERSION=""
19361 fi;
19362 if test "x$RELEASE_VERSION" != "x"; then
19363 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19364 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19365 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19366 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19367 fi
19368
19369
19370 ac_config_files="$ac_config_files Makefile src/Makefile xtrap.pc"
19371 cat >confcache <<\_ACEOF
19372 # This file is a shell script that caches the results of configure
19373 # tests run on this system so they can be shared between configure
19374 # scripts and configure runs, see configure's option --config-cache.
19375 # It is not useful on other systems. If it contains results you don't
19376 # want to keep, you may remove or edit it.
19377 #
19378 # config.status only pays attention to the cache file if you give it
19379 # the --recheck option to rerun configure.
19380 #
19381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19383 # following values.
19384
19385 _ACEOF
19386
19387 # The following way of writing the cache mishandles newlines in values,
19388 # but we know of no workaround that is simple, portable, and efficient.
19389 # So, don't put newlines in cache variables' values.
19390 # Ultrix sh set writes to stderr and can't be redirected directly,
19391 # and sets the high bit in the cache file unless we assign to the vars.
19392 {
19393 (set) 2>&1 |
19394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19395 *ac_space=\ *)
19396 # `set' does not quote correctly, so add quotes (double-quote
19397 # substitution turns \\\\ into \\, and sed turns \\ into \).
19398 sed -n \
19399 "s/'/'\\\\''/g;
19400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19401 ;;
19402 *)
19403 # `set' quotes correctly as required by POSIX, so do not add quotes.
19404 sed -n \
19405 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19406 ;;
19407 esac;
19408 } |
19409 sed '
19410 t clear
19411 : clear
19412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19413 t end
19414 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19415 : end' >>confcache
19416 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19417 if test -w $cache_file; then
19418 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19419 cat confcache >$cache_file
19420 else
19421 echo "not updating unwritable cache $cache_file"
19422 fi
19423 fi
19424 rm -f confcache
19425
19426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19427 # Let make expand exec_prefix.
19428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19429
19430 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19431 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19432 # trailing colons and then remove the whole line if VPATH becomes empty
19433 # (actually we leave an empty line to preserve line numbers).
19434 if test "x$srcdir" = x.; then
19435 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19436 s/:*\$(srcdir):*/:/;
19437 s/:*\${srcdir}:*/:/;
19438 s/:*@srcdir@:*/:/;
19439 s/^\([^=]*=[ ]*\):*/\1/;
19440 s/:*$//;
19441 s/^[^=]*=[ ]*$//;
19442 }'
19443 fi
19444
19445 DEFS=-DHAVE_CONFIG_H
19446
19447 ac_libobjs=
19448 ac_ltlibobjs=
19449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19450 # 1. Remove the extension, and $U if already installed.
19451 ac_i=`echo "$ac_i" |
19452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19453 # 2. Add them.
19454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19456 done
19457 LIBOBJS=$ac_libobjs
19458
19459 LTLIBOBJS=$ac_ltlibobjs
19460
19461
19462 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19463 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19464 Usually this means the macro was only invoked conditionally." >&5
19465 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19466 Usually this means the macro was only invoked conditionally." >&2;}
19467 { (exit 1); exit 1; }; }
19468 fi
19469 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19470 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19471 Usually this means the macro was only invoked conditionally." >&5
19472 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19473 Usually this means the macro was only invoked conditionally." >&2;}
19474 { (exit 1); exit 1; }; }
19475 fi
19476 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19477 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19478 Usually this means the macro was only invoked conditionally." >&5
19479 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19480 Usually this means the macro was only invoked conditionally." >&2;}
19481 { (exit 1); exit 1; }; }
19482 fi
19483 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19484 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19485 Usually this means the macro was only invoked conditionally." >&5
19486 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19487 Usually this means the macro was only invoked conditionally." >&2;}
19488 { (exit 1); exit 1; }; }
19489 fi
19490
19491 : ${CONFIG_STATUS=./config.status}
19492 ac_clean_files_save=$ac_clean_files
19493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19496 cat >$CONFIG_STATUS <<_ACEOF
19497 #! $SHELL
19498 # Generated by $as_me.
19499 # Run this file to recreate the current configuration.
19500 # Compiler output produced by configure, useful for debugging
19501 # configure, is in config.log if it exists.
19502
19503 debug=false
19504 ac_cs_recheck=false
19505 ac_cs_silent=false
19506 SHELL=\${CONFIG_SHELL-$SHELL}
19507 _ACEOF
19508
19509 cat >>$CONFIG_STATUS <<\_ACEOF
19510 ## --------------------- ##
19511 ## M4sh Initialization. ##
19512 ## --------------------- ##
19513
19514 # Be Bourne compatible
19515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19516 emulate sh
19517 NULLCMD=:
19518 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19519 # is contrary to our usage. Disable this feature.
19520 alias -g '${1+"$@"}'='"$@"'
19521 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19522 set -o posix
19523 fi
19524 DUALCASE=1; export DUALCASE # for MKS sh
19525
19526 # Support unset when possible.
19527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19528 as_unset=unset
19529 else
19530 as_unset=false
19531 fi
19532
19533
19534 # Work around bugs in pre-3.0 UWIN ksh.
19535 $as_unset ENV MAIL MAILPATH
19536 PS1='$ '
19537 PS2='> '
19538 PS4='+ '
19539
19540 # NLS nuisances.
19541 for as_var in \
19542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19544 LC_TELEPHONE LC_TIME
19545 do
19546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19547 eval $as_var=C; export $as_var
19548 else
19549 $as_unset $as_var
19550 fi
19551 done
19552
19553 # Required to use basename.
19554 if expr a : '\(a\)' >/dev/null 2>&1; then
19555 as_expr=expr
19556 else
19557 as_expr=false
19558 fi
19559
19560 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19561 as_basename=basename
19562 else
19563 as_basename=false
19564 fi
19565
19566
19567 # Name of the executable.
19568 as_me=`$as_basename "$0" ||
19569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19570 X"$0" : 'X\(//\)$' \| \
19571 X"$0" : 'X\(/\)$' \| \
19572 . : '\(.\)' 2>/dev/null ||
19573 echo X/"$0" |
19574 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19575 /^X\/\(\/\/\)$/{ s//\1/; q; }
19576 /^X\/\(\/\).*/{ s//\1/; q; }
19577 s/.*/./; q'`
19578
19579
19580 # PATH needs CR, and LINENO needs CR and PATH.
19581 # Avoid depending upon Character Ranges.
19582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19585 as_cr_digits='0123456789'
19586 as_cr_alnum=$as_cr_Letters$as_cr_digits
19587
19588 # The user is always right.
19589 if test "${PATH_SEPARATOR+set}" != set; then
19590 echo "#! /bin/sh" >conf$$.sh
19591 echo "exit 0" >>conf$$.sh
19592 chmod +x conf$$.sh
19593 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19594 PATH_SEPARATOR=';'
19595 else
19596 PATH_SEPARATOR=:
19597 fi
19598 rm -f conf$$.sh
19599 fi
19600
19601
19602 as_lineno_1=$LINENO
19603 as_lineno_2=$LINENO
19604 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19605 test "x$as_lineno_1" != "x$as_lineno_2" &&
19606 test "x$as_lineno_3" = "x$as_lineno_2" || {
19607 # Find who we are. Look in the path if we contain no path at all
19608 # relative or not.
19609 case $0 in
19610 *[\\/]* ) as_myself=$0 ;;
19611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19612 for as_dir in $PATH
19613 do
19614 IFS=$as_save_IFS
19615 test -z "$as_dir" && as_dir=.
19616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19617 done
19618
19619 ;;
19620 esac
19621 # We did not find ourselves, most probably we were run as `sh COMMAND'
19622 # in which case we are not to be found in the path.
19623 if test "x$as_myself" = x; then
19624 as_myself=$0
19625 fi
19626 if test ! -f "$as_myself"; then
19627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19628 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19629 { (exit 1); exit 1; }; }
19630 fi
19631 case $CONFIG_SHELL in
19632 '')
19633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19634 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19635 do
19636 IFS=$as_save_IFS
19637 test -z "$as_dir" && as_dir=.
19638 for as_base in sh bash ksh sh5; do
19639 case $as_dir in
19640 /*)
19641 if ("$as_dir/$as_base" -c '
19642 as_lineno_1=$LINENO
19643 as_lineno_2=$LINENO
19644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19645 test "x$as_lineno_1" != "x$as_lineno_2" &&
19646 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19647 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19648 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19649 CONFIG_SHELL=$as_dir/$as_base
19650 export CONFIG_SHELL
19651 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19652 fi;;
19653 esac
19654 done
19655 done
19656 ;;
19657 esac
19658
19659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19660 # uniformly replaced by the line number. The first 'sed' inserts a
19661 # line-number line before each line; the second 'sed' does the real
19662 # work. The second script uses 'N' to pair each line-number line
19663 # with the numbered line, and appends trailing '-' during
19664 # substitution so that $LINENO is not a special case at line end.
19665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19666 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19667 sed '=' <$as_myself |
19668 sed '
19669 N
19670 s,$,-,
19671 : loop
19672 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19673 t loop
19674 s,-$,,
19675 s,^['$as_cr_digits']*\n,,
19676 ' >$as_me.lineno &&
19677 chmod +x $as_me.lineno ||
19678 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19679 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19680 { (exit 1); exit 1; }; }
19681
19682 # Don't try to exec as it changes $[0], causing all sort of problems
19683 # (the dirname of $[0] is not the place where we might find the
19684 # original and so on. Autoconf is especially sensible to this).
19685 . ./$as_me.lineno
19686 # Exit status is that of the last command.
19687 exit
19688 }
19689
19690
19691 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19692 *c*,-n*) ECHO_N= ECHO_C='
19693 ' ECHO_T=' ' ;;
19694 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19695 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19696 esac
19697
19698 if expr a : '\(a\)' >/dev/null 2>&1; then
19699 as_expr=expr
19700 else
19701 as_expr=false
19702 fi
19703
19704 rm -f conf$$ conf$$.exe conf$$.file
19705 echo >conf$$.file
19706 if ln -s conf$$.file conf$$ 2>/dev/null; then
19707 # We could just check for DJGPP; but this test a) works b) is more generic
19708 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19709 if test -f conf$$.exe; then
19710 # Don't use ln at all; we don't have any links
19711 as_ln_s='cp -p'
19712 else
19713 as_ln_s='ln -s'
19714 fi
19715 elif ln conf$$.file conf$$ 2>/dev/null; then
19716 as_ln_s=ln
19717 else
19718 as_ln_s='cp -p'
19719 fi
19720 rm -f conf$$ conf$$.exe conf$$.file
19721
19722 if mkdir -p . 2>/dev/null; then
19723 as_mkdir_p=:
19724 else
19725 test -d ./-p && rmdir ./-p
19726 as_mkdir_p=false
19727 fi
19728
19729 as_executable_p="test -f"
19730
19731 # Sed expression to map a string onto a valid CPP name.
19732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19733
19734 # Sed expression to map a string onto a valid variable name.
19735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19736
19737
19738 # IFS
19739 # We need space, tab and new line, in precisely that order.
19740 as_nl='
19741 '
19742 IFS=" $as_nl"
19743
19744 # CDPATH.
19745 $as_unset CDPATH
19746
19747 exec 6>&1
19748
19749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19750 # report actual input values of CONFIG_FILES etc. instead of their
19751 # values after options handling. Logging --version etc. is OK.
19752 exec 5>>config.log
19753 {
19754 echo
19755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19756 ## Running $as_me. ##
19757 _ASBOX
19758 } >&5
19759 cat >&5 <<_CSEOF
19760
19761 This file was extended by libXTrap $as_me 1.0.0, which was
19762 generated by GNU Autoconf 2.59. Invocation command line was
19763
19764 CONFIG_FILES = $CONFIG_FILES
19765 CONFIG_HEADERS = $CONFIG_HEADERS
19766 CONFIG_LINKS = $CONFIG_LINKS
19767 CONFIG_COMMANDS = $CONFIG_COMMANDS
19768 $ $0 $@
19769
19770 _CSEOF
19771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19772 echo >&5
19773 _ACEOF
19774
19775 # Files that config.status was made for.
19776 if test -n "$ac_config_files"; then
19777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19778 fi
19779
19780 if test -n "$ac_config_headers"; then
19781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19782 fi
19783
19784 if test -n "$ac_config_links"; then
19785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19786 fi
19787
19788 if test -n "$ac_config_commands"; then
19789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19790 fi
19791
19792 cat >>$CONFIG_STATUS <<\_ACEOF
19793
19794 ac_cs_usage="\
19795 \`$as_me' instantiates files from templates according to the
19796 current configuration.
19797
19798 Usage: $0 [OPTIONS] [FILE]...
19799
19800 -h, --help print this help, then exit
19801 -V, --version print version number, then exit
19802 -q, --quiet do not print progress messages
19803 -d, --debug don't remove temporary files
19804 --recheck update $as_me by reconfiguring in the same conditions
19805 --file=FILE[:TEMPLATE]
19806 instantiate the configuration file FILE
19807 --header=FILE[:TEMPLATE]
19808 instantiate the configuration header FILE
19809
19810 Configuration files:
19811 $config_files
19812
19813 Configuration headers:
19814 $config_headers
19815
19816 Configuration commands:
19817 $config_commands
19818
19819 Report bugs to <bug-autoconf@gnu.org>."
19820 _ACEOF
19821
19822 cat >>$CONFIG_STATUS <<_ACEOF
19823 ac_cs_version="\\
19824 libXTrap config.status 1.0.0
19825 configured by $0, generated by GNU Autoconf 2.59,
19826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19827
19828 Copyright (C) 2003 Free Software Foundation, Inc.
19829 This config.status script is free software; the Free Software Foundation
19830 gives unlimited permission to copy, distribute and modify it."
19831 srcdir=$srcdir
19832 INSTALL="$INSTALL"
19833 _ACEOF
19834
19835 cat >>$CONFIG_STATUS <<\_ACEOF
19836 # If no file are specified by the user, then we need to provide default
19837 # value. By we need to know if files were specified by the user.
19838 ac_need_defaults=:
19839 while test $# != 0
19840 do
19841 case $1 in
19842 --*=*)
19843 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19844 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19845 ac_shift=:
19846 ;;
19847 -*)
19848 ac_option=$1
19849 ac_optarg=$2
19850 ac_shift=shift
19851 ;;
19852 *) # This is not an option, so the user has probably given explicit
19853 # arguments.
19854 ac_option=$1
19855 ac_need_defaults=false;;
19856 esac
19857
19858 case $ac_option in
19859 # Handling of the options.
19860 _ACEOF
19861 cat >>$CONFIG_STATUS <<\_ACEOF
19862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19863 ac_cs_recheck=: ;;
19864 --version | --vers* | -V )
19865 echo "$ac_cs_version"; exit 0 ;;
19866 --he | --h)
19867 # Conflict between --help and --header
19868 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19869 Try \`$0 --help' for more information." >&5
19870 echo "$as_me: error: ambiguous option: $1
19871 Try \`$0 --help' for more information." >&2;}
19872 { (exit 1); exit 1; }; };;
19873 --help | --hel | -h )
19874 echo "$ac_cs_usage"; exit 0 ;;
19875 --debug | --d* | -d )
19876 debug=: ;;
19877 --file | --fil | --fi | --f )
19878 $ac_shift
19879 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19880 ac_need_defaults=false;;
19881 --header | --heade | --head | --hea )
19882 $ac_shift
19883 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19884 ac_need_defaults=false;;
19885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19887 ac_cs_silent=: ;;
19888
19889 # This is an error.
19890 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19891 Try \`$0 --help' for more information." >&5
19892 echo "$as_me: error: unrecognized option: $1
19893 Try \`$0 --help' for more information." >&2;}
19894 { (exit 1); exit 1; }; } ;;
19895
19896 *) ac_config_targets="$ac_config_targets $1" ;;
19897
19898 esac
19899 shift
19900 done
19901
19902 ac_configure_extra_args=
19903
19904 if $ac_cs_silent; then
19905 exec 6>/dev/null
19906 ac_configure_extra_args="$ac_configure_extra_args --silent"
19907 fi
19908
19909 _ACEOF
19910 cat >>$CONFIG_STATUS <<_ACEOF
19911 if \$ac_cs_recheck; then
19912 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19913 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19914 fi
19915
19916 _ACEOF
19917
19918 cat >>$CONFIG_STATUS <<_ACEOF
19919 #
19920 # INIT-COMMANDS section.
19921 #
19922
19923 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19924
19925 _ACEOF
19926
19927
19928
19929 cat >>$CONFIG_STATUS <<\_ACEOF
19930 for ac_config_target in $ac_config_targets
19931 do
19932 case "$ac_config_target" in
19933 # Handling of arguments.
19934 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19935 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19936 "xtrap.pc" ) CONFIG_FILES="$CONFIG_FILES xtrap.pc" ;;
19937 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19938 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19939 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19940 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19941 { (exit 1); exit 1; }; };;
19942 esac
19943 done
19944
19945 # If the user did not use the arguments to specify the items to instantiate,
19946 # then the envvar interface is used. Set only those that are not.
19947 # We use the long form for the default assignment because of an extremely
19948 # bizarre bug on SunOS 4.1.3.
19949 if $ac_need_defaults; then
19950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19953 fi
19954
19955 # Have a temporary directory for convenience. Make it in the build tree
19956 # simply because there is no reason to put it here, and in addition,
19957 # creating and moving files from /tmp can sometimes cause problems.
19958 # Create a temporary directory, and hook for its removal unless debugging.
19959 $debug ||
19960 {
19961 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19962 trap '{ (exit 1); exit 1; }' 1 2 13 15
19963 }
19964
19965 # Create a (secure) tmp directory for tmp files.
19966
19967 {
19968 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19969 test -n "$tmp" && test -d "$tmp"
19970 } ||
19971 {
19972 tmp=./confstat$$-$RANDOM
19973 (umask 077 && mkdir $tmp)
19974 } ||
19975 {
19976 echo "$me: cannot create a temporary directory in ." >&2
19977 { (exit 1); exit 1; }
19978 }
19979
19980 _ACEOF
19981
19982 cat >>$CONFIG_STATUS <<_ACEOF
19983
19984 #
19985 # CONFIG_FILES section.
19986 #
19987
19988 # No need to generate the scripts if there are no CONFIG_FILES.
19989 # This happens for instance when ./config.status config.h
19990 if test -n "\$CONFIG_FILES"; then
19991 # Protect against being on the right side of a sed subst in config.status.
19992 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19993 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19994 s,@SHELL@,$SHELL,;t t
19995 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19996 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19997 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19998 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19999 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20000 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20001 s,@exec_prefix@,$exec_prefix,;t t
20002 s,@prefix@,$prefix,;t t
20003 s,@program_transform_name@,$program_transform_name,;t t
20004 s,@bindir@,$bindir,;t t
20005 s,@sbindir@,$sbindir,;t t
20006 s,@libexecdir@,$libexecdir,;t t
20007 s,@datadir@,$datadir,;t t
20008 s,@sysconfdir@,$sysconfdir,;t t
20009 s,@sharedstatedir@,$sharedstatedir,;t t
20010 s,@localstatedir@,$localstatedir,;t t
20011 s,@libdir@,$libdir,;t t
20012 s,@includedir@,$includedir,;t t
20013 s,@oldincludedir@,$oldincludedir,;t t
20014 s,@infodir@,$infodir,;t t
20015 s,@mandir@,$mandir,;t t
20016 s,@build_alias@,$build_alias,;t t
20017 s,@host_alias@,$host_alias,;t t
20018 s,@target_alias@,$target_alias,;t t
20019 s,@DEFS@,$DEFS,;t t
20020 s,@ECHO_C@,$ECHO_C,;t t
20021 s,@ECHO_N@,$ECHO_N,;t t
20022 s,@ECHO_T@,$ECHO_T,;t t
20023 s,@LIBS@,$LIBS,;t t
20024 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20025 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20026 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20027 s,@CYGPATH_W@,$CYGPATH_W,;t t
20028 s,@PACKAGE@,$PACKAGE,;t t
20029 s,@VERSION@,$VERSION,;t t
20030 s,@ACLOCAL@,$ACLOCAL,;t t
20031 s,@AUTOCONF@,$AUTOCONF,;t t
20032 s,@AUTOMAKE@,$AUTOMAKE,;t t
20033 s,@AUTOHEADER@,$AUTOHEADER,;t t
20034 s,@MAKEINFO@,$MAKEINFO,;t t
20035 s,@AMTAR@,$AMTAR,;t t
20036 s,@install_sh@,$install_sh,;t t
20037 s,@STRIP@,$STRIP,;t t
20038 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20039 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20040 s,@AWK@,$AWK,;t t
20041 s,@SET_MAKE@,$SET_MAKE,;t t
20042 s,@am__leading_dot@,$am__leading_dot,;t t
20043 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20044 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20045 s,@MAINT@,$MAINT,;t t
20046 s,@CC@,$CC,;t t
20047 s,@CFLAGS@,$CFLAGS,;t t
20048 s,@LDFLAGS@,$LDFLAGS,;t t
20049 s,@CPPFLAGS@,$CPPFLAGS,;t t
20050 s,@ac_ct_CC@,$ac_ct_CC,;t t
20051 s,@EXEEXT@,$EXEEXT,;t t
20052 s,@OBJEXT@,$OBJEXT,;t t
20053 s,@DEPDIR@,$DEPDIR,;t t
20054 s,@am__include@,$am__include,;t t
20055 s,@am__quote@,$am__quote,;t t
20056 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20057 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20058 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20059 s,@CCDEPMODE@,$CCDEPMODE,;t t
20060 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20061 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20062 s,@build@,$build,;t t
20063 s,@build_cpu@,$build_cpu,;t t
20064 s,@build_vendor@,$build_vendor,;t t
20065 s,@build_os@,$build_os,;t t
20066 s,@host@,$host,;t t
20067 s,@host_cpu@,$host_cpu,;t t
20068 s,@host_vendor@,$host_vendor,;t t
20069 s,@host_os@,$host_os,;t t
20070 s,@EGREP@,$EGREP,;t t
20071 s,@LN_S@,$LN_S,;t t
20072 s,@ECHO@,$ECHO,;t t
20073 s,@AR@,$AR,;t t
20074 s,@ac_ct_AR@,$ac_ct_AR,;t t
20075 s,@RANLIB@,$RANLIB,;t t
20076 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20077 s,@CPP@,$CPP,;t t
20078 s,@CXX@,$CXX,;t t
20079 s,@CXXFLAGS@,$CXXFLAGS,;t t
20080 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20081 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20082 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20083 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20084 s,@CXXCPP@,$CXXCPP,;t t
20085 s,@F77@,$F77,;t t
20086 s,@FFLAGS@,$FFLAGS,;t t
20087 s,@ac_ct_F77@,$ac_ct_F77,;t t
20088 s,@LIBTOOL@,$LIBTOOL,;t t
20089 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20090 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20091 s,@XTRAP_CFLAGS@,$XTRAP_CFLAGS,;t t
20092 s,@XTRAP_LIBS@,$XTRAP_LIBS,;t t
20093 s,@LIBOBJS@,$LIBOBJS,;t t
20094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20095 CEOF
20096
20097 _ACEOF
20098
20099 cat >>$CONFIG_STATUS <<\_ACEOF
20100 # Split the substitutions into bite-sized pieces for seds with
20101 # small command number limits, like on Digital OSF/1 and HP-UX.
20102 ac_max_sed_lines=48
20103 ac_sed_frag=1 # Number of current file.
20104 ac_beg=1 # First line for current file.
20105 ac_end=$ac_max_sed_lines # Line after last line for current file.
20106 ac_more_lines=:
20107 ac_sed_cmds=
20108 while $ac_more_lines; do
20109 if test $ac_beg -gt 1; then
20110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20111 else
20112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20113 fi
20114 if test ! -s $tmp/subs.frag; then
20115 ac_more_lines=false
20116 else
20117 # The purpose of the label and of the branching condition is to
20118 # speed up the sed processing (if there are no `@' at all, there
20119 # is no need to browse any of the substitutions).
20120 # These are the two extra sed commands mentioned above.
20121 (echo ':t
20122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20123 if test -z "$ac_sed_cmds"; then
20124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20125 else
20126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20127 fi
20128 ac_sed_frag=`expr $ac_sed_frag + 1`
20129 ac_beg=$ac_end
20130 ac_end=`expr $ac_end + $ac_max_sed_lines`
20131 fi
20132 done
20133 if test -z "$ac_sed_cmds"; then
20134 ac_sed_cmds=cat
20135 fi
20136 fi # test -n "$CONFIG_FILES"
20137
20138 _ACEOF
20139 cat >>$CONFIG_STATUS <<\_ACEOF
20140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20142 case $ac_file in
20143 - | *:- | *:-:* ) # input from stdin
20144 cat >$tmp/stdin
20145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20149 * ) ac_file_in=$ac_file.in ;;
20150 esac
20151
20152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20153 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20155 X"$ac_file" : 'X\(//\)[^/]' \| \
20156 X"$ac_file" : 'X\(//\)$' \| \
20157 X"$ac_file" : 'X\(/\)' \| \
20158 . : '\(.\)' 2>/dev/null ||
20159 echo X"$ac_file" |
20160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20162 /^X\(\/\/\)$/{ s//\1/; q; }
20163 /^X\(\/\).*/{ s//\1/; q; }
20164 s/.*/./; q'`
20165 { if $as_mkdir_p; then
20166 mkdir -p "$ac_dir"
20167 else
20168 as_dir="$ac_dir"
20169 as_dirs=
20170 while test ! -d "$as_dir"; do
20171 as_dirs="$as_dir $as_dirs"
20172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20174 X"$as_dir" : 'X\(//\)[^/]' \| \
20175 X"$as_dir" : 'X\(//\)$' \| \
20176 X"$as_dir" : 'X\(/\)' \| \
20177 . : '\(.\)' 2>/dev/null ||
20178 echo X"$as_dir" |
20179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20181 /^X\(\/\/\)$/{ s//\1/; q; }
20182 /^X\(\/\).*/{ s//\1/; q; }
20183 s/.*/./; q'`
20184 done
20185 test ! -n "$as_dirs" || mkdir $as_dirs
20186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20188 { (exit 1); exit 1; }; }; }
20189
20190 ac_builddir=.
20191
20192 if test "$ac_dir" != .; then
20193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20194 # A "../" for each directory in $ac_dir_suffix.
20195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20196 else
20197 ac_dir_suffix= ac_top_builddir=
20198 fi
20199
20200 case $srcdir in
20201 .) # No --srcdir option. We are building in place.
20202 ac_srcdir=.
20203 if test -z "$ac_top_builddir"; then
20204 ac_top_srcdir=.
20205 else
20206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20207 fi ;;
20208 [\\/]* | ?:[\\/]* ) # Absolute path.
20209 ac_srcdir=$srcdir$ac_dir_suffix;
20210 ac_top_srcdir=$srcdir ;;
20211 *) # Relative path.
20212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20214 esac
20215
20216 # Do not use `cd foo && pwd` to compute absolute paths, because
20217 # the directories may not exist.
20218 case `pwd` in
20219 .) ac_abs_builddir="$ac_dir";;
20220 *)
20221 case "$ac_dir" in
20222 .) ac_abs_builddir=`pwd`;;
20223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20224 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20225 esac;;
20226 esac
20227 case $ac_abs_builddir in
20228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20229 *)
20230 case ${ac_top_builddir}. in
20231 .) ac_abs_top_builddir=$ac_abs_builddir;;
20232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20234 esac;;
20235 esac
20236 case $ac_abs_builddir in
20237 .) ac_abs_srcdir=$ac_srcdir;;
20238 *)
20239 case $ac_srcdir in
20240 .) ac_abs_srcdir=$ac_abs_builddir;;
20241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20243 esac;;
20244 esac
20245 case $ac_abs_builddir in
20246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20247 *)
20248 case $ac_top_srcdir in
20249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20252 esac;;
20253 esac
20254
20255
20256 case $INSTALL in
20257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20258 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20259 esac
20260
20261 if test x"$ac_file" != x-; then
20262 { echo "$as_me:$LINENO: creating $ac_file" >&5
20263 echo "$as_me: creating $ac_file" >&6;}
20264 rm -f "$ac_file"
20265 fi
20266 # Let's still pretend it is `configure' which instantiates (i.e., don't
20267 # use $as_me), people would be surprised to read:
20268 # /* config.h. Generated by config.status. */
20269 if test x"$ac_file" = x-; then
20270 configure_input=
20271 else
20272 configure_input="$ac_file. "
20273 fi
20274 configure_input=$configure_input"Generated from `echo $ac_file_in |
20275 sed 's,.*/,,'` by configure."
20276
20277 # First look for the input files in the build tree, otherwise in the
20278 # src tree.
20279 ac_file_inputs=`IFS=:
20280 for f in $ac_file_in; do
20281 case $f in
20282 -) echo $tmp/stdin ;;
20283 [\\/$]*)
20284 # Absolute (can't be DOS-style, as IFS=:)
20285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20286 echo "$as_me: error: cannot find input file: $f" >&2;}
20287 { (exit 1); exit 1; }; }
20288 echo "$f";;
20289 *) # Relative
20290 if test -f "$f"; then
20291 # Build tree
20292 echo "$f"
20293 elif test -f "$srcdir/$f"; then
20294 # Source tree
20295 echo "$srcdir/$f"
20296 else
20297 # /dev/null tree
20298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20299 echo "$as_me: error: cannot find input file: $f" >&2;}
20300 { (exit 1); exit 1; }; }
20301 fi;;
20302 esac
20303 done` || { (exit 1); exit 1; }
20304 _ACEOF
20305 cat >>$CONFIG_STATUS <<_ACEOF
20306 sed "$ac_vpsub
20307 $extrasub
20308 _ACEOF
20309 cat >>$CONFIG_STATUS <<\_ACEOF
20310 :t
20311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20312 s,@configure_input@,$configure_input,;t t
20313 s,@srcdir@,$ac_srcdir,;t t
20314 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20315 s,@top_srcdir@,$ac_top_srcdir,;t t
20316 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20317 s,@builddir@,$ac_builddir,;t t
20318 s,@abs_builddir@,$ac_abs_builddir,;t t
20319 s,@top_builddir@,$ac_top_builddir,;t t
20320 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20321 s,@INSTALL@,$ac_INSTALL,;t t
20322 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20323 rm -f $tmp/stdin
20324 if test x"$ac_file" != x-; then
20325 mv $tmp/out $ac_file
20326 else
20327 cat $tmp/out
20328 rm -f $tmp/out
20329 fi
20330
20331 done
20332 _ACEOF
20333 cat >>$CONFIG_STATUS <<\_ACEOF
20334
20335 #
20336 # CONFIG_HEADER section.
20337 #
20338
20339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20341 #
20342 # ac_d sets the value in "#define NAME VALUE" lines.
20343 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20344 ac_dB='[ ].*$,\1#\2'
20345 ac_dC=' '
20346 ac_dD=',;t'
20347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20348 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20349 ac_uB='$,\1#\2define\3'
20350 ac_uC=' '
20351 ac_uD=',;t'
20352
20353 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20355 case $ac_file in
20356 - | *:- | *:-:* ) # input from stdin
20357 cat >$tmp/stdin
20358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20362 * ) ac_file_in=$ac_file.in ;;
20363 esac
20364
20365 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20366 echo "$as_me: creating $ac_file" >&6;}
20367
20368 # First look for the input files in the build tree, otherwise in the
20369 # src tree.
20370 ac_file_inputs=`IFS=:
20371 for f in $ac_file_in; do
20372 case $f in
20373 -) echo $tmp/stdin ;;
20374 [\\/$]*)
20375 # Absolute (can't be DOS-style, as IFS=:)
20376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20377 echo "$as_me: error: cannot find input file: $f" >&2;}
20378 { (exit 1); exit 1; }; }
20379 # Do quote $f, to prevent DOS paths from being IFS'd.
20380 echo "$f";;
20381 *) # Relative
20382 if test -f "$f"; then
20383 # Build tree
20384 echo "$f"
20385 elif test -f "$srcdir/$f"; then
20386 # Source tree
20387 echo "$srcdir/$f"
20388 else
20389 # /dev/null tree
20390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20391 echo "$as_me: error: cannot find input file: $f" >&2;}
20392 { (exit 1); exit 1; }; }
20393 fi;;
20394 esac
20395 done` || { (exit 1); exit 1; }
20396 # Remove the trailing spaces.
20397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20398
20399 _ACEOF
20400
20401 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20402 # `conftest.undefs', that substitutes the proper values into
20403 # config.h.in to produce config.h. The first handles `#define'
20404 # templates, and the second `#undef' templates.
20405 # And first: Protect against being on the right side of a sed subst in
20406 # config.status. Protect against being in an unquoted here document
20407 # in config.status.
20408 rm -f conftest.defines conftest.undefs
20409 # Using a here document instead of a string reduces the quoting nightmare.
20410 # Putting comments in sed scripts is not portable.
20411 #
20412 # `end' is used to avoid that the second main sed command (meant for
20413 # 0-ary CPP macros) applies to n-ary macro definitions.
20414 # See the Autoconf documentation for `clear'.
20415 cat >confdef2sed.sed <<\_ACEOF
20416 s/[\\&,]/\\&/g
20417 s,[\\$`],\\&,g
20418 t clear
20419 : clear
20420 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20421 t end
20422 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20423 : end
20424 _ACEOF
20425 # If some macros were called several times there might be several times
20426 # the same #defines, which is useless. Nevertheless, we may not want to
20427 # sort them, since we want the *last* AC-DEFINE to be honored.
20428 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20429 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20430 rm -f confdef2sed.sed
20431
20432 # This sed command replaces #undef with comments. This is necessary, for
20433 # example, in the case of _POSIX_SOURCE, which is predefined and required
20434 # on some systems where configure will not decide to define it.
20435 cat >>conftest.undefs <<\_ACEOF
20436 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20437 _ACEOF
20438
20439 # Break up conftest.defines because some shells have a limit on the size
20440 # of here documents, and old seds have small limits too (100 cmds).
20441 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20442 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20443 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20444 echo ' :' >>$CONFIG_STATUS
20445 rm -f conftest.tail
20446 while grep . conftest.defines >/dev/null
20447 do
20448 # Write a limited-size here document to $tmp/defines.sed.
20449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20450 # Speed up: don't consider the non `#define' lines.
20451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20452 # Work around the forget-to-reset-the-flag bug.
20453 echo 't clr' >>$CONFIG_STATUS
20454 echo ': clr' >>$CONFIG_STATUS
20455 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20456 echo 'CEOF
20457 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20458 rm -f $tmp/in
20459 mv $tmp/out $tmp/in
20460 ' >>$CONFIG_STATUS
20461 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20462 rm -f conftest.defines
20463 mv conftest.tail conftest.defines
20464 done
20465 rm -f conftest.defines
20466 echo ' fi # grep' >>$CONFIG_STATUS
20467 echo >>$CONFIG_STATUS
20468
20469 # Break up conftest.undefs because some shells have a limit on the size
20470 # of here documents, and old seds have small limits too (100 cmds).
20471 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20472 rm -f conftest.tail
20473 while grep . conftest.undefs >/dev/null
20474 do
20475 # Write a limited-size here document to $tmp/undefs.sed.
20476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20477 # Speed up: don't consider the non `#undef'
20478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20479 # Work around the forget-to-reset-the-flag bug.
20480 echo 't clr' >>$CONFIG_STATUS
20481 echo ': clr' >>$CONFIG_STATUS
20482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20483 echo 'CEOF
20484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20485 rm -f $tmp/in
20486 mv $tmp/out $tmp/in
20487 ' >>$CONFIG_STATUS
20488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20489 rm -f conftest.undefs
20490 mv conftest.tail conftest.undefs
20491 done
20492 rm -f conftest.undefs
20493
20494 cat >>$CONFIG_STATUS <<\_ACEOF
20495 # Let's still pretend it is `configure' which instantiates (i.e., don't
20496 # use $as_me), people would be surprised to read:
20497 # /* config.h. Generated by config.status. */
20498 if test x"$ac_file" = x-; then
20499 echo "/* Generated by configure. */" >$tmp/config.h
20500 else
20501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20502 fi
20503 cat $tmp/in >>$tmp/config.h
20504 rm -f $tmp/in
20505 if test x"$ac_file" != x-; then
20506 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20508 echo "$as_me: $ac_file is unchanged" >&6;}
20509 else
20510 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20512 X"$ac_file" : 'X\(//\)[^/]' \| \
20513 X"$ac_file" : 'X\(//\)$' \| \
20514 X"$ac_file" : 'X\(/\)' \| \
20515 . : '\(.\)' 2>/dev/null ||
20516 echo X"$ac_file" |
20517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20519 /^X\(\/\/\)$/{ s//\1/; q; }
20520 /^X\(\/\).*/{ s//\1/; q; }
20521 s/.*/./; q'`
20522 { if $as_mkdir_p; then
20523 mkdir -p "$ac_dir"
20524 else
20525 as_dir="$ac_dir"
20526 as_dirs=
20527 while test ! -d "$as_dir"; do
20528 as_dirs="$as_dir $as_dirs"
20529 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20531 X"$as_dir" : 'X\(//\)[^/]' \| \
20532 X"$as_dir" : 'X\(//\)$' \| \
20533 X"$as_dir" : 'X\(/\)' \| \
20534 . : '\(.\)' 2>/dev/null ||
20535 echo X"$as_dir" |
20536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20538 /^X\(\/\/\)$/{ s//\1/; q; }
20539 /^X\(\/\).*/{ s//\1/; q; }
20540 s/.*/./; q'`
20541 done
20542 test ! -n "$as_dirs" || mkdir $as_dirs
20543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20544 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20545 { (exit 1); exit 1; }; }; }
20546
20547 rm -f $ac_file
20548 mv $tmp/config.h $ac_file
20549 fi
20550 else
20551 cat $tmp/config.h
20552 rm -f $tmp/config.h
20553 fi
20554 # Compute $ac_file's index in $config_headers.
20555 _am_stamp_count=1
20556 for _am_header in $config_headers :; do
20557 case $_am_header in
20558 $ac_file | $ac_file:* )
20559 break ;;
20560 * )
20561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20562 esac
20563 done
20564 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20565 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20566 X$ac_file : 'X\(//\)[^/]' \| \
20567 X$ac_file : 'X\(//\)$' \| \
20568 X$ac_file : 'X\(/\)' \| \
20569 . : '\(.\)' 2>/dev/null ||
20570 echo X$ac_file |
20571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20573 /^X\(\/\/\)$/{ s//\1/; q; }
20574 /^X\(\/\).*/{ s//\1/; q; }
20575 s/.*/./; q'`/stamp-h$_am_stamp_count
20576 done
20577 _ACEOF
20578 cat >>$CONFIG_STATUS <<\_ACEOF
20579
20580 #
20581 # CONFIG_COMMANDS section.
20582 #
20583 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20584 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20585 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20586 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20587 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20588 X"$ac_dest" : 'X\(//\)[^/]' \| \
20589 X"$ac_dest" : 'X\(//\)$' \| \
20590 X"$ac_dest" : 'X\(/\)' \| \
20591 . : '\(.\)' 2>/dev/null ||
20592 echo X"$ac_dest" |
20593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20595 /^X\(\/\/\)$/{ s//\1/; q; }
20596 /^X\(\/\).*/{ s//\1/; q; }
20597 s/.*/./; q'`
20598 { if $as_mkdir_p; then
20599 mkdir -p "$ac_dir"
20600 else
20601 as_dir="$ac_dir"
20602 as_dirs=
20603 while test ! -d "$as_dir"; do
20604 as_dirs="$as_dir $as_dirs"
20605 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20607 X"$as_dir" : 'X\(//\)[^/]' \| \
20608 X"$as_dir" : 'X\(//\)$' \| \
20609 X"$as_dir" : 'X\(/\)' \| \
20610 . : '\(.\)' 2>/dev/null ||
20611 echo X"$as_dir" |
20612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20614 /^X\(\/\/\)$/{ s//\1/; q; }
20615 /^X\(\/\).*/{ s//\1/; q; }
20616 s/.*/./; q'`
20617 done
20618 test ! -n "$as_dirs" || mkdir $as_dirs
20619 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20620 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20621 { (exit 1); exit 1; }; }; }
20622
20623 ac_builddir=.
20624
20625 if test "$ac_dir" != .; then
20626 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20627 # A "../" for each directory in $ac_dir_suffix.
20628 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20629 else
20630 ac_dir_suffix= ac_top_builddir=
20631 fi
20632
20633 case $srcdir in
20634 .) # No --srcdir option. We are building in place.
20635 ac_srcdir=.
20636 if test -z "$ac_top_builddir"; then
20637 ac_top_srcdir=.
20638 else
20639 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20640 fi ;;
20641 [\\/]* | ?:[\\/]* ) # Absolute path.
20642 ac_srcdir=$srcdir$ac_dir_suffix;
20643 ac_top_srcdir=$srcdir ;;
20644 *) # Relative path.
20645 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20646 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20647 esac
20648
20649 # Do not use `cd foo && pwd` to compute absolute paths, because
20650 # the directories may not exist.
20651 case `pwd` in
20652 .) ac_abs_builddir="$ac_dir";;
20653 *)
20654 case "$ac_dir" in
20655 .) ac_abs_builddir=`pwd`;;
20656 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20657 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20658 esac;;
20659 esac
20660 case $ac_abs_builddir in
20661 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20662 *)
20663 case ${ac_top_builddir}. in
20664 .) ac_abs_top_builddir=$ac_abs_builddir;;
20665 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20666 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20667 esac;;
20668 esac
20669 case $ac_abs_builddir in
20670 .) ac_abs_srcdir=$ac_srcdir;;
20671 *)
20672 case $ac_srcdir in
20673 .) ac_abs_srcdir=$ac_abs_builddir;;
20674 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20675 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20676 esac;;
20677 esac
20678 case $ac_abs_builddir in
20679 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20680 *)
20681 case $ac_top_srcdir in
20682 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20683 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20684 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20685 esac;;
20686 esac
20687
20688
20689 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20690 echo "$as_me: executing $ac_dest commands" >&6;}
20691 case $ac_dest in
20692 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20693 # Strip MF so we end up with the name of the file.
20694 mf=`echo "$mf" | sed -e 's/:.*$//'`
20695 # Check whether this is an Automake generated Makefile or not.
20696 # We used to match only the files named `Makefile.in', but
20697 # some people rename them; so instead we look at the file content.
20698 # Grep'ing the first line is not enough: some people post-process
20699 # each Makefile.in and add a new line on top of each file to say so.
20700 # So let's grep whole file.
20701 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20702 dirpart=`(dirname "$mf") 2>/dev/null ||
20703 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20704 X"$mf" : 'X\(//\)[^/]' \| \
20705 X"$mf" : 'X\(//\)$' \| \
20706 X"$mf" : 'X\(/\)' \| \
20707 . : '\(.\)' 2>/dev/null ||
20708 echo X"$mf" |
20709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20711 /^X\(\/\/\)$/{ s//\1/; q; }
20712 /^X\(\/\).*/{ s//\1/; q; }
20713 s/.*/./; q'`
20714 else
20715 continue
20716 fi
20717 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20718 # Extract the definition of DEP_FILES from the Makefile without
20719 # running `make'.
20720 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20721 test -z "$DEPDIR" && continue
20722 # When using ansi2knr, U may be empty or an underscore; expand it
20723 U=`sed -n -e '/^U = / s///p' < "$mf"`
20724 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20725 # We invoke sed twice because it is the simplest approach to
20726 # changing $(DEPDIR) to its actual value in the expansion.
20727 for file in `sed -n -e '
20728 /^DEP_FILES = .*\\\\$/ {
20729 s/^DEP_FILES = //
20730 :loop
20731 s/\\\\$//
20732 p
20733 n
20734 /\\\\$/ b loop
20735 p
20736 }
20737 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20739 # Make sure the directory exists.
20740 test -f "$dirpart/$file" && continue
20741 fdir=`(dirname "$file") 2>/dev/null ||
20742 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20743 X"$file" : 'X\(//\)[^/]' \| \
20744 X"$file" : 'X\(//\)$' \| \
20745 X"$file" : 'X\(/\)' \| \
20746 . : '\(.\)' 2>/dev/null ||
20747 echo X"$file" |
20748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20750 /^X\(\/\/\)$/{ s//\1/; q; }
20751 /^X\(\/\).*/{ s//\1/; q; }
20752 s/.*/./; q'`
20753 { if $as_mkdir_p; then
20754 mkdir -p $dirpart/$fdir
20755 else
20756 as_dir=$dirpart/$fdir
20757 as_dirs=
20758 while test ! -d "$as_dir"; do
20759 as_dirs="$as_dir $as_dirs"
20760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20762 X"$as_dir" : 'X\(//\)[^/]' \| \
20763 X"$as_dir" : 'X\(//\)$' \| \
20764 X"$as_dir" : 'X\(/\)' \| \
20765 . : '\(.\)' 2>/dev/null ||
20766 echo X"$as_dir" |
20767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20769 /^X\(\/\/\)$/{ s//\1/; q; }
20770 /^X\(\/\).*/{ s//\1/; q; }
20771 s/.*/./; q'`
20772 done
20773 test ! -n "$as_dirs" || mkdir $as_dirs
20774 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20775 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20776 { (exit 1); exit 1; }; }; }
20777
20778 # echo "creating $dirpart/$file"
20779 echo '# dummy' > "$dirpart/$file"
20780 done
20781 done
20782 ;;
20783 esac
20784 done
20785 _ACEOF
20786
20787 cat >>$CONFIG_STATUS <<\_ACEOF
20788
20789 { (exit 0); exit 0; }
20790 _ACEOF
20791 chmod +x $CONFIG_STATUS
20792 ac_clean_files=$ac_clean_files_save
20793
20794
20795 # configure is writing to config.log, and then calls config.status.
20796 # config.status does its own redirection, appending to config.log.
20797 # Unfortunately, on DOS this fails, as config.log is still kept open
20798 # by configure, so config.status won't be able to write to it; its
20799 # output is simply discarded. So we exec the FD to /dev/null,
20800 # effectively closing config.log, so it can be properly (re)opened and
20801 # appended to by config.status. When coming back to configure, we
20802 # need to make the FD available again.
20803 if test "$no_create" != yes; then
20804 ac_cs_success=:
20805 ac_config_status_args=
20806 test "$silent" = yes &&
20807 ac_config_status_args="$ac_config_status_args --quiet"
20808 exec 5>/dev/null
20809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20810 exec 5>>config.log
20811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20812 # would make configure fail if this is the last instruction.
20813 $ac_cs_success || { (exit 1); exit 1; }
20814 fi
20815
20816
20817