1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for tina-tools 6.0rcbuild008.
4 #
5 # Report bugs to <bugs@tina-vision.net>.
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='tina-tools'
425 PACKAGE_TARNAME='tina-tools'
426 PACKAGE_VERSION='6.0rcbuild008'
427 PACKAGE_STRING='tina-tools 6.0rcbuild008'
428 PACKAGE_BUGREPORT='bugs@tina-vision.net'
429
430 ac_unique_file="tinatool/tlbase/tlbaseDef.h"
431 ac_default_prefix=`pwd`
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 # include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 # include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 # include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 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 mkdir_p 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 GTK2_CFLAGS GTK2_LIBS LIBOBJS tina_includes tina_libraries BUILD_GTK2_LIBS_TRUE BUILD_GTK2_LIBS_FALSE LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807 done
808
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829 do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882 else
883 ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958 \`configure' configures tina-tools 6.0rcbuild008 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980 cat <<_ACEOF
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007 _ACEOF
1008
1009 cat <<\_ACEOF
1010
1011 Program names:
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
1016 System types:
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 _ACEOF
1020 fi
1021
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of tina-tools 6.0rcbuild008:";;
1025 esac
1026 cat <<\_ACEOF
1027
1028 Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --enable-maintainer-mode enable make rules and dependencies not useful
1032 (and sometimes confusing) to the casual installer
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=no]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042
1043 Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
1051 --with-tina-includes=DIR tina include files are in DIR
1052 --with-tina-libraries=DIR tina libraries are in DIR
1053
1054 Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CPP C preprocessor
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <bugs@tina-vision.net>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087 ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `pwd` in
1109 .) ac_abs_builddir="$ac_dir";;
1110 *)
1111 case "$ac_dir" in
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *)
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1128 *)
1129 case $ac_srcdir in
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *)
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 esac;;
1143 esac
1144
1145 cd $ac_dir
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1148 echo
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1151 echo
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
1154 test -f $ac_srcdir/configure.in; then
1155 echo
1156 $ac_configure --help
1157 else
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 fi
1160 cd $ac_popdir
1161 done
1162 fi
1163
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166 cat <<\_ACEOF
1167 tina-tools configure 6.0rcbuild008
1168 generated by GNU Autoconf 2.59
1169
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174 exit 0
1175 fi
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1180
1181 It was created by tina-tools $as_me 6.0rcbuild008, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1183
1184 $ $0 $@
1185
1186 _ACEOF
1187 {
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1192
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209
1210 _ASUNAME
1211
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1214 do
1215 IFS=$as_save_IFS
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1218 done
1219
1220 } >&5
1221
1222 cat >&5 <<_ACEOF
1223
1224
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1228
1229 _ACEOF
1230
1231
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1243 do
1244 for ac_arg
1245 do
1246 case $ac_arg in
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 continue ;;
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 esac
1254 case $ac_pass in
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 2)
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1260 else
1261 case $ac_arg in
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 esac
1269 ;;
1270 -* ) ac_must_keep_next=true ;;
1271 esac
1272 fi
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1275 ac_sep=" "
1276 ;;
1277 esac
1278 done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1290 {
1291 echo
1292
1293 cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298 echo
1299 # The following way of writing the cache mishandles newlines in values,
1300 {
1301 (set) 2>&1 |
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 *ac_space=\ *)
1304 sed -n \
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 ;;
1308 *)
1309 sed -n \
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311 ;;
1312 esac;
1313 }
1314 echo
1315
1316 cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321 echo
1322 for ac_var in $ac_subst_vars
1323 do
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1326 done | sort
1327 echo
1328
1329 if test -n "$ac_subst_files"; then
1330 cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335 echo
1336 for ac_var in $ac_subst_files
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342 fi
1343
1344 if test -s confdefs.h; then
1345 cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350 echo
1351 sed "/^$/d" confdefs.h | sort
1352 echo
1353 fi
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1357 } >&5
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 exit $exit_status
1361 ' 0
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1366
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1371
1372 # Predefined preprocessor variables.
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1397
1398
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 else
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 fi
1407 fi
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1413 . "$ac_site_file"
1414 fi
1415 done
1416
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423 case $cache_file in
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1426 esac
1427 fi
1428 else
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431 >$cache_file
1432 fi
1433
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1444 set,)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,set)
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1452 ,);;
1453 *)
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1462 fi;;
1463 esac
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1466 case $ac_new_val in
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1470 esac
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 esac
1475 fi
1476 done
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1483 fi
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517 am__api_version="1.8"
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543 # Find a good install program. We prefer a C program (faster),
1544 # so one script is as good as another. But avoid the broken or
1545 # incompatible versions:
1546 # SysV /etc/install, /usr/sbin/install
1547 # SunOS /usr/etc/install
1548 # IRIX /sbin/install
1549 # AIX /bin/install
1550 # AmigaOS /C/install, which installs bootblocks on floppy discs
1551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554 # OS/2's system install, which has a completely different semantic
1555 # ./install, which can be erroneously created by make from ./install.sh.
1556 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1557 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1558 if test -z "$INSTALL"; then
1559 if test "${ac_cv_path_install+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 # Account for people who put trailing slashes in PATH elements.
1568 case $as_dir/ in
1569 ./ | .// | /cC/* | \
1570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1571 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572 /usr/ucb/* ) ;;
1573 *)
1574 # OSF1 and SCO ODT 3.0 have their own names for install.
1575 # Don't use installbsd from OSF since it installs stuff as root
1576 # by default.
1577 for ac_prog in ginstall scoinst install; do
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1580 if test $ac_prog = install &&
1581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582 # AIX install. It has an incompatible calling convention.
1583 :
1584 elif test $ac_prog = install &&
1585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586 # program-specific install script used by HP pwplus--don't use.
1587 :
1588 else
1589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1590 break 3
1591 fi
1592 fi
1593 done
1594 done
1595 ;;
1596 esac
1597 done
1598
1599
1600 fi
1601 if test "${ac_cv_path_install+set}" = set; then
1602 INSTALL=$ac_cv_path_install
1603 else
1604 # As a last resort, use the slow shell script. We don't cache a
1605 # path for INSTALL within a source directory, because that will
1606 # break other packages using the cache if that directory is
1607 # removed, or if the path is relative.
1608 INSTALL=$ac_install_sh
1609 fi
1610 fi
1611 echo "$as_me:$LINENO: result: $INSTALL" >&5
1612 echo "${ECHO_T}$INSTALL" >&6
1613
1614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1615 # It thinks the first close brace ends the variable substitution.
1616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617
1618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619
1620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621
1622 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1623 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624 # Just in case
1625 sleep 1
1626 echo timestamp > conftest.file
1627 # Do `set' in a subshell so we don't clobber the current shell's
1628 # arguments. Must try -L first in case configure is actually a
1629 # symlink; some systems play weird games with the mod time of symlinks
1630 # (eg FreeBSD returns the mod time of the symlink's containing
1631 # directory).
1632 if (
1633 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1634 if test "$*" = "X"; then
1635 # -L didn't work.
1636 set X `ls -t $srcdir/configure conftest.file`
1637 fi
1638 rm -f conftest.file
1639 if test "$*" != "X $srcdir/configure conftest.file" \
1640 && test "$*" != "X conftest.file $srcdir/configure"; then
1641
1642 # If neither matched, then we have a broken ls. This can happen
1643 # if, for instance, CONFIG_SHELL is bash and it inherits a
1644 # broken ls alias from the environment. This has actually
1645 # happened. Such a system could not be considered "sane".
1646 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1647 alias in your environment" >&5
1648 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1649 alias in your environment" >&2;}
1650 { (exit 1); exit 1; }; }
1651 fi
1652
1653 test "$2" = conftest.file
1654 )
1655 then
1656 # Ok.
1657 :
1658 else
1659 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1660 Check your system clock" >&5
1661 echo "$as_me: error: newly created file is older than distributed files!
1662 Check your system clock" >&2;}
1663 { (exit 1); exit 1; }; }
1664 fi
1665 echo "$as_me:$LINENO: result: yes" >&5
1666 echo "${ECHO_T}yes" >&6
1667 test "$program_prefix" != NONE &&
1668 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1669 # Use a double $ so make ignores it.
1670 test "$program_suffix" != NONE &&
1671 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1672 # Double any \ or $. echo might interpret backslashes.
1673 # By default was `s,x,x', remove it if useless.
1674 cat <<\_ACEOF >conftest.sed
1675 s/[\\$]/&&/g;s/;s,x,x,$//
1676 _ACEOF
1677 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678 rm conftest.sed
1679
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1682
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686 am_missing_run="$MISSING --run "
1687 else
1688 am_missing_run=
1689 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691 fi
1692
1693 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1694 # Keeping the `.' argument allows $(mkdir_p) to be used without
1695 # argument. Indeed, we sometimes output rules like
1696 # $(mkdir_p) $(somedir)
1697 # where $(somedir) is conditionally defined.
1698 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1699 # expensive solution, as it forces Make to start a sub-shell.)
1700 mkdir_p='mkdir -p -- .'
1701 else
1702 # On NextStep and OpenStep, the `mkdir' command does not
1703 # recognize any option. It will interpret all options as
1704 # directories to create, and then abort because `.' already
1705 # exists.
1706 for d in ./-p ./--version;
1707 do
1708 test -d $d && rmdir $d
1709 done
1710 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1711 if test -f "$ac_aux_dir/mkinstalldirs"; then
1712 mkdir_p='$(mkinstalldirs)'
1713 else
1714 mkdir_p='$(install_sh) -d'
1715 fi
1716 fi
1717
1718 for ac_prog in gawk mawk nawk awk
1719 do
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_AWK+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$AWK"; then
1728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_AWK="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 AWK=$ac_cv_prog_AWK
1747 if test -n "$AWK"; then
1748 echo "$as_me:$LINENO: result: $AWK" >&5
1749 echo "${ECHO_T}$AWK" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755 test -n "$AWK" && break
1756 done
1757
1758 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1759 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1761 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764 cat >conftest.make <<\_ACEOF
1765 all:
1766 @echo 'ac_maketemp="$(MAKE)"'
1767 _ACEOF
1768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1769 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1770 if test -n "$ac_maketemp"; then
1771 eval ac_cv_prog_make_${ac_make}_set=yes
1772 else
1773 eval ac_cv_prog_make_${ac_make}_set=no
1774 fi
1775 rm -f conftest.make
1776 fi
1777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1778 echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1780 SET_MAKE=
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 SET_MAKE="MAKE=${MAKE-make}"
1785 fi
1786
1787 rm -rf .tst 2>/dev/null
1788 mkdir .tst 2>/dev/null
1789 if test -d .tst; then
1790 am__leading_dot=.
1791 else
1792 am__leading_dot=_
1793 fi
1794 rmdir .tst 2>/dev/null
1795
1796 # test to see if srcdir already configured
1797 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1798 test -f $srcdir/config.status; then
1799 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1800 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1801 { (exit 1); exit 1; }; }
1802 fi
1803
1804 # test whether we have cygpath
1805 if test -z "$CYGPATH_W"; then
1806 if (cygpath --version) >/dev/null 2>/dev/null; then
1807 CYGPATH_W='cygpath -w'
1808 else
1809 CYGPATH_W=echo
1810 fi
1811 fi
1812
1813
1814 # Define the identity of the package.
1815 PACKAGE=tina-tools
1816 VERSION=6.0rcbuild008
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE "$PACKAGE"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define VERSION "$VERSION"
1826 _ACEOF
1827
1828 # Some tools Automake needs.
1829
1830 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831
1832
1833 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1834
1835
1836 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837
1838
1839 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1840
1841
1842 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843
1844
1845 AMTAR=${AMTAR-"${am_missing_run}tar"}
1846
1847 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1848
1849 # Installed binaries are usually stripped using `strip' when the user
1850 # run `make install-strip'. However `strip' might not be the right
1851 # tool to use in cross-compilation environments, therefore Automake
1852 # will honor the `STRIP' environment variable to overrule this program.
1853 if test "$cross_compiling" != no; then
1854 if test -n "$ac_tool_prefix"; then
1855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1856 set dummy ${ac_tool_prefix}strip; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_STRIP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$STRIP"; then
1863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 STRIP=$ac_cv_prog_STRIP
1882 if test -n "$STRIP"; then
1883 echo "$as_me:$LINENO: result: $STRIP" >&5
1884 echo "${ECHO_T}$STRIP" >&6
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890 fi
1891 if test -z "$ac_cv_prog_STRIP"; then
1892 ac_ct_STRIP=$STRIP
1893 # Extract the first word of "strip", so it can be a program name with args.
1894 set dummy strip; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$ac_ct_STRIP"; then
1901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_ac_ct_STRIP="strip"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914 done
1915 done
1916
1917 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1918 fi
1919 fi
1920 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1921 if test -n "$ac_ct_STRIP"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1923 echo "${ECHO_T}$ac_ct_STRIP" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 STRIP=$ac_ct_STRIP
1930 else
1931 STRIP="$ac_cv_prog_STRIP"
1932 fi
1933
1934 fi
1935 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1936
1937 # We need awk for the "check" target. The system "awk" is bad on
1938 # some platforms.
1939
1940
1941
1942
1943 ac_config_headers="$ac_config_headers config.h"
1944
1945 # prefix location for libraries is within build directory
1946
1947 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1948 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1949 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1950 if test "${enable_maintainer_mode+set}" = set; then
1951 enableval="$enable_maintainer_mode"
1952 USE_MAINTAINER_MODE=$enableval
1953 else
1954 USE_MAINTAINER_MODE=no
1955 fi;
1956 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1957 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1958
1959
1960 if test $USE_MAINTAINER_MODE = yes; then
1961 MAINTAINER_MODE_TRUE=
1962 MAINTAINER_MODE_FALSE='#'
1963 else
1964 MAINTAINER_MODE_TRUE='#'
1965 MAINTAINER_MODE_FALSE=
1966 fi
1967
1968 MAINT=$MAINTAINER_MODE_TRUE
1969
1970
1971
1972 # Check system
1973
1974 # This used to use AC_CYGWIN, AC_MINGw32, which test the host,
1975 # not the target.
1976 CYGWIN=no; MINGW32=no
1977 case $target_os in
1978 *cygwin*) CYGWIN=yes;;
1979 *mingw32*) MINGW32=yes;;
1980 esac
1981
1982
1983 if test x${MINGW32} == xyes; then
1984
1985 cat >>confdefs.h <<\_ACEOF
1986 #define _PCC 1
1987 _ACEOF
1988
1989
1990 cat >>confdefs.h <<\_ACEOF
1991 #define MINGW 1
1992 _ACEOF
1993
1994 fi
1995
1996 # Checks for programs.
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2023 fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_CC"; then
2040 ac_ct_CC=$CC
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_CC="gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068 if test -n "$ac_ct_CC"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070 echo "${ECHO_T}$ac_ct_CC" >&6
2071 else
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 CC=$ac_ct_CC
2077 else
2078 CC="$ac_cv_prog_CC"
2079 fi
2080
2081 if test -z "$CC"; then
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_CC="${ac_tool_prefix}cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111 echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6
2113 else
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118 fi
2119 if test -z "$ac_cv_prog_CC"; then
2120 ac_ct_CC=$CC
2121 # Extract the first word of "cc", so it can be a program name with args.
2122 set dummy cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 CC=$ac_ct_CC
2157 else
2158 CC="$ac_cv_prog_CC"
2159 fi
2160
2161 fi
2162 if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164 set dummy cc; ac_word=$2
2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167 if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173 ac_prog_rejected=no
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2183 continue
2184 fi
2185 ac_cv_prog_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189 done
2190 done
2191
2192 if test $ac_prog_rejected = yes; then
2193 # We found a bogon in the path, so make sure we never use it.
2194 set dummy $ac_cv_prog_CC
2195 shift
2196 if test $# != 0; then
2197 # We chose a different compiler from the bogus one.
2198 # However, it has the same basename, so the bogon will be chosen
2199 # first if we set CC to just the basename; use the full file name.
2200 shift
2201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202 fi
2203 fi
2204 fi
2205 fi
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2214
2215 fi
2216 if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 for ac_prog in cl
2219 do
2220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241 done
2242 done
2243
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 test -n "$CC" && break
2256 done
2257 fi
2258 if test -z "$CC"; then
2259 ac_ct_CC=$CC
2260 for ac_prog in cl
2261 do
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_ac_ct_CC="$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6
2292 else
2293 echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297 test -n "$ac_ct_CC" && break
2298 done
2299
2300 CC=$ac_ct_CC
2301 fi
2302
2303 fi
2304
2305
2306 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: no acceptable C compiler found in \$PATH
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311
2312 # Provide some information about the compiler.
2313 echo "$as_me:$LINENO:" \
2314 "checking for C compiler version" >&5
2315 ac_compiler=`set X $ac_compile; echo $2`
2316 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2317 (eval $ac_compiler --version </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2322 (eval $ac_compiler -v </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2327 (eval $ac_compiler -V </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338
2339 int
2340 main ()
2341 {
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 ac_clean_files_save=$ac_clean_files
2348 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2349 # Try to create an executable without -o first, disregard a.out.
2350 # It will help us diagnose broken compilers, and finding out an intuition
2351 # of exeext.
2352 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2353 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2354 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2355 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2356 (eval $ac_link_default) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # Find the output, starting from the most likely. This scheme is
2361 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2362 # resort.
2363
2364 # Be careful to initialize this variable, since it used to be cached.
2365 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366 ac_cv_exeext=
2367 # b.out is created by i960 compilers.
2368 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369 do
2370 test -f "$ac_file" || continue
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2373 ;;
2374 conftest.$ac_ext )
2375 # This is the source file.
2376 ;;
2377 [ab].out )
2378 # We found the default executable, but exeext='' is most
2379 # certainly right.
2380 break;;
2381 *.* )
2382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 # FIXME: I believe we export ac_cv_exeext for Libtool,
2384 # but it would be cool to find out if it's true. Does anybody
2385 # maintain Libtool? --akim.
2386 export ac_cv_exeext
2387 break;;
2388 * )
2389 break;;
2390 esac
2391 done
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: C compiler cannot create executables
2399 See \`config.log' for more details." >&2;}
2400 { (exit 77); exit 77; }; }
2401 fi
2402
2403 ac_exeext=$ac_cv_exeext
2404 echo "$as_me:$LINENO: result: $ac_file" >&5
2405 echo "${ECHO_T}$ac_file" >&6
2406
2407 # Check the compiler produces executables we can run. If not, either
2408 # the compiler is broken, or we cross compile.
2409 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2411 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412 # If not cross compiling, check that we can run a simple program.
2413 if test "$cross_compiling" != yes; then
2414 if { ac_try='./$ac_file'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 cross_compiling=no
2421 else
2422 if test "$cross_compiling" = maybe; then
2423 cross_compiling=yes
2424 else
2425 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot run C compiled programs.
2429 If you meant to cross compile, use \`--host'.
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433 fi
2434 fi
2435 echo "$as_me:$LINENO: result: yes" >&5
2436 echo "${ECHO_T}yes" >&6
2437
2438 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2439 ac_clean_files=$ac_clean_files_save
2440 # Check the compiler produces executables we can run. If not, either
2441 # the compiler is broken, or we cross compile.
2442 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2443 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2444 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2445 echo "${ECHO_T}$cross_compiling" >&6
2446
2447 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2448 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463 export ac_cv_exeext
2464 break;;
2465 * ) break;;
2466 esac
2467 done
2468 else
2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2474 fi
2475
2476 rm -f conftest$ac_cv_exeext
2477 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6
2479
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2482 ac_exeext=$EXEEXT
2483 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2485 if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494
2495 int
2496 main ()
2497 {
2498
2499 ;
2500 return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.o conftest.obj
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513 break;;
2514 esac
2515 done
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2525 fi
2526
2527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 fi
2529 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530 echo "${ECHO_T}$ac_cv_objext" >&6
2531 OBJEXT=$ac_cv_objext
2532 ac_objext=$OBJEXT
2533 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2544
2545 int
2546 main ()
2547 {
2548 #ifndef __GNUC__
2549 choke me
2550 #endif
2551
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_compiler_gnu=yes
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 ac_compiler_gnu=no
2584 fi
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 CFLAGS="-g"
2595 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 int
2608 main ()
2609 {
2610
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 ac_cv_prog_cc_g=yes
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 ac_cv_prog_cc_g=no
2643 fi
2644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645 fi
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2652 CFLAGS="-g -O2"
2653 else
2654 CFLAGS="-g"
2655 fi
2656 else
2657 if test "$GCC" = yes; then
2658 CFLAGS="-O2"
2659 else
2660 CFLAGS=
2661 fi
2662 fi
2663 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2664 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 ac_cv_prog_cc_stdc=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684 char **p;
2685 int i;
2686 {
2687 return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691 char *s;
2692 va_list v;
2693 va_start (v,p);
2694 s = g (p, va_arg (v,int));
2695 va_end (v);
2696 return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std1 is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std1. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 int test (int i, double x);
2709 struct s1 {int (*f) (int a);};
2710 struct s2 {int (*f) (double a);};
2711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712 int argc;
2713 char **argv;
2714 int
2715 main ()
2716 {
2717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2718 ;
2719 return 0;
2720 }
2721 _ACEOF
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX -qlanglvl=ansi
2725 # Ultrix and OSF/1 -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions -Aa -D_HPUX_SOURCE
2728 # SVR4 -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731 CC="$ac_save_CC $ac_arg"
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_stdc=$ac_arg
2755 break
2756 else
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 fi
2761 rm -f conftest.err conftest.$ac_objext
2762 done
2763 rm -f conftest.$ac_ext conftest.$ac_objext
2764 CC=$ac_save_CC
2765
2766 fi
2767
2768 case "x$ac_cv_prog_cc_stdc" in
2769 x|xno)
2770 echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6 ;;
2772 *)
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775 CC="$CC $ac_cv_prog_cc_stdc" ;;
2776 esac
2777
2778 # Some people use a C++ compiler to compile C. Since we use `exit',
2779 # in C++ we need to declare it. In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #ifndef __cplusplus
2784 choke me
2785 #endif
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 for ac_declaration in \
2810 '' \
2811 'extern "C" void std::exit (int) throw (); using std::exit;' \
2812 'extern "C" void std::exit (int); using std::exit;' \
2813 'extern "C" void exit (int) throw ();' \
2814 'extern "C" void exit (int);' \
2815 'void exit (int);'
2816 do
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 $ac_declaration
2824 #include <stdlib.h>
2825 int
2826 main ()
2827 {
2828 exit (42);
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 :
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 continue
2861 fi
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 $ac_declaration
2870 int
2871 main ()
2872 {
2873 exit (42);
2874 ;
2875 return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 break
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908 rm -f conftest*
2909 if test -n "$ac_declaration"; then
2910 echo '#ifdef __cplusplus' >>confdefs.h
2911 echo $ac_declaration >>confdefs.h
2912 echo '#endif' >>confdefs.h
2913 fi
2914
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 DEPDIR="${am__leading_dot}deps"
2927
2928 ac_config_commands="$ac_config_commands depfiles"
2929
2930
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2933 am__doit:
2934 @echo done
2935 .PHONY: am__doit
2936 END
2937 # If we don't find an include directive, just comment out the code.
2938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940 am__include="#"
2941 am__quote=
2942 _am_result=none
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # We grep out `Entering directory' and `Leaving directory'
2946 # messages which can occur if `w' ends up in MAKEFLAGS.
2947 # In particular we don't look at `^make:' because GNU make might
2948 # be invoked under some other name (usually "gmake"), in which
2949 # case it prints its new name instead of `make'.
2950 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2951 am__include=include
2952 am__quote=
2953 _am_result=GNU
2954 fi
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957 echo '.include "confinc"' > confmf
2958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2959 am__include=.include
2960 am__quote="\""
2961 _am_result=BSD
2962 fi
2963 fi
2964
2965
2966 echo "$as_me:$LINENO: result: $_am_result" >&5
2967 echo "${ECHO_T}$_am_result" >&6
2968 rm -f confinc confmf
2969
2970 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then
2972 enableval="$enable_dependency_tracking"
2973
2974 fi;
2975 if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2977 AMDEPBACKSLASH='\'
2978 fi
2979
2980
2981 if test "x$enable_dependency_tracking" != xno; then
2982 AMDEP_TRUE=
2983 AMDEP_FALSE='#'
2984 else
2985 AMDEP_TRUE='#'
2986 AMDEP_FALSE=
2987 fi
2988
2989
2990
2991
2992 depcc="$CC" am_compiler_list=
2993
2994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3000 # We make a subdir and do the tests there. Otherwise we can end up
3001 # making bogus files that we don't know about and never remove. For
3002 # instance it was reported that on HP-UX the gcc test will end up
3003 # making a dummy file named `D' -- because `-MD' means `put the output
3004 # in D'.
3005 mkdir conftest.dir
3006 # Copy depcomp to subdir because otherwise we won't find it if we're
3007 # using a relative directory.
3008 cp "$am_depcomp" conftest.dir
3009 cd conftest.dir
3010 # We will build objects and dependencies in a subdirectory because
3011 # it helps to detect inapplicable dependency modes. For instance
3012 # both Tru64's cc and ICC support -MD to output dependencies as a
3013 # side effect of compilation, but ICC will put the dependencies in
3014 # the current directory while Tru64 will put them in the object
3015 # directory.
3016 mkdir sub
3017
3018 am_cv_CC_dependencies_compiler_type=none
3019 if test "$am_compiler_list" = ""; then
3020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3021 fi
3022 for depmode in $am_compiler_list; do
3023 # Setup a source with many dependencies, because some compilers
3024 # like to wrap large dependency lists on column 80 (with \), and
3025 # we should not choose a depcomp mode which is confused by this.
3026 #
3027 # We need to recreate these files for each test, as the compiler may
3028 # overwrite some of them when testing with obscure command lines.
3029 # This happens at least with the AIX C compiler.
3030 : > sub/conftest.c
3031 for i in 1 2 3 4 5 6; do
3032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3034 # Solaris 8's {/usr,}/bin/sh.
3035 touch sub/conftst$i.h
3036 done
3037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3038
3039 case $depmode in
3040 nosideeffect)
3041 # after this tag, mechanisms are not by side-effect, so they'll
3042 # only be used when explicitly requested
3043 if test "x$enable_dependency_tracking" = xyes; then
3044 continue
3045 else
3046 break
3047 fi
3048 ;;
3049 none) break ;;
3050 esac
3051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3052 # mode. It turns out that the SunPro C++ compiler does not properly
3053 # handle `-M -o', and we need to detect this.
3054 if depmode=$depmode \
3055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3058 >/dev/null 2>conftest.err &&
3059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3062 # icc doesn't choke on unknown options, it will just issue warnings
3063 # (even with -Werror). So we grep stderr for any message
3064 # that says an option was ignored.
3065 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3066 am_cv_CC_dependencies_compiler_type=$depmode
3067 break
3068 fi
3069 fi
3070 done
3071
3072 cd ..
3073 rm -rf conftest.dir
3074 else
3075 am_cv_CC_dependencies_compiler_type=none
3076 fi
3077
3078 fi
3079 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3080 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3081 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3082
3083
3084
3085 if
3086 test "x$enable_dependency_tracking" != xno \
3087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3088 am__fastdepCC_TRUE=
3089 am__fastdepCC_FALSE='#'
3090 else
3091 am__fastdepCC_TRUE='#'
3092 am__fastdepCC_FALSE=
3093 fi
3094
3095
3096
3097 cat >>confdefs.h <<\_ACEOF
3098 #define _GNU_SOURCE 1
3099 _ACEOF
3100
3101
3102 # Check whether --enable-shared or --disable-shared was given.
3103 if test "${enable_shared+set}" = set; then
3104 enableval="$enable_shared"
3105 p=${PACKAGE-default}
3106 case $enableval in
3107 yes) enable_shared=yes ;;
3108 no) enable_shared=no ;;
3109 *)
3110 enable_shared=no
3111 # Look at the argument we got. We use all the common list separators.
3112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3113 for pkg in $enableval; do
3114 IFS="$lt_save_ifs"
3115 if test "X$pkg" = "X$p"; then
3116 enable_shared=yes
3117 fi
3118 done
3119 IFS="$lt_save_ifs"
3120 ;;
3121 esac
3122 else
3123 enable_shared=no
3124 fi;
3125
3126
3127 # Check whether --enable-static or --disable-static was given.
3128 if test "${enable_static+set}" = set; then
3129 enableval="$enable_static"
3130 p=${PACKAGE-default}
3131 case $enableval in
3132 yes) enable_static=yes ;;
3133 no) enable_static=no ;;
3134 *)
3135 enable_static=no
3136 # Look at the argument we got. We use all the common list separators.
3137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3138 for pkg in $enableval; do
3139 IFS="$lt_save_ifs"
3140 if test "X$pkg" = "X$p"; then
3141 enable_static=yes
3142 fi
3143 done
3144 IFS="$lt_save_ifs"
3145 ;;
3146 esac
3147 else
3148 enable_static=yes
3149 fi;
3150
3151 # Check whether --enable-fast-install or --disable-fast-install was given.
3152 if test "${enable_fast_install+set}" = set; then
3153 enableval="$enable_fast_install"
3154 p=${PACKAGE-default}
3155 case $enableval in
3156 yes) enable_fast_install=yes ;;
3157 no) enable_fast_install=no ;;
3158 *)
3159 enable_fast_install=no
3160 # Look at the argument we got. We use all the common list separators.
3161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3162 for pkg in $enableval; do
3163 IFS="$lt_save_ifs"
3164 if test "X$pkg" = "X$p"; then
3165 enable_fast_install=yes
3166 fi
3167 done
3168 IFS="$lt_save_ifs"
3169 ;;
3170 esac
3171 else
3172 enable_fast_install=yes
3173 fi;
3174
3175 # Make sure we can run config.sub.
3176 $ac_config_sub sun4 >/dev/null 2>&1 ||
3177 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3178 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3179 { (exit 1); exit 1; }; }
3180
3181 echo "$as_me:$LINENO: checking build system type" >&5
3182 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3183 if test "${ac_cv_build+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186 ac_cv_build_alias=$build_alias
3187 test -z "$ac_cv_build_alias" &&
3188 ac_cv_build_alias=`$ac_config_guess`
3189 test -z "$ac_cv_build_alias" &&
3190 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3191 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3192 { (exit 1); exit 1; }; }
3193 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3194 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3195 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3196 { (exit 1); exit 1; }; }
3197
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3200 echo "${ECHO_T}$ac_cv_build" >&6
3201 build=$ac_cv_build
3202 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3203 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3204 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3205
3206
3207 echo "$as_me:$LINENO: checking host system type" >&5
3208 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3209 if test "${ac_cv_host+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 ac_cv_host_alias=$host_alias
3213 test -z "$ac_cv_host_alias" &&
3214 ac_cv_host_alias=$ac_cv_build_alias
3215 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3216 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3217 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3218 { (exit 1); exit 1; }; }
3219
3220 fi
3221 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3222 echo "${ECHO_T}$ac_cv_host" >&6
3223 host=$ac_cv_host
3224 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3225 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3226 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3227
3228
3229 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3230 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3231 if test "${lt_cv_path_SED+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 # Loop through the user's path and test for sed and gsed.
3235 # Then use that list of sed's as ones to test for truncation.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for lt_ac_prog in sed gsed; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3244 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3245 fi
3246 done
3247 done
3248 done
3249 lt_ac_max=0
3250 lt_ac_count=0
3251 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3252 # along with /bin/sed that truncates output.
3253 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3254 test ! -f $lt_ac_sed && break
3255 cat /dev/null > conftest.in
3256 lt_ac_count=0
3257 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3258 # Check for GNU sed and select it if it is found.
3259 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3260 lt_cv_path_SED=$lt_ac_sed
3261 break
3262 fi
3263 while true; do
3264 cat conftest.in conftest.in >conftest.tmp
3265 mv conftest.tmp conftest.in
3266 cp conftest.in conftest.nl
3267 echo >>conftest.nl
3268 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3269 cmp -s conftest.out conftest.nl || break
3270 # 10000 chars as input seems more than enough
3271 test $lt_ac_count -gt 10 && break
3272 lt_ac_count=`expr $lt_ac_count + 1`
3273 if test $lt_ac_count -gt $lt_ac_max; then
3274 lt_ac_max=$lt_ac_count
3275 lt_cv_path_SED=$lt_ac_sed
3276 fi
3277 done
3278 done
3279 SED=$lt_cv_path_SED
3280
3281 fi
3282
3283 echo "$as_me:$LINENO: result: $SED" >&5
3284 echo "${ECHO_T}$SED" >&6
3285
3286 echo "$as_me:$LINENO: checking for egrep" >&5
3287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3288 if test "${ac_cv_prog_egrep+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3292 then ac_cv_prog_egrep='grep -E'
3293 else ac_cv_prog_egrep='egrep'
3294 fi
3295 fi
3296 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3298 EGREP=$ac_cv_prog_egrep
3299
3300
3301
3302 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3303 if test "${with_gnu_ld+set}" = set; then
3304 withval="$with_gnu_ld"
3305 test "$withval" = no || with_gnu_ld=yes
3306 else
3307 with_gnu_ld=no
3308 fi;
3309 ac_prog=ld
3310 if test "$GCC" = yes; then
3311 # Check if gcc -print-prog-name=ld gives a path.
3312 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3313 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3314 case $host in
3315 *-*-mingw*)
3316 # gcc leaves a trailing carriage return which upsets mingw
3317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3318 *)
3319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3320 esac
3321 case $ac_prog in
3322 # Accept absolute paths.
3323 [\\/]* | ?:[\\/]*)
3324 re_direlt='/[^/][^/]*/\.\./'
3325 # Canonicalize the pathname of ld
3326 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3328 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3329 done
3330 test -z "$LD" && LD="$ac_prog"
3331 ;;
3332 "")
3333 # If it fails, then pretend we aren't using GCC.
3334 ac_prog=ld
3335 ;;
3336 *)
3337 # If it is relative, then search for the first ld in PATH.
3338 with_gnu_ld=unknown
3339 ;;
3340 esac
3341 elif test "$with_gnu_ld" = yes; then
3342 echo "$as_me:$LINENO: checking for GNU ld" >&5
3343 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3344 else
3345 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3346 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3347 fi
3348 if test "${lt_cv_path_LD+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -z "$LD"; then
3352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3353 for ac_dir in $PATH; do
3354 IFS="$lt_save_ifs"
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3357 lt_cv_path_LD="$ac_dir/$ac_prog"
3358 # Check to see if the program is GNU ld. I'd rather use --version,
3359 # but apparently some GNU ld's only accept -v.
3360 # Break only if it was the GNU/non-GNU ld that we prefer.
3361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3362 *GNU* | *'with BFD'*)
3363 test "$with_gnu_ld" != no && break
3364 ;;
3365 *)
3366 test "$with_gnu_ld" != yes && break
3367 ;;
3368 esac
3369 fi
3370 done
3371 IFS="$lt_save_ifs"
3372 else
3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3374 fi
3375 fi
3376
3377 LD="$lt_cv_path_LD"
3378 if test -n "$LD"; then
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380 echo "${ECHO_T}$LD" >&6
3381 else
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394 case `$LD -v 2>&1 </dev/null` in
3395 *GNU* | *'with BFD'*)
3396 lt_cv_prog_gnu_ld=yes
3397 ;;
3398 *)
3399 lt_cv_prog_gnu_ld=no
3400 ;;
3401 esac
3402 fi
3403 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3405 with_gnu_ld=$lt_cv_prog_gnu_ld
3406
3407
3408 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3409 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3410 if test "${lt_cv_ld_reload_flag+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 lt_cv_ld_reload_flag='-r'
3414 fi
3415 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3416 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3417 reload_flag=$lt_cv_ld_reload_flag
3418 case $reload_flag in
3419 "" | " "*) ;;
3420 *) reload_flag=" $reload_flag" ;;
3421 esac
3422 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3423
3424 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3425 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3426 if test "${lt_cv_path_NM+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 if test -n "$NM"; then
3430 # Let the user override the test.
3431 lt_cv_path_NM="$NM"
3432 else
3433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3434 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3435 IFS="$lt_save_ifs"
3436 test -z "$ac_dir" && ac_dir=.
3437 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3439 # Check to see if the nm accepts a BSD-compat flag.
3440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3441 # nm: unknown option "B" ignored
3442 # Tru64's nm complains that /dev/null is an invalid object file
3443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3444 */dev/null* | *'Invalid file or object type'*)
3445 lt_cv_path_NM="$tmp_nm -B"
3446 break
3447 ;;
3448 *)
3449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3450 */dev/null*)
3451 lt_cv_path_NM="$tmp_nm -p"
3452 break
3453 ;;
3454 *)
3455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3456 continue # so that we can try to find one that supports BSD flags
3457 ;;
3458 esac
3459 esac
3460 fi
3461 done
3462 IFS="$lt_save_ifs"
3463 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3464 fi
3465 fi
3466 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3467 echo "${ECHO_T}$lt_cv_path_NM" >&6
3468 NM="$lt_cv_path_NM"
3469
3470 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3471 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3472 LN_S=$as_ln_s
3473 if test "$LN_S" = "ln -s"; then
3474 echo "$as_me:$LINENO: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6
3476 else
3477 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3478 echo "${ECHO_T}no, using $LN_S" >&6
3479 fi
3480
3481 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3482 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3483 if test "${lt_cv_deplibs_check_method+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 lt_cv_file_magic_cmd='$MAGIC_CMD'
3487 lt_cv_file_magic_test_file=
3488 lt_cv_deplibs_check_method='unknown'
3489 # Need to set the preceding variable on all platforms that support
3490 # interlibrary dependencies.
3491 # 'none' -- dependencies not supported.
3492 # `unknown' -- same as none, but documents that we really don't know.
3493 # 'pass_all' -- all dependencies passed with no checks.
3494 # 'test_compile' -- check by making test program.
3495 # 'file_magic [[regex]]' -- check by looking for files in library path
3496 # which responds to the $file_magic_cmd with a given extended regex.
3497 # If you have `file' or equivalent on your system and you're not sure
3498 # whether `pass_all' will *always* work, you probably want this one.
3499
3500 case $host_os in
3501 aix4* | aix5*)
3502 lt_cv_deplibs_check_method=pass_all
3503 ;;
3504
3505 beos*)
3506 lt_cv_deplibs_check_method=pass_all
3507 ;;
3508
3509 bsdi4*)
3510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3511 lt_cv_file_magic_cmd='/usr/bin/file -L'
3512 lt_cv_file_magic_test_file=/shlib/libc.so
3513 ;;
3514
3515 cygwin*)
3516 # win32_libid is a shell function defined in ltmain.sh
3517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3518 lt_cv_file_magic_cmd='win32_libid'
3519 ;;
3520
3521 mingw* | pw32*)
3522 # Base MSYS/MinGW do not provide the 'file' command needed by
3523 # win32_libid shell function, so use a weaker test based on 'objdump'.
3524 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3525 lt_cv_file_magic_cmd='$OBJDUMP -f'
3526 ;;
3527
3528 darwin* | rhapsody*)
3529 lt_cv_deplibs_check_method=pass_all
3530 ;;
3531
3532 freebsd* | kfreebsd*-gnu)
3533 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3534 case $host_cpu in
3535 i*86 )
3536 # Not sure whether the presence of OpenBSD here was a mistake.
3537 # Let's accept both of them until this is cleared up.
3538 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3539 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3541 ;;
3542 esac
3543 else
3544 lt_cv_deplibs_check_method=pass_all
3545 fi
3546 ;;
3547
3548 gnu*)
3549 lt_cv_deplibs_check_method=pass_all
3550 ;;
3551
3552 hpux10.20* | hpux11*)
3553 lt_cv_file_magic_cmd=/usr/bin/file
3554 case "$host_cpu" in
3555 ia64*)
3556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3557 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3558 ;;
3559 hppa*64*)
3560 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]'
3561 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3562 ;;
3563 *)
3564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3565 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3566 ;;
3567 esac
3568 ;;
3569
3570 irix5* | irix6* | nonstopux*)
3571 case $LD in
3572 *-32|*"-32 ") libmagic=32-bit;;
3573 *-n32|*"-n32 ") libmagic=N32;;
3574 *-64|*"-64 ") libmagic=64-bit;;
3575 *) libmagic=never-match;;
3576 esac
3577 lt_cv_deplibs_check_method=pass_all
3578 ;;
3579
3580 # This must be Linux ELF.
3581 linux*)
3582 case $host_cpu in
3583 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3584 lt_cv_deplibs_check_method=pass_all ;;
3585 *)
3586 # glibc up to 2.1.1 does not perform some relocations on ARM
3587 # this will be overridden with pass_all, but let us keep it just in case
3588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3589 esac
3590 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3591 lt_cv_deplibs_check_method=pass_all
3592 ;;
3593
3594 netbsd*)
3595 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3597 else
3598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3599 fi
3600 ;;
3601
3602 newos6*)
3603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3604 lt_cv_file_magic_cmd=/usr/bin/file
3605 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3606 ;;
3607
3608 nto-qnx*)
3609 lt_cv_deplibs_check_method=unknown
3610 ;;
3611
3612 openbsd*)
3613 lt_cv_file_magic_cmd=/usr/bin/file
3614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3617 else
3618 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3619 fi
3620 ;;
3621
3622 osf3* | osf4* | osf5*)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625
3626 sco3.2v5*)
3627 lt_cv_deplibs_check_method=pass_all
3628 ;;
3629
3630 solaris*)
3631 lt_cv_deplibs_check_method=pass_all
3632 ;;
3633
3634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3635 case $host_vendor in
3636 motorola)
3637 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]'
3638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3639 ;;
3640 ncr)
3641 lt_cv_deplibs_check_method=pass_all
3642 ;;
3643 sequent)
3644 lt_cv_file_magic_cmd='/bin/file'
3645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3646 ;;
3647 sni)
3648 lt_cv_file_magic_cmd='/bin/file'
3649 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3650 lt_cv_file_magic_test_file=/lib/libc.so
3651 ;;
3652 siemens)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655 esac
3656 ;;
3657
3658 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3659 lt_cv_deplibs_check_method=pass_all
3660 ;;
3661 esac
3662
3663 fi
3664 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3665 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3666 file_magic_cmd=$lt_cv_file_magic_cmd
3667 deplibs_check_method=$lt_cv_deplibs_check_method
3668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3669
3670
3671
3672
3673 # If no C compiler was specified, use CC.
3674 LTCC=${LTCC-"$CC"}
3675
3676 # Allow CC to be a program name with arguments.
3677 compiler=$CC
3678
3679
3680 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3681 if test "${enable_libtool_lock+set}" = set; then
3682 enableval="$enable_libtool_lock"
3683
3684 fi;
3685 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3686
3687 # Some flags need to be propagated to the compiler or linker for good
3688 # libtool support.
3689 case $host in
3690 ia64-*-hpux*)
3691 # Find out which ABI we are using.
3692 echo 'int i;' > conftest.$ac_ext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; then
3698 case `/usr/bin/file conftest.$ac_objext` in
3699 *ELF-32*)
3700 HPUX_IA64_MODE="32"
3701 ;;
3702 *ELF-64*)
3703 HPUX_IA64_MODE="64"
3704 ;;
3705 esac
3706 fi
3707 rm -rf conftest*
3708 ;;
3709 *-*-irix6*)
3710 # Find out which ABI we are using.
3711 echo '#line 3711 "configure"' > conftest.$ac_ext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; then
3717 if test "$lt_cv_prog_gnu_ld" = yes; then
3718 case `/usr/bin/file conftest.$ac_objext` in
3719 *32-bit*)
3720 LD="${LD-ld} -melf32bsmip"
3721 ;;
3722 *N32*)
3723 LD="${LD-ld} -melf32bmipn32"
3724 ;;
3725 *64-bit*)
3726 LD="${LD-ld} -melf64bmip"
3727 ;;
3728 esac
3729 else
3730 case `/usr/bin/file conftest.$ac_objext` in
3731 *32-bit*)
3732 LD="${LD-ld} -32"
3733 ;;
3734 *N32*)
3735 LD="${LD-ld} -n32"
3736 ;;
3737 *64-bit*)
3738 LD="${LD-ld} -64"
3739 ;;
3740 esac
3741 fi
3742 fi
3743 rm -rf conftest*
3744 ;;
3745
3746 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3747 # Find out which ABI we are using.
3748 echo 'int i;' > conftest.$ac_ext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750 (eval $ac_compile) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; then
3754 case "`/usr/bin/file conftest.o`" in
3755 *32-bit*)
3756 case $host in
3757 x86_64-*linux*)
3758 LD="${LD-ld} -m elf_i386"
3759 ;;
3760 ppc64-*linux*|powerpc64-*linux*)
3761 LD="${LD-ld} -m elf32ppclinux"
3762 ;;
3763 s390x-*linux*)
3764 LD="${LD-ld} -m elf_s390"
3765 ;;
3766 sparc64-*linux*)
3767 LD="${LD-ld} -m elf32_sparc"
3768 ;;
3769 esac
3770 ;;
3771 *64-bit*)
3772 case $host in
3773 x86_64-*linux*)
3774 LD="${LD-ld} -m elf_x86_64"
3775 ;;
3776 ppc*-*linux*|powerpc*-*linux*)
3777 LD="${LD-ld} -m elf64ppc"
3778 ;;
3779 s390*-*linux*)
3780 LD="${LD-ld} -m elf64_s390"
3781 ;;
3782 sparc*-*linux*)
3783 LD="${LD-ld} -m elf64_sparc"
3784 ;;
3785 esac
3786 ;;
3787 esac
3788 fi
3789 rm -rf conftest*
3790 ;;
3791
3792 *-*-sco3.2v5*)
3793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3794 SAVE_CFLAGS="$CFLAGS"
3795 CFLAGS="$CFLAGS -belf"
3796 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3797 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3798 if test "${lt_cv_cc_needs_belf+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807 cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h. */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.$ac_objext conftest$ac_exeext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try='test -z "$ac_c_werror_flag"
3832 || test ! -s conftest.err'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; } &&
3838 { ac_try='test -s conftest$ac_exeext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3844 lt_cv_cc_needs_belf=yes
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 lt_cv_cc_needs_belf=no
3850 fi
3851 rm -f conftest.err conftest.$ac_objext \
3852 conftest$ac_exeext conftest.$ac_ext
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859 fi
3860 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3861 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3862 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3863 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3864 CFLAGS="$SAVE_CFLAGS"
3865 fi
3866 ;;
3867
3868 esac
3869
3870 need_locks="$enable_libtool_lock"
3871
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3882 CPP=
3883 fi
3884 if test -z "$CPP"; then
3885 if test "${ac_cv_prog_CPP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890 do
3891 ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3893 do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #ifdef __STDC__
3907 # include <limits.h>
3908 #else
3909 # include <assert.h>
3910 #endif
3911 Syntax error
3912 _ACEOF
3913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null; then
3921 if test -s conftest.err; then
3922 ac_cpp_err=$ac_c_preproc_warn_flag
3923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3924 else
3925 ac_cpp_err=
3926 fi
3927 else
3928 ac_cpp_err=yes
3929 fi
3930 if test -z "$ac_cpp_err"; then
3931 :
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether non-existent headers
3942 # can be detected and how.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <ac_nonexistent.h>
3950 _ACEOF
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962 else
3963 ac_cpp_err=
3964 fi
3965 else
3966 ac_cpp_err=yes
3967 fi
3968 if test -z "$ac_cpp_err"; then
3969 # Broken: success on invalid input.
3970 continue
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 # Passes both tests.
3976 ac_preproc_ok=:
3977 break
3978 fi
3979 rm -f conftest.err conftest.$ac_ext
3980
3981 done
3982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983 rm -f conftest.err conftest.$ac_ext
3984 if $ac_preproc_ok; then
3985 break
3986 fi
3987
3988 done
3989 ac_cv_prog_CPP=$CPP
3990
3991 fi
3992 CPP=$ac_cv_prog_CPP
3993 else
3994 ac_cv_prog_CPP=$CPP
3995 fi
3996 echo "$as_me:$LINENO: result: $CPP" >&5
3997 echo "${ECHO_T}$CPP" >&6
3998 ac_preproc_ok=false
3999 for ac_c_preproc_warn_flag in '' yes
4000 do
4001 # Use a header file that comes with gcc, so configuring glibc
4002 # with a fresh cross-compiler works.
4003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004 # <limits.h> exists even on freestanding compilers.
4005 # On the NeXT, cc -E runs the code through the compiler's parser,
4006 # not just through cpp. "Syntax error" is here to catch this case.
4007 cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 #ifdef __STDC__
4014 # include <limits.h>
4015 #else
4016 # include <assert.h>
4017 #endif
4018 Syntax error
4019 _ACEOF
4020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } >/dev/null; then
4028 if test -s conftest.err; then
4029 ac_cpp_err=$ac_c_preproc_warn_flag
4030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4031 else
4032 ac_cpp_err=
4033 fi
4034 else
4035 ac_cpp_err=yes
4036 fi
4037 if test -z "$ac_cpp_err"; then
4038 :
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 # Broken: fails on valid input.
4044 continue
4045 fi
4046 rm -f conftest.err conftest.$ac_ext
4047
4048 # OK, works on sane cases. Now check whether non-existent headers
4049 # can be detected and how.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4057 _ACEOF
4058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } >/dev/null; then
4066 if test -s conftest.err; then
4067 ac_cpp_err=$ac_c_preproc_warn_flag
4068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4069 else
4070 ac_cpp_err=
4071 fi
4072 else
4073 ac_cpp_err=yes
4074 fi
4075 if test -z "$ac_cpp_err"; then
4076 # Broken: success on invalid input.
4077 continue
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4085 fi
4086 rm -f conftest.err conftest.$ac_ext
4087
4088 done
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.err conftest.$ac_ext
4091 if $ac_preproc_ok; then
4092 :
4093 else
4094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4095 See \`config.log' for more details." >&5
4096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&2;}
4098 { (exit 1); exit 1; }; }
4099 fi
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <stdlib.h>
4120 #include <stdarg.h>
4121 #include <string.h>
4122 #include <float.h>
4123
4124 int
4125 main ()
4126 {
4127
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_header_stdc=yes
4155 else
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 ac_cv_header_stdc=no
4160 fi
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162
4163 if test $ac_cv_header_stdc = yes; then
4164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
4172
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "memchr" >/dev/null 2>&1; then
4176 :
4177 else
4178 ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 fi
4183
4184 if test $ac_cv_header_stdc = yes; then
4185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <stdlib.h>
4193
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "free" >/dev/null 2>&1; then
4197 :
4198 else
4199 ac_cv_header_stdc=no
4200 fi
4201 rm -f conftest*
4202
4203 fi
4204
4205 if test $ac_cv_header_stdc = yes; then
4206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4207 if test "$cross_compiling" = yes; then
4208 :
4209 else
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ctype.h>
4217 #if ((' ' & 0x0FF) == 0x020)
4218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220 #else
4221 # define ISLOWER(c) \
4222 (('a' <= (c) && (c) <= 'i') \
4223 || ('j' <= (c) && (c) <= 'r') \
4224 || ('s' <= (c) && (c) <= 'z'))
4225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4226 #endif
4227
4228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 int
4230 main ()
4231 {
4232 int i;
4233 for (i = 0; i < 256; i++)
4234 if (XOR (islower (i), ISLOWER (i))
4235 || toupper (i) != TOUPPER (i))
4236 exit(2);
4237 exit (0);
4238 }
4239 _ACEOF
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 :
4252 else
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ( exit $ac_status )
4258 ac_cv_header_stdc=no
4259 fi
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 fi
4262 fi
4263 fi
4264 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4266 if test $ac_cv_header_stdc = yes; then
4267
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4270 _ACEOF
4271
4272 fi
4273
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285 inttypes.h stdint.h unistd.h
4286 do
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300
4301 #include <$ac_header>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 eval "$as_ac_Header=yes"
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 eval "$as_ac_Header=no"
4331 fi
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337 cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 _ACEOF
4340
4341 fi
4342
4343 done
4344
4345
4346
4347 for ac_header in dlfcn.h
4348 do
4349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351 echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 fi
4356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4358 else
4359 # Is the header compilable?
4360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4361 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
4369 #include <$ac_header>
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_header_compiler=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_header_compiler=no
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402 echo "${ECHO_T}$ac_header_compiler" >&6
4403
4404 # Is the header present?
4405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <$ac_header>
4414 _ACEOF
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null; then
4423 if test -s conftest.err; then
4424 ac_cpp_err=$ac_c_preproc_warn_flag
4425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426 else
4427 ac_cpp_err=
4428 fi
4429 else
4430 ac_cpp_err=yes
4431 fi
4432 if test -z "$ac_cpp_err"; then
4433 ac_header_preproc=yes
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 ac_header_preproc=no
4439 fi
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4443
4444 # So? What about this header?
4445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4446 yes:no: )
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4451 ac_header_preproc=yes
4452 ;;
4453 no:yes:* )
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4466 (
4467 cat <<\_ASBOX
4468 ## ----------------------------------- ##
4469 ## Report this to bugs@tina-vision.net ##
4470 ## ----------------------------------- ##
4471 _ASBOX
4472 ) |
4473 sed "s/^/$as_me: WARNING: /" >&2
4474 ;;
4475 esac
4476 echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 eval "$as_ac_Header=\$ac_header_preproc"
4482 fi
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485
4486 fi
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496 ac_ext=cc
4497 ac_cpp='$CXXCPP $CPPFLAGS'
4498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4501 if test -n "$ac_tool_prefix"; then
4502 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4503 do
4504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4506 echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4508 if test "${ac_cv_prog_CXX+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$CXX"; then
4512 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525 done
4526 done
4527
4528 fi
4529 fi
4530 CXX=$ac_cv_prog_CXX
4531 if test -n "$CXX"; then
4532 echo "$as_me:$LINENO: result: $CXX" >&5
4533 echo "${ECHO_T}$CXX" >&6
4534 else
4535 echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6
4537 fi
4538
4539 test -n "$CXX" && break
4540 done
4541 fi
4542 if test -z "$CXX"; then
4543 ac_ct_CXX=$CXX
4544 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4545 do
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$ac_ct_CXX"; then
4554 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_prog"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569
4570 fi
4571 fi
4572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4573 if test -n "$ac_ct_CXX"; then
4574 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4575 echo "${ECHO_T}$ac_ct_CXX" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581 test -n "$ac_ct_CXX" && break
4582 done
4583 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4584
4585 CXX=$ac_ct_CXX
4586 fi
4587
4588
4589 # Provide some information about the compiler.
4590 echo "$as_me:$LINENO:" \
4591 "checking for C++ compiler version" >&5
4592 ac_compiler=`set X $ac_compile; echo $2`
4593 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4594 (eval $ac_compiler --version </dev/null >&5) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }
4598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4599 (eval $ac_compiler -v </dev/null >&5) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }
4603 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4604 (eval $ac_compiler -V </dev/null >&5) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }
4608
4609 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4610 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620
4621 int
4622 main ()
4623 {
4624 #ifndef __GNUC__
4625 choke me
4626 #endif
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -z "$ac_cxx_werror_flag"
4642 || test ! -s conftest.err'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 ac_compiler_gnu=yes
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ac_compiler_gnu=no
4660 fi
4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663
4664 fi
4665 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4666 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4667 GXX=`test $ac_compiler_gnu = yes && echo yes`
4668 ac_test_CXXFLAGS=${CXXFLAGS+set}
4669 ac_save_CXXFLAGS=$CXXFLAGS
4670 CXXFLAGS="-g"
4671 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4672 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4673 if test "${ac_cv_prog_cxx_g+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682
4683 int
4684 main ()
4685 {
4686
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 (eval $ac_compile) 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -z "$ac_cxx_werror_flag"
4701 || test ! -s conftest.err'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_prog_cxx_g=yes
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718 ac_cv_prog_cxx_g=no
4719 fi
4720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4721 fi
4722 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4723 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4724 if test "$ac_test_CXXFLAGS" = set; then
4725 CXXFLAGS=$ac_save_CXXFLAGS
4726 elif test $ac_cv_prog_cxx_g = yes; then
4727 if test "$GXX" = yes; then
4728 CXXFLAGS="-g -O2"
4729 else
4730 CXXFLAGS="-g"
4731 fi
4732 else
4733 if test "$GXX" = yes; then
4734 CXXFLAGS="-O2"
4735 else
4736 CXXFLAGS=
4737 fi
4738 fi
4739 for ac_declaration in \
4740 '' \
4741 'extern "C" void std::exit (int) throw (); using std::exit;' \
4742 'extern "C" void std::exit (int); using std::exit;' \
4743 'extern "C" void exit (int) throw ();' \
4744 'extern "C" void exit (int);' \
4745 'void exit (int);'
4746 do
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_declaration
4754 #include <stdlib.h>
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 :
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 continue
4791 fi
4792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_declaration
4800 int
4801 main ()
4802 {
4803 exit (42);
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_cxx_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 break
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 fi
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837 done
4838 rm -f conftest*
4839 if test -n "$ac_declaration"; then
4840 echo '#ifdef __cplusplus' >>confdefs.h
4841 echo $ac_declaration >>confdefs.h
4842 echo '#endif' >>confdefs.h
4843 fi
4844
4845 ac_ext=cc
4846 ac_cpp='$CXXCPP $CPPFLAGS'
4847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4850
4851 depcc="$CXX" am_compiler_list=
4852
4853 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4854 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4855 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4859 # We make a subdir and do the tests there. Otherwise we can end up
4860 # making bogus files that we don't know about and never remove. For
4861 # instance it was reported that on HP-UX the gcc test will end up
4862 # making a dummy file named `D' -- because `-MD' means `put the output
4863 # in D'.
4864 mkdir conftest.dir
4865 # Copy depcomp to subdir because otherwise we won't find it if we're
4866 # using a relative directory.
4867 cp "$am_depcomp" conftest.dir
4868 cd conftest.dir
4869 # We will build objects and dependencies in a subdirectory because
4870 # it helps to detect inapplicable dependency modes. For instance
4871 # both Tru64's cc and ICC support -MD to output dependencies as a
4872 # side effect of compilation, but ICC will put the dependencies in
4873 # the current directory while Tru64 will put them in the object
4874 # directory.
4875 mkdir sub
4876
4877 am_cv_CXX_dependencies_compiler_type=none
4878 if test "$am_compiler_list" = ""; then
4879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 fi
4881 for depmode in $am_compiler_list; do
4882 # Setup a source with many dependencies, because some compilers
4883 # like to wrap large dependency lists on column 80 (with \), and
4884 # we should not choose a depcomp mode which is confused by this.
4885 #
4886 # We need to recreate these files for each test, as the compiler may
4887 # overwrite some of them when testing with obscure command lines.
4888 # This happens at least with the AIX C compiler.
4889 : > sub/conftest.c
4890 for i in 1 2 3 4 5 6; do
4891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4893 # Solaris 8's {/usr,}/bin/sh.
4894 touch sub/conftst$i.h
4895 done
4896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4897
4898 case $depmode in
4899 nosideeffect)
4900 # after this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 none) break ;;
4909 esac
4910 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4911 # mode. It turns out that the SunPro C++ compiler does not properly
4912 # handle `-M -o', and we need to detect this.
4913 if depmode=$depmode \
4914 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4916 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4917 >/dev/null 2>conftest.err &&
4918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4919 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4921 # icc doesn't choke on unknown options, it will just issue warnings
4922 # (even with -Werror). So we grep stderr for any message
4923 # that says an option was ignored.
4924 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4925 am_cv_CXX_dependencies_compiler_type=$depmode
4926 break
4927 fi
4928 fi
4929 done
4930
4931 cd ..
4932 rm -rf conftest.dir
4933 else
4934 am_cv_CXX_dependencies_compiler_type=none
4935 fi
4936
4937 fi
4938 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4939 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4940 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4941
4942
4943
4944 if
4945 test "x$enable_dependency_tracking" != xno \
4946 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4947 am__fastdepCXX_TRUE=
4948 am__fastdepCXX_FALSE='#'
4949 else
4950 am__fastdepCXX_TRUE='#'
4951 am__fastdepCXX_FALSE=
4952 fi
4953
4954
4955 ac_ext=cc
4956 ac_cpp='$CXXCPP $CPPFLAGS'
4957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4960 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4961 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4962 if test -z "$CXXCPP"; then
4963 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 # Double quotes because CXXCPP needs to be expanded
4967 for CXXCPP in "$CXX -E" "/lib/cpp"
4968 do
4969 ac_preproc_ok=false
4970 for ac_cxx_preproc_warn_flag in '' yes
4971 do
4972 # Use a header file that comes with gcc, so configuring glibc
4973 # with a fresh cross-compiler works.
4974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4975 # <limits.h> exists even on freestanding compilers.
4976 # On the NeXT, cc -E runs the code through the compiler's parser,
4977 # not just through cpp. "Syntax error" is here to catch this case.
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #ifdef __STDC__
4985 # include <limits.h>
4986 #else
4987 # include <assert.h>
4988 #endif
4989 Syntax error
4990 _ACEOF
4991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_cxx_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5002 else
5003 ac_cpp_err=
5004 fi
5005 else
5006 ac_cpp_err=yes
5007 fi
5008 if test -z "$ac_cpp_err"; then
5009 :
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 # Broken: fails on valid input.
5015 continue
5016 fi
5017 rm -f conftest.err conftest.$ac_ext
5018
5019 # OK, works on sane cases. Now check whether non-existent headers
5020 # can be detected and how.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <ac_nonexistent.h>
5028 _ACEOF
5029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null; then
5037 if test -s conftest.err; then
5038 ac_cpp_err=$ac_cxx_preproc_warn_flag
5039 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5040 else
5041 ac_cpp_err=
5042 fi
5043 else
5044 ac_cpp_err=yes
5045 fi
5046 if test -z "$ac_cpp_err"; then
5047 # Broken: success on invalid input.
5048 continue
5049 else
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 # Passes both tests.
5054 ac_preproc_ok=:
5055 break
5056 fi
5057 rm -f conftest.err conftest.$ac_ext
5058
5059 done
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.$ac_ext
5062 if $ac_preproc_ok; then
5063 break
5064 fi
5065
5066 done
5067 ac_cv_prog_CXXCPP=$CXXCPP
5068
5069 fi
5070 CXXCPP=$ac_cv_prog_CXXCPP
5071 else
5072 ac_cv_prog_CXXCPP=$CXXCPP
5073 fi
5074 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5075 echo "${ECHO_T}$CXXCPP" >&6
5076 ac_preproc_ok=false
5077 for ac_cxx_preproc_warn_flag in '' yes
5078 do
5079 # Use a header file that comes with gcc, so configuring glibc
5080 # with a fresh cross-compiler works.
5081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082 # <limits.h> exists even on freestanding compilers.
5083 # On the NeXT, cc -E runs the code through the compiler's parser,
5084 # not just through cpp. "Syntax error" is here to catch this case.
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #ifdef __STDC__
5092 # include <limits.h>
5093 #else
5094 # include <assert.h>
5095 #endif
5096 Syntax error
5097 _ACEOF
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_cxx_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5109 else
5110 ac_cpp_err=
5111 fi
5112 else
5113 ac_cpp_err=yes
5114 fi
5115 if test -z "$ac_cpp_err"; then
5116 :
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 # Broken: fails on valid input.
5122 continue
5123 fi
5124 rm -f conftest.err conftest.$ac_ext
5125
5126 # OK, works on sane cases. Now check whether non-existent headers
5127 # can be detected and how.
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null; then
5144 if test -s conftest.err; then
5145 ac_cpp_err=$ac_cxx_preproc_warn_flag
5146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5147 else
5148 ac_cpp_err=
5149 fi
5150 else
5151 ac_cpp_err=yes
5152 fi
5153 if test -z "$ac_cpp_err"; then
5154 # Broken: success on invalid input.
5155 continue
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 # Passes both tests.
5161 ac_preproc_ok=:
5162 break
5163 fi
5164 rm -f conftest.err conftest.$ac_ext
5165
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then
5170 :
5171 else
5172 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&5
5174 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175 See \`config.log' for more details." >&2;}
5176 { (exit 1); exit 1; }; }
5177 fi
5178
5179 ac_ext=cc
5180 ac_cpp='$CXXCPP $CPPFLAGS'
5181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5184
5185
5186 ac_ext=f
5187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5190 if test -n "$ac_tool_prefix"; then
5191 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5192 do
5193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_F77+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 if test -n "$F77"; then
5201 ac_cv_prog_F77="$F77" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216
5217 fi
5218 fi
5219 F77=$ac_cv_prog_F77
5220 if test -n "$F77"; then
5221 echo "$as_me:$LINENO: result: $F77" >&5
5222 echo "${ECHO_T}$F77" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5226 fi
5227
5228 test -n "$F77" && break
5229 done
5230 fi
5231 if test -z "$F77"; then
5232 ac_ct_F77=$F77
5233 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5234 do
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 if test -n "$ac_ct_F77"; then
5243 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_F77="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5262 if test -n "$ac_ct_F77"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5264 echo "${ECHO_T}$ac_ct_F77" >&6
5265 else
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270 test -n "$ac_ct_F77" && break
5271 done
5272
5273 F77=$ac_ct_F77
5274 fi
5275
5276
5277 # Provide some information about the compiler.
5278 echo "$as_me:5278:" \
5279 "checking for Fortran 77 compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5282 (eval $ac_compiler --version </dev/null >&5) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5287 (eval $ac_compiler -v </dev/null >&5) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5292 (eval $ac_compiler -V </dev/null >&5) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296 rm -f a.out
5297
5298 # If we don't use `.F' as extension, the preprocessor is not run on the
5299 # input file. (Note that this only needs to work for GNU compilers.)
5300 ac_save_ext=$ac_ext
5301 ac_ext=F
5302 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5303 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5304 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 cat >conftest.$ac_ext <<_ACEOF
5308 program main
5309 #ifndef __GNUC__
5310 choke me
5311 #endif
5312
5313 end
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_compiler_gnu=yes
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 ac_compiler_gnu=no
5343 fi
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5346
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5349 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5350 ac_ext=$ac_save_ext
5351 ac_test_FFLAGS=${FFLAGS+set}
5352 ac_save_FFLAGS=$FFLAGS
5353 FFLAGS=
5354 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5355 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5356 if test "${ac_cv_prog_f77_g+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 FFLAGS=-g
5360 cat >conftest.$ac_ext <<_ACEOF
5361 program main
5362
5363 end
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_f77_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_cv_prog_f77_g=yes
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_cv_prog_f77_g=no
5393 fi
5394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5398 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5399 if test "$ac_test_FFLAGS" = set; then
5400 FFLAGS=$ac_save_FFLAGS
5401 elif test $ac_cv_prog_f77_g = yes; then
5402 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5403 FFLAGS="-g -O2"
5404 else
5405 FFLAGS="-g"
5406 fi
5407 else
5408 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5409 FFLAGS="-O2"
5410 else
5411 FFLAGS=
5412 fi
5413 fi
5414
5415 G77=`test $ac_compiler_gnu = yes && echo yes`
5416 ac_ext=c
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422
5423
5424 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5425
5426 # find the maximum length of command line arguments
5427 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5428 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5429 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 i=0
5433 testring="ABCD"
5434
5435 case $build_os in
5436 msdosdjgpp*)
5437 # On DJGPP, this test can blow up pretty badly due to problems in libc
5438 # (any single argument exceeding 2000 bytes causes a buffer overrun
5439 # during glob expansion). Even if it were fixed, the result of this
5440 # check would be larger than it should be.
5441 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5442 ;;
5443
5444 gnu*)
5445 # Under GNU Hurd, this test is not required because there is
5446 # no limit to the length of command line arguments.
5447 # Libtool will interpret -1 as no limit whatsoever
5448 lt_cv_sys_max_cmd_len=-1;
5449 ;;
5450
5451 cygwin* | mingw*)
5452 # On Win9x/ME, this test blows up -- it succeeds, but takes
5453 # about 5 minutes as the teststring grows exponentially.
5454 # Worse, since 9x/ME are not pre-emptively multitasking,
5455 # you end up with a "frozen" computer, even though with patience
5456 # the test eventually succeeds (with a max line length of 256k).
5457 # Instead, let's just punt: use the minimum linelength reported by
5458 # all of the supported platforms: 8192 (on NT/2K/XP).
5459 lt_cv_sys_max_cmd_len=8192;
5460 ;;
5461
5462 amigaos*)
5463 # On AmigaOS with pdksh, this test takes hours, literally.
5464 # So we just punt and use a minimum line length of 8192.
5465 lt_cv_sys_max_cmd_len=8192;
5466 ;;
5467
5468 *)
5469 # If test is not a shell built-in, we'll probably end up computing a
5470 # maximum length that is only half of the actual maximum length, but
5471 # we can't tell.
5472 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5473 = "XX$testring") >/dev/null 2>&1 &&
5474 new_result=`expr "X$testring" : ".*" 2>&1` &&
5475 lt_cv_sys_max_cmd_len=$new_result &&
5476 test $i != 17 # 1/2 MB should be enough
5477 do
5478 i=`expr $i + 1`
5479 testring=$testring$testring
5480 done
5481 testring=
5482 # Add a significant safety factor because C++ compilers can tack on massive
5483 # amounts of additional arguments before passing them to the linker.
5484 # It appears as though 1/2 is a usable value.
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5486 ;;
5487 esac
5488
5489 fi
5490
5491 if test -n $lt_cv_sys_max_cmd_len ; then
5492 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5493 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5494 else
5495 echo "$as_me:$LINENO: result: none" >&5
5496 echo "${ECHO_T}none" >&6
5497 fi
5498
5499
5500
5501
5502 # Check for command to grab the raw symbol name followed by C symbol from nm.
5503 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5504 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508
5509 # These are sane defaults that work on at least a few old systems.
5510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5511
5512 # Character class describing NM global symbol codes.
5513 symcode='[BCDEGRST]'
5514
5515 # Regexp to match symbols that can be accessed directly from C.
5516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5517
5518 # Transform the above into a raw symbol and a C symbol.
5519 symxfrm='\1 \2\3 \3'
5520
5521 # Transform an extracted symbol line into a proper C declaration
5522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5523
5524 # Transform an extracted symbol line into symbol name and symbol address
5525 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'"
5526
5527 # Define system-specific variables.
5528 case $host_os in
5529 aix*)
5530 symcode='[BCDT]'
5531 ;;
5532 cygwin* | mingw* | pw32*)
5533 symcode='[ABCDGISTW]'
5534 ;;
5535 hpux*) # Its linker distinguishes data from code symbols
5536 if test "$host_cpu" = ia64; then
5537 symcode='[ABCDEGRST]'
5538 fi
5539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5540 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'"
5541 ;;
5542 irix* | nonstopux*)
5543 symcode='[BCDEGRST]'
5544 ;;
5545 osf*)
5546 symcode='[BCDEGQRST]'
5547 ;;
5548 solaris* | sysv5*)
5549 symcode='[BDRT]'
5550 ;;
5551 sysv4)
5552 symcode='[DFNSTU]'
5553 ;;
5554 esac
5555
5556 # Handle CRLF in mingw tool chain
5557 opt_cr=
5558 case $build_os in
5559 mingw*)
5560 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5561 ;;
5562 esac
5563
5564 # If we're using GNU nm, then use its standard symbol codes.
5565 case `$NM -V 2>&1` in
5566 *GNU* | *'with BFD'*)
5567 symcode='[ABCDGIRSTW]' ;;
5568 esac
5569
5570 # Try without a prefix undercore, then with it.
5571 for ac_symprfx in "" "_"; do
5572
5573 # Write the raw and C identifiers.
5574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5575
5576 # Check to see that the pipe works correctly.
5577 pipe_works=no
5578
5579 rm -f conftest*
5580 cat > conftest.$ac_ext <<EOF
5581 #ifdef __cplusplus
5582 extern "C" {
5583 #endif
5584 char nm_test_var;
5585 void nm_test_func(){}
5586 #ifdef __cplusplus
5587 }
5588 #endif
5589 int main(){nm_test_var='a';nm_test_func();return(0);}
5590 EOF
5591
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; then
5597 # Now try to grab the symbols.
5598 nlist=conftest.nm
5599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && test -s "$nlist"; then
5604 # Try sorting and uniquifying the output.
5605 if sort "$nlist" | uniq > "$nlist"T; then
5606 mv -f "$nlist"T "$nlist"
5607 else
5608 rm -f "$nlist"T
5609 fi
5610
5611 # Make sure that we snagged all the symbols we need.
5612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614 cat <<EOF > conftest.$ac_ext
5615 #ifdef __cplusplus
5616 extern "C" {
5617 #endif
5618
5619 EOF
5620 # Now generate the symbol file.
5621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622
5623 cat <<EOF >> conftest.$ac_ext
5624 #if defined (__STDC__) && __STDC__
5625 # define lt_ptr_t void *
5626 #else
5627 # define lt_ptr_t char *
5628 # define const
5629 #endif
5630
5631 /* The mapping between symbol names and symbols. */
5632 const struct {
5633 const char *name;
5634 lt_ptr_t address;
5635 }
5636 lt_preloaded_symbols[] =
5637 {
5638 EOF
5639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640 cat <<\EOF >> conftest.$ac_ext
5641 {0, (lt_ptr_t) 0}
5642 };
5643
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 EOF
5648 # Now try linking the two files.
5649 mv conftest.$ac_objext conftstm.$ac_objext
5650 lt_save_LIBS="$LIBS"
5651 lt_save_CFLAGS="$CFLAGS"
5652 LIBS="conftstm.$ac_objext"
5653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5659 pipe_works=yes
5660 fi
5661 LIBS="$lt_save_LIBS"
5662 CFLAGS="$lt_save_CFLAGS"
5663 else
5664 echo "cannot find nm_test_func in $nlist" >&5
5665 fi
5666 else
5667 echo "cannot find nm_test_var in $nlist" >&5
5668 fi
5669 else
5670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671 fi
5672 else
5673 echo "$progname: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 fi
5676 rm -f conftest* conftst*
5677
5678 # Do not use the global_symbol_pipe unless it works.
5679 if test "$pipe_works" = yes; then
5680 break
5681 else
5682 lt_cv_sys_global_symbol_pipe=
5683 fi
5684 done
5685
5686 fi
5687
5688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689 lt_cv_sys_global_symbol_to_cdecl=
5690 fi
5691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692 echo "$as_me:$LINENO: result: failed" >&5
5693 echo "${ECHO_T}failed" >&6
5694 else
5695 echo "$as_me:$LINENO: result: ok" >&5
5696 echo "${ECHO_T}ok" >&6
5697 fi
5698
5699 echo "$as_me:$LINENO: checking for objdir" >&5
5700 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701 if test "${lt_cv_objdir+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 rm -f .libs 2>/dev/null
5705 mkdir .libs 2>/dev/null
5706 if test -d .libs; then
5707 lt_cv_objdir=.libs
5708 else
5709 # MS-DOS does not allow filenames that begin with a dot.
5710 lt_cv_objdir=_libs
5711 fi
5712 rmdir .libs 2>/dev/null
5713 fi
5714 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715 echo "${ECHO_T}$lt_cv_objdir" >&6
5716 objdir=$lt_cv_objdir
5717
5718
5719
5720
5721
5722 case $host_os in
5723 aix3*)
5724 # AIX sometimes has problems with the GCC collect2 program. For some
5725 # reason, if we set the COLLECT_NAMES environment variable, the problems
5726 # vanish in a puff of smoke.
5727 if test "X${COLLECT_NAMES+set}" != Xset; then
5728 COLLECT_NAMES=
5729 export COLLECT_NAMES
5730 fi
5731 ;;
5732 esac
5733
5734 # Sed substitution that helps us do robust quoting. It backslashifies
5735 # metacharacters that are still active within double-quoted strings.
5736 Xsed='sed -e s/^X//'
5737 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738
5739 # Same as above, but do not quote variable references.
5740 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741
5742 # Sed substitution to delay expansion of an escaped shell variable in a
5743 # double_quote_subst'ed string.
5744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745
5746 # Sed substitution to avoid accidental globbing in evaled expressions
5747 no_glob_subst='s/\*/\\\*/g'
5748
5749 # Constants:
5750 rm="rm -f"
5751
5752 # Global variables:
5753 default_ofile=libtool
5754 can_build_shared=yes
5755
5756 # All known linkers require a `.a' archive for static linking (except M$VC,
5757 # which needs '.lib').
5758 libext=a
5759 ltmain="$ac_aux_dir/ltmain.sh"
5760 ofile="$default_ofile"
5761 with_gnu_ld="$lt_cv_prog_gnu_ld"
5762
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ar; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AR+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 if test -n "$AR"; then
5772 ac_cv_prog_AR="$AR" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AR="${ac_tool_prefix}ar"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787
5788 fi
5789 fi
5790 AR=$ac_cv_prog_AR
5791 if test -n "$AR"; then
5792 echo "$as_me:$LINENO: result: $AR" >&5
5793 echo "${ECHO_T}$AR" >&6
5794 else
5795 echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799 fi
5800 if test -z "$ac_cv_prog_AR"; then
5801 ac_ct_AR=$AR
5802 # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825
5826 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5827 fi
5828 fi
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832 echo "${ECHO_T}$ac_ct_AR" >&6
5833 else
5834 echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5836 fi
5837
5838 AR=$ac_ct_AR
5839 else
5840 AR="$ac_cv_prog_AR"
5841 fi
5842
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_RANLIB+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 if test -n "$RANLIB"; then
5852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867
5868 fi
5869 fi
5870 RANLIB=$ac_cv_prog_RANLIB
5871 if test -n "$RANLIB"; then
5872 echo "$as_me:$LINENO: result: $RANLIB" >&5
5873 echo "${ECHO_T}$RANLIB" >&6
5874 else
5875 echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879 fi
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881 ac_ct_RANLIB=$RANLIB
5882 # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 if test -n "$ac_ct_RANLIB"; then
5890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_ac_ct_RANLIB="ranlib"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903 done
5904 done
5905
5906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5907 fi
5908 fi
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913 else
5914 echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5916 fi
5917
5918 RANLIB=$ac_ct_RANLIB
5919 else
5920 RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_STRIP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947
5948 fi
5949 fi
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952 echo "$as_me:$LINENO: result: $STRIP" >&5
5953 echo "${ECHO_T}$STRIP" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959 fi
5960 if test -z "$ac_cv_prog_STRIP"; then
5961 ac_ct_STRIP=$STRIP
5962 # Extract the first word of "strip", so it can be a program name with args.
5963 set dummy strip; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983 done
5984 done
5985
5986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5987 fi
5988 fi
5989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990 if test -n "$ac_ct_STRIP"; then
5991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992 echo "${ECHO_T}$ac_ct_STRIP" >&6
5993 else
5994 echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5996 fi
5997
5998 STRIP=$ac_ct_STRIP
5999 else
6000 STRIP="$ac_cv_prog_STRIP"
6001 fi
6002
6003
6004 old_CC="$CC"
6005 old_CFLAGS="$CFLAGS"
6006
6007 # Set sane defaults for various variables
6008 test -z "$AR" && AR=ar
6009 test -z "$AR_FLAGS" && AR_FLAGS=cru
6010 test -z "$AS" && AS=as
6011 test -z "$CC" && CC=cc
6012 test -z "$LTCC" && LTCC=$CC
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014 test -z "$LD" && LD=ld
6015 test -z "$LN_S" && LN_S="ln -s"
6016 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017 test -z "$NM" && NM=nm
6018 test -z "$SED" && SED=sed
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 test -z "$RANLIB" && RANLIB=:
6021 test -z "$STRIP" && STRIP=:
6022 test -z "$ac_objext" && ac_objext=o
6023
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6028
6029 if test -n "$RANLIB"; then
6030 case $host_os in
6031 openbsd*)
6032 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6033 ;;
6034 *)
6035 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6036 ;;
6037 esac
6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039 fi
6040
6041 # Only perform the check for file, if the check method requires it
6042 case $deplibs_check_method in
6043 file_magic*)
6044 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6045 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6046 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 case $MAGIC_CMD in
6051 [\\/*] | ?:[\\/]*)
6052 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6053 ;;
6054 *)
6055 lt_save_MAGIC_CMD="$MAGIC_CMD"
6056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058 for ac_dir in $ac_dummy; do
6059 IFS="$lt_save_ifs"
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/${ac_tool_prefix}file; then
6062 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6063 if test -n "$file_magic_test_file"; then
6064 case $deplibs_check_method in
6065 "file_magic "*)
6066 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069 $EGREP "$file_magic_regex" > /dev/null; then
6070 :
6071 else
6072 cat <<EOF 1>&2
6073
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such. This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem. Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6082
6083 EOF
6084 fi ;;
6085 esac
6086 fi
6087 break
6088 fi
6089 done
6090 IFS="$lt_save_ifs"
6091 MAGIC_CMD="$lt_save_MAGIC_CMD"
6092 ;;
6093 esac
6094 fi
6095
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6100 else
6101 echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6103 fi
6104
6105 if test -z "$lt_cv_path_MAGIC_CMD"; then
6106 if test -n "$ac_tool_prefix"; then
6107 echo "$as_me:$LINENO: checking for file" >&5
6108 echo $ECHO_N "checking for file... $ECHO_C" >&6
6109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 case $MAGIC_CMD in
6113 [\\/*] | ?:[\\/]*)
6114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6115 ;;
6116 *)
6117 lt_save_MAGIC_CMD="$MAGIC_CMD"
6118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6120 for ac_dir in $ac_dummy; do
6121 IFS="$lt_save_ifs"
6122 test -z "$ac_dir" && ac_dir=.
6123 if test -f $ac_dir/file; then
6124 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6125 if test -n "$file_magic_test_file"; then
6126 case $deplibs_check_method in
6127 "file_magic "*)
6128 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6131 $EGREP "$file_magic_regex" > /dev/null; then
6132 :
6133 else
6134 cat <<EOF 1>&2
6135
6136 *** Warning: the command libtool uses to detect shared libraries,
6137 *** $file_magic_cmd, produces output that libtool cannot recognize.
6138 *** The result is that libtool may fail to recognize shared libraries
6139 *** as such. This will affect the creation of libtool libraries that
6140 *** depend on shared libraries, but programs linked with such libtool
6141 *** libraries will work regardless of this problem. Nevertheless, you
6142 *** may want to report the problem to your system manager and/or to
6143 *** bug-libtool@gnu.org
6144
6145 EOF
6146 fi ;;
6147 esac
6148 fi
6149 break
6150 fi
6151 done
6152 IFS="$lt_save_ifs"
6153 MAGIC_CMD="$lt_save_MAGIC_CMD"
6154 ;;
6155 esac
6156 fi
6157
6158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6159 if test -n "$MAGIC_CMD"; then
6160 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6161 echo "${ECHO_T}$MAGIC_CMD" >&6
6162 else
6163 echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6165 fi
6166
6167 else
6168 MAGIC_CMD=:
6169 fi
6170 fi
6171
6172 fi
6173 ;;
6174 esac
6175
6176 enable_dlopen=no
6177 enable_win32_dll=no
6178
6179 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6180 if test "${enable_libtool_lock+set}" = set; then
6181 enableval="$enable_libtool_lock"
6182
6183 fi;
6184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6185
6186
6187 # Check whether --with-pic or --without-pic was given.
6188 if test "${with_pic+set}" = set; then
6189 withval="$with_pic"
6190 pic_mode="$withval"
6191 else
6192 pic_mode=default
6193 fi;
6194 test -z "$pic_mode" && pic_mode=default
6195
6196 # Use C for the default configuration in the libtool script
6197 tagname=
6198 lt_save_CC="$CC"
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206 # Source file extension for C test sources.
6207 ac_ext=c
6208
6209 # Object file extension for compiled C test sources.
6210 objext=o
6211 objext=$objext
6212
6213 # Code to be used in simple compile tests
6214 lt_simple_compile_test_code="int some_variable = 0;\n"
6215
6216 # Code to be used in simple link tests
6217 lt_simple_link_test_code='int main(){return(0);}\n'
6218
6219
6220 # If no C compiler was specified, use CC.
6221 LTCC=${LTCC-"$CC"}
6222
6223 # Allow CC to be a program name with arguments.
6224 compiler=$CC
6225
6226
6227 #
6228 # Check for any special shared library compilation flags.
6229 #
6230 lt_prog_cc_shlib=
6231 if test "$GCC" = no; then
6232 case $host_os in
6233 sco3.2v5*)
6234 lt_prog_cc_shlib='-belf'
6235 ;;
6236 esac
6237 fi
6238 if test -n "$lt_prog_cc_shlib"; then
6239 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6240 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6241 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6242 else
6243 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6244 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6245 lt_cv_prog_cc_can_build_shared=no
6246 fi
6247 fi
6248
6249
6250 #
6251 # Check to make sure the static flag actually works.
6252 #
6253 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6254 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6255 if test "${lt_prog_compiler_static_works+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 lt_prog_compiler_static_works=no
6259 save_LDFLAGS="$LDFLAGS"
6260 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6261 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6263 # The compiler can only warn and ignore the option if not recognized
6264 # So say no if there are warnings
6265 if test -s conftest.err; then
6266 # Append any errors to the config.log.
6267 cat conftest.err 1>&5
6268 else
6269 lt_prog_compiler_static_works=yes
6270 fi
6271 fi
6272 $rm conftest*
6273 LDFLAGS="$save_LDFLAGS"
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6277 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6278
6279 if test x"$lt_prog_compiler_static_works" = xyes; then
6280 :
6281 else
6282 lt_prog_compiler_static=
6283 fi
6284
6285
6286
6287
6288 lt_prog_compiler_no_builtin_flag=
6289
6290 if test "$GCC" = yes; then
6291 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6292
6293
6294 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6295 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 lt_cv_prog_compiler_rtti_exceptions=no
6300 ac_outfile=conftest.$ac_objext
6301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6302 lt_compiler_flag="-fno-rtti -fno-exceptions"
6303 # Insert the option either (1) after the last *FLAGS variable, or
6304 # (2) before a word containing "conftest.", or (3) at the end.
6305 # Note that $ac_compile itself does not contain backslashes and begins
6306 # with a dollar sign (not a hyphen), so the echo should work correctly.
6307 # The option is referenced via a variable to avoid confusing sed.
6308 lt_compile=`echo "$ac_compile" | $SED \
6309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6311 -e 's:$: $lt_compiler_flag:'`
6312 (eval echo "\"\$as_me:6312: $lt_compile\"" >&5)
6313 (eval "$lt_compile" 2>conftest.err)
6314 ac_status=$?
6315 cat conftest.err >&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 if (exit $ac_status) && test -s "$ac_outfile"; then
6318 # The compiler can only warn and ignore the option if not recognized
6319 # So say no if there are warnings
6320 if test ! -s conftest.err; then
6321 lt_cv_prog_compiler_rtti_exceptions=yes
6322 fi
6323 fi
6324 $rm conftest*
6325
6326 fi
6327 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6328 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6329
6330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6331 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6332 else
6333 :
6334 fi
6335
6336 fi
6337
6338 lt_prog_compiler_wl=
6339 lt_prog_compiler_pic=
6340 lt_prog_compiler_static=
6341
6342 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6344
6345 if test "$GCC" = yes; then
6346 lt_prog_compiler_wl='-Wl,'
6347 lt_prog_compiler_static='-static'
6348
6349 case $host_os in
6350 aix*)
6351 # All AIX code is PIC.
6352 if test "$host_cpu" = ia64; then
6353 # AIX 5 now supports IA64 processor
6354 lt_prog_compiler_static='-Bstatic'
6355 fi
6356 ;;
6357
6358 amigaos*)
6359 # FIXME: we need at least 68020 code to build shared libraries, but
6360 # adding the `-m68020' flag to GCC prevents building anything better,
6361 # like `-m68040'.
6362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6363 ;;
6364
6365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6366 # PIC is the default for these OSes.
6367 ;;
6368
6369 mingw* | pw32* | os2*)
6370 # This hack is so that the source file can tell whether it is being
6371 # built for inclusion in a dll (and should export symbols for example).
6372 lt_prog_compiler_pic='-DDLL_EXPORT'
6373 ;;
6374
6375 darwin* | rhapsody*)
6376 # PIC is the default on this platform
6377 # Common symbols not allowed in MH_DYLIB files
6378 lt_prog_compiler_pic='-fno-common'
6379 ;;
6380
6381 msdosdjgpp*)
6382 # Just because we use GCC doesn't mean we suddenly get shared libraries
6383 # on systems that don't support them.
6384 lt_prog_compiler_can_build_shared=no
6385 enable_shared=no
6386 ;;
6387
6388 sysv4*MP*)
6389 if test -d /usr/nec; then
6390 lt_prog_compiler_pic=-Kconform_pic
6391 fi
6392 ;;
6393
6394 hpux*)
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396 # not for PA HP-UX.
6397 case "$host_cpu" in
6398 hppa*64*|ia64*)
6399 # +Z the default
6400 ;;
6401 *)
6402 lt_prog_compiler_pic='-fPIC'
6403 ;;
6404 esac
6405 ;;
6406
6407 *)
6408 lt_prog_compiler_pic='-fPIC'
6409 ;;
6410 esac
6411 else
6412 # PORTME Check for flag to pass linker flags through the system compiler.
6413 case $host_os in
6414 aix*)
6415 lt_prog_compiler_wl='-Wl,'
6416 if test "$host_cpu" = ia64; then
6417 # AIX 5 now supports IA64 processor
6418 lt_prog_compiler_static='-Bstatic'
6419 else
6420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6421 fi
6422 ;;
6423
6424 mingw* | pw32* | os2*)
6425 # This hack is so that the source file can tell whether it is being
6426 # built for inclusion in a dll (and should export symbols for example).
6427 lt_prog_compiler_pic='-DDLL_EXPORT'
6428 ;;
6429
6430 hpux9* | hpux10* | hpux11*)
6431 lt_prog_compiler_wl='-Wl,'
6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6433 # not for PA HP-UX.
6434 case "$host_cpu" in
6435 hppa*64*|ia64*)
6436 # +Z the default
6437 ;;
6438 *)
6439 lt_prog_compiler_pic='+Z'
6440 ;;
6441 esac
6442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6443 lt_prog_compiler_static='${wl}-a ${wl}archive'
6444 ;;
6445
6446 irix5* | irix6* | nonstopux*)
6447 lt_prog_compiler_wl='-Wl,'
6448 # PIC (with -KPIC) is the default.
6449 lt_prog_compiler_static='-non_shared'
6450 ;;
6451
6452 newsos6)
6453 lt_prog_compiler_pic='-KPIC'
6454 lt_prog_compiler_static='-Bstatic'
6455 ;;
6456
6457 linux*)
6458 case $CC in
6459 icc* | ecc*)
6460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-static'
6463 ;;
6464 ccc*)
6465 lt_prog_compiler_wl='-Wl,'
6466 # All Alpha code is PIC.
6467 lt_prog_compiler_static='-non_shared'
6468 ;;
6469 esac
6470 ;;
6471
6472 osf3* | osf4* | osf5*)
6473 lt_prog_compiler_wl='-Wl,'
6474 # All OSF/1 code is PIC.
6475 lt_prog_compiler_static='-non_shared'
6476 ;;
6477
6478 sco3.2v5*)
6479 lt_prog_compiler_pic='-Kpic'
6480 lt_prog_compiler_static='-dn'
6481 ;;
6482
6483 solaris*)
6484 lt_prog_compiler_wl='-Wl,'
6485 lt_prog_compiler_pic='-KPIC'
6486 lt_prog_compiler_static='-Bstatic'
6487 ;;
6488
6489 sunos4*)
6490 lt_prog_compiler_wl='-Qoption ld '
6491 lt_prog_compiler_pic='-PIC'
6492 lt_prog_compiler_static='-Bstatic'
6493 ;;
6494
6495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
6499 ;;
6500
6501 sysv4*MP*)
6502 if test -d /usr/nec ;then
6503 lt_prog_compiler_pic='-Kconform_pic'
6504 lt_prog_compiler_static='-Bstatic'
6505 fi
6506 ;;
6507
6508 uts4*)
6509 lt_prog_compiler_pic='-pic'
6510 lt_prog_compiler_static='-Bstatic'
6511 ;;
6512
6513 *)
6514 lt_prog_compiler_can_build_shared=no
6515 ;;
6516 esac
6517 fi
6518
6519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6520 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6521
6522 #
6523 # Check to make sure the PIC flag actually works.
6524 #
6525 if test -n "$lt_prog_compiler_pic"; then
6526
6527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6529 if test "${lt_prog_compiler_pic_works+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 lt_prog_compiler_pic_works=no
6533 ac_outfile=conftest.$ac_objext
6534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6535 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6536 # Insert the option either (1) after the last *FLAGS variable, or
6537 # (2) before a word containing "conftest.", or (3) at the end.
6538 # Note that $ac_compile itself does not contain backslashes and begins
6539 # with a dollar sign (not a hyphen), so the echo should work correctly.
6540 # The option is referenced via a variable to avoid confusing sed.
6541 lt_compile=`echo "$ac_compile" | $SED \
6542 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544 -e 's:$: $lt_compiler_flag:'`
6545 (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546 (eval "$lt_compile" 2>conftest.err)
6547 ac_status=$?
6548 cat conftest.err >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 if (exit $ac_status) && test -s "$ac_outfile"; then
6551 # The compiler can only warn and ignore the option if not recognized
6552 # So say no if there are warnings
6553 if test ! -s conftest.err; then
6554 lt_prog_compiler_pic_works=yes
6555 fi
6556 fi
6557 $rm conftest*
6558
6559 fi
6560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6561 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6562
6563 if test x"$lt_prog_compiler_pic_works" = xyes; then
6564 case $lt_prog_compiler_pic in
6565 "" | " "*) ;;
6566 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6567 esac
6568 else
6569 lt_prog_compiler_pic=
6570 lt_prog_compiler_can_build_shared=no
6571 fi
6572
6573 fi
6574 case "$host_os" in
6575 # For platforms which do not support PIC, -DPIC is meaningless:
6576 *djgpp*)
6577 lt_prog_compiler_pic=
6578 ;;
6579 *)
6580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6581 ;;
6582 esac
6583
6584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 lt_cv_prog_compiler_c_o=no
6590 $rm -r conftest 2>/dev/null
6591 mkdir conftest
6592 cd conftest
6593 mkdir out
6594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6595
6596 lt_compiler_flag="-o out/conftest2.$ac_objext"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 lt_compile=`echo "$ac_compile" | $SED \
6602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6604 -e 's:$: $lt_compiler_flag:'`
6605 (eval echo "\"\$as_me:6605: $lt_compile\"" >&5)
6606 (eval "$lt_compile" 2>out/conftest.err)
6607 ac_status=$?
6608 cat out/conftest.err >&5
6609 echo "$as_me:6609: \$? = $ac_status" >&5
6610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6611 then
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings
6614 if test ! -s out/conftest.err; then
6615 lt_cv_prog_compiler_c_o=yes
6616 fi
6617 fi
6618 chmod u+w .
6619 $rm conftest*
6620 # SGI C++ compiler will create directory out/ii_files/ for
6621 # template instantiation
6622 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6623 $rm out/* && rmdir out
6624 cd ..
6625 rmdir conftest
6626 $rm conftest*
6627
6628 fi
6629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6631
6632
6633 hard_links="nottested"
6634 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6635 # do not overwrite the value of need_locks provided by the user
6636 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6638 hard_links=yes
6639 $rm conftest*
6640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6641 touch conftest.a
6642 ln conftest.a conftest.b 2>&5 || hard_links=no
6643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644 echo "$as_me:$LINENO: result: $hard_links" >&5
6645 echo "${ECHO_T}$hard_links" >&6
6646 if test "$hard_links" = no; then
6647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6649 need_locks=warn
6650 fi
6651 else
6652 need_locks=no
6653 fi
6654
6655 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6657
6658 runpath_var=
6659 allow_undefined_flag=
6660 enable_shared_with_static_runtimes=no
6661 archive_cmds=
6662 archive_expsym_cmds=
6663 old_archive_From_new_cmds=
6664 old_archive_from_expsyms_cmds=
6665 export_dynamic_flag_spec=
6666 whole_archive_flag_spec=
6667 thread_safe_flag_spec=
6668 hardcode_libdir_flag_spec=
6669 hardcode_libdir_flag_spec_ld=
6670 hardcode_libdir_separator=
6671 hardcode_direct=no
6672 hardcode_minus_L=no
6673 hardcode_shlibpath_var=unsupported
6674 link_all_deplibs=unknown
6675 hardcode_automatic=no
6676 module_cmds=
6677 module_expsym_cmds=
6678 always_export_symbols=no
6679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6680 # include_expsyms should be a list of space-separated symbols to be *always*
6681 # included in the symbol list
6682 include_expsyms=
6683 # exclude_expsyms can be an extended regexp of symbols to exclude
6684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6686 # as well as any symbol that contains `d'.
6687 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6689 # platforms (ab)use it in PIC code, but their linkers get confused if
6690 # the symbol is explicitly referenced. Since portable code cannot
6691 # rely on this symbol name, it's probably fine to never include it in
6692 # preloaded symbol tables.
6693 extract_expsyms_cmds=
6694
6695 case $host_os in
6696 cygwin* | mingw* | pw32*)
6697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6698 # When not using gcc, we currently assume that we are using
6699 # Microsoft Visual C++.
6700 if test "$GCC" != yes; then
6701 with_gnu_ld=no
6702 fi
6703 ;;
6704 openbsd*)
6705 with_gnu_ld=no
6706 ;;
6707 esac
6708
6709 ld_shlibs=yes
6710 if test "$with_gnu_ld" = yes; then
6711 # If archive_cmds runs LD, not CC, wlarc should be empty
6712 wlarc='${wl}'
6713
6714 # See if GNU ld supports shared libraries.
6715 case $host_os in
6716 aix3* | aix4* | aix5*)
6717 # On AIX/PPC, the GNU linker is very broken
6718 if test "$host_cpu" != ia64; then
6719 ld_shlibs=no
6720 cat <<EOF 1>&2
6721
6722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6723 *** to be unable to reliably create shared libraries on AIX.
6724 *** Therefore, libtool is disabling shared libraries support. If you
6725 *** really care for shared libraries, you may want to modify your PATH
6726 *** so that a non-GNU linker is found, and then restart.
6727
6728 EOF
6729 fi
6730 ;;
6731
6732 amigaos*)
6733 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)'
6734 hardcode_libdir_flag_spec='-L$libdir'
6735 hardcode_minus_L=yes
6736
6737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738 # that the semantics of dynamic libraries on AmigaOS, at least up
6739 # to version 4, is to share data among multiple programs linked
6740 # with the same dynamic library. Since this doesn't match the
6741 # behavior of shared libraries on other platforms, we can't use
6742 # them.
6743 ld_shlibs=no
6744 ;;
6745
6746 beos*)
6747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 allow_undefined_flag=unsupported
6749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750 # support --undefined. This deserves some investigation. FIXME
6751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 else
6753 ld_shlibs=no
6754 fi
6755 ;;
6756
6757 cygwin* | mingw* | pw32*)
6758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759 # as there is no search path for DLLs.
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 allow_undefined_flag=unsupported
6762 always_export_symbols=no
6763 enable_shared_with_static_runtimes=yes
6764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6765
6766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6768 # If the export-symbols file already is a .def file (1st line
6769 # is EXPORTS), use it as is; otherwise, prepend...
6770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771 cp $export_symbols $output_objdir/$soname.def;
6772 else
6773 echo EXPORTS > $output_objdir/$soname.def;
6774 cat $export_symbols >> $output_objdir/$soname.def;
6775 fi~
6776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6777 else
6778 ld_shlibs=no
6779 fi
6780 ;;
6781
6782 netbsd*)
6783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6785 wlarc=
6786 else
6787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789 fi
6790 ;;
6791
6792 solaris* | sysv5*)
6793 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6794 ld_shlibs=no
6795 cat <<EOF 1>&2
6796
6797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6798 *** create shared libraries on Solaris systems. Therefore, libtool
6799 *** is disabling shared libraries support. We urge you to upgrade GNU
6800 *** binutils to release 2.9.1 or newer. Another option is to modify
6801 *** your PATH or compiler configuration so that the native linker is
6802 *** used, and then restart.
6803
6804 EOF
6805 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6808 else
6809 ld_shlibs=no
6810 fi
6811 ;;
6812
6813 sunos4*)
6814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6815 wlarc=
6816 hardcode_direct=yes
6817 hardcode_shlibpath_var=no
6818 ;;
6819
6820 linux*)
6821 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6822 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823 archive_cmds="$tmp_archive_cmds"
6824 supports_anon_versioning=no
6825 case `$LD -v 2>/dev/null` in
6826 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6829 *\ 2.11.*) ;; # other 2.11 versions
6830 *) supports_anon_versioning=yes ;;
6831 esac
6832 if test $supports_anon_versioning = yes; then
6833 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6835 $echo "local: *; };" >> $output_objdir/$libname.ver~
6836 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6837 else
6838 archive_expsym_cmds="$tmp_archive_cmds"
6839 fi
6840 else
6841 ld_shlibs=no
6842 fi
6843 ;;
6844
6845 *)
6846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6849 else
6850 ld_shlibs=no
6851 fi
6852 ;;
6853 esac
6854
6855 if test "$ld_shlibs" = yes; then
6856 runpath_var=LD_RUN_PATH
6857 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6858 export_dynamic_flag_spec='${wl}--export-dynamic'
6859 # ancient GNU ld didn't support --whole-archive et. al.
6860 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6861 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6862 else
6863 whole_archive_flag_spec=
6864 fi
6865 fi
6866 else
6867 # PORTME fill in a description of your system's linker (not GNU ld)
6868 case $host_os in
6869 aix3*)
6870 allow_undefined_flag=unsupported
6871 always_export_symbols=yes
6872 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'
6873 # Note: this linker hardcodes the directories in LIBPATH if there
6874 # are no directories specified by -L.
6875 hardcode_minus_L=yes
6876 if test "$GCC" = yes && test -z "$link_static_flag"; then
6877 # Neither direct hardcoding nor static linking is supported with a
6878 # broken collect2.
6879 hardcode_direct=unsupported
6880 fi
6881 ;;
6882
6883 aix4* | aix5*)
6884 if test "$host_cpu" = ia64; then
6885 # On IA64, the linker does run time linking by default, so we don't
6886 # have to do anything special.
6887 aix_use_runtimelinking=no
6888 exp_sym_flag='-Bexport'
6889 no_entry_flag=""
6890 else
6891 # If we're using GNU nm, then we don't want the "-C" option.
6892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894 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'
6895 else
6896 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'
6897 fi
6898 aix_use_runtimelinking=no
6899
6900 # Test if we are trying to use run time linking or normal
6901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6902 # need to do runtime linking.
6903 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6904 for ld_flag in $LDFLAGS; do
6905 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6906 aix_use_runtimelinking=yes
6907 break
6908 fi
6909 done
6910 esac
6911
6912 exp_sym_flag='-bexport'
6913 no_entry_flag='-bnoentry'
6914 fi
6915
6916 # When large executables or shared objects are built, AIX ld can
6917 # have problems creating the table of contents. If linking a library
6918 # or program results in "error TOC overflow" add -mminimal-toc to
6919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6921
6922 archive_cmds=''
6923 hardcode_direct=yes
6924 hardcode_libdir_separator=':'
6925 link_all_deplibs=yes
6926
6927 if test "$GCC" = yes; then
6928 case $host_os in aix4.012|aix4.012.*)
6929 # We only want to do this on AIX 4.2 and lower, the check
6930 # below for broken collect2 doesn't work under 4.3+
6931 collect2name=`${CC} -print-prog-name=collect2`
6932 if test -f "$collect2name" && \
6933 strings "$collect2name" | grep resolve_lib_name >/dev/null
6934 then
6935 # We have reworked collect2
6936 hardcode_direct=yes
6937 else
6938 # We have old collect2
6939 hardcode_direct=unsupported
6940 # It fails to find uninstalled libraries when the uninstalled
6941 # path is not listed in the libpath. Setting hardcode_minus_L
6942 # to unsupported forces relinking
6943 hardcode_minus_L=yes
6944 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_libdir_separator=
6946 fi
6947 esac
6948 shared_flag='-shared'
6949 else
6950 # not using gcc
6951 if test "$host_cpu" = ia64; then
6952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6953 # chokes on -Wl,-G. The following line is correct:
6954 shared_flag='-G'
6955 else
6956 if test "$aix_use_runtimelinking" = yes; then
6957 shared_flag='${wl}-G'
6958 else
6959 shared_flag='${wl}-bM:SRE'
6960 fi
6961 fi
6962 fi
6963
6964 # It seems that -bexpall does not export symbols beginning with
6965 # underscore (_), so it is better to generate a list of symbols to export.
6966 always_export_symbols=yes
6967 if test "$aix_use_runtimelinking" = yes; then
6968 # Warning - without using the other runtime loading flags (-brtl),
6969 # -berok will link without error, but may produce a broken library.
6970 allow_undefined_flag='-berok'
6971 # Determine the default libpath from the value encoded in an empty executable.
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978
6979 int
6980 main ()
6981 {
6982
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009
7010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7011 }'`
7012 # Check for a 64-bit object if we didn't find anything.
7013 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; }
7014 }'`; fi
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 fi
7020 rm -f conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7023
7024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7025 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"
7026 else
7027 if test "$host_cpu" = ia64; then
7028 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7029 allow_undefined_flag="-z nodefs"
7030 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"
7031 else
7032 # Determine the default libpath from the value encoded in an empty executable.
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039
7040 int
7041 main ()
7042 {
7043
7044 ;
7045 return 0;
7046 }
7047 _ACEOF
7048 rm -f conftest.$ac_objext conftest$ac_exeext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -z "$ac_c_werror_flag"
7058 || test ! -s conftest.err'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; } &&
7064 { ac_try='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070
7071 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7072 }'`
7073 # Check for a 64-bit object if we didn't find anything.
7074 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; }
7075 }'`; fi
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 fi
7081 rm -f conftest.err conftest.$ac_objext \
7082 conftest$ac_exeext conftest.$ac_ext
7083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7084
7085 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7086 # Warning - without using the other run time loading flags,
7087 # -berok will link without error, but may produce a broken library.
7088 no_undefined_flag=' ${wl}-bernotok'
7089 allow_undefined_flag=' ${wl}-berok'
7090 # -bexpall does not export symbols beginning with underscore (_)
7091 always_export_symbols=yes
7092 # Exported symbols can be pulled into shared objects from archives
7093 whole_archive_flag_spec=' '
7094 archive_cmds_need_lc=yes
7095 # This is similar to how AIX traditionally builds it's shared libraries.
7096 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'
7097 fi
7098 fi
7099 ;;
7100
7101 amigaos*)
7102 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)'
7103 hardcode_libdir_flag_spec='-L$libdir'
7104 hardcode_minus_L=yes
7105 # see comment about different semantics on the GNU ld section
7106 ld_shlibs=no
7107 ;;
7108
7109 bsdi4*)
7110 export_dynamic_flag_spec=-rdynamic
7111 ;;
7112
7113 cygwin* | mingw* | pw32*)
7114 # When not using gcc, we currently assume that we are using
7115 # Microsoft Visual C++.
7116 # hardcode_libdir_flag_spec is actually meaningless, as there is
7117 # no search path for DLLs.
7118 hardcode_libdir_flag_spec=' '
7119 allow_undefined_flag=unsupported
7120 # Tell ltmain to make .lib files, not .a files.
7121 libext=lib
7122 # Tell ltmain to make .dll files, not .so files.
7123 shrext=".dll"
7124 # FIXME: Setting linknames here is a bad hack.
7125 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7126 # The linker will automatically build a .lib file if we build a DLL.
7127 old_archive_From_new_cmds='true'
7128 # FIXME: Should let the user specify the lib program.
7129 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7130 fix_srcfile_path='`cygpath -w "$srcfile"`'
7131 enable_shared_with_static_runtimes=yes
7132 ;;
7133
7134 darwin* | rhapsody*)
7135 if test "$GXX" = yes ; then
7136 archive_cmds_need_lc=no
7137 case "$host_os" in
7138 rhapsody* | darwin1.[012])
7139 allow_undefined_flag='-undefined suppress'
7140 ;;
7141 *) # Darwin 1.3 on
7142 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7143 allow_undefined_flag='-flat_namespace -undefined suppress'
7144 else
7145 case ${MACOSX_DEPLOYMENT_TARGET} in
7146 10.[012])
7147 allow_undefined_flag='-flat_namespace -undefined suppress'
7148 ;;
7149 10.*)
7150 allow_undefined_flag='-undefined dynamic_lookup'
7151 ;;
7152 esac
7153 fi
7154 ;;
7155 esac
7156 lt_int_apple_cc_single_mod=no
7157 output_verbose_link_cmd='echo'
7158 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7159 lt_int_apple_cc_single_mod=yes
7160 fi
7161 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7162 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7163 else
7164 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'
7165 fi
7166 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7168 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7169 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}'
7170 else
7171 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}'
7172 fi
7173 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}'
7174 hardcode_direct=no
7175 hardcode_automatic=yes
7176 hardcode_shlibpath_var=unsupported
7177 whole_archive_flag_spec='-all_load $convenience'
7178 link_all_deplibs=yes
7179 else
7180 ld_shlibs=no
7181 fi
7182 ;;
7183
7184 dgux*)
7185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7186 hardcode_libdir_flag_spec='-L$libdir'
7187 hardcode_shlibpath_var=no
7188 ;;
7189
7190 freebsd1*)
7191 ld_shlibs=no
7192 ;;
7193
7194 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7195 # support. Future versions do this automatically, but an explicit c++rt0.o
7196 # does not break anything, and helps significantly (at the cost of a little
7197 # extra space).
7198 freebsd2.2*)
7199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7200 hardcode_libdir_flag_spec='-R$libdir'
7201 hardcode_direct=yes
7202 hardcode_shlibpath_var=no
7203 ;;
7204
7205 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7206 freebsd2*)
7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7208 hardcode_direct=yes
7209 hardcode_minus_L=yes
7210 hardcode_shlibpath_var=no
7211 ;;
7212
7213 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7214 freebsd* | kfreebsd*-gnu)
7215 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7216 hardcode_libdir_flag_spec='-R$libdir'
7217 hardcode_direct=yes
7218 hardcode_shlibpath_var=no
7219 ;;
7220
7221 hpux9*)
7222 if test "$GCC" = yes; then
7223 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'
7224 else
7225 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'
7226 fi
7227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7228 hardcode_libdir_separator=:
7229 hardcode_direct=yes
7230
7231 # hardcode_minus_L: Not really in the search PATH,
7232 # but as the default location of the library.
7233 hardcode_minus_L=yes
7234 export_dynamic_flag_spec='${wl}-E'
7235 ;;
7236
7237 hpux10* | hpux11*)
7238 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7239 case "$host_cpu" in
7240 hppa*64*|ia64*)
7241 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7242 ;;
7243 *)
7244 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7245 ;;
7246 esac
7247 else
7248 case "$host_cpu" in
7249 hppa*64*|ia64*)
7250 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7251 ;;
7252 *)
7253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7254 ;;
7255 esac
7256 fi
7257 if test "$with_gnu_ld" = no; then
7258 case "$host_cpu" in
7259 hppa*64*)
7260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7261 hardcode_libdir_flag_spec_ld='+b $libdir'
7262 hardcode_libdir_separator=:
7263 hardcode_direct=no
7264 hardcode_shlibpath_var=no
7265 ;;
7266 ia64*)
7267 hardcode_libdir_flag_spec='-L$libdir'
7268 hardcode_direct=no
7269 hardcode_shlibpath_var=no
7270
7271 # hardcode_minus_L: Not really in the search PATH,
7272 # but as the default location of the library.
7273 hardcode_minus_L=yes
7274 ;;
7275 *)
7276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 hardcode_direct=yes
7279 export_dynamic_flag_spec='${wl}-E'
7280
7281 # hardcode_minus_L: Not really in the search PATH,
7282 # but as the default location of the library.
7283 hardcode_minus_L=yes
7284 ;;
7285 esac
7286 fi
7287 ;;
7288
7289 irix5* | irix6* | nonstopux*)
7290 if test "$GCC" = yes; then
7291 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'
7292 else
7293 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'
7294 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7295 fi
7296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7297 hardcode_libdir_separator=:
7298 link_all_deplibs=yes
7299 ;;
7300
7301 netbsd*)
7302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7304 else
7305 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7306 fi
7307 hardcode_libdir_flag_spec='-R$libdir'
7308 hardcode_direct=yes
7309 hardcode_shlibpath_var=no
7310 ;;
7311
7312 newsos6)
7313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 hardcode_direct=yes
7315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7316 hardcode_libdir_separator=:
7317 hardcode_shlibpath_var=no
7318 ;;
7319
7320 openbsd*)
7321 hardcode_direct=yes
7322 hardcode_shlibpath_var=no
7323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7326 export_dynamic_flag_spec='${wl}-E'
7327 else
7328 case $host_os in
7329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_libdir_flag_spec='-R$libdir'
7332 ;;
7333 *)
7334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7336 ;;
7337 esac
7338 fi
7339 ;;
7340
7341 os2*)
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_minus_L=yes
7344 allow_undefined_flag=unsupported
7345 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'
7346 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7347 ;;
7348
7349 osf3*)
7350 if test "$GCC" = yes; then
7351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7352 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'
7353 else
7354 allow_undefined_flag=' -expect_unresolved \*'
7355 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'
7356 fi
7357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7358 hardcode_libdir_separator=:
7359 ;;
7360
7361 osf4* | osf5*) # as osf3* with the addition of -msym flag
7362 if test "$GCC" = yes; then
7363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7364 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'
7365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7366 else
7367 allow_undefined_flag=' -expect_unresolved \*'
7368 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'
7369 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7370 $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'
7371
7372 # Both c and cxx compiler support -rpath directly
7373 hardcode_libdir_flag_spec='-rpath $libdir'
7374 fi
7375 hardcode_libdir_separator=:
7376 ;;
7377
7378 sco3.2v5*)
7379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380 hardcode_shlibpath_var=no
7381 export_dynamic_flag_spec='${wl}-Bexport'
7382 runpath_var=LD_RUN_PATH
7383 hardcode_runpath_var=yes
7384 ;;
7385
7386 solaris*)
7387 no_undefined_flag=' -z text'
7388 if test "$GCC" = yes; then
7389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7392 else
7393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7396 fi
7397 hardcode_libdir_flag_spec='-R$libdir'
7398 hardcode_shlibpath_var=no
7399 case $host_os in
7400 solaris2.[0-5] | solaris2.[0-5].*) ;;
7401 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7402 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7403 esac
7404 link_all_deplibs=yes
7405 ;;
7406
7407 sunos4*)
7408 if test "x$host_vendor" = xsequent; then
7409 # Use $CC to link under sequent, because it throws in some extra .o
7410 # files that make .init and .fini sections work.
7411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7412 else
7413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7414 fi
7415 hardcode_libdir_flag_spec='-L$libdir'
7416 hardcode_direct=yes
7417 hardcode_minus_L=yes
7418 hardcode_shlibpath_var=no
7419 ;;
7420
7421 sysv4)
7422 case $host_vendor in
7423 sni)
7424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_direct=yes # is this really true???
7426 ;;
7427 siemens)
7428 ## LD is ld it makes a PLAMLIB
7429 ## CC just makes a GrossModule.
7430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7431 reload_cmds='$CC -r -o $output$reload_objs'
7432 hardcode_direct=no
7433 ;;
7434 motorola)
7435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7437 ;;
7438 esac
7439 runpath_var='LD_RUN_PATH'
7440 hardcode_shlibpath_var=no
7441 ;;
7442
7443 sysv4.3*)
7444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7445 hardcode_shlibpath_var=no
7446 export_dynamic_flag_spec='-Bexport'
7447 ;;
7448
7449 sysv4*MP*)
7450 if test -d /usr/nec; then
7451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452 hardcode_shlibpath_var=no
7453 runpath_var=LD_RUN_PATH
7454 hardcode_runpath_var=yes
7455 ld_shlibs=yes
7456 fi
7457 ;;
7458
7459 sysv4.2uw2*)
7460 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7461 hardcode_direct=yes
7462 hardcode_minus_L=no
7463 hardcode_shlibpath_var=no
7464 hardcode_runpath_var=yes
7465 runpath_var=LD_RUN_PATH
7466 ;;
7467
7468 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7469 no_undefined_flag='${wl}-z ${wl}text'
7470 if test "$GCC" = yes; then
7471 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7472 else
7473 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474 fi
7475 runpath_var='LD_RUN_PATH'
7476 hardcode_shlibpath_var=no
7477 ;;
7478
7479 sysv5*)
7480 no_undefined_flag=' -z text'
7481 # $CC -shared without GNU ld will not create a library from C++
7482 # object files and a static libstdc++, better avoid it by now
7483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7486 hardcode_libdir_flag_spec=
7487 hardcode_shlibpath_var=no
7488 runpath_var='LD_RUN_PATH'
7489 ;;
7490
7491 uts4*)
7492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7493 hardcode_libdir_flag_spec='-L$libdir'
7494 hardcode_shlibpath_var=no
7495 ;;
7496
7497 *)
7498 ld_shlibs=no
7499 ;;
7500 esac
7501 fi
7502
7503 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7504 echo "${ECHO_T}$ld_shlibs" >&6
7505 test "$ld_shlibs" = no && can_build_shared=no
7506
7507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7508 if test "$GCC" = yes; then
7509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7510 fi
7511
7512 #
7513 # Do we need to explicitly link libc?
7514 #
7515 case "x$archive_cmds_need_lc" in
7516 x|xyes)
7517 # Assume -lc should be added
7518 archive_cmds_need_lc=yes
7519
7520 if test "$enable_shared" = yes && test "$GCC" = yes; then
7521 case $archive_cmds in
7522 *'~'*)
7523 # FIXME: we may have to deal with multi-command sequences.
7524 ;;
7525 '$CC '*)
7526 # Test whether the compiler implicitly links with -lc since on some
7527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7528 # to ld, don't add -lc before -lgcc.
7529 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7530 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7531 $rm conftest*
7532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7533
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } 2>conftest.err; then
7539 soname=conftest
7540 lib=conftest
7541 libobjs=conftest.$ac_objext
7542 deplibs=
7543 wl=$lt_prog_compiler_wl
7544 compiler_flags=-v
7545 linker_flags=-v
7546 verstring=
7547 output_objdir=.
7548 libname=conftest
7549 lt_save_allow_undefined_flag=$allow_undefined_flag
7550 allow_undefined_flag=
7551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7552 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }
7556 then
7557 archive_cmds_need_lc=no
7558 else
7559 archive_cmds_need_lc=yes
7560 fi
7561 allow_undefined_flag=$lt_save_allow_undefined_flag
7562 else
7563 cat conftest.err 1>&5
7564 fi
7565 $rm conftest*
7566 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7567 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7568 ;;
7569 esac
7570 fi
7571 ;;
7572 esac
7573
7574 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7576 library_names_spec=
7577 libname_spec='lib$name'
7578 soname_spec=
7579 shrext=".so"
7580 postinstall_cmds=
7581 postuninstall_cmds=
7582 finish_cmds=
7583 finish_eval=
7584 shlibpath_var=
7585 shlibpath_overrides_runpath=unknown
7586 version_type=none
7587 dynamic_linker="$host_os ld.so"
7588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7589 if test "$GCC" = yes; then
7590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7591 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7592 # if the path contains ";" then we assume it to be the separator
7593 # otherwise default to the standard path separator (i.e. ":") - it is
7594 # assumed that no part of a normal pathname contains ";" but that should
7595 # okay in the real world where ";" in dirpaths is itself problematic.
7596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7597 else
7598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7599 fi
7600 else
7601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7602 fi
7603 need_lib_prefix=unknown
7604 hardcode_into_libs=no
7605
7606 # when you set need_version to no, make sure it does not cause -set_version
7607 # flags to be left without arguments
7608 need_version=unknown
7609
7610 case $host_os in
7611 aix3*)
7612 version_type=linux
7613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7614 shlibpath_var=LIBPATH
7615
7616 # AIX 3 has no versioning support, so we append a major version to the name.
7617 soname_spec='${libname}${release}${shared_ext}$major'
7618 ;;
7619
7620 aix4* | aix5*)
7621 version_type=linux
7622 need_lib_prefix=no
7623 need_version=no
7624 hardcode_into_libs=yes
7625 if test "$host_cpu" = ia64; then
7626 # AIX 5 supports IA64
7627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7628 shlibpath_var=LD_LIBRARY_PATH
7629 else
7630 # With GCC up to 2.95.x, collect2 would create an import file
7631 # for dependence libraries. The import file would start with
7632 # the line `#! .'. This would cause the generated library to
7633 # depend on `.', always an invalid library. This was fixed in
7634 # development snapshots of GCC prior to 3.0.
7635 case $host_os in
7636 aix4 | aix4.[01] | aix4.[01].*)
7637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7638 echo ' yes '
7639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7640 :
7641 else
7642 can_build_shared=no
7643 fi
7644 ;;
7645 esac
7646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7647 # soname into executable. Probably we can add versioning support to
7648 # collect2, so additional links can be useful in future.
7649 if test "$aix_use_runtimelinking" = yes; then
7650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7651 # instead of lib<name>.a to let people know that these are not
7652 # typical AIX shared libraries.
7653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 else
7655 # We preserve .a as extension for shared libraries through AIX4.2
7656 # and later when we are not doing run time linking.
7657 library_names_spec='${libname}${release}.a $libname.a'
7658 soname_spec='${libname}${release}${shared_ext}$major'
7659 fi
7660 shlibpath_var=LIBPATH
7661 fi
7662 ;;
7663
7664 amigaos*)
7665 library_names_spec='$libname.ixlibrary $libname.a'
7666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7667 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'
7668 ;;
7669
7670 beos*)
7671 library_names_spec='${libname}${shared_ext}'
7672 dynamic_linker="$host_os ld.so"
7673 shlibpath_var=LIBRARY_PATH
7674 ;;
7675
7676 bsdi4*)
7677 version_type=linux
7678 need_version=no
7679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7680 soname_spec='${libname}${release}${shared_ext}$major'
7681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7682 shlibpath_var=LD_LIBRARY_PATH
7683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7685 # the default ld.so.conf also contains /usr/contrib/lib and
7686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7687 # libtool to hard-code these into programs
7688 ;;
7689
7690 cygwin* | mingw* | pw32*)
7691 version_type=windows
7692 shrext=".dll"
7693 need_version=no
7694 need_lib_prefix=no
7695
7696 case $GCC,$host_os in
7697 yes,cygwin* | yes,mingw* | yes,pw32*)
7698 library_names_spec='$libname.dll.a'
7699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7700 postinstall_cmds='base_file=`basename \${file}`~
7701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7702 dldir=$destdir/`dirname \$dlpath`~
7703 test -d \$dldir || mkdir -p \$dldir~
7704 $install_prog $dir/$dlname \$dldir/$dlname'
7705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7706 dlpath=$dir/\$dldll~
7707 $rm \$dlpath'
7708 shlibpath_overrides_runpath=yes
7709
7710 case $host_os in
7711 cygwin*)
7712 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7713 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7714 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7715 ;;
7716 mingw*)
7717 # MinGW DLLs use traditional 'lib' prefix
7718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7720 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7721 # It is most probably a Windows format PATH printed by
7722 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7723 # path with ; separators, and with drive letters. We can handle the
7724 # drive letters (cygwin fileutils understands them), so leave them,
7725 # especially as we might pass files found there to a mingw objdump,
7726 # which wouldn't understand a cygwinified path. Ahh.
7727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7728 else
7729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7730 fi
7731 ;;
7732 pw32*)
7733 # pw32 DLLs use 'pw' prefix rather than 'lib'
7734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7735 ;;
7736 esac
7737 ;;
7738
7739 *)
7740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7741 ;;
7742 esac
7743 dynamic_linker='Win32 ld.exe'
7744 # FIXME: first we should search . and the directory the executable is in
7745 shlibpath_var=PATH
7746 ;;
7747
7748 darwin* | rhapsody*)
7749 dynamic_linker="$host_os dyld"
7750 version_type=darwin
7751 need_lib_prefix=no
7752 need_version=no
7753 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7754 soname_spec='${libname}${release}${major}$shared_ext'
7755 shlibpath_overrides_runpath=yes
7756 shlibpath_var=DYLD_LIBRARY_PATH
7757 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7758 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7759 if test "$GCC" = yes; then
7760 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"`
7761 else
7762 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7763 fi
7764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7765 ;;
7766
7767 dgux*)
7768 version_type=linux
7769 need_lib_prefix=no
7770 need_version=no
7771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7772 soname_spec='${libname}${release}${shared_ext}$major'
7773 shlibpath_var=LD_LIBRARY_PATH
7774 ;;
7775
7776 freebsd1*)
7777 dynamic_linker=no
7778 ;;
7779
7780 kfreebsd*-gnu)
7781 version_type=linux
7782 need_lib_prefix=no
7783 need_version=no
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7785 soname_spec='${libname}${release}${shared_ext}$major'
7786 shlibpath_var=LD_LIBRARY_PATH
7787 shlibpath_overrides_runpath=no
7788 hardcode_into_libs=yes
7789 dynamic_linker='GNU ld.so'
7790 ;;
7791
7792 freebsd*)
7793 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7794 version_type=freebsd-$objformat
7795 case $version_type in
7796 freebsd-elf*)
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7798 need_version=no
7799 need_lib_prefix=no
7800 ;;
7801 freebsd-*)
7802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7803 need_version=yes
7804 ;;
7805 esac
7806 shlibpath_var=LD_LIBRARY_PATH
7807 case $host_os in
7808 freebsd2*)
7809 shlibpath_overrides_runpath=yes
7810 ;;
7811 freebsd3.01* | freebsdelf3.01*)
7812 shlibpath_overrides_runpath=yes
7813 hardcode_into_libs=yes
7814 ;;
7815 *) # from 3.2 on
7816 shlibpath_overrides_runpath=no
7817 hardcode_into_libs=yes
7818 ;;
7819 esac
7820 ;;
7821
7822 gnu*)
7823 version_type=linux
7824 need_lib_prefix=no
7825 need_version=no
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 shlibpath_var=LD_LIBRARY_PATH
7829 hardcode_into_libs=yes
7830 ;;
7831
7832 hpux9* | hpux10* | hpux11*)
7833 # Give a soname corresponding to the major version so that dld.sl refuses to
7834 # link against other versions.
7835 version_type=sunos
7836 need_lib_prefix=no
7837 need_version=no
7838 case "$host_cpu" in
7839 ia64*)
7840 shrext='.so'
7841 hardcode_into_libs=yes
7842 dynamic_linker="$host_os dld.so"
7843 shlibpath_var=LD_LIBRARY_PATH
7844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 soname_spec='${libname}${release}${shared_ext}$major'
7847 if test "X$HPUX_IA64_MODE" = X32; then
7848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7849 else
7850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7851 fi
7852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7853 ;;
7854 hppa*64*)
7855 shrext='.sl'
7856 hardcode_into_libs=yes
7857 dynamic_linker="$host_os dld.sl"
7858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7864 ;;
7865 *)
7866 shrext='.sl'
7867 dynamic_linker="$host_os dld.sl"
7868 shlibpath_var=SHLIB_PATH
7869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec='${libname}${release}${shared_ext}$major'
7872 ;;
7873 esac
7874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7875 postinstall_cmds='chmod 555 $lib'
7876 ;;
7877
7878 irix5* | irix6* | nonstopux*)
7879 case $host_os in
7880 nonstopux*) version_type=nonstopux ;;
7881 *)
7882 if test "$lt_cv_prog_gnu_ld" = yes; then
7883 version_type=linux
7884 else
7885 version_type=irix
7886 fi ;;
7887 esac
7888 need_lib_prefix=no
7889 need_version=no
7890 soname_spec='${libname}${release}${shared_ext}$major'
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7892 case $host_os in
7893 irix5* | nonstopux*)
7894 libsuff= shlibsuff=
7895 ;;
7896 *)
7897 case $LD in # libtool.m4 will add one of these switches to LD
7898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7899 libsuff= shlibsuff= libmagic=32-bit;;
7900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7901 libsuff=32 shlibsuff=N32 libmagic=N32;;
7902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7904 *) libsuff= shlibsuff= libmagic=never-match;;
7905 esac
7906 ;;
7907 esac
7908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7909 shlibpath_overrides_runpath=no
7910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7912 hardcode_into_libs=yes
7913 ;;
7914
7915 # No shared lib support for Linux oldld, aout, or coff.
7916 linux*oldld* | linux*aout* | linux*coff*)
7917 dynamic_linker=no
7918 ;;
7919
7920 # This must be Linux ELF.
7921 linux*)
7922 version_type=linux
7923 need_lib_prefix=no
7924 need_version=no
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7926 soname_spec='${libname}${release}${shared_ext}$major'
7927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7928 shlibpath_var=LD_LIBRARY_PATH
7929 shlibpath_overrides_runpath=no
7930 # This implies no fast_install, which is unacceptable.
7931 # Some rework will be needed to allow for fast_install
7932 # before this can be enabled.
7933 hardcode_into_libs=yes
7934
7935 # Append ld.so.conf contents to the search path
7936 if test -f /etc/ld.so.conf; then
7937 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7938 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7939 fi
7940
7941 # We used to test for /lib/ld.so.1 and disable shared libraries on
7942 # powerpc, because MkLinux only supported shared libraries with the
7943 # GNU dynamic linker. Since this was broken with cross compilers,
7944 # most powerpc-linux boxes support dynamic linking these days and
7945 # people can always --disable-shared, the test was removed, and we
7946 # assume the GNU/Linux dynamic linker is in use.
7947 dynamic_linker='GNU/Linux ld.so'
7948 ;;
7949
7950 knetbsd*-gnu)
7951 version_type=linux
7952 need_lib_prefix=no
7953 need_version=no
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955 soname_spec='${libname}${release}${shared_ext}$major'
7956 shlibpath_var=LD_LIBRARY_PATH
7957 shlibpath_overrides_runpath=no
7958 hardcode_into_libs=yes
7959 dynamic_linker='GNU ld.so'
7960 ;;
7961
7962 netbsd*)
7963 version_type=sunos
7964 need_lib_prefix=no
7965 need_version=no
7966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7969 dynamic_linker='NetBSD (a.out) ld.so'
7970 else
7971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7972 soname_spec='${libname}${release}${shared_ext}$major'
7973 dynamic_linker='NetBSD ld.elf_so'
7974 fi
7975 shlibpath_var=LD_LIBRARY_PATH
7976 shlibpath_overrides_runpath=yes
7977 hardcode_into_libs=yes
7978 ;;
7979
7980 newsos6)
7981 version_type=linux
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983 shlibpath_var=LD_LIBRARY_PATH
7984 shlibpath_overrides_runpath=yes
7985 ;;
7986
7987 nto-qnx*)
7988 version_type=linux
7989 need_lib_prefix=no
7990 need_version=no
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes
7995 ;;
7996
7997 openbsd*)
7998 version_type=sunos
7999 need_lib_prefix=no
8000 need_version=yes
8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8005 case $host_os in
8006 openbsd2.[89] | openbsd2.[89].*)
8007 shlibpath_overrides_runpath=no
8008 ;;
8009 *)
8010 shlibpath_overrides_runpath=yes
8011 ;;
8012 esac
8013 else
8014 shlibpath_overrides_runpath=yes
8015 fi
8016 ;;
8017
8018 os2*)
8019 libname_spec='$name'
8020 shrext=".dll"
8021 need_lib_prefix=no
8022 library_names_spec='$libname${shared_ext} $libname.a'
8023 dynamic_linker='OS/2 ld.exe'
8024 shlibpath_var=LIBPATH
8025 ;;
8026
8027 osf3* | osf4* | osf5*)
8028 version_type=osf
8029 need_lib_prefix=no
8030 need_version=no
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 shlibpath_var=LD_LIBRARY_PATH
8034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8036 ;;
8037
8038 sco3.2v5*)
8039 version_type=osf
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 ;;
8044
8045 solaris*)
8046 version_type=linux
8047 need_lib_prefix=no
8048 need_version=no
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050 soname_spec='${libname}${release}${shared_ext}$major'
8051 shlibpath_var=LD_LIBRARY_PATH
8052 shlibpath_overrides_runpath=yes
8053 hardcode_into_libs=yes
8054 # ldd complains unless libraries are executable
8055 postinstall_cmds='chmod +x $lib'
8056 ;;
8057
8058 sunos4*)
8059 version_type=sunos
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8062 shlibpath_var=LD_LIBRARY_PATH
8063 shlibpath_overrides_runpath=yes
8064 if test "$with_gnu_ld" = yes; then
8065 need_lib_prefix=no
8066 fi
8067 need_version=yes
8068 ;;
8069
8070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8071 version_type=linux
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8073 soname_spec='${libname}${release}${shared_ext}$major'
8074 shlibpath_var=LD_LIBRARY_PATH
8075 case $host_vendor in
8076 sni)
8077 shlibpath_overrides_runpath=no
8078 need_lib_prefix=no
8079 export_dynamic_flag_spec='${wl}-Blargedynsym'
8080 runpath_var=LD_RUN_PATH
8081 ;;
8082 siemens)
8083 need_lib_prefix=no
8084 ;;
8085 motorola)
8086 need_lib_prefix=no
8087 need_version=no
8088 shlibpath_overrides_runpath=no
8089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8090 ;;
8091 esac
8092 ;;
8093
8094 sysv4*MP*)
8095 if test -d /usr/nec ;then
8096 version_type=linux
8097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8098 soname_spec='$libname${shared_ext}.$major'
8099 shlibpath_var=LD_LIBRARY_PATH
8100 fi
8101 ;;
8102
8103 uts4*)
8104 version_type=linux
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106 soname_spec='${libname}${release}${shared_ext}$major'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 ;;
8109
8110 *)
8111 dynamic_linker=no
8112 ;;
8113 esac
8114 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8115 echo "${ECHO_T}$dynamic_linker" >&6
8116 test "$dynamic_linker" = no && can_build_shared=no
8117
8118 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8119 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8120 hardcode_action=
8121 if test -n "$hardcode_libdir_flag_spec" || \
8122 test -n "$runpath_var " || \
8123 test "X$hardcode_automatic"="Xyes" ; then
8124
8125 # We can hardcode non-existant directories.
8126 if test "$hardcode_direct" != no &&
8127 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8128 # have to relink, otherwise we might link with an installed library
8129 # when we should be linking with a yet-to-be-installed one
8130 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8131 test "$hardcode_minus_L" != no; then
8132 # Linking always hardcodes the temporary library directory.
8133 hardcode_action=relink
8134 else
8135 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8136 hardcode_action=immediate
8137 fi
8138 else
8139 # We cannot hardcode anything, or else we can only hardcode existing
8140 # directories.
8141 hardcode_action=unsupported
8142 fi
8143 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8144 echo "${ECHO_T}$hardcode_action" >&6
8145
8146 if test "$hardcode_action" = relink; then
8147 # Fast installation is not supported
8148 enable_fast_install=no
8149 elif test "$shlibpath_overrides_runpath" = yes ||
8150 test "$enable_shared" = no; then
8151 # Fast installation is not necessary
8152 enable_fast_install=needless
8153 fi
8154
8155 striplib=
8156 old_striplib=
8157 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8158 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8159 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8160 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8161 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8162 echo "$as_me:$LINENO: result: yes" >&5
8163 echo "${ECHO_T}yes" >&6
8164 else
8165 # FIXME - insert some real tests, host_os isn't really good enough
8166 case $host_os in
8167 darwin*)
8168 if test -n "$STRIP" ; then
8169 striplib="$STRIP -x"
8170 echo "$as_me:$LINENO: result: yes" >&5
8171 echo "${ECHO_T}yes" >&6
8172 else
8173 echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6
8175 fi
8176 ;;
8177 *)
8178 echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6
8180 ;;
8181 esac
8182 fi
8183
8184 if test "x$enable_dlopen" != xyes; then
8185 enable_dlopen=unknown
8186 enable_dlopen_self=unknown
8187 enable_dlopen_self_static=unknown
8188 else
8189 lt_cv_dlopen=no
8190 lt_cv_dlopen_libs=
8191
8192 case $host_os in
8193 beos*)
8194 lt_cv_dlopen="load_add_on"
8195 lt_cv_dlopen_libs=
8196 lt_cv_dlopen_self=yes
8197 ;;
8198
8199 mingw* | pw32*)
8200 lt_cv_dlopen="LoadLibrary"
8201 lt_cv_dlopen_libs=
8202 ;;
8203
8204 cygwin*)
8205 lt_cv_dlopen="dlopen"
8206 lt_cv_dlopen_libs=
8207 ;;
8208
8209 darwin*)
8210 # if libdl is installed we need to link against it
8211 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8212 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-ldl $LIBS"
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char dlopen ();
8232 int
8233 main ()
8234 {
8235 dlopen ();
8236 ;
8237 return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_c_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_lib_dl_dlopen=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_cv_lib_dl_dlopen=no
8268 fi
8269 rm -f conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8274 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8275 if test $ac_cv_lib_dl_dlopen = yes; then
8276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8277 else
8278
8279 lt_cv_dlopen="dyld"
8280 lt_cv_dlopen_libs=
8281 lt_cv_dlopen_self=yes
8282
8283 fi
8284
8285 ;;
8286
8287 *)
8288 echo "$as_me:$LINENO: checking for shl_load" >&5
8289 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8290 if test "${ac_cv_func_shl_load+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8301 #define shl_load innocuous_shl_load
8302
8303 /* System header to define __stub macros and hopefully few prototypes,
8304 which can conflict with char shl_load (); below.
8305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306 <limits.h> exists even on freestanding compilers. */
8307
8308 #ifdef __STDC__
8309 # include <limits.h>
8310 #else
8311 # include <assert.h>
8312 #endif
8313
8314 #undef shl_load
8315
8316 /* Override any gcc2 internal prototype to avoid an error. */
8317 #ifdef __cplusplus
8318 extern "C"
8319 {
8320 #endif
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323 char shl_load ();
8324 /* The GNU C library defines this for functions which it implements
8325 to always fail with ENOSYS. Some functions are actually named
8326 something starting with __ and the normal name is an alias. */
8327 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8328 choke me
8329 #else
8330 char (*f) () = shl_load;
8331 #endif
8332 #ifdef __cplusplus
8333 }
8334 #endif
8335
8336 int
8337 main ()
8338 {
8339 return f != shl_load;
8340 ;
8341 return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_c_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_cv_func_shl_load=yes
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 ac_cv_func_shl_load=no
8372 fi
8373 rm -f conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8377 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8378 if test $ac_cv_func_shl_load = yes; then
8379 lt_cv_dlopen="shl_load"
8380 else
8381 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8382 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8383 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-ldld $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394
8395 /* Override any gcc2 internal prototype to avoid an error. */
8396 #ifdef __cplusplus
8397 extern "C"
8398 #endif
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401 char shl_load ();
8402 int
8403 main ()
8404 {
8405 shl_load ();
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412 (eval $ac_link) 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_dld_shl_load=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_lib_dld_shl_load=no
8438 fi
8439 rm -f conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8444 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8445 if test $ac_cv_lib_dld_shl_load = yes; then
8446 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8447 else
8448 echo "$as_me:$LINENO: checking for dlopen" >&5
8449 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8450 if test "${ac_cv_func_dlopen+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8461 #define dlopen innocuous_dlopen
8462
8463 /* System header to define __stub macros and hopefully few prototypes,
8464 which can conflict with char dlopen (); below.
8465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8466 <limits.h> exists even on freestanding compilers. */
8467
8468 #ifdef __STDC__
8469 # include <limits.h>
8470 #else
8471 # include <assert.h>
8472 #endif
8473
8474 #undef dlopen
8475
8476 /* Override any gcc2 internal prototype to avoid an error. */
8477 #ifdef __cplusplus
8478 extern "C"
8479 {
8480 #endif
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483 char dlopen ();
8484 /* The GNU C library defines this for functions which it implements
8485 to always fail with ENOSYS. Some functions are actually named
8486 something starting with __ and the normal name is an alias. */
8487 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8488 choke me
8489 #else
8490 char (*f) () = dlopen;
8491 #endif
8492 #ifdef __cplusplus
8493 }
8494 #endif
8495
8496 int
8497 main ()
8498 {
8499 return f != dlopen;
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag"
8514 || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_func_dlopen=yes
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_func_dlopen=no
8532 fi
8533 rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8537 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8538 if test $ac_cv_func_dlopen = yes; then
8539 lt_cv_dlopen="dlopen"
8540 else
8541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 ac_check_lib_save_LIBS=$LIBS
8547 LIBS="-ldl $LIBS"
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561 char dlopen ();
8562 int
8563 main ()
8564 {
8565 dlopen ();
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572 (eval $ac_link) 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag"
8580 || test ! -s conftest.err'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest$ac_exeext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_cv_lib_dl_dlopen=yes
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597 ac_cv_lib_dl_dlopen=no
8598 fi
8599 rm -f conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8602 fi
8603 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8605 if test $ac_cv_lib_dl_dlopen = yes; then
8606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8607 else
8608 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8609 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8610 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 ac_check_lib_save_LIBS=$LIBS
8614 LIBS="-lsvld $LIBS"
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621
8622 /* Override any gcc2 internal prototype to avoid an error. */
8623 #ifdef __cplusplus
8624 extern "C"
8625 #endif
8626 /* We use char because int might match the return type of a gcc2
8627 builtin and then its argument prototype would still apply. */
8628 char dlopen ();
8629 int
8630 main ()
8631 {
8632 dlopen ();
8633 ;
8634 return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag"
8647 || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_lib_svld_dlopen=yes
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 ac_cv_lib_svld_dlopen=no
8665 fi
8666 rm -f conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668 LIBS=$ac_check_lib_save_LIBS
8669 fi
8670 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8671 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8672 if test $ac_cv_lib_svld_dlopen = yes; then
8673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8674 else
8675 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8676 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8677 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-ldld $LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695 char dld_link ();
8696 int
8697 main ()
8698 {
8699 dld_link ();
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_lib_dld_dld_link=yes
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_cv_lib_dld_dld_link=no
8732 fi
8733 rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8739 if test $ac_cv_lib_dld_dld_link = yes; then
8740 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8741 fi
8742
8743
8744 fi
8745
8746
8747 fi
8748
8749
8750 fi
8751
8752
8753 fi
8754
8755
8756 fi
8757
8758 ;;
8759 esac
8760
8761 if test "x$lt_cv_dlopen" != xno; then
8762 enable_dlopen=yes
8763 else
8764 enable_dlopen=no
8765 fi
8766
8767 case $lt_cv_dlopen in
8768 dlopen)
8769 save_CPPFLAGS="$CPPFLAGS"
8770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8771
8772 save_LDFLAGS="$LDFLAGS"
8773 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8774
8775 save_LIBS="$LIBS"
8776 LIBS="$lt_cv_dlopen_libs $LIBS"
8777
8778 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8779 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8780 if test "${lt_cv_dlopen_self+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 if test "$cross_compiling" = yes; then :
8784 lt_cv_dlopen_self=cross
8785 else
8786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8787 lt_status=$lt_dlunknown
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8789 "configure"
8790 #include "confdefs.h"
8791
8792 #if HAVE_DLFCN_H
8793 #include <dlfcn.h>
8794 #endif
8795
8796 #include <stdio.h>
8797
8798 #ifdef RTLD_GLOBAL
8799 # define LT_DLGLOBAL RTLD_GLOBAL
8800 #else
8801 # ifdef DL_GLOBAL
8802 # define LT_DLGLOBAL DL_GLOBAL
8803 # else
8804 # define LT_DLGLOBAL 0
8805 # endif
8806 #endif
8807
8808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8809 find out it does not work in some platform. */
8810 #ifndef LT_DLLAZY_OR_NOW
8811 # ifdef RTLD_LAZY
8812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8813 # else
8814 # ifdef DL_LAZY
8815 # define LT_DLLAZY_OR_NOW DL_LAZY
8816 # else
8817 # ifdef RTLD_NOW
8818 # define LT_DLLAZY_OR_NOW RTLD_NOW
8819 # else
8820 # ifdef DL_NOW
8821 # define LT_DLLAZY_OR_NOW DL_NOW
8822 # else
8823 # define LT_DLLAZY_OR_NOW 0
8824 # endif
8825 # endif
8826 # endif
8827 # endif
8828 #endif
8829
8830 #ifdef __cplusplus
8831 extern "C" void exit (int);
8832 #endif
8833
8834 void fnord() { int i=42;}
8835 int main ()
8836 {
8837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8838 int status = $lt_dlunknown;
8839
8840 if (self)
8841 {
8842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8844 /* dlclose (self); */
8845 }
8846
8847 exit (status);
8848 }
8849 EOF
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8855 (./conftest; exit; ) 2>/dev/null
8856 lt_status=$?
8857 case x$lt_status in
8858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8860 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8861 esac
8862 else :
8863 # compilation failed
8864 lt_cv_dlopen_self=no
8865 fi
8866 fi
8867 rm -fr conftest*
8868
8869
8870 fi
8871 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8872 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8873
8874 if test "x$lt_cv_dlopen_self" = xyes; then
8875 LDFLAGS="$LDFLAGS $link_static_flag"
8876 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8877 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8878 if test "${lt_cv_dlopen_self_static+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 if test "$cross_compiling" = yes; then :
8882 lt_cv_dlopen_self_static=cross
8883 else
8884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8885 lt_status=$lt_dlunknown
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8887 "configure"
8888 #include "confdefs.h"
8889
8890 #if HAVE_DLFCN_H
8891 #include <dlfcn.h>
8892 #endif
8893
8894 #include <stdio.h>
8895
8896 #ifdef RTLD_GLOBAL
8897 # define LT_DLGLOBAL RTLD_GLOBAL
8898 #else
8899 # ifdef DL_GLOBAL
8900 # define LT_DLGLOBAL DL_GLOBAL
8901 # else
8902 # define LT_DLGLOBAL 0
8903 # endif
8904 #endif
8905
8906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8907 find out it does not work in some platform. */
8908 #ifndef LT_DLLAZY_OR_NOW
8909 # ifdef RTLD_LAZY
8910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8911 # else
8912 # ifdef DL_LAZY
8913 # define LT_DLLAZY_OR_NOW DL_LAZY
8914 # else
8915 # ifdef RTLD_NOW
8916 # define LT_DLLAZY_OR_NOW RTLD_NOW
8917 # else
8918 # ifdef DL_NOW
8919 # define LT_DLLAZY_OR_NOW DL_NOW
8920 # else
8921 # define LT_DLLAZY_OR_NOW 0
8922 # endif
8923 # endif
8924 # endif
8925 # endif
8926 #endif
8927
8928 #ifdef __cplusplus
8929 extern "C" void exit (int);
8930 #endif
8931
8932 void fnord() { int i=42;}
8933 int main ()
8934 {
8935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8936 int status = $lt_dlunknown;
8937
8938 if (self)
8939 {
8940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8941 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8942 /* dlclose (self); */
8943 }
8944
8945 exit (status);
8946 }
8947 EOF
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8953 (./conftest; exit; ) 2>/dev/null
8954 lt_status=$?
8955 case x$lt_status in
8956 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8957 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8958 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8959 esac
8960 else :
8961 # compilation failed
8962 lt_cv_dlopen_self_static=no
8963 fi
8964 fi
8965 rm -fr conftest*
8966
8967
8968 fi
8969 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8970 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8971 fi
8972
8973 CPPFLAGS="$save_CPPFLAGS"
8974 LDFLAGS="$save_LDFLAGS"
8975 LIBS="$save_LIBS"
8976 ;;
8977 esac
8978
8979 case $lt_cv_dlopen_self in
8980 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8981 *) enable_dlopen_self=unknown ;;
8982 esac
8983
8984 case $lt_cv_dlopen_self_static in
8985 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8986 *) enable_dlopen_self_static=unknown ;;
8987 esac
8988 fi
8989
8990
8991 # Report which librarie types wil actually be built
8992 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8993 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8994 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8995 echo "${ECHO_T}$can_build_shared" >&6
8996
8997 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8998 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8999 test "$can_build_shared" = "no" && enable_shared=no
9000
9001 # On AIX, shared libraries and static libraries use the same namespace, and
9002 # are all built from PIC.
9003 case "$host_os" in
9004 aix3*)
9005 test "$enable_shared" = yes && enable_static=no
9006 if test -n "$RANLIB"; then
9007 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9008 postinstall_cmds='$RANLIB $lib'
9009 fi
9010 ;;
9011
9012 aix4*)
9013 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9014 test "$enable_shared" = yes && enable_static=no
9015 fi
9016 ;;
9017 darwin* | rhapsody*)
9018 if test "$GCC" = yes; then
9019 archive_cmds_need_lc=no
9020 case "$host_os" in
9021 rhapsody* | darwin1.[012])
9022 allow_undefined_flag='-undefined suppress'
9023 ;;
9024 *) # Darwin 1.3 on
9025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9026 allow_undefined_flag='-flat_namespace -undefined suppress'
9027 else
9028 case ${MACOSX_DEPLOYMENT_TARGET} in
9029 10.[012])
9030 allow_undefined_flag='-flat_namespace -undefined suppress'
9031 ;;
9032 10.*)
9033 allow_undefined_flag='-undefined dynamic_lookup'
9034 ;;
9035 esac
9036 fi
9037 ;;
9038 esac
9039 output_verbose_link_cmd='echo'
9040 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9041 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9043 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}'
9044 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}'
9045 hardcode_direct=no
9046 hardcode_automatic=yes
9047 hardcode_shlibpath_var=unsupported
9048 whole_archive_flag_spec='-all_load $convenience'
9049 link_all_deplibs=yes
9050 else
9051 ld_shlibs=no
9052 fi
9053 ;;
9054 esac
9055 echo "$as_me:$LINENO: result: $enable_shared" >&5
9056 echo "${ECHO_T}$enable_shared" >&6
9057
9058 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9059 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9060 # Make sure either enable_shared or enable_static is yes.
9061 test "$enable_shared" = yes || enable_static=yes
9062 echo "$as_me:$LINENO: result: $enable_static" >&5
9063 echo "${ECHO_T}$enable_static" >&6
9064
9065 # The else clause should only fire when bootstrapping the
9066 # libtool distribution, otherwise you forgot to ship ltmain.sh
9067 # with your package, and you will get complaints that there are
9068 # no rules to generate ltmain.sh.
9069 if test -f "$ltmain"; then
9070 # See if we are running on zsh, and set the options which allow our commands through
9071 # without removal of \ escapes.
9072 if test -n "${ZSH_VERSION+set}" ; then
9073 setopt NO_GLOB_SUBST
9074 fi
9075 # Now quote all the things that may contain metacharacters while being
9076 # careful not to overquote the AC_SUBSTed values. We take copies of the
9077 # variables and quote the copies for generation of the libtool script.
9078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9079 SED SHELL STRIP \
9080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9082 deplibs_check_method reload_flag reload_cmds need_locks \
9083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9084 lt_cv_sys_global_symbol_to_c_name_address \
9085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9086 old_postinstall_cmds old_postuninstall_cmds \
9087 compiler \
9088 CC \
9089 LD \
9090 lt_prog_compiler_wl \
9091 lt_prog_compiler_pic \
9092 lt_prog_compiler_static \
9093 lt_prog_compiler_no_builtin_flag \
9094 export_dynamic_flag_spec \
9095 thread_safe_flag_spec \
9096 whole_archive_flag_spec \
9097 enable_shared_with_static_runtimes \
9098 old_archive_cmds \
9099 old_archive_from_new_cmds \
9100 predep_objects \
9101 postdep_objects \
9102 predeps \
9103 postdeps \
9104 compiler_lib_search_path \
9105 archive_cmds \
9106 archive_expsym_cmds \
9107 postinstall_cmds \
9108 postuninstall_cmds \
9109 old_archive_from_expsyms_cmds \
9110 allow_undefined_flag \
9111 no_undefined_flag \
9112 export_symbols_cmds \
9113 hardcode_libdir_flag_spec \
9114 hardcode_libdir_flag_spec_ld \
9115 hardcode_libdir_separator \
9116 hardcode_automatic \
9117 module_cmds \
9118 module_expsym_cmds \
9119 lt_cv_prog_compiler_c_o \
9120 exclude_expsyms \
9121 include_expsyms; do
9122
9123 case $var in
9124 old_archive_cmds | \
9125 old_archive_from_new_cmds | \
9126 archive_cmds | \
9127 archive_expsym_cmds | \
9128 module_cmds | \
9129 module_expsym_cmds | \
9130 old_archive_from_expsyms_cmds | \
9131 export_symbols_cmds | \
9132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9133 postinstall_cmds | postuninstall_cmds | \
9134 old_postinstall_cmds | old_postuninstall_cmds | \
9135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9136 # Double-quote double-evaled strings.
9137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9138 ;;
9139 *)
9140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9141 ;;
9142 esac
9143 done
9144
9145 case $lt_echo in
9146 *'\$0 --fallback-echo"')
9147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9148 ;;
9149 esac
9150
9151 cfgfile="${ofile}T"
9152 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9153 $rm -f "$cfgfile"
9154 { echo "$as_me:$LINENO: creating $ofile" >&5
9155 echo "$as_me: creating $ofile" >&6;}
9156
9157 cat <<__EOF__ >> "$cfgfile"
9158 #! $SHELL
9159
9160 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9161 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9162 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9163 #
9164 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9165 # Free Software Foundation, Inc.
9166 #
9167 # This file is part of GNU Libtool:
9168 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9169 #
9170 # This program is free software; you can redistribute it and/or modify
9171 # it under the terms of the GNU General Public License as published by
9172 # the Free Software Foundation; either version 2 of the License, or
9173 # (at your option) any later version.
9174 #
9175 # This program is distributed in the hope that it will be useful, but
9176 # WITHOUT ANY WARRANTY; without even the implied warranty of
9177 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9178 # General Public License for more details.
9179 #
9180 # You should have received a copy of the GNU General Public License
9181 # along with this program; if not, write to the Free Software
9182 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9183 #
9184 # As a special exception to the GNU General Public License, if you
9185 # distribute this file as part of a program that contains a
9186 # configuration script generated by Autoconf, you may include it under
9187 # the same distribution terms that you use for the rest of that program.
9188
9189 # A sed program that does not truncate output.
9190 SED=$lt_SED
9191
9192 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9193 Xsed="$SED -e s/^X//"
9194
9195 # The HP-UX ksh and POSIX shell print the target directory to stdout
9196 # if CDPATH is set.
9197 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9198
9199 # The names of the tagged configurations supported by this script.
9200 available_tags=
9201
9202 # ### BEGIN LIBTOOL CONFIG
9203
9204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9205
9206 # Shell to use when invoking shell scripts.
9207 SHELL=$lt_SHELL
9208
9209 # Whether or not to build shared libraries.
9210 build_libtool_libs=$enable_shared
9211
9212 # Whether or not to build static libraries.
9213 build_old_libs=$enable_static
9214
9215 # Whether or not to add -lc for building shared libraries.
9216 build_libtool_need_lc=$archive_cmds_need_lc
9217
9218 # Whether or not to disallow shared libs when runtime libs are static
9219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9220
9221 # Whether or not to optimize for fast installation.
9222 fast_install=$enable_fast_install
9223
9224 # The host system.
9225 host_alias=$host_alias
9226 host=$host
9227
9228 # An echo program that does not interpret backslashes.
9229 echo=$lt_echo
9230
9231 # The archiver.
9232 AR=$lt_AR
9233 AR_FLAGS=$lt_AR_FLAGS
9234
9235 # A C compiler.
9236 LTCC=$lt_LTCC
9237
9238 # A language-specific compiler.
9239 CC=$lt_compiler
9240
9241 # Is the compiler the GNU C compiler?
9242 with_gcc=$GCC
9243
9244 # An ERE matcher.
9245 EGREP=$lt_EGREP
9246
9247 # The linker used to build libraries.
9248 LD=$lt_LD
9249
9250 # Whether we need hard or soft links.
9251 LN_S=$lt_LN_S
9252
9253 # A BSD-compatible nm program.
9254 NM=$lt_NM
9255
9256 # A symbol stripping program
9257 STRIP=$lt_STRIP
9258
9259 # Used to examine libraries when file_magic_cmd begins "file"
9260 MAGIC_CMD=$MAGIC_CMD
9261
9262 # Used on cygwin: DLL creation program.
9263 DLLTOOL="$DLLTOOL"
9264
9265 # Used on cygwin: object dumper.
9266 OBJDUMP="$OBJDUMP"
9267
9268 # Used on cygwin: assembler.
9269 AS="$AS"
9270
9271 # The name of the directory that contains temporary libtool files.
9272 objdir=$objdir
9273
9274 # How to create reloadable object files.
9275 reload_flag=$lt_reload_flag
9276 reload_cmds=$lt_reload_cmds
9277
9278 # How to pass a linker flag through the compiler.
9279 wl=$lt_lt_prog_compiler_wl
9280
9281 # Object file suffix (normally "o").
9282 objext="$ac_objext"
9283
9284 # Old archive suffix (normally "a").
9285 libext="$libext"
9286
9287 # Shared library suffix (normally ".so").
9288 shrext='$shrext'
9289
9290 # Executable file suffix (normally "").
9291 exeext="$exeext"
9292
9293 # Additional compiler flags for building library objects.
9294 pic_flag=$lt_lt_prog_compiler_pic
9295 pic_mode=$pic_mode
9296
9297 # What is the maximum length of a command?
9298 max_cmd_len=$lt_cv_sys_max_cmd_len
9299
9300 # Does compiler simultaneously support -c and -o options?
9301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9302
9303 # Must we lock files when doing compilation ?
9304 need_locks=$lt_need_locks
9305
9306 # Do we need the lib prefix for modules?
9307 need_lib_prefix=$need_lib_prefix
9308
9309 # Do we need a version for libraries?
9310 need_version=$need_version
9311
9312 # Whether dlopen is supported.
9313 dlopen_support=$enable_dlopen
9314
9315 # Whether dlopen of programs is supported.
9316 dlopen_self=$enable_dlopen_self
9317
9318 # Whether dlopen of statically linked programs is supported.
9319 dlopen_self_static=$enable_dlopen_self_static
9320
9321 # Compiler flag to prevent dynamic linking.
9322 link_static_flag=$lt_lt_prog_compiler_static
9323
9324 # Compiler flag to turn off builtin functions.
9325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9326
9327 # Compiler flag to allow reflexive dlopens.
9328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9329
9330 # Compiler flag to generate shared objects directly from archives.
9331 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9332
9333 # Compiler flag to generate thread-safe objects.
9334 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9335
9336 # Library versioning type.
9337 version_type=$version_type
9338
9339 # Format of library name prefix.
9340 libname_spec=$lt_libname_spec
9341
9342 # List of archive names. First name is the real one, the rest are links.
9343 # The last name is the one that the linker finds with -lNAME.
9344 library_names_spec=$lt_library_names_spec
9345
9346 # The coded name of the library, if different from the real name.
9347 soname_spec=$lt_soname_spec
9348
9349 # Commands used to build and install an old-style archive.
9350 RANLIB=$lt_RANLIB
9351 old_archive_cmds=$lt_old_archive_cmds
9352 old_postinstall_cmds=$lt_old_postinstall_cmds
9353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9354
9355 # Create an old-style archive from a shared archive.
9356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9357
9358 # Create a temporary old-style archive to link instead of a shared archive.
9359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9360
9361 # Commands used to build and install a shared archive.
9362 archive_cmds=$lt_archive_cmds
9363 archive_expsym_cmds=$lt_archive_expsym_cmds
9364 postinstall_cmds=$lt_postinstall_cmds
9365 postuninstall_cmds=$lt_postuninstall_cmds
9366
9367 # Commands used to build a loadable module (assumed same as above if empty)
9368 module_cmds=$lt_module_cmds
9369 module_expsym_cmds=$lt_module_expsym_cmds
9370
9371 # Commands to strip libraries.
9372 old_striplib=$lt_old_striplib
9373 striplib=$lt_striplib
9374
9375 # Dependencies to place before the objects being linked to create a
9376 # shared library.
9377 predep_objects=$lt_predep_objects
9378
9379 # Dependencies to place after the objects being linked to create a
9380 # shared library.
9381 postdep_objects=$lt_postdep_objects
9382
9383 # Dependencies to place before the objects being linked to create a
9384 # shared library.
9385 predeps=$lt_predeps
9386
9387 # Dependencies to place after the objects being linked to create a
9388 # shared library.
9389 postdeps=$lt_postdeps
9390
9391 # The library search path used internally by the compiler when linking
9392 # a shared library.
9393 compiler_lib_search_path=$lt_compiler_lib_search_path
9394
9395 # Method to check whether dependent libraries are shared objects.
9396 deplibs_check_method=$lt_deplibs_check_method
9397
9398 # Command to use when deplibs_check_method == file_magic.
9399 file_magic_cmd=$lt_file_magic_cmd
9400
9401 # Flag that allows shared libraries with undefined symbols to be built.
9402 allow_undefined_flag=$lt_allow_undefined_flag
9403
9404 # Flag that forces no undefined symbols.
9405 no_undefined_flag=$lt_no_undefined_flag
9406
9407 # Commands used to finish a libtool library installation in a directory.
9408 finish_cmds=$lt_finish_cmds
9409
9410 # Same as above, but a single script fragment to be evaled but not shown.
9411 finish_eval=$lt_finish_eval
9412
9413 # Take the output of nm and produce a listing of raw symbols and C names.
9414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9415
9416 # Transform the output of nm in a proper C declaration
9417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9418
9419 # Transform the output of nm in a C name address pair
9420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9421
9422 # This is the shared library runtime path variable.
9423 runpath_var=$runpath_var
9424
9425 # This is the shared library path variable.
9426 shlibpath_var=$shlibpath_var
9427
9428 # Is shlibpath searched before the hard-coded library search path?
9429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9430
9431 # How to hardcode a shared library path into an executable.
9432 hardcode_action=$hardcode_action
9433
9434 # Whether we should hardcode library paths into libraries.
9435 hardcode_into_libs=$hardcode_into_libs
9436
9437 # Flag to hardcode \$libdir into a binary during linking.
9438 # This must work even if \$libdir does not exist.
9439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9440
9441 # If ld is used when linking, flag to hardcode \$libdir into
9442 # a binary during linking. This must work even if \$libdir does
9443 # not exist.
9444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9445
9446 # Whether we need a single -rpath flag with a separated argument.
9447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9448
9449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9450 # resulting binary.
9451 hardcode_direct=$hardcode_direct
9452
9453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9454 # resulting binary.
9455 hardcode_minus_L=$hardcode_minus_L
9456
9457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9458 # the resulting binary.
9459 hardcode_shlibpath_var=$hardcode_shlibpath_var
9460
9461 # Set to yes if building a shared library automatically hardcodes DIR into the library
9462 # and all subsequent libraries and executables linked against it.
9463 hardcode_automatic=$hardcode_automatic
9464
9465 # Variables whose values should be saved in libtool wrapper scripts and
9466 # restored at relink time.
9467 variables_saved_for_relink="$variables_saved_for_relink"
9468
9469 # Whether libtool must link a program against all its dependency libraries.
9470 link_all_deplibs=$link_all_deplibs
9471
9472 # Compile-time system search path for libraries
9473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9474
9475 # Run-time system search path for libraries
9476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9477
9478 # Fix the shell variable \$srcfile for the compiler.
9479 fix_srcfile_path="$fix_srcfile_path"
9480
9481 # Set to yes if exported symbols are required.
9482 always_export_symbols=$always_export_symbols
9483
9484 # The commands to list exported symbols.
9485 export_symbols_cmds=$lt_export_symbols_cmds
9486
9487 # The commands to extract the exported symbol list from a shared archive.
9488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9489
9490 # Symbols that should not be listed in the preloaded symbols.
9491 exclude_expsyms=$lt_exclude_expsyms
9492
9493 # Symbols that must always be exported.
9494 include_expsyms=$lt_include_expsyms
9495
9496 # ### END LIBTOOL CONFIG
9497
9498 __EOF__
9499
9500
9501 case $host_os in
9502 aix3*)
9503 cat <<\EOF >> "$cfgfile"
9504
9505 # AIX sometimes has problems with the GCC collect2 program. For some
9506 # reason, if we set the COLLECT_NAMES environment variable, the problems
9507 # vanish in a puff of smoke.
9508 if test "X${COLLECT_NAMES+set}" != Xset; then
9509 COLLECT_NAMES=
9510 export COLLECT_NAMES
9511 fi
9512 EOF
9513 ;;
9514 esac
9515
9516 # We use sed instead of cat because bash on DJGPP gets confused if
9517 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9518 # text mode, it properly converts lines to CR/LF. This bash problem
9519 # is reportedly fixed, but why not run on old versions too?
9520 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9521
9522 mv -f "$cfgfile" "$ofile" || \
9523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9524 chmod +x "$ofile"
9525
9526 else
9527 # If there is no Makefile yet, we rely on a make rule to execute
9528 # `config.status --recheck' to rerun these tests and create the
9529 # libtool script then.
9530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9531 if test -f "$ltmain_in"; then
9532 test -f Makefile && make "$ltmain"
9533 fi
9534 fi
9535
9536
9537 ac_ext=c
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543 CC="$lt_save_CC"
9544
9545
9546 # Check whether --with-tags or --without-tags was given.
9547 if test "${with_tags+set}" = set; then
9548 withval="$with_tags"
9549 tagnames="$withval"
9550 fi;
9551
9552 if test -f "$ltmain" && test -n "$tagnames"; then
9553 if test ! -f "${ofile}"; then
9554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9555 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9556 fi
9557
9558 if test -z "$LTCC"; then
9559 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9560 if test -z "$LTCC"; then
9561 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9562 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9563 else
9564 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9565 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9566 fi
9567 fi
9568
9569 # Extract list of available tagged configurations in $ofile.
9570 # Note that this assumes the entire list is on one line.
9571 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9572
9573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9574 for tagname in $tagnames; do
9575 IFS="$lt_save_ifs"
9576 # Check whether tagname contains only valid characters
9577 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9578 "") ;;
9579 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9580 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9581 { (exit 1); exit 1; }; }
9582 ;;
9583 esac
9584
9585 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9586 then
9587 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9588 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9589 { (exit 1); exit 1; }; }
9590 fi
9591
9592 # Update the list of available tags.
9593 if test -n "$tagname"; then
9594 echo appending configuration tag \"$tagname\" to $ofile
9595
9596 case $tagname in
9597 CXX)
9598 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9599 ac_ext=cc
9600 ac_cpp='$CXXCPP $CPPFLAGS'
9601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9604
9605
9606
9607
9608 archive_cmds_need_lc_CXX=no
9609 allow_undefined_flag_CXX=
9610 always_export_symbols_CXX=no
9611 archive_expsym_cmds_CXX=
9612 export_dynamic_flag_spec_CXX=
9613 hardcode_direct_CXX=no
9614 hardcode_libdir_flag_spec_CXX=
9615 hardcode_libdir_flag_spec_ld_CXX=
9616 hardcode_libdir_separator_CXX=
9617 hardcode_minus_L_CXX=no
9618 hardcode_automatic_CXX=no
9619 module_cmds_CXX=
9620 module_expsym_cmds_CXX=
9621 link_all_deplibs_CXX=unknown
9622 old_archive_cmds_CXX=$old_archive_cmds
9623 no_undefined_flag_CXX=
9624 whole_archive_flag_spec_CXX=
9625 enable_shared_with_static_runtimes_CXX=no
9626
9627 # Dependencies to place before and after the object being linked:
9628 predep_objects_CXX=
9629 postdep_objects_CXX=
9630 predeps_CXX=
9631 postdeps_CXX=
9632 compiler_lib_search_path_CXX=
9633
9634 # Source file extension for C++ test sources.
9635 ac_ext=cc
9636
9637 # Object file extension for compiled C++ test sources.
9638 objext=o
9639 objext_CXX=$objext
9640
9641 # Code to be used in simple compile tests
9642 lt_simple_compile_test_code="int some_variable = 0;\n"
9643
9644 # Code to be used in simple link tests
9645 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9646
9647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9648
9649 # If no C compiler was specified, use CC.
9650 LTCC=${LTCC-"$CC"}
9651
9652 # Allow CC to be a program name with arguments.
9653 compiler=$CC
9654
9655
9656 # Allow CC to be a program name with arguments.
9657 lt_save_CC=$CC
9658 lt_save_LD=$LD
9659 lt_save_GCC=$GCC
9660 GCC=$GXX
9661 lt_save_with_gnu_ld=$with_gnu_ld
9662 lt_save_path_LD=$lt_cv_path_LD
9663 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9664 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9665 else
9666 unset lt_cv_prog_gnu_ld
9667 fi
9668 if test -n "${lt_cv_path_LDCXX+set}"; then
9669 lt_cv_path_LD=$lt_cv_path_LDCXX
9670 else
9671 unset lt_cv_path_LD
9672 fi
9673 test -z "${LDCXX+set}" || LD=$LDCXX
9674 CC=${CXX-"c++"}
9675 compiler=$CC
9676 compiler_CXX=$CC
9677 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9678
9679 # We don't want -fno-exception wen compiling C++ code, so set the
9680 # no_builtin_flag separately
9681 if test "$GXX" = yes; then
9682 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9683 else
9684 lt_prog_compiler_no_builtin_flag_CXX=
9685 fi
9686
9687 if test "$GXX" = yes; then
9688 # Set up default GNU C++ configuration
9689
9690
9691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9692 if test "${with_gnu_ld+set}" = set; then
9693 withval="$with_gnu_ld"
9694 test "$withval" = no || with_gnu_ld=yes
9695 else
9696 with_gnu_ld=no
9697 fi;
9698 ac_prog=ld
9699 if test "$GCC" = yes; then
9700 # Check if gcc -print-prog-name=ld gives a path.
9701 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9703 case $host in
9704 *-*-mingw*)
9705 # gcc leaves a trailing carriage return which upsets mingw
9706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9707 *)
9708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9709 esac
9710 case $ac_prog in
9711 # Accept absolute paths.
9712 [\\/]* | ?:[\\/]*)
9713 re_direlt='/[^/][^/]*/\.\./'
9714 # Canonicalize the pathname of ld
9715 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9716 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9717 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9718 done
9719 test -z "$LD" && LD="$ac_prog"
9720 ;;
9721 "")
9722 # If it fails, then pretend we aren't using GCC.
9723 ac_prog=ld
9724 ;;
9725 *)
9726 # If it is relative, then search for the first ld in PATH.
9727 with_gnu_ld=unknown
9728 ;;
9729 esac
9730 elif test "$with_gnu_ld" = yes; then
9731 echo "$as_me:$LINENO: checking for GNU ld" >&5
9732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9733 else
9734 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9736 fi
9737 if test "${lt_cv_path_LD+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 if test -z "$LD"; then
9741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9742 for ac_dir in $PATH; do
9743 IFS="$lt_save_ifs"
9744 test -z "$ac_dir" && ac_dir=.
9745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9746 lt_cv_path_LD="$ac_dir/$ac_prog"
9747 # Check to see if the program is GNU ld. I'd rather use --version,
9748 # but apparently some GNU ld's only accept -v.
9749 # Break only if it was the GNU/non-GNU ld that we prefer.
9750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9751 *GNU* | *'with BFD'*)
9752 test "$with_gnu_ld" != no && break
9753 ;;
9754 *)
9755 test "$with_gnu_ld" != yes && break
9756 ;;
9757 esac
9758 fi
9759 done
9760 IFS="$lt_save_ifs"
9761 else
9762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9763 fi
9764 fi
9765
9766 LD="$lt_cv_path_LD"
9767 if test -n "$LD"; then
9768 echo "$as_me:$LINENO: result: $LD" >&5
9769 echo "${ECHO_T}$LD" >&6
9770 else
9771 echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9773 fi
9774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9776 { (exit 1); exit 1; }; }
9777 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9783 case `$LD -v 2>&1 </dev/null` in
9784 *GNU* | *'with BFD'*)
9785 lt_cv_prog_gnu_ld=yes
9786 ;;
9787 *)
9788 lt_cv_prog_gnu_ld=no
9789 ;;
9790 esac
9791 fi
9792 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9794 with_gnu_ld=$lt_cv_prog_gnu_ld
9795
9796
9797
9798 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9799 # archiving commands below assume that GNU ld is being used.
9800 if test "$with_gnu_ld" = yes; then
9801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 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'
9803
9804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9806
9807 # If archive_cmds runs LD, not CC, wlarc should be empty
9808 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9809 # investigate it a little bit more. (MM)
9810 wlarc='${wl}'
9811
9812 # ancient GNU ld didn't support --whole-archive et. al.
9813 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9814 grep 'no-whole-archive' > /dev/null; then
9815 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9816 else
9817 whole_archive_flag_spec_CXX=
9818 fi
9819 else
9820 with_gnu_ld=no
9821 wlarc=
9822
9823 # A generic and very simple default shared library creation
9824 # command for GNU C++ for the case where it uses the native
9825 # linker, instead of GNU ld. If possible, this setting should
9826 # overridden to take advantage of the native linker features on
9827 # the platform it is being used on.
9828 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9829 fi
9830
9831 # Commands to make compiler produce verbose output that lists
9832 # what "hidden" libraries, object files and flags are used when
9833 # linking a shared library.
9834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9835
9836 else
9837 GXX=no
9838 with_gnu_ld=no
9839 wlarc=
9840 fi
9841
9842 # PORTME: fill in a description of your system's C++ link characteristics
9843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9845 ld_shlibs_CXX=yes
9846 case $host_os in
9847 aix3*)
9848 # FIXME: insert proper C++ library support
9849 ld_shlibs_CXX=no
9850 ;;
9851 aix4* | aix5*)
9852 if test "$host_cpu" = ia64; then
9853 # On IA64, the linker does run time linking by default, so we don't
9854 # have to do anything special.
9855 aix_use_runtimelinking=no
9856 exp_sym_flag='-Bexport'
9857 no_entry_flag=""
9858 else
9859 aix_use_runtimelinking=no
9860
9861 # Test if we are trying to use run time linking or normal
9862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9863 # need to do runtime linking.
9864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9865 for ld_flag in $LDFLAGS; do
9866 case $ld_flag in
9867 *-brtl*)
9868 aix_use_runtimelinking=yes
9869 break
9870 ;;
9871 esac
9872 done
9873 esac
9874
9875 exp_sym_flag='-bexport'
9876 no_entry_flag='-bnoentry'
9877 fi
9878
9879 # When large executables or shared objects are built, AIX ld can
9880 # have problems creating the table of contents. If linking a library
9881 # or program results in "error TOC overflow" add -mminimal-toc to
9882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9884
9885 archive_cmds_CXX=''
9886 hardcode_direct_CXX=yes
9887 hardcode_libdir_separator_CXX=':'
9888 link_all_deplibs_CXX=yes
9889
9890 if test "$GXX" = yes; then
9891 case $host_os in aix4.012|aix4.012.*)
9892 # We only want to do this on AIX 4.2 and lower, the check
9893 # below for broken collect2 doesn't work under 4.3+
9894 collect2name=`${CC} -print-prog-name=collect2`
9895 if test -f "$collect2name" && \
9896 strings "$collect2name" | grep resolve_lib_name >/dev/null
9897 then
9898 # We have reworked collect2
9899 hardcode_direct_CXX=yes
9900 else
9901 # We have old collect2
9902 hardcode_direct_CXX=unsupported
9903 # It fails to find uninstalled libraries when the uninstalled
9904 # path is not listed in the libpath. Setting hardcode_minus_L
9905 # to unsupported forces relinking
9906 hardcode_minus_L_CXX=yes
9907 hardcode_libdir_flag_spec_CXX='-L$libdir'
9908 hardcode_libdir_separator_CXX=
9909 fi
9910 esac
9911 shared_flag='-shared'
9912 else
9913 # not using gcc
9914 if test "$host_cpu" = ia64; then
9915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9916 # chokes on -Wl,-G. The following line is correct:
9917 shared_flag='-G'
9918 else
9919 if test "$aix_use_runtimelinking" = yes; then
9920 shared_flag='${wl}-G'
9921 else
9922 shared_flag='${wl}-bM:SRE'
9923 fi
9924 fi
9925 fi
9926
9927 # It seems that -bexpall does not export symbols beginning with
9928 # underscore (_), so it is better to generate a list of symbols to export.
9929 always_export_symbols_CXX=yes
9930 if test "$aix_use_runtimelinking" = yes; then
9931 # Warning - without using the other runtime loading flags (-brtl),
9932 # -berok will link without error, but may produce a broken library.
9933 allow_undefined_flag_CXX='-berok'
9934 # Determine the default libpath from the value encoded in an empty executable.
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941
9942 int
9943 main ()
9944 {
9945
9946 ;
9947 return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_cxx_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972
9973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9974 }'`
9975 # Check for a 64-bit object if we didn't find anything.
9976 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; }
9977 }'`; fi
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 fi
9983 rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9986
9987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9988
9989 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"
9990 else
9991 if test "$host_cpu" = ia64; then
9992 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9993 allow_undefined_flag_CXX="-z nodefs"
9994 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"
9995 else
9996 # Determine the default libpath from the value encoded in an empty executable.
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003
10004 int
10005 main ()
10006 {
10007
10008 ;
10009 return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_cxx_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034
10035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10036 }'`
10037 # Check for a 64-bit object if we didn't find anything.
10038 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; }
10039 }'`; fi
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10048
10049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10050 # Warning - without using the other run time loading flags,
10051 # -berok will link without error, but may produce a broken library.
10052 no_undefined_flag_CXX=' ${wl}-bernotok'
10053 allow_undefined_flag_CXX=' ${wl}-berok'
10054 # -bexpall does not export symbols beginning with underscore (_)
10055 always_export_symbols_CXX=yes
10056 # Exported symbols can be pulled into shared objects from archives
10057 whole_archive_flag_spec_CXX=' '
10058 archive_cmds_need_lc_CXX=yes
10059 # This is similar to how AIX traditionally builds it's shared libraries.
10060 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'
10061 fi
10062 fi
10063 ;;
10064 chorus*)
10065 case $cc_basename in
10066 *)
10067 # FIXME: insert proper C++ library support
10068 ld_shlibs_CXX=no
10069 ;;
10070 esac
10071 ;;
10072
10073 cygwin* | mingw* | pw32*)
10074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10075 # as there is no search path for DLLs.
10076 hardcode_libdir_flag_spec_CXX='-L$libdir'
10077 allow_undefined_flag_CXX=unsupported
10078 always_export_symbols_CXX=no
10079 enable_shared_with_static_runtimes_CXX=yes
10080
10081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10082 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'
10083 # If the export-symbols file already is a .def file (1st line
10084 # is EXPORTS), use it as is; otherwise, prepend...
10085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10086 cp $export_symbols $output_objdir/$soname.def;
10087 else
10088 echo EXPORTS > $output_objdir/$soname.def;
10089 cat $export_symbols >> $output_objdir/$soname.def;
10090 fi~
10091 $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'
10092 else
10093 ld_shlibs_CXX=no
10094 fi
10095 ;;
10096
10097 darwin* | rhapsody*)
10098 if test "$GXX" = yes; then
10099 archive_cmds_need_lc_CXX=no
10100 case "$host_os" in
10101 rhapsody* | darwin1.[012])
10102 allow_undefined_flag_CXX='-undefined suppress'
10103 ;;
10104 *) # Darwin 1.3 on
10105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10106 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10107 else
10108 case ${MACOSX_DEPLOYMENT_TARGET} in
10109 10.[012])
10110 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10111 ;;
10112 10.*)
10113 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10114 ;;
10115 esac
10116 fi
10117 ;;
10118 esac
10119 lt_int_apple_cc_single_mod=no
10120 output_verbose_link_cmd='echo'
10121 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10122 lt_int_apple_cc_single_mod=yes
10123 fi
10124 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10125 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10126 else
10127 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'
10128 fi
10129 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10130
10131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10133 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}'
10134 else
10135 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}'
10136 fi
10137 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}'
10138 hardcode_direct_CXX=no
10139 hardcode_automatic_CXX=yes
10140 hardcode_shlibpath_var_CXX=unsupported
10141 whole_archive_flag_spec_CXX='-all_load $convenience'
10142 link_all_deplibs_CXX=yes
10143 else
10144 ld_shlibs_CXX=no
10145 fi
10146 ;;
10147
10148 dgux*)
10149 case $cc_basename in
10150 ec++)
10151 # FIXME: insert proper C++ library support
10152 ld_shlibs_CXX=no
10153 ;;
10154 ghcx)
10155 # Green Hills C++ Compiler
10156 # FIXME: insert proper C++ library support
10157 ld_shlibs_CXX=no
10158 ;;
10159 *)
10160 # FIXME: insert proper C++ library support
10161 ld_shlibs_CXX=no
10162 ;;
10163 esac
10164 ;;
10165 freebsd12*)
10166 # C++ shared libraries reported to be fairly broken before switch to ELF
10167 ld_shlibs_CXX=no
10168 ;;
10169 freebsd-elf*)
10170 archive_cmds_need_lc_CXX=no
10171 ;;
10172 freebsd* | kfreebsd*-gnu)
10173 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10174 # conventions
10175 ld_shlibs_CXX=yes
10176 ;;
10177 gnu*)
10178 ;;
10179 hpux9*)
10180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181 hardcode_libdir_separator_CXX=:
10182 export_dynamic_flag_spec_CXX='${wl}-E'
10183 hardcode_direct_CXX=yes
10184 hardcode_minus_L_CXX=yes # Not in the search PATH,
10185 # but as the default
10186 # location of the library.
10187
10188 case $cc_basename in
10189 CC)
10190 # FIXME: insert proper C++ library support
10191 ld_shlibs_CXX=no
10192 ;;
10193 aCC)
10194 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'
10195 # Commands to make compiler produce verbose output that lists
10196 # what "hidden" libraries, object files and flags are used when
10197 # linking a shared library.
10198 #
10199 # There doesn't appear to be a way to prevent this compiler from
10200 # explicitly linking system object files so we need to strip them
10201 # from the output so that they don't get included in the library
10202 # dependencies.
10203 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10204 ;;
10205 *)
10206 if test "$GXX" = yes; then
10207 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'
10208 else
10209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 fi
10212 ;;
10213 esac
10214 ;;
10215 hpux10*|hpux11*)
10216 if test $with_gnu_ld = no; then
10217 case "$host_cpu" in
10218 hppa*64*)
10219 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10220 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10221 hardcode_libdir_separator_CXX=:
10222 ;;
10223 ia64*)
10224 hardcode_libdir_flag_spec_CXX='-L$libdir'
10225 ;;
10226 *)
10227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10228 hardcode_libdir_separator_CXX=:
10229 export_dynamic_flag_spec_CXX='${wl}-E'
10230 ;;
10231 esac
10232 fi
10233 case "$host_cpu" in
10234 hppa*64*)
10235 hardcode_direct_CXX=no
10236 hardcode_shlibpath_var_CXX=no
10237 ;;
10238 ia64*)
10239 hardcode_direct_CXX=no
10240 hardcode_shlibpath_var_CXX=no
10241 hardcode_minus_L_CXX=yes # Not in the search PATH,
10242 # but as the default
10243 # location of the library.
10244 ;;
10245 *)
10246 hardcode_direct_CXX=yes
10247 hardcode_minus_L_CXX=yes # Not in the search PATH,
10248 # but as the default
10249 # location of the library.
10250 ;;
10251 esac
10252
10253 case $cc_basename in
10254 CC)
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 ;;
10258 aCC)
10259 case "$host_cpu" in
10260 hppa*64*|ia64*)
10261 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10262 ;;
10263 *)
10264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10265 ;;
10266 esac
10267 # Commands to make compiler produce verbose output that lists
10268 # what "hidden" libraries, object files and flags are used when
10269 # linking a shared library.
10270 #
10271 # There doesn't appear to be a way to prevent this compiler from
10272 # explicitly linking system object files so we need to strip them
10273 # from the output so that they don't get included in the library
10274 # dependencies.
10275 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'
10276 ;;
10277 *)
10278 if test "$GXX" = yes; then
10279 if test $with_gnu_ld = no; then
10280 case "$host_cpu" in
10281 ia64*|hppa*64*)
10282 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10283 ;;
10284 *)
10285 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'
10286 ;;
10287 esac
10288 fi
10289 else
10290 # FIXME: insert proper C++ library support
10291 ld_shlibs_CXX=no
10292 fi
10293 ;;
10294 esac
10295 ;;
10296 irix5* | irix6*)
10297 case $cc_basename in
10298 CC)
10299 # SGI C++
10300 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'
10301
10302 # Archives containing C++ object files must be created using
10303 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10304 # necessary to make sure instantiated templates are included
10305 # in the archive.
10306 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10307 ;;
10308 *)
10309 if test "$GXX" = yes; then
10310 if test "$with_gnu_ld" = no; then
10311 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'
10312 else
10313 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'
10314 fi
10315 fi
10316 link_all_deplibs_CXX=yes
10317 ;;
10318 esac
10319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10320 hardcode_libdir_separator_CXX=:
10321 ;;
10322 linux*)
10323 case $cc_basename in
10324 KCC)
10325 # Kuck and Associates, Inc. (KAI) C++ Compiler
10326
10327 # KCC will only create a shared library if the output file
10328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10329 # to its proper name (with version) after linking.
10330 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'
10331 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'
10332 # Commands to make compiler produce verbose output that lists
10333 # what "hidden" libraries, object files and flags are used when
10334 # linking a shared library.
10335 #
10336 # There doesn't appear to be a way to prevent this compiler from
10337 # explicitly linking system object files so we need to strip them
10338 # from the output so that they don't get included in the library
10339 # dependencies.
10340 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'
10341
10342 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10344
10345 # Archives containing C++ object files must be created using
10346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10347 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10348 ;;
10349 icpc)
10350 # Intel C++
10351 with_gnu_ld=yes
10352 archive_cmds_need_lc_CXX=no
10353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10354 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'
10355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10358 ;;
10359 cxx)
10360 # Compaq C++
10361 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10362 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'
10363
10364 runpath_var=LD_RUN_PATH
10365 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10366 hardcode_libdir_separator_CXX=:
10367
10368 # Commands to make compiler produce verbose output that lists
10369 # what "hidden" libraries, object files and flags are used when
10370 # linking a shared library.
10371 #
10372 # There doesn't appear to be a way to prevent this compiler from
10373 # explicitly linking system object files so we need to strip them
10374 # from the output so that they don't get included in the library
10375 # dependencies.
10376 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'
10377 ;;
10378 esac
10379 ;;
10380 lynxos*)
10381 # FIXME: insert proper C++ library support
10382 ld_shlibs_CXX=no
10383 ;;
10384 m88k*)
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 mvs*)
10389 case $cc_basename in
10390 cxx)
10391 # FIXME: insert proper C++ library support
10392 ld_shlibs_CXX=no
10393 ;;
10394 *)
10395 # FIXME: insert proper C++ library support
10396 ld_shlibs_CXX=no
10397 ;;
10398 esac
10399 ;;
10400 netbsd*)
10401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10402 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10403 wlarc=
10404 hardcode_libdir_flag_spec_CXX='-R$libdir'
10405 hardcode_direct_CXX=yes
10406 hardcode_shlibpath_var_CXX=no
10407 fi
10408 # Workaround some broken pre-1.5 toolchains
10409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10410 ;;
10411 osf3*)
10412 case $cc_basename in
10413 KCC)
10414 # Kuck and Associates, Inc. (KAI) C++ Compiler
10415
10416 # KCC will only create a shared library if the output file
10417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10418 # to its proper name (with version) after linking.
10419 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'
10420
10421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10422 hardcode_libdir_separator_CXX=:
10423
10424 # Archives containing C++ object files must be created using
10425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10427
10428 ;;
10429 RCC)
10430 # Rational C++ 2.4.1
10431 # FIXME: insert proper C++ library support
10432 ld_shlibs_CXX=no
10433 ;;
10434 cxx)
10435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10436 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'
10437
10438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10439 hardcode_libdir_separator_CXX=:
10440
10441 # Commands to make compiler produce verbose output that lists
10442 # what "hidden" libraries, object files and flags are used when
10443 # linking a shared library.
10444 #
10445 # There doesn't appear to be a way to prevent this compiler from
10446 # explicitly linking system object files so we need to strip them
10447 # from the output so that they don't get included in the library
10448 # dependencies.
10449 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'
10450 ;;
10451 *)
10452 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10454 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'
10455
10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10457 hardcode_libdir_separator_CXX=:
10458
10459 # Commands to make compiler produce verbose output that lists
10460 # what "hidden" libraries, object files and flags are used when
10461 # linking a shared library.
10462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10463
10464 else
10465 # FIXME: insert proper C++ library support
10466 ld_shlibs_CXX=no
10467 fi
10468 ;;
10469 esac
10470 ;;
10471 osf4* | osf5*)
10472 case $cc_basename in
10473 KCC)
10474 # Kuck and Associates, Inc. (KAI) C++ Compiler
10475
10476 # KCC will only create a shared library if the output file
10477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10478 # to its proper name (with version) after linking.
10479 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'
10480
10481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10482 hardcode_libdir_separator_CXX=:
10483
10484 # Archives containing C++ object files must be created using
10485 # the KAI C++ compiler.
10486 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10487 ;;
10488 RCC)
10489 # Rational C++ 2.4.1
10490 # FIXME: insert proper C++ library support
10491 ld_shlibs_CXX=no
10492 ;;
10493 cxx)
10494 allow_undefined_flag_CXX=' -expect_unresolved \*'
10495 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'
10496 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10497 echo "-hidden">> $lib.exp~
10498 $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~
10499 $rm $lib.exp'
10500
10501 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10502 hardcode_libdir_separator_CXX=:
10503
10504 # Commands to make compiler produce verbose output that lists
10505 # what "hidden" libraries, object files and flags are used when
10506 # linking a shared library.
10507 #
10508 # There doesn't appear to be a way to prevent this compiler from
10509 # explicitly linking system object files so we need to strip them
10510 # from the output so that they don't get included in the library
10511 # dependencies.
10512 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'
10513 ;;
10514 *)
10515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10517 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'
10518
10519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10520 hardcode_libdir_separator_CXX=:
10521
10522 # Commands to make compiler produce verbose output that lists
10523 # what "hidden" libraries, object files and flags are used when
10524 # linking a shared library.
10525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10526
10527 else
10528 # FIXME: insert proper C++ library support
10529 ld_shlibs_CXX=no
10530 fi
10531 ;;
10532 esac
10533 ;;
10534 psos*)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 sco*)
10539 archive_cmds_need_lc_CXX=no
10540 case $cc_basename in
10541 CC)
10542 # FIXME: insert proper C++ library support
10543 ld_shlibs_CXX=no
10544 ;;
10545 *)
10546 # FIXME: insert proper C++ library support
10547 ld_shlibs_CXX=no
10548 ;;
10549 esac
10550 ;;
10551 sunos4*)
10552 case $cc_basename in
10553 CC)
10554 # Sun C++ 4.x
10555 # FIXME: insert proper C++ library support
10556 ld_shlibs_CXX=no
10557 ;;
10558 lcc)
10559 # Lucid
10560 # FIXME: insert proper C++ library support
10561 ld_shlibs_CXX=no
10562 ;;
10563 *)
10564 # FIXME: insert proper C++ library support
10565 ld_shlibs_CXX=no
10566 ;;
10567 esac
10568 ;;
10569 solaris*)
10570 case $cc_basename in
10571 CC)
10572 # Sun C++ 4.2, 5.x and Centerline C++
10573 no_undefined_flag_CXX=' -zdefs'
10574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10576 $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'
10577
10578 hardcode_libdir_flag_spec_CXX='-R$libdir'
10579 hardcode_shlibpath_var_CXX=no
10580 case $host_os in
10581 solaris2.0-5 | solaris2.0-5.*) ;;
10582 *)
10583 # The C++ compiler is used as linker so we must use $wl
10584 # flag to pass the commands to the underlying system
10585 # linker.
10586 # Supported since Solaris 2.6 (maybe 2.5.1?)
10587 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10588 ;;
10589 esac
10590 link_all_deplibs_CXX=yes
10591
10592 # Commands to make compiler produce verbose output that lists
10593 # what "hidden" libraries, object files and flags are used when
10594 # linking a shared library.
10595 #
10596 # There doesn't appear to be a way to prevent this compiler from
10597 # explicitly linking system object files so we need to strip them
10598 # from the output so that they don't get included in the library
10599 # dependencies.
10600 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'
10601
10602 # Archives containing C++ object files must be created using
10603 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10604 # necessary to make sure instantiated templates are included
10605 # in the archive.
10606 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10607 ;;
10608 gcx)
10609 # Green Hills C++ Compiler
10610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10611
10612 # The C++ compiler must be used to create the archive.
10613 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10614 ;;
10615 *)
10616 # GNU C++ compiler with Solaris linker
10617 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10618 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10619 if $CC --version | grep -v '^2\.7' > /dev/null; then
10620 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10622 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10623
10624 # Commands to make compiler produce verbose output that lists
10625 # what "hidden" libraries, object files and flags are used when
10626 # linking a shared library.
10627 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10628 else
10629 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10630 # platform.
10631 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10632 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10633 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10634
10635 # Commands to make compiler produce verbose output that lists
10636 # what "hidden" libraries, object files and flags are used when
10637 # linking a shared library.
10638 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10639 fi
10640
10641 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10642 fi
10643 ;;
10644 esac
10645 ;;
10646 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10647 archive_cmds_need_lc_CXX=no
10648 ;;
10649 tandem*)
10650 case $cc_basename in
10651 NCC)
10652 # NonStop-UX NCC 3.20
10653 # FIXME: insert proper C++ library support
10654 ld_shlibs_CXX=no
10655 ;;
10656 *)
10657 # FIXME: insert proper C++ library support
10658 ld_shlibs_CXX=no
10659 ;;
10660 esac
10661 ;;
10662 vxworks*)
10663 # FIXME: insert proper C++ library support
10664 ld_shlibs_CXX=no
10665 ;;
10666 *)
10667 # FIXME: insert proper C++ library support
10668 ld_shlibs_CXX=no
10669 ;;
10670 esac
10671 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10672 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10673 test "$ld_shlibs_CXX" = no && can_build_shared=no
10674
10675 GCC_CXX="$GXX"
10676 LD_CXX="$LD"
10677
10678
10679 cat > conftest.$ac_ext <<EOF
10680 class Foo
10681 {
10682 public:
10683 Foo (void) { a = 0; }
10684 private:
10685 int a;
10686 };
10687 EOF
10688
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690 (eval $ac_compile) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; then
10694 # Parse the compiler output and extract the necessary
10695 # objects, libraries and library flags.
10696
10697 # Sentinel used to keep track of whether or not we are before
10698 # the conftest object file.
10699 pre_test_object_deps_done=no
10700
10701 # The `*' in the case matches for architectures that use `case' in
10702 # $output_verbose_cmd can trigger glob expansion during the loop
10703 # eval without this substitution.
10704 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10705
10706 for p in `eval $output_verbose_link_cmd`; do
10707 case $p in
10708
10709 -L* | -R* | -l*)
10710 # Some compilers place space between "-{L,R}" and the path.
10711 # Remove the space.
10712 if test $p = "-L" \
10713 || test $p = "-R"; then
10714 prev=$p
10715 continue
10716 else
10717 prev=
10718 fi
10719
10720 if test "$pre_test_object_deps_done" = no; then
10721 case $p in
10722 -L* | -R*)
10723 # Internal compiler library paths should come after those
10724 # provided the user. The postdeps already come after the
10725 # user supplied libs so there is no need to process them.
10726 if test -z "$compiler_lib_search_path_CXX"; then
10727 compiler_lib_search_path_CXX="${prev}${p}"
10728 else
10729 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10730 fi
10731 ;;
10732 # The "-l" case would never come before the object being
10733 # linked, so don't bother handling this case.
10734 esac
10735 else
10736 if test -z "$postdeps_CXX"; then
10737 postdeps_CXX="${prev}${p}"
10738 else
10739 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10740 fi
10741 fi
10742 ;;
10743
10744 *.$objext)
10745 # This assumes that the test object file only shows up
10746 # once in the compiler output.
10747 if test "$p" = "conftest.$objext"; then
10748 pre_test_object_deps_done=yes
10749 continue
10750 fi
10751
10752 if test "$pre_test_object_deps_done" = no; then
10753 if test -z "$predep_objects_CXX"; then
10754 predep_objects_CXX="$p"
10755 else
10756 predep_objects_CXX="$predep_objects_CXX $p"
10757 fi
10758 else
10759 if test -z "$postdep_objects_CXX"; then
10760 postdep_objects_CXX="$p"
10761 else
10762 postdep_objects_CXX="$postdep_objects_CXX $p"
10763 fi
10764 fi
10765 ;;
10766
10767 *) ;; # Ignore the rest.
10768
10769 esac
10770 done
10771
10772 # Clean up.
10773 rm -f a.out a.exe
10774 else
10775 echo "libtool.m4: error: problem compiling CXX test program"
10776 fi
10777
10778 $rm -f confest.$objext
10779
10780 case " $postdeps_CXX " in
10781 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10782 esac
10783
10784 lt_prog_compiler_wl_CXX=
10785 lt_prog_compiler_pic_CXX=
10786 lt_prog_compiler_static_CXX=
10787
10788 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10789 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10790
10791 # C++ specific cases for pic, static, wl, etc.
10792 if test "$GXX" = yes; then
10793 lt_prog_compiler_wl_CXX='-Wl,'
10794 lt_prog_compiler_static_CXX='-static'
10795
10796 case $host_os in
10797 aix*)
10798 # All AIX code is PIC.
10799 if test "$host_cpu" = ia64; then
10800 # AIX 5 now supports IA64 processor
10801 lt_prog_compiler_static_CXX='-Bstatic'
10802 fi
10803 ;;
10804 amigaos*)
10805 # FIXME: we need at least 68020 code to build shared libraries, but
10806 # adding the `-m68020' flag to GCC prevents building anything better,
10807 # like `-m68040'.
10808 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10809 ;;
10810 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10811 # PIC is the default for these OSes.
10812 ;;
10813 mingw* | os2* | pw32*)
10814 # This hack is so that the source file can tell whether it is being
10815 # built for inclusion in a dll (and should export symbols for example).
10816 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10817 ;;
10818 darwin* | rhapsody*)
10819 # PIC is the default on this platform
10820 # Common symbols not allowed in MH_DYLIB files
10821 lt_prog_compiler_pic_CXX='-fno-common'
10822 ;;
10823 *djgpp*)
10824 # DJGPP does not support shared libraries at all
10825 lt_prog_compiler_pic_CXX=
10826 ;;
10827 sysv4*MP*)
10828 if test -d /usr/nec; then
10829 lt_prog_compiler_pic_CXX=-Kconform_pic
10830 fi
10831 ;;
10832 hpux*)
10833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10834 # not for PA HP-UX.
10835 case "$host_cpu" in
10836 hppa*64*|ia64*)
10837 ;;
10838 *)
10839 lt_prog_compiler_pic_CXX='-fPIC'
10840 ;;
10841 esac
10842 ;;
10843 *)
10844 lt_prog_compiler_pic_CXX='-fPIC'
10845 ;;
10846 esac
10847 else
10848 case $host_os in
10849 aix4* | aix5*)
10850 # All AIX code is PIC.
10851 if test "$host_cpu" = ia64; then
10852 # AIX 5 now supports IA64 processor
10853 lt_prog_compiler_static_CXX='-Bstatic'
10854 else
10855 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10856 fi
10857 ;;
10858 chorus*)
10859 case $cc_basename in
10860 cxch68)
10861 # Green Hills C++ Compiler
10862 # _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"
10863 ;;
10864 esac
10865 ;;
10866 dgux*)
10867 case $cc_basename in
10868 ec++)
10869 lt_prog_compiler_pic_CXX='-KPIC'
10870 ;;
10871 ghcx)
10872 # Green Hills C++ Compiler
10873 lt_prog_compiler_pic_CXX='-pic'
10874 ;;
10875 *)
10876 ;;
10877 esac
10878 ;;
10879 freebsd* | kfreebsd*-gnu)
10880 # FreeBSD uses GNU C++
10881 ;;
10882 hpux9* | hpux10* | hpux11*)
10883 case $cc_basename in
10884 CC)
10885 lt_prog_compiler_wl_CXX='-Wl,'
10886 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10887 if test "$host_cpu" != ia64; then
10888 lt_prog_compiler_pic_CXX='+Z'
10889 fi
10890 ;;
10891 aCC)
10892 lt_prog_compiler_wl_CXX='-Wl,'
10893 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10894 case "$host_cpu" in
10895 hppa*64*|ia64*)
10896 # +Z the default
10897 ;;
10898 *)
10899 lt_prog_compiler_pic_CXX='+Z'
10900 ;;
10901 esac
10902 ;;
10903 *)
10904 ;;
10905 esac
10906 ;;
10907 irix5* | irix6* | nonstopux*)
10908 case $cc_basename in
10909 CC)
10910 lt_prog_compiler_wl_CXX='-Wl,'
10911 lt_prog_compiler_static_CXX='-non_shared'
10912 # CC pic flag -KPIC is the default.
10913 ;;
10914 *)
10915 ;;
10916 esac
10917 ;;
10918 linux*)
10919 case $cc_basename in
10920 KCC)
10921 # KAI C++ Compiler
10922 lt_prog_compiler_wl_CXX='--backend -Wl,'
10923 lt_prog_compiler_pic_CXX='-fPIC'
10924 ;;
10925 icpc)
10926 # Intel C++
10927 lt_prog_compiler_wl_CXX='-Wl,'
10928 lt_prog_compiler_pic_CXX='-KPIC'
10929 lt_prog_compiler_static_CXX='-static'
10930 ;;
10931 cxx)
10932 # Compaq C++
10933 # Make sure the PIC flag is empty. It appears that all Alpha
10934 # Linux and Compaq Tru64 Unix objects are PIC.
10935 lt_prog_compiler_pic_CXX=
10936 lt_prog_compiler_static_CXX='-non_shared'
10937 ;;
10938 *)
10939 ;;
10940 esac
10941 ;;
10942 lynxos*)
10943 ;;
10944 m88k*)
10945 ;;
10946 mvs*)
10947 case $cc_basename in
10948 cxx)
10949 lt_prog_compiler_pic_CXX='-W c,exportall'
10950 ;;
10951 *)
10952 ;;
10953 esac
10954 ;;
10955 netbsd*)
10956 ;;
10957 osf3* | osf4* | osf5*)
10958 case $cc_basename in
10959 KCC)
10960 lt_prog_compiler_wl_CXX='--backend -Wl,'
10961 ;;
10962 RCC)
10963 # Rational C++ 2.4.1
10964 lt_prog_compiler_pic_CXX='-pic'
10965 ;;
10966 cxx)
10967 # Digital/Compaq C++
10968 lt_prog_compiler_wl_CXX='-Wl,'
10969 # Make sure the PIC flag is empty. It appears that all Alpha
10970 # Linux and Compaq Tru64 Unix objects are PIC.
10971 lt_prog_compiler_pic_CXX=
10972 lt_prog_compiler_static_CXX='-non_shared'
10973 ;;
10974 *)
10975 ;;
10976 esac
10977 ;;
10978 psos*)
10979 ;;
10980 sco*)
10981 case $cc_basename in
10982 CC)
10983 lt_prog_compiler_pic_CXX='-fPIC'
10984 ;;
10985 *)
10986 ;;
10987 esac
10988 ;;
10989 solaris*)
10990 case $cc_basename in
10991 CC)
10992 # Sun C++ 4.2, 5.x and Centerline C++
10993 lt_prog_compiler_pic_CXX='-KPIC'
10994 lt_prog_compiler_static_CXX='-Bstatic'
10995 lt_prog_compiler_wl_CXX='-Qoption ld '
10996 ;;
10997 gcx)
10998 # Green Hills C++ Compiler
10999 lt_prog_compiler_pic_CXX='-PIC'
11000 ;;
11001 *)
11002 ;;
11003 esac
11004 ;;
11005 sunos4*)
11006 case $cc_basename in
11007 CC)
11008 # Sun C++ 4.x
11009 lt_prog_compiler_pic_CXX='-pic'
11010 lt_prog_compiler_static_CXX='-Bstatic'
11011 ;;
11012 lcc)
11013 # Lucid
11014 lt_prog_compiler_pic_CXX='-pic'
11015 ;;
11016 *)
11017 ;;
11018 esac
11019 ;;
11020 tandem*)
11021 case $cc_basename in
11022 NCC)
11023 # NonStop-UX NCC 3.20
11024 lt_prog_compiler_pic_CXX='-KPIC'
11025 ;;
11026 *)
11027 ;;
11028 esac
11029 ;;
11030 unixware*)
11031 ;;
11032 vxworks*)
11033 ;;
11034 *)
11035 lt_prog_compiler_can_build_shared_CXX=no
11036 ;;
11037 esac
11038 fi
11039
11040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11041 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11042
11043 #
11044 # Check to make sure the PIC flag actually works.
11045 #
11046 if test -n "$lt_prog_compiler_pic_CXX"; then
11047
11048 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11050 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 lt_prog_compiler_pic_works_CXX=no
11054 ac_outfile=conftest.$ac_objext
11055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11056 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11057 # Insert the option either (1) after the last *FLAGS variable, or
11058 # (2) before a word containing "conftest.", or (3) at the end.
11059 # Note that $ac_compile itself does not contain backslashes and begins
11060 # with a dollar sign (not a hyphen), so the echo should work correctly.
11061 # The option is referenced via a variable to avoid confusing sed.
11062 lt_compile=`echo "$ac_compile" | $SED \
11063 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11065 -e 's:$: $lt_compiler_flag:'`
11066 (eval echo "\"\$as_me:11066: $lt_compile\"" >&5)
11067 (eval "$lt_compile" 2>conftest.err)
11068 ac_status=$?
11069 cat conftest.err >&5
11070 echo "$as_me:11070: \$? = $ac_status" >&5
11071 if (exit $ac_status) && test -s "$ac_outfile"; then
11072 # The compiler can only warn and ignore the option if not recognized
11073 # So say no if there are warnings
11074 if test ! -s conftest.err; then
11075 lt_prog_compiler_pic_works_CXX=yes
11076 fi
11077 fi
11078 $rm conftest*
11079
11080 fi
11081 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11082 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11083
11084 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11085 case $lt_prog_compiler_pic_CXX in
11086 "" | " "*) ;;
11087 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11088 esac
11089 else
11090 lt_prog_compiler_pic_CXX=
11091 lt_prog_compiler_can_build_shared_CXX=no
11092 fi
11093
11094 fi
11095 case "$host_os" in
11096 # For platforms which do not support PIC, -DPIC is meaningless:
11097 *djgpp*)
11098 lt_prog_compiler_pic_CXX=
11099 ;;
11100 *)
11101 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11102 ;;
11103 esac
11104
11105 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11107 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 lt_cv_prog_compiler_c_o_CXX=no
11111 $rm -r conftest 2>/dev/null
11112 mkdir conftest
11113 cd conftest
11114 mkdir out
11115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11116
11117 lt_compiler_flag="-o out/conftest2.$ac_objext"
11118 # Insert the option either (1) after the last *FLAGS variable, or
11119 # (2) before a word containing "conftest.", or (3) at the end.
11120 # Note that $ac_compile itself does not contain backslashes and begins
11121 # with a dollar sign (not a hyphen), so the echo should work correctly.
11122 lt_compile=`echo "$ac_compile" | $SED \
11123 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11125 -e 's:$: $lt_compiler_flag:'`
11126 (eval echo "\"\$as_me:11126: $lt_compile\"" >&5)
11127 (eval "$lt_compile" 2>out/conftest.err)
11128 ac_status=$?
11129 cat out/conftest.err >&5
11130 echo "$as_me:11130: \$? = $ac_status" >&5
11131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11132 then
11133 # The compiler can only warn and ignore the option if not recognized
11134 # So say no if there are warnings
11135 if test ! -s out/conftest.err; then
11136 lt_cv_prog_compiler_c_o_CXX=yes
11137 fi
11138 fi
11139 chmod u+w .
11140 $rm conftest*
11141 # SGI C++ compiler will create directory out/ii_files/ for
11142 # template instantiation
11143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11144 $rm out/* && rmdir out
11145 cd ..
11146 rmdir conftest
11147 $rm conftest*
11148
11149 fi
11150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11152
11153
11154 hard_links="nottested"
11155 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11156 # do not overwrite the value of need_locks provided by the user
11157 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11159 hard_links=yes
11160 $rm conftest*
11161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11162 touch conftest.a
11163 ln conftest.a conftest.b 2>&5 || hard_links=no
11164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11165 echo "$as_me:$LINENO: result: $hard_links" >&5
11166 echo "${ECHO_T}$hard_links" >&6
11167 if test "$hard_links" = no; then
11168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11170 need_locks=warn
11171 fi
11172 else
11173 need_locks=no
11174 fi
11175
11176 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11178
11179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11180 case $host_os in
11181 aix4* | aix5*)
11182 # If we're using GNU nm, then we don't want the "-C" option.
11183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11185 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'
11186 else
11187 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'
11188 fi
11189 ;;
11190 pw32*)
11191 export_symbols_cmds_CXX="$ltdll_cmds"
11192 ;;
11193 cygwin* | mingw*)
11194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11195 ;;
11196 *)
11197 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11198 ;;
11199 esac
11200
11201 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11202 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11203 test "$ld_shlibs_CXX" = no && can_build_shared=no
11204
11205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206 if test "$GCC" = yes; then
11207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11208 fi
11209
11210 #
11211 # Do we need to explicitly link libc?
11212 #
11213 case "x$archive_cmds_need_lc_CXX" in
11214 x|xyes)
11215 # Assume -lc should be added
11216 archive_cmds_need_lc_CXX=yes
11217
11218 if test "$enable_shared" = yes && test "$GCC" = yes; then
11219 case $archive_cmds_CXX in
11220 *'~'*)
11221 # FIXME: we may have to deal with multi-command sequences.
11222 ;;
11223 '$CC '*)
11224 # Test whether the compiler implicitly links with -lc since on some
11225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11226 # to ld, don't add -lc before -lgcc.
11227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11229 $rm conftest*
11230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11231
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } 2>conftest.err; then
11237 soname=conftest
11238 lib=conftest
11239 libobjs=conftest.$ac_objext
11240 deplibs=
11241 wl=$lt_prog_compiler_wl_CXX
11242 compiler_flags=-v
11243 linker_flags=-v
11244 verstring=
11245 output_objdir=.
11246 libname=conftest
11247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11248 allow_undefined_flag_CXX=
11249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11250 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }
11254 then
11255 archive_cmds_need_lc_CXX=no
11256 else
11257 archive_cmds_need_lc_CXX=yes
11258 fi
11259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11260 else
11261 cat conftest.err 1>&5
11262 fi
11263 $rm conftest*
11264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11265 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11266 ;;
11267 esac
11268 fi
11269 ;;
11270 esac
11271
11272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11274 library_names_spec=
11275 libname_spec='lib$name'
11276 soname_spec=
11277 shrext=".so"
11278 postinstall_cmds=
11279 postuninstall_cmds=
11280 finish_cmds=
11281 finish_eval=
11282 shlibpath_var=
11283 shlibpath_overrides_runpath=unknown
11284 version_type=none
11285 dynamic_linker="$host_os ld.so"
11286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11287 if test "$GCC" = yes; then
11288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11290 # if the path contains ";" then we assume it to be the separator
11291 # otherwise default to the standard path separator (i.e. ":") - it is
11292 # assumed that no part of a normal pathname contains ";" but that should
11293 # okay in the real world where ";" in dirpaths is itself problematic.
11294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11295 else
11296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11297 fi
11298 else
11299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11300 fi
11301 need_lib_prefix=unknown
11302 hardcode_into_libs=no
11303
11304 # when you set need_version to no, make sure it does not cause -set_version
11305 # flags to be left without arguments
11306 need_version=unknown
11307
11308 case $host_os in
11309 aix3*)
11310 version_type=linux
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11312 shlibpath_var=LIBPATH
11313
11314 # AIX 3 has no versioning support, so we append a major version to the name.
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 ;;
11317
11318 aix4* | aix5*)
11319 version_type=linux
11320 need_lib_prefix=no
11321 need_version=no
11322 hardcode_into_libs=yes
11323 if test "$host_cpu" = ia64; then
11324 # AIX 5 supports IA64
11325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 else
11328 # With GCC up to 2.95.x, collect2 would create an import file
11329 # for dependence libraries. The import file would start with
11330 # the line `#! .'. This would cause the generated library to
11331 # depend on `.', always an invalid library. This was fixed in
11332 # development snapshots of GCC prior to 3.0.
11333 case $host_os in
11334 aix4 | aix4.[01] | aix4.[01].*)
11335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11336 echo ' yes '
11337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11338 :
11339 else
11340 can_build_shared=no
11341 fi
11342 ;;
11343 esac
11344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11345 # soname into executable. Probably we can add versioning support to
11346 # collect2, so additional links can be useful in future.
11347 if test "$aix_use_runtimelinking" = yes; then
11348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11349 # instead of lib<name>.a to let people know that these are not
11350 # typical AIX shared libraries.
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 else
11353 # We preserve .a as extension for shared libraries through AIX4.2
11354 # and later when we are not doing run time linking.
11355 library_names_spec='${libname}${release}.a $libname.a'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 fi
11358 shlibpath_var=LIBPATH
11359 fi
11360 ;;
11361
11362 amigaos*)
11363 library_names_spec='$libname.ixlibrary $libname.a'
11364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11365 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'
11366 ;;
11367
11368 beos*)
11369 library_names_spec='${libname}${shared_ext}'
11370 dynamic_linker="$host_os ld.so"
11371 shlibpath_var=LIBRARY_PATH
11372 ;;
11373
11374 bsdi4*)
11375 version_type=linux
11376 need_version=no
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11383 # the default ld.so.conf also contains /usr/contrib/lib and
11384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11385 # libtool to hard-code these into programs
11386 ;;
11387
11388 cygwin* | mingw* | pw32*)
11389 version_type=windows
11390 shrext=".dll"
11391 need_version=no
11392 need_lib_prefix=no
11393
11394 case $GCC,$host_os in
11395 yes,cygwin* | yes,mingw* | yes,pw32*)
11396 library_names_spec='$libname.dll.a'
11397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11398 postinstall_cmds='base_file=`basename \${file}`~
11399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11400 dldir=$destdir/`dirname \$dlpath`~
11401 test -d \$dldir || mkdir -p \$dldir~
11402 $install_prog $dir/$dlname \$dldir/$dlname'
11403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11404 dlpath=$dir/\$dldll~
11405 $rm \$dlpath'
11406 shlibpath_overrides_runpath=yes
11407
11408 case $host_os in
11409 cygwin*)
11410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11413 ;;
11414 mingw*)
11415 # MinGW DLLs use traditional 'lib' prefix
11416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11419 # It is most probably a Windows format PATH printed by
11420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11421 # path with ; separators, and with drive letters. We can handle the
11422 # drive letters (cygwin fileutils understands them), so leave them,
11423 # especially as we might pass files found there to a mingw objdump,
11424 # which wouldn't understand a cygwinified path. Ahh.
11425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11426 else
11427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11428 fi
11429 ;;
11430 pw32*)
11431 # pw32 DLLs use 'pw' prefix rather than 'lib'
11432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11433 ;;
11434 esac
11435 ;;
11436
11437 *)
11438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11439 ;;
11440 esac
11441 dynamic_linker='Win32 ld.exe'
11442 # FIXME: first we should search . and the directory the executable is in
11443 shlibpath_var=PATH
11444 ;;
11445
11446 darwin* | rhapsody*)
11447 dynamic_linker="$host_os dyld"
11448 version_type=darwin
11449 need_lib_prefix=no
11450 need_version=no
11451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11452 soname_spec='${libname}${release}${major}$shared_ext'
11453 shlibpath_overrides_runpath=yes
11454 shlibpath_var=DYLD_LIBRARY_PATH
11455 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11457 if test "$GCC" = yes; then
11458 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"`
11459 else
11460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11461 fi
11462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11463 ;;
11464
11465 dgux*)
11466 version_type=linux
11467 need_lib_prefix=no
11468 need_version=no
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 ;;
11473
11474 freebsd1*)
11475 dynamic_linker=no
11476 ;;
11477
11478 kfreebsd*-gnu)
11479 version_type=linux
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 dynamic_linker='GNU ld.so'
11488 ;;
11489
11490 freebsd*)
11491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11492 version_type=freebsd-$objformat
11493 case $version_type in
11494 freebsd-elf*)
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 need_version=no
11497 need_lib_prefix=no
11498 ;;
11499 freebsd-*)
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11501 need_version=yes
11502 ;;
11503 esac
11504 shlibpath_var=LD_LIBRARY_PATH
11505 case $host_os in
11506 freebsd2*)
11507 shlibpath_overrides_runpath=yes
11508 ;;
11509 freebsd3.01* | freebsdelf3.01*)
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 ;;
11513 *) # from 3.2 on
11514 shlibpath_overrides_runpath=no
11515 hardcode_into_libs=yes
11516 ;;
11517 esac
11518 ;;
11519
11520 gnu*)
11521 version_type=linux
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 hardcode_into_libs=yes
11528 ;;
11529
11530 hpux9* | hpux10* | hpux11*)
11531 # Give a soname corresponding to the major version so that dld.sl refuses to
11532 # link against other versions.
11533 version_type=sunos
11534 need_lib_prefix=no
11535 need_version=no
11536 case "$host_cpu" in
11537 ia64*)
11538 shrext='.so'
11539 hardcode_into_libs=yes
11540 dynamic_linker="$host_os dld.so"
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 if test "X$HPUX_IA64_MODE" = X32; then
11546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11547 else
11548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11549 fi
11550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11551 ;;
11552 hppa*64*)
11553 shrext='.sl'
11554 hardcode_into_libs=yes
11555 dynamic_linker="$host_os dld.sl"
11556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11562 ;;
11563 *)
11564 shrext='.sl'
11565 dynamic_linker="$host_os dld.sl"
11566 shlibpath_var=SHLIB_PATH
11567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 ;;
11571 esac
11572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11573 postinstall_cmds='chmod 555 $lib'
11574 ;;
11575
11576 irix5* | irix6* | nonstopux*)
11577 case $host_os in
11578 nonstopux*) version_type=nonstopux ;;
11579 *)
11580 if test "$lt_cv_prog_gnu_ld" = yes; then
11581 version_type=linux
11582 else
11583 version_type=irix
11584 fi ;;
11585 esac
11586 need_lib_prefix=no
11587 need_version=no
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11590 case $host_os in
11591 irix5* | nonstopux*)
11592 libsuff= shlibsuff=
11593 ;;
11594 *)
11595 case $LD in # libtool.m4 will add one of these switches to LD
11596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11597 libsuff= shlibsuff= libmagic=32-bit;;
11598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11599 libsuff=32 shlibsuff=N32 libmagic=N32;;
11600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11602 *) libsuff= shlibsuff= libmagic=never-match;;
11603 esac
11604 ;;
11605 esac
11606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11607 shlibpath_overrides_runpath=no
11608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11610 hardcode_into_libs=yes
11611 ;;
11612
11613 # No shared lib support for Linux oldld, aout, or coff.
11614 linux*oldld* | linux*aout* | linux*coff*)
11615 dynamic_linker=no
11616 ;;
11617
11618 # This must be Linux ELF.
11619 linux*)
11620 version_type=linux
11621 need_lib_prefix=no
11622 need_version=no
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11626 shlibpath_var=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath=no
11628 # This implies no fast_install, which is unacceptable.
11629 # Some rework will be needed to allow for fast_install
11630 # before this can be enabled.
11631 hardcode_into_libs=yes
11632
11633 # Append ld.so.conf contents to the search path
11634 if test -f /etc/ld.so.conf; then
11635 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11636 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11637 fi
11638
11639 # We used to test for /lib/ld.so.1 and disable shared libraries on
11640 # powerpc, because MkLinux only supported shared libraries with the
11641 # GNU dynamic linker. Since this was broken with cross compilers,
11642 # most powerpc-linux boxes support dynamic linking these days and
11643 # people can always --disable-shared, the test was removed, and we
11644 # assume the GNU/Linux dynamic linker is in use.
11645 dynamic_linker='GNU/Linux ld.so'
11646 ;;
11647
11648 knetbsd*-gnu)
11649 version_type=linux
11650 need_lib_prefix=no
11651 need_version=no
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=no
11656 hardcode_into_libs=yes
11657 dynamic_linker='GNU ld.so'
11658 ;;
11659
11660 netbsd*)
11661 version_type=sunos
11662 need_lib_prefix=no
11663 need_version=no
11664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667 dynamic_linker='NetBSD (a.out) ld.so'
11668 else
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 dynamic_linker='NetBSD ld.elf_so'
11672 fi
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 hardcode_into_libs=yes
11676 ;;
11677
11678 newsos6)
11679 version_type=linux
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 ;;
11684
11685 nto-qnx*)
11686 version_type=linux
11687 need_lib_prefix=no
11688 need_version=no
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=yes
11693 ;;
11694
11695 openbsd*)
11696 version_type=sunos
11697 need_lib_prefix=no
11698 need_version=yes
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703 case $host_os in
11704 openbsd2.[89] | openbsd2.[89].*)
11705 shlibpath_overrides_runpath=no
11706 ;;
11707 *)
11708 shlibpath_overrides_runpath=yes
11709 ;;
11710 esac
11711 else
11712 shlibpath_overrides_runpath=yes
11713 fi
11714 ;;
11715
11716 os2*)
11717 libname_spec='$name'
11718 shrext=".dll"
11719 need_lib_prefix=no
11720 library_names_spec='$libname${shared_ext} $libname.a'
11721 dynamic_linker='OS/2 ld.exe'
11722 shlibpath_var=LIBPATH
11723 ;;
11724
11725 osf3* | osf4* | osf5*)
11726 version_type=osf
11727 need_lib_prefix=no
11728 need_version=no
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11734 ;;
11735
11736 sco3.2v5*)
11737 version_type=osf
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 ;;
11742
11743 solaris*)
11744 version_type=linux
11745 need_lib_prefix=no
11746 need_version=no
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11751 hardcode_into_libs=yes
11752 # ldd complains unless libraries are executable
11753 postinstall_cmds='chmod +x $lib'
11754 ;;
11755
11756 sunos4*)
11757 version_type=sunos
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 if test "$with_gnu_ld" = yes; then
11763 need_lib_prefix=no
11764 fi
11765 need_version=yes
11766 ;;
11767
11768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11769 version_type=linux
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 case $host_vendor in
11774 sni)
11775 shlibpath_overrides_runpath=no
11776 need_lib_prefix=no
11777 export_dynamic_flag_spec='${wl}-Blargedynsym'
11778 runpath_var=LD_RUN_PATH
11779 ;;
11780 siemens)
11781 need_lib_prefix=no
11782 ;;
11783 motorola)
11784 need_lib_prefix=no
11785 need_version=no
11786 shlibpath_overrides_runpath=no
11787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11788 ;;
11789 esac
11790 ;;
11791
11792 sysv4*MP*)
11793 if test -d /usr/nec ;then
11794 version_type=linux
11795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11796 soname_spec='$libname${shared_ext}.$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 fi
11799 ;;
11800
11801 uts4*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 ;;
11807
11808 *)
11809 dynamic_linker=no
11810 ;;
11811 esac
11812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11813 echo "${ECHO_T}$dynamic_linker" >&6
11814 test "$dynamic_linker" = no && can_build_shared=no
11815
11816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11818 hardcode_action_CXX=
11819 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11820 test -n "$runpath_var CXX" || \
11821 test "X$hardcode_automatic_CXX"="Xyes" ; then
11822
11823 # We can hardcode non-existant directories.
11824 if test "$hardcode_direct_CXX" != no &&
11825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11826 # have to relink, otherwise we might link with an installed library
11827 # when we should be linking with a yet-to-be-installed one
11828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11829 test "$hardcode_minus_L_CXX" != no; then
11830 # Linking always hardcodes the temporary library directory.
11831 hardcode_action_CXX=relink
11832 else
11833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11834 hardcode_action_CXX=immediate
11835 fi
11836 else
11837 # We cannot hardcode anything, or else we can only hardcode existing
11838 # directories.
11839 hardcode_action_CXX=unsupported
11840 fi
11841 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11842 echo "${ECHO_T}$hardcode_action_CXX" >&6
11843
11844 if test "$hardcode_action_CXX" = relink; then
11845 # Fast installation is not supported
11846 enable_fast_install=no
11847 elif test "$shlibpath_overrides_runpath" = yes ||
11848 test "$enable_shared" = no; then
11849 # Fast installation is not necessary
11850 enable_fast_install=needless
11851 fi
11852
11853 striplib=
11854 old_striplib=
11855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11862 else
11863 # FIXME - insert some real tests, host_os isn't really good enough
11864 case $host_os in
11865 darwin*)
11866 if test -n "$STRIP" ; then
11867 striplib="$STRIP -x"
11868 echo "$as_me:$LINENO: result: yes" >&5
11869 echo "${ECHO_T}yes" >&6
11870 else
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 fi
11874 ;;
11875 *)
11876 echo "$as_me:$LINENO: result: no" >&5
11877 echo "${ECHO_T}no" >&6
11878 ;;
11879 esac
11880 fi
11881
11882 if test "x$enable_dlopen" != xyes; then
11883 enable_dlopen=unknown
11884 enable_dlopen_self=unknown
11885 enable_dlopen_self_static=unknown
11886 else
11887 lt_cv_dlopen=no
11888 lt_cv_dlopen_libs=
11889
11890 case $host_os in
11891 beos*)
11892 lt_cv_dlopen="load_add_on"
11893 lt_cv_dlopen_libs=
11894 lt_cv_dlopen_self=yes
11895 ;;
11896
11897 mingw* | pw32*)
11898 lt_cv_dlopen="LoadLibrary"
11899 lt_cv_dlopen_libs=
11900 ;;
11901
11902 cygwin*)
11903 lt_cv_dlopen="dlopen"
11904 lt_cv_dlopen_libs=
11905 ;;
11906
11907 darwin*)
11908 # if libdl is installed we need to link against it
11909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914 ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-ldl $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922
11923 /* Override any gcc2 internal prototype to avoid an error. */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 /* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11929 char dlopen ();
11930 int
11931 main ()
11932 {
11933 dlopen ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_lib_dl_dlopen=yes
11961 else
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_lib_dl_dlopen=no
11966 fi
11967 rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11973 if test $ac_cv_lib_dl_dlopen = yes; then
11974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11975 else
11976
11977 lt_cv_dlopen="dyld"
11978 lt_cv_dlopen_libs=
11979 lt_cv_dlopen_self=yes
11980
11981 fi
11982
11983 ;;
11984
11985 *)
11986 echo "$as_me:$LINENO: checking for shl_load" >&5
11987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11988 if test "${ac_cv_func_shl_load+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11999 #define shl_load innocuous_shl_load
12000
12001 /* System header to define __stub macros and hopefully few prototypes,
12002 which can conflict with char shl_load (); below.
12003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004 <limits.h> exists even on freestanding compilers. */
12005
12006 #ifdef __STDC__
12007 # include <limits.h>
12008 #else
12009 # include <assert.h>
12010 #endif
12011
12012 #undef shl_load
12013
12014 /* Override any gcc2 internal prototype to avoid an error. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 {
12018 #endif
12019 /* We use char because int might match the return type of a gcc2
12020 builtin and then its argument prototype would still apply. */
12021 char shl_load ();
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12026 choke me
12027 #else
12028 char (*f) () = shl_load;
12029 #endif
12030 #ifdef __cplusplus
12031 }
12032 #endif
12033
12034 int
12035 main ()
12036 {
12037 return f != shl_load;
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_cxx_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_func_shl_load=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_func_shl_load=no
12070 fi
12071 rm -f conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 fi
12074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12076 if test $ac_cv_func_shl_load = yes; then
12077 lt_cv_dlopen="shl_load"
12078 else
12079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-ldld $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092
12093 /* Override any gcc2 internal prototype to avoid an error. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12099 char shl_load ();
12100 int
12101 main ()
12102 {
12103 shl_load ();
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_cxx_werror_flag"
12118 || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_lib_dld_shl_load=yes
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 ac_cv_lib_dld_shl_load=no
12136 fi
12137 rm -f conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12140 fi
12141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12143 if test $ac_cv_lib_dld_shl_load = yes; then
12144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12145 else
12146 echo "$as_me:$LINENO: checking for dlopen" >&5
12147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12148 if test "${ac_cv_func_dlopen+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159 #define dlopen innocuous_dlopen
12160
12161 /* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char dlopen (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12165
12166 #ifdef __STDC__
12167 # include <limits.h>
12168 #else
12169 # include <assert.h>
12170 #endif
12171
12172 #undef dlopen
12173
12174 /* Override any gcc2 internal prototype to avoid an error. */
12175 #ifdef __cplusplus
12176 extern "C"
12177 {
12178 #endif
12179 /* We use char because int might match the return type of a gcc2
12180 builtin and then its argument prototype would still apply. */
12181 char dlopen ();
12182 /* The GNU C library defines this for functions which it implements
12183 to always fail with ENOSYS. Some functions are actually named
12184 something starting with __ and the normal name is an alias. */
12185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12186 choke me
12187 #else
12188 char (*f) () = dlopen;
12189 #endif
12190 #ifdef __cplusplus
12191 }
12192 #endif
12193
12194 int
12195 main ()
12196 {
12197 return f != dlopen;
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_cxx_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_func_dlopen=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_cv_func_dlopen=no
12230 fi
12231 rm -f conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233 fi
12234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12236 if test $ac_cv_func_dlopen = yes; then
12237 lt_cv_dlopen="dlopen"
12238 else
12239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-ldl $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252
12253 /* Override any gcc2 internal prototype to avoid an error. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 /* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12259 char dlopen ();
12260 int
12261 main ()
12262 {
12263 dlopen ();
12264 ;
12265 return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270 (eval $ac_link) 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_cxx_werror_flag"
12278 || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_lib_dl_dlopen=yes
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_cv_lib_dl_dlopen=no
12296 fi
12297 rm -f conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12300 fi
12301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12303 if test $ac_cv_lib_dl_dlopen = yes; then
12304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12305 else
12306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-lsvld $LIBS"
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319
12320 /* Override any gcc2 internal prototype to avoid an error. */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 /* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12326 char dlopen ();
12327 int
12328 main ()
12329 {
12330 dlopen ();
12331 ;
12332 return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_cxx_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_lib_svld_dlopen=yes
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_cv_lib_svld_dlopen=no
12363 fi
12364 rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12370 if test $ac_cv_lib_svld_dlopen = yes; then
12371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372 else
12373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-ldld $LIBS"
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386
12387 /* Override any gcc2 internal prototype to avoid an error. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 /* We use char because int might match the return type of a gcc2
12392 builtin and then its argument prototype would still apply. */
12393 char dld_link ();
12394 int
12395 main ()
12396 {
12397 dld_link ();
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_cxx_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_lib_dld_dld_link=yes
12425 else
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_cv_lib_dld_dld_link=no
12430 fi
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12434 fi
12435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12437 if test $ac_cv_lib_dld_dld_link = yes; then
12438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12439 fi
12440
12441
12442 fi
12443
12444
12445 fi
12446
12447
12448 fi
12449
12450
12451 fi
12452
12453
12454 fi
12455
12456 ;;
12457 esac
12458
12459 if test "x$lt_cv_dlopen" != xno; then
12460 enable_dlopen=yes
12461 else
12462 enable_dlopen=no
12463 fi
12464
12465 case $lt_cv_dlopen in
12466 dlopen)
12467 save_CPPFLAGS="$CPPFLAGS"
12468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12469
12470 save_LDFLAGS="$LDFLAGS"
12471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12472
12473 save_LIBS="$LIBS"
12474 LIBS="$lt_cv_dlopen_libs $LIBS"
12475
12476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12478 if test "${lt_cv_dlopen_self+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481 if test "$cross_compiling" = yes; then :
12482 lt_cv_dlopen_self=cross
12483 else
12484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12485 lt_status=$lt_dlunknown
12486 cat > conftest.$ac_ext <<EOF
12487 #line 12487 "configure"
12488 #include "confdefs.h"
12489
12490 #if HAVE_DLFCN_H
12491 #include <dlfcn.h>
12492 #endif
12493
12494 #include <stdio.h>
12495
12496 #ifdef RTLD_GLOBAL
12497 # define LT_DLGLOBAL RTLD_GLOBAL
12498 #else
12499 # ifdef DL_GLOBAL
12500 # define LT_DLGLOBAL DL_GLOBAL
12501 # else
12502 # define LT_DLGLOBAL 0
12503 # endif
12504 #endif
12505
12506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12507 find out it does not work in some platform. */
12508 #ifndef LT_DLLAZY_OR_NOW
12509 # ifdef RTLD_LAZY
12510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12511 # else
12512 # ifdef DL_LAZY
12513 # define LT_DLLAZY_OR_NOW DL_LAZY
12514 # else
12515 # ifdef RTLD_NOW
12516 # define LT_DLLAZY_OR_NOW RTLD_NOW
12517 # else
12518 # ifdef DL_NOW
12519 # define LT_DLLAZY_OR_NOW DL_NOW
12520 # else
12521 # define LT_DLLAZY_OR_NOW 0
12522 # endif
12523 # endif
12524 # endif
12525 # endif
12526 #endif
12527
12528 #ifdef __cplusplus
12529 extern "C" void exit (int);
12530 #endif
12531
12532 void fnord() { int i=42;}
12533 int main ()
12534 {
12535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12536 int status = $lt_dlunknown;
12537
12538 if (self)
12539 {
12540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12542 /* dlclose (self); */
12543 }
12544
12545 exit (status);
12546 }
12547 EOF
12548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12553 (./conftest; exit; ) 2>/dev/null
12554 lt_status=$?
12555 case x$lt_status in
12556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12559 esac
12560 else :
12561 # compilation failed
12562 lt_cv_dlopen_self=no
12563 fi
12564 fi
12565 rm -fr conftest*
12566
12567
12568 fi
12569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12571
12572 if test "x$lt_cv_dlopen_self" = xyes; then
12573 LDFLAGS="$LDFLAGS $link_static_flag"
12574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12576 if test "${lt_cv_dlopen_self_static+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579 if test "$cross_compiling" = yes; then :
12580 lt_cv_dlopen_self_static=cross
12581 else
12582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12583 lt_status=$lt_dlunknown
12584 cat > conftest.$ac_ext <<EOF
12585 #line 12585 "configure"
12586 #include "confdefs.h"
12587
12588 #if HAVE_DLFCN_H
12589 #include <dlfcn.h>
12590 #endif
12591
12592 #include <stdio.h>
12593
12594 #ifdef RTLD_GLOBAL
12595 # define LT_DLGLOBAL RTLD_GLOBAL
12596 #else
12597 # ifdef DL_GLOBAL
12598 # define LT_DLGLOBAL DL_GLOBAL
12599 # else
12600 # define LT_DLGLOBAL 0
12601 # endif
12602 #endif
12603
12604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12605 find out it does not work in some platform. */
12606 #ifndef LT_DLLAZY_OR_NOW
12607 # ifdef RTLD_LAZY
12608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12609 # else
12610 # ifdef DL_LAZY
12611 # define LT_DLLAZY_OR_NOW DL_LAZY
12612 # else
12613 # ifdef RTLD_NOW
12614 # define LT_DLLAZY_OR_NOW RTLD_NOW
12615 # else
12616 # ifdef DL_NOW
12617 # define LT_DLLAZY_OR_NOW DL_NOW
12618 # else
12619 # define LT_DLLAZY_OR_NOW 0
12620 # endif
12621 # endif
12622 # endif
12623 # endif
12624 #endif
12625
12626 #ifdef __cplusplus
12627 extern "C" void exit (int);
12628 #endif
12629
12630 void fnord() { int i=42;}
12631 int main ()
12632 {
12633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12634 int status = $lt_dlunknown;
12635
12636 if (self)
12637 {
12638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12640 /* dlclose (self); */
12641 }
12642
12643 exit (status);
12644 }
12645 EOF
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12651 (./conftest; exit; ) 2>/dev/null
12652 lt_status=$?
12653 case x$lt_status in
12654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12657 esac
12658 else :
12659 # compilation failed
12660 lt_cv_dlopen_self_static=no
12661 fi
12662 fi
12663 rm -fr conftest*
12664
12665
12666 fi
12667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12669 fi
12670
12671 CPPFLAGS="$save_CPPFLAGS"
12672 LDFLAGS="$save_LDFLAGS"
12673 LIBS="$save_LIBS"
12674 ;;
12675 esac
12676
12677 case $lt_cv_dlopen_self in
12678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12679 *) enable_dlopen_self=unknown ;;
12680 esac
12681
12682 case $lt_cv_dlopen_self_static in
12683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12684 *) enable_dlopen_self_static=unknown ;;
12685 esac
12686 fi
12687
12688
12689 # The else clause should only fire when bootstrapping the
12690 # libtool distribution, otherwise you forgot to ship ltmain.sh
12691 # with your package, and you will get complaints that there are
12692 # no rules to generate ltmain.sh.
12693 if test -f "$ltmain"; then
12694 # See if we are running on zsh, and set the options which allow our commands through
12695 # without removal of \ escapes.
12696 if test -n "${ZSH_VERSION+set}" ; then
12697 setopt NO_GLOB_SUBST
12698 fi
12699 # Now quote all the things that may contain metacharacters while being
12700 # careful not to overquote the AC_SUBSTed values. We take copies of the
12701 # variables and quote the copies for generation of the libtool script.
12702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12703 SED SHELL STRIP \
12704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12706 deplibs_check_method reload_flag reload_cmds need_locks \
12707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12708 lt_cv_sys_global_symbol_to_c_name_address \
12709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12710 old_postinstall_cmds old_postuninstall_cmds \
12711 compiler_CXX \
12712 CC_CXX \
12713 LD_CXX \
12714 lt_prog_compiler_wl_CXX \
12715 lt_prog_compiler_pic_CXX \
12716 lt_prog_compiler_static_CXX \
12717 lt_prog_compiler_no_builtin_flag_CXX \
12718 export_dynamic_flag_spec_CXX \
12719 thread_safe_flag_spec_CXX \
12720 whole_archive_flag_spec_CXX \
12721 enable_shared_with_static_runtimes_CXX \
12722 old_archive_cmds_CXX \
12723 old_archive_from_new_cmds_CXX \
12724 predep_objects_CXX \
12725 postdep_objects_CXX \
12726 predeps_CXX \
12727 postdeps_CXX \
12728 compiler_lib_search_path_CXX \
12729 archive_cmds_CXX \
12730 archive_expsym_cmds_CXX \
12731 postinstall_cmds_CXX \
12732 postuninstall_cmds_CXX \
12733 old_archive_from_expsyms_cmds_CXX \
12734 allow_undefined_flag_CXX \
12735 no_undefined_flag_CXX \
12736 export_symbols_cmds_CXX \
12737 hardcode_libdir_flag_spec_CXX \
12738 hardcode_libdir_flag_spec_ld_CXX \
12739 hardcode_libdir_separator_CXX \
12740 hardcode_automatic_CXX \
12741 module_cmds_CXX \
12742 module_expsym_cmds_CXX \
12743 lt_cv_prog_compiler_c_o_CXX \
12744 exclude_expsyms_CXX \
12745 include_expsyms_CXX; do
12746
12747 case $var in
12748 old_archive_cmds_CXX | \
12749 old_archive_from_new_cmds_CXX | \
12750 archive_cmds_CXX | \
12751 archive_expsym_cmds_CXX | \
12752 module_cmds_CXX | \
12753 module_expsym_cmds_CXX | \
12754 old_archive_from_expsyms_cmds_CXX | \
12755 export_symbols_cmds_CXX | \
12756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12757 postinstall_cmds | postuninstall_cmds | \
12758 old_postinstall_cmds | old_postuninstall_cmds | \
12759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12760 # Double-quote double-evaled strings.
12761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12762 ;;
12763 *)
12764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12765 ;;
12766 esac
12767 done
12768
12769 case $lt_echo in
12770 *'\$0 --fallback-echo"')
12771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12772 ;;
12773 esac
12774
12775 cfgfile="$ofile"
12776
12777 cat <<__EOF__ >> "$cfgfile"
12778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12779
12780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12781
12782 # Shell to use when invoking shell scripts.
12783 SHELL=$lt_SHELL
12784
12785 # Whether or not to build shared libraries.
12786 build_libtool_libs=$enable_shared
12787
12788 # Whether or not to build static libraries.
12789 build_old_libs=$enable_static
12790
12791 # Whether or not to add -lc for building shared libraries.
12792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12793
12794 # Whether or not to disallow shared libs when runtime libs are static
12795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12796
12797 # Whether or not to optimize for fast installation.
12798 fast_install=$enable_fast_install
12799
12800 # The host system.
12801 host_alias=$host_alias
12802 host=$host
12803
12804 # An echo program that does not interpret backslashes.
12805 echo=$lt_echo
12806
12807 # The archiver.
12808 AR=$lt_AR
12809 AR_FLAGS=$lt_AR_FLAGS
12810
12811 # A C compiler.
12812 LTCC=$lt_LTCC
12813
12814 # A language-specific compiler.
12815 CC=$lt_compiler_CXX
12816
12817 # Is the compiler the GNU C compiler?
12818 with_gcc=$GCC_CXX
12819
12820 # An ERE matcher.
12821 EGREP=$lt_EGREP
12822
12823 # The linker used to build libraries.
12824 LD=$lt_LD_CXX
12825
12826 # Whether we need hard or soft links.
12827 LN_S=$lt_LN_S
12828
12829 # A BSD-compatible nm program.
12830 NM=$lt_NM
12831
12832 # A symbol stripping program
12833 STRIP=$lt_STRIP
12834
12835 # Used to examine libraries when file_magic_cmd begins "file"
12836 MAGIC_CMD=$MAGIC_CMD
12837
12838 # Used on cygwin: DLL creation program.
12839 DLLTOOL="$DLLTOOL"
12840
12841 # Used on cygwin: object dumper.
12842 OBJDUMP="$OBJDUMP"
12843
12844 # Used on cygwin: assembler.
12845 AS="$AS"
12846
12847 # The name of the directory that contains temporary libtool files.
12848 objdir=$objdir
12849
12850 # How to create reloadable object files.
12851 reload_flag=$lt_reload_flag
12852 reload_cmds=$lt_reload_cmds
12853
12854 # How to pass a linker flag through the compiler.
12855 wl=$lt_lt_prog_compiler_wl_CXX
12856
12857 # Object file suffix (normally "o").
12858 objext="$ac_objext"
12859
12860 # Old archive suffix (normally "a").
12861 libext="$libext"
12862
12863 # Shared library suffix (normally ".so").
12864 shrext='$shrext'
12865
12866 # Executable file suffix (normally "").
12867 exeext="$exeext"
12868
12869 # Additional compiler flags for building library objects.
12870 pic_flag=$lt_lt_prog_compiler_pic_CXX
12871 pic_mode=$pic_mode
12872
12873 # What is the maximum length of a command?
12874 max_cmd_len=$lt_cv_sys_max_cmd_len
12875
12876 # Does compiler simultaneously support -c and -o options?
12877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12878
12879 # Must we lock files when doing compilation ?
12880 need_locks=$lt_need_locks
12881
12882 # Do we need the lib prefix for modules?
12883 need_lib_prefix=$need_lib_prefix
12884
12885 # Do we need a version for libraries?
12886 need_version=$need_version
12887
12888 # Whether dlopen is supported.
12889 dlopen_support=$enable_dlopen
12890
12891 # Whether dlopen of programs is supported.
12892 dlopen_self=$enable_dlopen_self
12893
12894 # Whether dlopen of statically linked programs is supported.
12895 dlopen_self_static=$enable_dlopen_self_static
12896
12897 # Compiler flag to prevent dynamic linking.
12898 link_static_flag=$lt_lt_prog_compiler_static_CXX
12899
12900 # Compiler flag to turn off builtin functions.
12901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12902
12903 # Compiler flag to allow reflexive dlopens.
12904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12905
12906 # Compiler flag to generate shared objects directly from archives.
12907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12908
12909 # Compiler flag to generate thread-safe objects.
12910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12911
12912 # Library versioning type.
12913 version_type=$version_type
12914
12915 # Format of library name prefix.
12916 libname_spec=$lt_libname_spec
12917
12918 # List of archive names. First name is the real one, the rest are links.
12919 # The last name is the one that the linker finds with -lNAME.
12920 library_names_spec=$lt_library_names_spec
12921
12922 # The coded name of the library, if different from the real name.
12923 soname_spec=$lt_soname_spec
12924
12925 # Commands used to build and install an old-style archive.
12926 RANLIB=$lt_RANLIB
12927 old_archive_cmds=$lt_old_archive_cmds_CXX
12928 old_postinstall_cmds=$lt_old_postinstall_cmds
12929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12930
12931 # Create an old-style archive from a shared archive.
12932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12933
12934 # Create a temporary old-style archive to link instead of a shared archive.
12935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12936
12937 # Commands used to build and install a shared archive.
12938 archive_cmds=$lt_archive_cmds_CXX
12939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12940 postinstall_cmds=$lt_postinstall_cmds
12941 postuninstall_cmds=$lt_postuninstall_cmds
12942
12943 # Commands used to build a loadable module (assumed same as above if empty)
12944 module_cmds=$lt_module_cmds_CXX
12945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12946
12947 # Commands to strip libraries.
12948 old_striplib=$lt_old_striplib
12949 striplib=$lt_striplib
12950
12951 # Dependencies to place before the objects being linked to create a
12952 # shared library.
12953 predep_objects=$lt_predep_objects_CXX
12954
12955 # Dependencies to place after the objects being linked to create a
12956 # shared library.
12957 postdep_objects=$lt_postdep_objects_CXX
12958
12959 # Dependencies to place before the objects being linked to create a
12960 # shared library.
12961 predeps=$lt_predeps_CXX
12962
12963 # Dependencies to place after the objects being linked to create a
12964 # shared library.
12965 postdeps=$lt_postdeps_CXX
12966
12967 # The library search path used internally by the compiler when linking
12968 # a shared library.
12969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12970
12971 # Method to check whether dependent libraries are shared objects.
12972 deplibs_check_method=$lt_deplibs_check_method
12973
12974 # Command to use when deplibs_check_method == file_magic.
12975 file_magic_cmd=$lt_file_magic_cmd
12976
12977 # Flag that allows shared libraries with undefined symbols to be built.
12978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12979
12980 # Flag that forces no undefined symbols.
12981 no_undefined_flag=$lt_no_undefined_flag_CXX
12982
12983 # Commands used to finish a libtool library installation in a directory.
12984 finish_cmds=$lt_finish_cmds
12985
12986 # Same as above, but a single script fragment to be evaled but not shown.
12987 finish_eval=$lt_finish_eval
12988
12989 # Take the output of nm and produce a listing of raw symbols and C names.
12990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12991
12992 # Transform the output of nm in a proper C declaration
12993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12994
12995 # Transform the output of nm in a C name address pair
12996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12997
12998 # This is the shared library runtime path variable.
12999 runpath_var=$runpath_var
13000
13001 # This is the shared library path variable.
13002 shlibpath_var=$shlibpath_var
13003
13004 # Is shlibpath searched before the hard-coded library search path?
13005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13006
13007 # How to hardcode a shared library path into an executable.
13008 hardcode_action=$hardcode_action_CXX
13009
13010 # Whether we should hardcode library paths into libraries.
13011 hardcode_into_libs=$hardcode_into_libs
13012
13013 # Flag to hardcode \$libdir into a binary during linking.
13014 # This must work even if \$libdir does not exist.
13015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13016
13017 # If ld is used when linking, flag to hardcode \$libdir into
13018 # a binary during linking. This must work even if \$libdir does
13019 # not exist.
13020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13021
13022 # Whether we need a single -rpath flag with a separated argument.
13023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13024
13025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13026 # resulting binary.
13027 hardcode_direct=$hardcode_direct_CXX
13028
13029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13030 # resulting binary.
13031 hardcode_minus_L=$hardcode_minus_L_CXX
13032
13033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13034 # the resulting binary.
13035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13036
13037 # Set to yes if building a shared library automatically hardcodes DIR into the library
13038 # and all subsequent libraries and executables linked against it.
13039 hardcode_automatic=$hardcode_automatic_CXX
13040
13041 # Variables whose values should be saved in libtool wrapper scripts and
13042 # restored at relink time.
13043 variables_saved_for_relink="$variables_saved_for_relink"
13044
13045 # Whether libtool must link a program against all its dependency libraries.
13046 link_all_deplibs=$link_all_deplibs_CXX
13047
13048 # Compile-time system search path for libraries
13049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13050
13051 # Run-time system search path for libraries
13052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13053
13054 # Fix the shell variable \$srcfile for the compiler.
13055 fix_srcfile_path="$fix_srcfile_path_CXX"
13056
13057 # Set to yes if exported symbols are required.
13058 always_export_symbols=$always_export_symbols_CXX
13059
13060 # The commands to list exported symbols.
13061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13062
13063 # The commands to extract the exported symbol list from a shared archive.
13064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13065
13066 # Symbols that should not be listed in the preloaded symbols.
13067 exclude_expsyms=$lt_exclude_expsyms_CXX
13068
13069 # Symbols that must always be exported.
13070 include_expsyms=$lt_include_expsyms_CXX
13071
13072 # ### END LIBTOOL TAG CONFIG: $tagname
13073
13074 __EOF__
13075
13076
13077 else
13078 # If there is no Makefile yet, we rely on a make rule to execute
13079 # `config.status --recheck' to rerun these tests and create the
13080 # libtool script then.
13081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13082 if test -f "$ltmain_in"; then
13083 test -f Makefile && make "$ltmain"
13084 fi
13085 fi
13086
13087
13088 ac_ext=c
13089 ac_cpp='$CPP $CPPFLAGS'
13090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13093
13094 CC=$lt_save_CC
13095 LDCXX=$LD
13096 LD=$lt_save_LD
13097 GCC=$lt_save_GCC
13098 with_gnu_ldcxx=$with_gnu_ld
13099 with_gnu_ld=$lt_save_with_gnu_ld
13100 lt_cv_path_LDCXX=$lt_cv_path_LD
13101 lt_cv_path_LD=$lt_save_path_LD
13102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13104
13105 else
13106 tagname=""
13107 fi
13108 ;;
13109
13110 F77)
13111 if test -n "$F77" && test "X$F77" != "Xno"; then
13112
13113 ac_ext=f
13114 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13115 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13117
13118
13119 archive_cmds_need_lc_F77=no
13120 allow_undefined_flag_F77=
13121 always_export_symbols_F77=no
13122 archive_expsym_cmds_F77=
13123 export_dynamic_flag_spec_F77=
13124 hardcode_direct_F77=no
13125 hardcode_libdir_flag_spec_F77=
13126 hardcode_libdir_flag_spec_ld_F77=
13127 hardcode_libdir_separator_F77=
13128 hardcode_minus_L_F77=no
13129 hardcode_automatic_F77=no
13130 module_cmds_F77=
13131 module_expsym_cmds_F77=
13132 link_all_deplibs_F77=unknown
13133 old_archive_cmds_F77=$old_archive_cmds
13134 no_undefined_flag_F77=
13135 whole_archive_flag_spec_F77=
13136 enable_shared_with_static_runtimes_F77=no
13137
13138 # Source file extension for f77 test sources.
13139 ac_ext=f
13140
13141 # Object file extension for compiled f77 test sources.
13142 objext=o
13143 objext_F77=$objext
13144
13145 # Code to be used in simple compile tests
13146 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13147
13148 # Code to be used in simple link tests
13149 lt_simple_link_test_code=" program t\n end\n"
13150
13151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152
13153 # If no C compiler was specified, use CC.
13154 LTCC=${LTCC-"$CC"}
13155
13156 # Allow CC to be a program name with arguments.
13157 compiler=$CC
13158
13159
13160 # Allow CC to be a program name with arguments.
13161 lt_save_CC="$CC"
13162 CC=${F77-"f77"}
13163 compiler=$CC
13164 compiler_F77=$CC
13165 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13166
13167 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13168 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13169 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13170 echo "${ECHO_T}$can_build_shared" >&6
13171
13172 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13173 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13174 test "$can_build_shared" = "no" && enable_shared=no
13175
13176 # On AIX, shared libraries and static libraries use the same namespace, and
13177 # are all built from PIC.
13178 case "$host_os" in
13179 aix3*)
13180 test "$enable_shared" = yes && enable_static=no
13181 if test -n "$RANLIB"; then
13182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13183 postinstall_cmds='$RANLIB $lib'
13184 fi
13185 ;;
13186 aix4*)
13187 test "$enable_shared" = yes && enable_static=no
13188 ;;
13189 esac
13190 echo "$as_me:$LINENO: result: $enable_shared" >&5
13191 echo "${ECHO_T}$enable_shared" >&6
13192
13193 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13195 # Make sure either enable_shared or enable_static is yes.
13196 test "$enable_shared" = yes || enable_static=yes
13197 echo "$as_me:$LINENO: result: $enable_static" >&5
13198 echo "${ECHO_T}$enable_static" >&6
13199
13200 test "$ld_shlibs_F77" = no && can_build_shared=no
13201
13202 GCC_F77="$G77"
13203 LD_F77="$LD"
13204
13205 lt_prog_compiler_wl_F77=
13206 lt_prog_compiler_pic_F77=
13207 lt_prog_compiler_static_F77=
13208
13209 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13210 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13211
13212 if test "$GCC" = yes; then
13213 lt_prog_compiler_wl_F77='-Wl,'
13214 lt_prog_compiler_static_F77='-static'
13215
13216 case $host_os in
13217 aix*)
13218 # All AIX code is PIC.
13219 if test "$host_cpu" = ia64; then
13220 # AIX 5 now supports IA64 processor
13221 lt_prog_compiler_static_F77='-Bstatic'
13222 fi
13223 ;;
13224
13225 amigaos*)
13226 # FIXME: we need at least 68020 code to build shared libraries, but
13227 # adding the `-m68020' flag to GCC prevents building anything better,
13228 # like `-m68040'.
13229 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13230 ;;
13231
13232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233 # PIC is the default for these OSes.
13234 ;;
13235
13236 mingw* | pw32* | os2*)
13237 # This hack is so that the source file can tell whether it is being
13238 # built for inclusion in a dll (and should export symbols for example).
13239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13240 ;;
13241
13242 darwin* | rhapsody*)
13243 # PIC is the default on this platform
13244 # Common symbols not allowed in MH_DYLIB files
13245 lt_prog_compiler_pic_F77='-fno-common'
13246 ;;
13247
13248 msdosdjgpp*)
13249 # Just because we use GCC doesn't mean we suddenly get shared libraries
13250 # on systems that don't support them.
13251 lt_prog_compiler_can_build_shared_F77=no
13252 enable_shared=no
13253 ;;
13254
13255 sysv4*MP*)
13256 if test -d /usr/nec; then
13257 lt_prog_compiler_pic_F77=-Kconform_pic
13258 fi
13259 ;;
13260
13261 hpux*)
13262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13263 # not for PA HP-UX.
13264 case "$host_cpu" in
13265 hppa*64*|ia64*)
13266 # +Z the default
13267 ;;
13268 *)
13269 lt_prog_compiler_pic_F77='-fPIC'
13270 ;;
13271 esac
13272 ;;
13273
13274 *)
13275 lt_prog_compiler_pic_F77='-fPIC'
13276 ;;
13277 esac
13278 else
13279 # PORTME Check for flag to pass linker flags through the system compiler.
13280 case $host_os in
13281 aix*)
13282 lt_prog_compiler_wl_F77='-Wl,'
13283 if test "$host_cpu" = ia64; then
13284 # AIX 5 now supports IA64 processor
13285 lt_prog_compiler_static_F77='-Bstatic'
13286 else
13287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13288 fi
13289 ;;
13290
13291 mingw* | pw32* | os2*)
13292 # This hack is so that the source file can tell whether it is being
13293 # built for inclusion in a dll (and should export symbols for example).
13294 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13295 ;;
13296
13297 hpux9* | hpux10* | hpux11*)
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13300 # not for PA HP-UX.
13301 case "$host_cpu" in
13302 hppa*64*|ia64*)
13303 # +Z the default
13304 ;;
13305 *)
13306 lt_prog_compiler_pic_F77='+Z'
13307 ;;
13308 esac
13309 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13310 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13311 ;;
13312
13313 irix5* | irix6* | nonstopux*)
13314 lt_prog_compiler_wl_F77='-Wl,'
13315 # PIC (with -KPIC) is the default.
13316 lt_prog_compiler_static_F77='-non_shared'
13317 ;;
13318
13319 newsos6)
13320 lt_prog_compiler_pic_F77='-KPIC'
13321 lt_prog_compiler_static_F77='-Bstatic'
13322 ;;
13323
13324 linux*)
13325 case $CC in
13326 icc* | ecc*)
13327 lt_prog_compiler_wl_F77='-Wl,'
13328 lt_prog_compiler_pic_F77='-KPIC'
13329 lt_prog_compiler_static_F77='-static'
13330 ;;
13331 ccc*)
13332 lt_prog_compiler_wl_F77='-Wl,'
13333 # All Alpha code is PIC.
13334 lt_prog_compiler_static_F77='-non_shared'
13335 ;;
13336 esac
13337 ;;
13338
13339 osf3* | osf4* | osf5*)
13340 lt_prog_compiler_wl_F77='-Wl,'
13341 # All OSF/1 code is PIC.
13342 lt_prog_compiler_static_F77='-non_shared'
13343 ;;
13344
13345 sco3.2v5*)
13346 lt_prog_compiler_pic_F77='-Kpic'
13347 lt_prog_compiler_static_F77='-dn'
13348 ;;
13349
13350 solaris*)
13351 lt_prog_compiler_wl_F77='-Wl,'
13352 lt_prog_compiler_pic_F77='-KPIC'
13353 lt_prog_compiler_static_F77='-Bstatic'
13354 ;;
13355
13356 sunos4*)
13357 lt_prog_compiler_wl_F77='-Qoption ld '
13358 lt_prog_compiler_pic_F77='-PIC'
13359 lt_prog_compiler_static_F77='-Bstatic'
13360 ;;
13361
13362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 lt_prog_compiler_pic_F77='-KPIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13366 ;;
13367
13368 sysv4*MP*)
13369 if test -d /usr/nec ;then
13370 lt_prog_compiler_pic_F77='-Kconform_pic'
13371 lt_prog_compiler_static_F77='-Bstatic'
13372 fi
13373 ;;
13374
13375 uts4*)
13376 lt_prog_compiler_pic_F77='-pic'
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 ;;
13379
13380 *)
13381 lt_prog_compiler_can_build_shared_F77=no
13382 ;;
13383 esac
13384 fi
13385
13386 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13387 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13388
13389 #
13390 # Check to make sure the PIC flag actually works.
13391 #
13392 if test -n "$lt_prog_compiler_pic_F77"; then
13393
13394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13396 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399 lt_prog_compiler_pic_works_F77=no
13400 ac_outfile=conftest.$ac_objext
13401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13402 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13403 # Insert the option either (1) after the last *FLAGS variable, or
13404 # (2) before a word containing "conftest.", or (3) at the end.
13405 # Note that $ac_compile itself does not contain backslashes and begins
13406 # with a dollar sign (not a hyphen), so the echo should work correctly.
13407 # The option is referenced via a variable to avoid confusing sed.
13408 lt_compile=`echo "$ac_compile" | $SED \
13409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13411 -e 's:$: $lt_compiler_flag:'`
13412 (eval echo "\"\$as_me:13412: $lt_compile\"" >&5)
13413 (eval "$lt_compile" 2>conftest.err)
13414 ac_status=$?
13415 cat conftest.err >&5
13416 echo "$as_me:13416: \$? = $ac_status" >&5
13417 if (exit $ac_status) && test -s "$ac_outfile"; then
13418 # The compiler can only warn and ignore the option if not recognized
13419 # So say no if there are warnings
13420 if test ! -s conftest.err; then
13421 lt_prog_compiler_pic_works_F77=yes
13422 fi
13423 fi
13424 $rm conftest*
13425
13426 fi
13427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13428 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13429
13430 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13431 case $lt_prog_compiler_pic_F77 in
13432 "" | " "*) ;;
13433 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13434 esac
13435 else
13436 lt_prog_compiler_pic_F77=
13437 lt_prog_compiler_can_build_shared_F77=no
13438 fi
13439
13440 fi
13441 case "$host_os" in
13442 # For platforms which do not support PIC, -DPIC is meaningless:
13443 *djgpp*)
13444 lt_prog_compiler_pic_F77=
13445 ;;
13446 *)
13447 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13448 ;;
13449 esac
13450
13451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13453 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 lt_cv_prog_compiler_c_o_F77=no
13457 $rm -r conftest 2>/dev/null
13458 mkdir conftest
13459 cd conftest
13460 mkdir out
13461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13462
13463 lt_compiler_flag="-o out/conftest2.$ac_objext"
13464 # Insert the option either (1) after the last *FLAGS variable, or
13465 # (2) before a word containing "conftest.", or (3) at the end.
13466 # Note that $ac_compile itself does not contain backslashes and begins
13467 # with a dollar sign (not a hyphen), so the echo should work correctly.
13468 lt_compile=`echo "$ac_compile" | $SED \
13469 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13471 -e 's:$: $lt_compiler_flag:'`
13472 (eval echo "\"\$as_me:13472: $lt_compile\"" >&5)
13473 (eval "$lt_compile" 2>out/conftest.err)
13474 ac_status=$?
13475 cat out/conftest.err >&5
13476 echo "$as_me:13476: \$? = $ac_status" >&5
13477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13478 then
13479 # The compiler can only warn and ignore the option if not recognized
13480 # So say no if there are warnings
13481 if test ! -s out/conftest.err; then
13482 lt_cv_prog_compiler_c_o_F77=yes
13483 fi
13484 fi
13485 chmod u+w .
13486 $rm conftest*
13487 # SGI C++ compiler will create directory out/ii_files/ for
13488 # template instantiation
13489 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13490 $rm out/* && rmdir out
13491 cd ..
13492 rmdir conftest
13493 $rm conftest*
13494
13495 fi
13496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13497 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13498
13499
13500 hard_links="nottested"
13501 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13502 # do not overwrite the value of need_locks provided by the user
13503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13505 hard_links=yes
13506 $rm conftest*
13507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13508 touch conftest.a
13509 ln conftest.a conftest.b 2>&5 || hard_links=no
13510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13511 echo "$as_me:$LINENO: result: $hard_links" >&5
13512 echo "${ECHO_T}$hard_links" >&6
13513 if test "$hard_links" = no; then
13514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13516 need_locks=warn
13517 fi
13518 else
13519 need_locks=no
13520 fi
13521
13522 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13523 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13524
13525 runpath_var=
13526 allow_undefined_flag_F77=
13527 enable_shared_with_static_runtimes_F77=no
13528 archive_cmds_F77=
13529 archive_expsym_cmds_F77=
13530 old_archive_From_new_cmds_F77=
13531 old_archive_from_expsyms_cmds_F77=
13532 export_dynamic_flag_spec_F77=
13533 whole_archive_flag_spec_F77=
13534 thread_safe_flag_spec_F77=
13535 hardcode_libdir_flag_spec_F77=
13536 hardcode_libdir_flag_spec_ld_F77=
13537 hardcode_libdir_separator_F77=
13538 hardcode_direct_F77=no
13539 hardcode_minus_L_F77=no
13540 hardcode_shlibpath_var_F77=unsupported
13541 link_all_deplibs_F77=unknown
13542 hardcode_automatic_F77=no
13543 module_cmds_F77=
13544 module_expsym_cmds_F77=
13545 always_export_symbols_F77=no
13546 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13547 # include_expsyms should be a list of space-separated symbols to be *always*
13548 # included in the symbol list
13549 include_expsyms_F77=
13550 # exclude_expsyms can be an extended regexp of symbols to exclude
13551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13553 # as well as any symbol that contains `d'.
13554 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13556 # platforms (ab)use it in PIC code, but their linkers get confused if
13557 # the symbol is explicitly referenced. Since portable code cannot
13558 # rely on this symbol name, it's probably fine to never include it in
13559 # preloaded symbol tables.
13560 extract_expsyms_cmds=
13561
13562 case $host_os in
13563 cygwin* | mingw* | pw32*)
13564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13565 # When not using gcc, we currently assume that we are using
13566 # Microsoft Visual C++.
13567 if test "$GCC" != yes; then
13568 with_gnu_ld=no
13569 fi
13570 ;;
13571 openbsd*)
13572 with_gnu_ld=no
13573 ;;
13574 esac
13575
13576 ld_shlibs_F77=yes
13577 if test "$with_gnu_ld" = yes; then
13578 # If archive_cmds runs LD, not CC, wlarc should be empty
13579 wlarc='${wl}'
13580
13581 # See if GNU ld supports shared libraries.
13582 case $host_os in
13583 aix3* | aix4* | aix5*)
13584 # On AIX/PPC, the GNU linker is very broken
13585 if test "$host_cpu" != ia64; then
13586 ld_shlibs_F77=no
13587 cat <<EOF 1>&2
13588
13589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13590 *** to be unable to reliably create shared libraries on AIX.
13591 *** Therefore, libtool is disabling shared libraries support. If you
13592 *** really care for shared libraries, you may want to modify your PATH
13593 *** so that a non-GNU linker is found, and then restart.
13594
13595 EOF
13596 fi
13597 ;;
13598
13599 amigaos*)
13600 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)'
13601 hardcode_libdir_flag_spec_F77='-L$libdir'
13602 hardcode_minus_L_F77=yes
13603
13604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13605 # that the semantics of dynamic libraries on AmigaOS, at least up
13606 # to version 4, is to share data among multiple programs linked
13607 # with the same dynamic library. Since this doesn't match the
13608 # behavior of shared libraries on other platforms, we can't use
13609 # them.
13610 ld_shlibs_F77=no
13611 ;;
13612
13613 beos*)
13614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615 allow_undefined_flag_F77=unsupported
13616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13617 # support --undefined. This deserves some investigation. FIXME
13618 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619 else
13620 ld_shlibs_F77=no
13621 fi
13622 ;;
13623
13624 cygwin* | mingw* | pw32*)
13625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13626 # as there is no search path for DLLs.
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 allow_undefined_flag_F77=unsupported
13629 always_export_symbols_F77=no
13630 enable_shared_with_static_runtimes_F77=yes
13631 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13632
13633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13635 # If the export-symbols file already is a .def file (1st line
13636 # is EXPORTS), use it as is; otherwise, prepend...
13637 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638 cp $export_symbols $output_objdir/$soname.def;
13639 else
13640 echo EXPORTS > $output_objdir/$soname.def;
13641 cat $export_symbols >> $output_objdir/$soname.def;
13642 fi~
13643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13644 else
13645 ld_shlibs=no
13646 fi
13647 ;;
13648
13649 netbsd*)
13650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13651 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13652 wlarc=
13653 else
13654 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13655 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13656 fi
13657 ;;
13658
13659 solaris* | sysv5*)
13660 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13661 ld_shlibs_F77=no
13662 cat <<EOF 1>&2
13663
13664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13665 *** create shared libraries on Solaris systems. Therefore, libtool
13666 *** is disabling shared libraries support. We urge you to upgrade GNU
13667 *** binutils to release 2.9.1 or newer. Another option is to modify
13668 *** your PATH or compiler configuration so that the native linker is
13669 *** used, and then restart.
13670
13671 EOF
13672 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13675 else
13676 ld_shlibs_F77=no
13677 fi
13678 ;;
13679
13680 sunos4*)
13681 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13682 wlarc=
13683 hardcode_direct_F77=yes
13684 hardcode_shlibpath_var_F77=no
13685 ;;
13686
13687 linux*)
13688 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13689 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690 archive_cmds_F77="$tmp_archive_cmds"
13691 supports_anon_versioning=no
13692 case `$LD -v 2>/dev/null` in
13693 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13696 *\ 2.11.*) ;; # other 2.11 versions
13697 *) supports_anon_versioning=yes ;;
13698 esac
13699 if test $supports_anon_versioning = yes; then
13700 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13702 $echo "local: *; };" >> $output_objdir/$libname.ver~
13703 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13704 else
13705 archive_expsym_cmds_F77="$tmp_archive_cmds"
13706 fi
13707 else
13708 ld_shlibs_F77=no
13709 fi
13710 ;;
13711
13712 *)
13713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13716 else
13717 ld_shlibs_F77=no
13718 fi
13719 ;;
13720 esac
13721
13722 if test "$ld_shlibs_F77" = yes; then
13723 runpath_var=LD_RUN_PATH
13724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13726 # ancient GNU ld didn't support --whole-archive et. al.
13727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729 else
13730 whole_archive_flag_spec_F77=
13731 fi
13732 fi
13733 else
13734 # PORTME fill in a description of your system's linker (not GNU ld)
13735 case $host_os in
13736 aix3*)
13737 allow_undefined_flag_F77=unsupported
13738 always_export_symbols_F77=yes
13739 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'
13740 # Note: this linker hardcodes the directories in LIBPATH if there
13741 # are no directories specified by -L.
13742 hardcode_minus_L_F77=yes
13743 if test "$GCC" = yes && test -z "$link_static_flag"; then
13744 # Neither direct hardcoding nor static linking is supported with a
13745 # broken collect2.
13746 hardcode_direct_F77=unsupported
13747 fi
13748 ;;
13749
13750 aix4* | aix5*)
13751 if test "$host_cpu" = ia64; then
13752 # On IA64, the linker does run time linking by default, so we don't
13753 # have to do anything special.
13754 aix_use_runtimelinking=no
13755 exp_sym_flag='-Bexport'
13756 no_entry_flag=""
13757 else
13758 # If we're using GNU nm, then we don't want the "-C" option.
13759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13760 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13761 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'
13762 else
13763 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'
13764 fi
13765 aix_use_runtimelinking=no
13766
13767 # Test if we are trying to use run time linking or normal
13768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13769 # need to do runtime linking.
13770 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13771 for ld_flag in $LDFLAGS; do
13772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13773 aix_use_runtimelinking=yes
13774 break
13775 fi
13776 done
13777 esac
13778
13779 exp_sym_flag='-bexport'
13780 no_entry_flag='-bnoentry'
13781 fi
13782
13783 # When large executables or shared objects are built, AIX ld can
13784 # have problems creating the table of contents. If linking a library
13785 # or program results in "error TOC overflow" add -mminimal-toc to
13786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13788
13789 archive_cmds_F77=''
13790 hardcode_direct_F77=yes
13791 hardcode_libdir_separator_F77=':'
13792 link_all_deplibs_F77=yes
13793
13794 if test "$GCC" = yes; then
13795 case $host_os in aix4.012|aix4.012.*)
13796 # We only want to do this on AIX 4.2 and lower, the check
13797 # below for broken collect2 doesn't work under 4.3+
13798 collect2name=`${CC} -print-prog-name=collect2`
13799 if test -f "$collect2name" && \
13800 strings "$collect2name" | grep resolve_lib_name >/dev/null
13801 then
13802 # We have reworked collect2
13803 hardcode_direct_F77=yes
13804 else
13805 # We have old collect2
13806 hardcode_direct_F77=unsupported
13807 # It fails to find uninstalled libraries when the uninstalled
13808 # path is not listed in the libpath. Setting hardcode_minus_L
13809 # to unsupported forces relinking
13810 hardcode_minus_L_F77=yes
13811 hardcode_libdir_flag_spec_F77='-L$libdir'
13812 hardcode_libdir_separator_F77=
13813 fi
13814 esac
13815 shared_flag='-shared'
13816 else
13817 # not using gcc
13818 if test "$host_cpu" = ia64; then
13819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820 # chokes on -Wl,-G. The following line is correct:
13821 shared_flag='-G'
13822 else
13823 if test "$aix_use_runtimelinking" = yes; then
13824 shared_flag='${wl}-G'
13825 else
13826 shared_flag='${wl}-bM:SRE'
13827 fi
13828 fi
13829 fi
13830
13831 # It seems that -bexpall does not export symbols beginning with
13832 # underscore (_), so it is better to generate a list of symbols to export.
13833 always_export_symbols_F77=yes
13834 if test "$aix_use_runtimelinking" = yes; then
13835 # Warning - without using the other runtime loading flags (-brtl),
13836 # -berok will link without error, but may produce a broken library.
13837 allow_undefined_flag_F77='-berok'
13838 # Determine the default libpath from the value encoded in an empty executable.
13839 cat >conftest.$ac_ext <<_ACEOF
13840 program main
13841
13842 end
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_f77_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866
13867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13868 }'`
13869 # Check for a 64-bit object if we didn't find anything.
13870 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; }
13871 }'`; fi
13872 else
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 fi
13877 rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880
13881 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882 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"
13883 else
13884 if test "$host_cpu" = ia64; then
13885 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13886 allow_undefined_flag_F77="-z nodefs"
13887 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"
13888 else
13889 # Determine the default libpath from the value encoded in an empty executable.
13890 cat >conftest.$ac_ext <<_ACEOF
13891 program main
13892
13893 end
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -z "$ac_f77_werror_flag"
13905 || test ! -s conftest.err'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest$ac_exeext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917
13918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13919 }'`
13920 # Check for a 64-bit object if we didn't find anything.
13921 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; }
13922 }'`; fi
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 fi
13928 rm -f conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13931
13932 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13933 # Warning - without using the other run time loading flags,
13934 # -berok will link without error, but may produce a broken library.
13935 no_undefined_flag_F77=' ${wl}-bernotok'
13936 allow_undefined_flag_F77=' ${wl}-berok'
13937 # -bexpall does not export symbols beginning with underscore (_)
13938 always_export_symbols_F77=yes
13939 # Exported symbols can be pulled into shared objects from archives
13940 whole_archive_flag_spec_F77=' '
13941 archive_cmds_need_lc_F77=yes
13942 # This is similar to how AIX traditionally builds it's shared libraries.
13943 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'
13944 fi
13945 fi
13946 ;;
13947
13948 amigaos*)
13949 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)'
13950 hardcode_libdir_flag_spec_F77='-L$libdir'
13951 hardcode_minus_L_F77=yes
13952 # see comment about different semantics on the GNU ld section
13953 ld_shlibs_F77=no
13954 ;;
13955
13956 bsdi4*)
13957 export_dynamic_flag_spec_F77=-rdynamic
13958 ;;
13959
13960 cygwin* | mingw* | pw32*)
13961 # When not using gcc, we currently assume that we are using
13962 # Microsoft Visual C++.
13963 # hardcode_libdir_flag_spec is actually meaningless, as there is
13964 # no search path for DLLs.
13965 hardcode_libdir_flag_spec_F77=' '
13966 allow_undefined_flag_F77=unsupported
13967 # Tell ltmain to make .lib files, not .a files.
13968 libext=lib
13969 # Tell ltmain to make .dll files, not .so files.
13970 shrext=".dll"
13971 # FIXME: Setting linknames here is a bad hack.
13972 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13973 # The linker will automatically build a .lib file if we build a DLL.
13974 old_archive_From_new_cmds_F77='true'
13975 # FIXME: Should let the user specify the lib program.
13976 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13977 fix_srcfile_path='`cygpath -w "$srcfile"`'
13978 enable_shared_with_static_runtimes_F77=yes
13979 ;;
13980
13981 darwin* | rhapsody*)
13982 if test "$GXX" = yes ; then
13983 archive_cmds_need_lc_F77=no
13984 case "$host_os" in
13985 rhapsody* | darwin1.[012])
13986 allow_undefined_flag_F77='-undefined suppress'
13987 ;;
13988 *) # Darwin 1.3 on
13989 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13990 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13991 else
13992 case ${MACOSX_DEPLOYMENT_TARGET} in
13993 10.[012])
13994 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13995 ;;
13996 10.*)
13997 allow_undefined_flag_F77='-undefined dynamic_lookup'
13998 ;;
13999 esac
14000 fi
14001 ;;
14002 esac
14003 lt_int_apple_cc_single_mod=no
14004 output_verbose_link_cmd='echo'
14005 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14006 lt_int_apple_cc_single_mod=yes
14007 fi
14008 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14009 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14010 else
14011 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'
14012 fi
14013 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14014 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14015 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14016 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}'
14017 else
14018 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}'
14019 fi
14020 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}'
14021 hardcode_direct_F77=no
14022 hardcode_automatic_F77=yes
14023 hardcode_shlibpath_var_F77=unsupported
14024 whole_archive_flag_spec_F77='-all_load $convenience'
14025 link_all_deplibs_F77=yes
14026 else
14027 ld_shlibs_F77=no
14028 fi
14029 ;;
14030
14031 dgux*)
14032 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_libdir_flag_spec_F77='-L$libdir'
14034 hardcode_shlibpath_var_F77=no
14035 ;;
14036
14037 freebsd1*)
14038 ld_shlibs_F77=no
14039 ;;
14040
14041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14042 # support. Future versions do this automatically, but an explicit c++rt0.o
14043 # does not break anything, and helps significantly (at the cost of a little
14044 # extra space).
14045 freebsd2.2*)
14046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14047 hardcode_libdir_flag_spec_F77='-R$libdir'
14048 hardcode_direct_F77=yes
14049 hardcode_shlibpath_var_F77=no
14050 ;;
14051
14052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14053 freebsd2*)
14054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14055 hardcode_direct_F77=yes
14056 hardcode_minus_L_F77=yes
14057 hardcode_shlibpath_var_F77=no
14058 ;;
14059
14060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14061 freebsd* | kfreebsd*-gnu)
14062 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14063 hardcode_libdir_flag_spec_F77='-R$libdir'
14064 hardcode_direct_F77=yes
14065 hardcode_shlibpath_var_F77=no
14066 ;;
14067
14068 hpux9*)
14069 if test "$GCC" = yes; then
14070 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'
14071 else
14072 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'
14073 fi
14074 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14075 hardcode_libdir_separator_F77=:
14076 hardcode_direct_F77=yes
14077
14078 # hardcode_minus_L: Not really in the search PATH,
14079 # but as the default location of the library.
14080 hardcode_minus_L_F77=yes
14081 export_dynamic_flag_spec_F77='${wl}-E'
14082 ;;
14083
14084 hpux10* | hpux11*)
14085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14086 case "$host_cpu" in
14087 hppa*64*|ia64*)
14088 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 *)
14091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14092 ;;
14093 esac
14094 else
14095 case "$host_cpu" in
14096 hppa*64*|ia64*)
14097 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14098 ;;
14099 *)
14100 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14101 ;;
14102 esac
14103 fi
14104 if test "$with_gnu_ld" = no; then
14105 case "$host_cpu" in
14106 hppa*64*)
14107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14109 hardcode_libdir_separator_F77=:
14110 hardcode_direct_F77=no
14111 hardcode_shlibpath_var_F77=no
14112 ;;
14113 ia64*)
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_direct_F77=no
14116 hardcode_shlibpath_var_F77=no
14117
14118 # hardcode_minus_L: Not really in the search PATH,
14119 # but as the default location of the library.
14120 hardcode_minus_L_F77=yes
14121 ;;
14122 *)
14123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 hardcode_direct_F77=yes
14126 export_dynamic_flag_spec_F77='${wl}-E'
14127
14128 # hardcode_minus_L: Not really in the search PATH,
14129 # but as the default location of the library.
14130 hardcode_minus_L_F77=yes
14131 ;;
14132 esac
14133 fi
14134 ;;
14135
14136 irix5* | irix6* | nonstopux*)
14137 if test "$GCC" = yes; then
14138 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'
14139 else
14140 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'
14141 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14142 fi
14143 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14144 hardcode_libdir_separator_F77=:
14145 link_all_deplibs_F77=yes
14146 ;;
14147
14148 netbsd*)
14149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14150 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14151 else
14152 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14153 fi
14154 hardcode_libdir_flag_spec_F77='-R$libdir'
14155 hardcode_direct_F77=yes
14156 hardcode_shlibpath_var_F77=no
14157 ;;
14158
14159 newsos6)
14160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14161 hardcode_direct_F77=yes
14162 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14163 hardcode_libdir_separator_F77=:
14164 hardcode_shlibpath_var_F77=no
14165 ;;
14166
14167 openbsd*)
14168 hardcode_direct_F77=yes
14169 hardcode_shlibpath_var_F77=no
14170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14171 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 export_dynamic_flag_spec_F77='${wl}-E'
14174 else
14175 case $host_os in
14176 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14177 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14178 hardcode_libdir_flag_spec_F77='-R$libdir'
14179 ;;
14180 *)
14181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14182 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14183 ;;
14184 esac
14185 fi
14186 ;;
14187
14188 os2*)
14189 hardcode_libdir_flag_spec_F77='-L$libdir'
14190 hardcode_minus_L_F77=yes
14191 allow_undefined_flag_F77=unsupported
14192 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'
14193 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14194 ;;
14195
14196 osf3*)
14197 if test "$GCC" = yes; then
14198 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14199 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'
14200 else
14201 allow_undefined_flag_F77=' -expect_unresolved \*'
14202 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'
14203 fi
14204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14205 hardcode_libdir_separator_F77=:
14206 ;;
14207
14208 osf4* | osf5*) # as osf3* with the addition of -msym flag
14209 if test "$GCC" = yes; then
14210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211 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'
14212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14213 else
14214 allow_undefined_flag_F77=' -expect_unresolved \*'
14215 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'
14216 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~
14217 $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'
14218
14219 # Both c and cxx compiler support -rpath directly
14220 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14221 fi
14222 hardcode_libdir_separator_F77=:
14223 ;;
14224
14225 sco3.2v5*)
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_shlibpath_var_F77=no
14228 export_dynamic_flag_spec_F77='${wl}-Bexport'
14229 runpath_var=LD_RUN_PATH
14230 hardcode_runpath_var=yes
14231 ;;
14232
14233 solaris*)
14234 no_undefined_flag_F77=' -z text'
14235 if test "$GCC" = yes; then
14236 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14238 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14239 else
14240 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14243 fi
14244 hardcode_libdir_flag_spec_F77='-R$libdir'
14245 hardcode_shlibpath_var_F77=no
14246 case $host_os in
14247 solaris2.[0-5] | solaris2.[0-5].*) ;;
14248 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14249 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14250 esac
14251 link_all_deplibs_F77=yes
14252 ;;
14253
14254 sunos4*)
14255 if test "x$host_vendor" = xsequent; then
14256 # Use $CC to link under sequent, because it throws in some extra .o
14257 # files that make .init and .fini sections work.
14258 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14259 else
14260 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14261 fi
14262 hardcode_libdir_flag_spec_F77='-L$libdir'
14263 hardcode_direct_F77=yes
14264 hardcode_minus_L_F77=yes
14265 hardcode_shlibpath_var_F77=no
14266 ;;
14267
14268 sysv4)
14269 case $host_vendor in
14270 sni)
14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_direct_F77=yes # is this really true???
14273 ;;
14274 siemens)
14275 ## LD is ld it makes a PLAMLIB
14276 ## CC just makes a GrossModule.
14277 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14278 reload_cmds_F77='$CC -r -o $output$reload_objs'
14279 hardcode_direct_F77=no
14280 ;;
14281 motorola)
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14284 ;;
14285 esac
14286 runpath_var='LD_RUN_PATH'
14287 hardcode_shlibpath_var_F77=no
14288 ;;
14289
14290 sysv4.3*)
14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_shlibpath_var_F77=no
14293 export_dynamic_flag_spec_F77='-Bexport'
14294 ;;
14295
14296 sysv4*MP*)
14297 if test -d /usr/nec; then
14298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299 hardcode_shlibpath_var_F77=no
14300 runpath_var=LD_RUN_PATH
14301 hardcode_runpath_var=yes
14302 ld_shlibs_F77=yes
14303 fi
14304 ;;
14305
14306 sysv4.2uw2*)
14307 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_direct_F77=yes
14309 hardcode_minus_L_F77=no
14310 hardcode_shlibpath_var_F77=no
14311 hardcode_runpath_var=yes
14312 runpath_var=LD_RUN_PATH
14313 ;;
14314
14315 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14316 no_undefined_flag_F77='${wl}-z ${wl}text'
14317 if test "$GCC" = yes; then
14318 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319 else
14320 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 fi
14322 runpath_var='LD_RUN_PATH'
14323 hardcode_shlibpath_var_F77=no
14324 ;;
14325
14326 sysv5*)
14327 no_undefined_flag_F77=' -z text'
14328 # $CC -shared without GNU ld will not create a library from C++
14329 # object files and a static libstdc++, better avoid it by now
14330 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14333 hardcode_libdir_flag_spec_F77=
14334 hardcode_shlibpath_var_F77=no
14335 runpath_var='LD_RUN_PATH'
14336 ;;
14337
14338 uts4*)
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_libdir_flag_spec_F77='-L$libdir'
14341 hardcode_shlibpath_var_F77=no
14342 ;;
14343
14344 *)
14345 ld_shlibs_F77=no
14346 ;;
14347 esac
14348 fi
14349
14350 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14351 echo "${ECHO_T}$ld_shlibs_F77" >&6
14352 test "$ld_shlibs_F77" = no && can_build_shared=no
14353
14354 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14355 if test "$GCC" = yes; then
14356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14357 fi
14358
14359 #
14360 # Do we need to explicitly link libc?
14361 #
14362 case "x$archive_cmds_need_lc_F77" in
14363 x|xyes)
14364 # Assume -lc should be added
14365 archive_cmds_need_lc_F77=yes
14366
14367 if test "$enable_shared" = yes && test "$GCC" = yes; then
14368 case $archive_cmds_F77 in
14369 *'~'*)
14370 # FIXME: we may have to deal with multi-command sequences.
14371 ;;
14372 '$CC '*)
14373 # Test whether the compiler implicitly links with -lc since on some
14374 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14375 # to ld, don't add -lc before -lgcc.
14376 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14377 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14378 $rm conftest*
14379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14380
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } 2>conftest.err; then
14386 soname=conftest
14387 lib=conftest
14388 libobjs=conftest.$ac_objext
14389 deplibs=
14390 wl=$lt_prog_compiler_wl_F77
14391 compiler_flags=-v
14392 linker_flags=-v
14393 verstring=
14394 output_objdir=.
14395 libname=conftest
14396 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14397 allow_undefined_flag_F77=
14398 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14399 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }
14403 then
14404 archive_cmds_need_lc_F77=no
14405 else
14406 archive_cmds_need_lc_F77=yes
14407 fi
14408 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14409 else
14410 cat conftest.err 1>&5
14411 fi
14412 $rm conftest*
14413 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14414 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14415 ;;
14416 esac
14417 fi
14418 ;;
14419 esac
14420
14421 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14423 library_names_spec=
14424 libname_spec='lib$name'
14425 soname_spec=
14426 shrext=".so"
14427 postinstall_cmds=
14428 postuninstall_cmds=
14429 finish_cmds=
14430 finish_eval=
14431 shlibpath_var=
14432 shlibpath_overrides_runpath=unknown
14433 version_type=none
14434 dynamic_linker="$host_os ld.so"
14435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436 if test "$GCC" = yes; then
14437 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14439 # if the path contains ";" then we assume it to be the separator
14440 # otherwise default to the standard path separator (i.e. ":") - it is
14441 # assumed that no part of a normal pathname contains ";" but that should
14442 # okay in the real world where ";" in dirpaths is itself problematic.
14443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14444 else
14445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14446 fi
14447 else
14448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14449 fi
14450 need_lib_prefix=unknown
14451 hardcode_into_libs=no
14452
14453 # when you set need_version to no, make sure it does not cause -set_version
14454 # flags to be left without arguments
14455 need_version=unknown
14456
14457 case $host_os in
14458 aix3*)
14459 version_type=linux
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14461 shlibpath_var=LIBPATH
14462
14463 # AIX 3 has no versioning support, so we append a major version to the name.
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 ;;
14466
14467 aix4* | aix5*)
14468 version_type=linux
14469 need_lib_prefix=no
14470 need_version=no
14471 hardcode_into_libs=yes
14472 if test "$host_cpu" = ia64; then
14473 # AIX 5 supports IA64
14474 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 else
14477 # With GCC up to 2.95.x, collect2 would create an import file
14478 # for dependence libraries. The import file would start with
14479 # the line `#! .'. This would cause the generated library to
14480 # depend on `.', always an invalid library. This was fixed in
14481 # development snapshots of GCC prior to 3.0.
14482 case $host_os in
14483 aix4 | aix4.[01] | aix4.[01].*)
14484 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14485 echo ' yes '
14486 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14487 :
14488 else
14489 can_build_shared=no
14490 fi
14491 ;;
14492 esac
14493 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14494 # soname into executable. Probably we can add versioning support to
14495 # collect2, so additional links can be useful in future.
14496 if test "$aix_use_runtimelinking" = yes; then
14497 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14498 # instead of lib<name>.a to let people know that these are not
14499 # typical AIX shared libraries.
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 else
14502 # We preserve .a as extension for shared libraries through AIX4.2
14503 # and later when we are not doing run time linking.
14504 library_names_spec='${libname}${release}.a $libname.a'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 fi
14507 shlibpath_var=LIBPATH
14508 fi
14509 ;;
14510
14511 amigaos*)
14512 library_names_spec='$libname.ixlibrary $libname.a'
14513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514 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'
14515 ;;
14516
14517 beos*)
14518 library_names_spec='${libname}${shared_ext}'
14519 dynamic_linker="$host_os ld.so"
14520 shlibpath_var=LIBRARY_PATH
14521 ;;
14522
14523 bsdi4*)
14524 version_type=linux
14525 need_version=no
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532 # the default ld.so.conf also contains /usr/contrib/lib and
14533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534 # libtool to hard-code these into programs
14535 ;;
14536
14537 cygwin* | mingw* | pw32*)
14538 version_type=windows
14539 shrext=".dll"
14540 need_version=no
14541 need_lib_prefix=no
14542
14543 case $GCC,$host_os in
14544 yes,cygwin* | yes,mingw* | yes,pw32*)
14545 library_names_spec='$libname.dll.a'
14546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14547 postinstall_cmds='base_file=`basename \${file}`~
14548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14549 dldir=$destdir/`dirname \$dlpath`~
14550 test -d \$dldir || mkdir -p \$dldir~
14551 $install_prog $dir/$dlname \$dldir/$dlname'
14552 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14553 dlpath=$dir/\$dldll~
14554 $rm \$dlpath'
14555 shlibpath_overrides_runpath=yes
14556
14557 case $host_os in
14558 cygwin*)
14559 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14560 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14562 ;;
14563 mingw*)
14564 # MinGW DLLs use traditional 'lib' prefix
14565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14568 # It is most probably a Windows format PATH printed by
14569 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14570 # path with ; separators, and with drive letters. We can handle the
14571 # drive letters (cygwin fileutils understands them), so leave them,
14572 # especially as we might pass files found there to a mingw objdump,
14573 # which wouldn't understand a cygwinified path. Ahh.
14574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14575 else
14576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14577 fi
14578 ;;
14579 pw32*)
14580 # pw32 DLLs use 'pw' prefix rather than 'lib'
14581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14582 ;;
14583 esac
14584 ;;
14585
14586 *)
14587 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14588 ;;
14589 esac
14590 dynamic_linker='Win32 ld.exe'
14591 # FIXME: first we should search . and the directory the executable is in
14592 shlibpath_var=PATH
14593 ;;
14594
14595 darwin* | rhapsody*)
14596 dynamic_linker="$host_os dyld"
14597 version_type=darwin
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14601 soname_spec='${libname}${release}${major}$shared_ext'
14602 shlibpath_overrides_runpath=yes
14603 shlibpath_var=DYLD_LIBRARY_PATH
14604 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14605 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14606 if test "$GCC" = yes; then
14607 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"`
14608 else
14609 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14610 fi
14611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14612 ;;
14613
14614 dgux*)
14615 version_type=linux
14616 need_lib_prefix=no
14617 need_version=no
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 ;;
14622
14623 freebsd1*)
14624 dynamic_linker=no
14625 ;;
14626
14627 kfreebsd*-gnu)
14628 version_type=linux
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 shlibpath_overrides_runpath=no
14635 hardcode_into_libs=yes
14636 dynamic_linker='GNU ld.so'
14637 ;;
14638
14639 freebsd*)
14640 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14641 version_type=freebsd-$objformat
14642 case $version_type in
14643 freebsd-elf*)
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14645 need_version=no
14646 need_lib_prefix=no
14647 ;;
14648 freebsd-*)
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14650 need_version=yes
14651 ;;
14652 esac
14653 shlibpath_var=LD_LIBRARY_PATH
14654 case $host_os in
14655 freebsd2*)
14656 shlibpath_overrides_runpath=yes
14657 ;;
14658 freebsd3.01* | freebsdelf3.01*)
14659 shlibpath_overrides_runpath=yes
14660 hardcode_into_libs=yes
14661 ;;
14662 *) # from 3.2 on
14663 shlibpath_overrides_runpath=no
14664 hardcode_into_libs=yes
14665 ;;
14666 esac
14667 ;;
14668
14669 gnu*)
14670 version_type=linux
14671 need_lib_prefix=no
14672 need_version=no
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 hardcode_into_libs=yes
14677 ;;
14678
14679 hpux9* | hpux10* | hpux11*)
14680 # Give a soname corresponding to the major version so that dld.sl refuses to
14681 # link against other versions.
14682 version_type=sunos
14683 need_lib_prefix=no
14684 need_version=no
14685 case "$host_cpu" in
14686 ia64*)
14687 shrext='.so'
14688 hardcode_into_libs=yes
14689 dynamic_linker="$host_os dld.so"
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 if test "X$HPUX_IA64_MODE" = X32; then
14695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14696 else
14697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14698 fi
14699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14700 ;;
14701 hppa*64*)
14702 shrext='.sl'
14703 hardcode_into_libs=yes
14704 dynamic_linker="$host_os dld.sl"
14705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14711 ;;
14712 *)
14713 shrext='.sl'
14714 dynamic_linker="$host_os dld.sl"
14715 shlibpath_var=SHLIB_PATH
14716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 ;;
14720 esac
14721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14722 postinstall_cmds='chmod 555 $lib'
14723 ;;
14724
14725 irix5* | irix6* | nonstopux*)
14726 case $host_os in
14727 nonstopux*) version_type=nonstopux ;;
14728 *)
14729 if test "$lt_cv_prog_gnu_ld" = yes; then
14730 version_type=linux
14731 else
14732 version_type=irix
14733 fi ;;
14734 esac
14735 need_lib_prefix=no
14736 need_version=no
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14739 case $host_os in
14740 irix5* | nonstopux*)
14741 libsuff= shlibsuff=
14742 ;;
14743 *)
14744 case $LD in # libtool.m4 will add one of these switches to LD
14745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14746 libsuff= shlibsuff= libmagic=32-bit;;
14747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14748 libsuff=32 shlibsuff=N32 libmagic=N32;;
14749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14751 *) libsuff= shlibsuff= libmagic=never-match;;
14752 esac
14753 ;;
14754 esac
14755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14756 shlibpath_overrides_runpath=no
14757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14759 hardcode_into_libs=yes
14760 ;;
14761
14762 # No shared lib support for Linux oldld, aout, or coff.
14763 linux*oldld* | linux*aout* | linux*coff*)
14764 dynamic_linker=no
14765 ;;
14766
14767 # This must be Linux ELF.
14768 linux*)
14769 version_type=linux
14770 need_lib_prefix=no
14771 need_version=no
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 # This implies no fast_install, which is unacceptable.
14778 # Some rework will be needed to allow for fast_install
14779 # before this can be enabled.
14780 hardcode_into_libs=yes
14781
14782 # Append ld.so.conf contents to the search path
14783 if test -f /etc/ld.so.conf; then
14784 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14785 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14786 fi
14787
14788 # We used to test for /lib/ld.so.1 and disable shared libraries on
14789 # powerpc, because MkLinux only supported shared libraries with the
14790 # GNU dynamic linker. Since this was broken with cross compilers,
14791 # most powerpc-linux boxes support dynamic linking these days and
14792 # people can always --disable-shared, the test was removed, and we
14793 # assume the GNU/Linux dynamic linker is in use.
14794 dynamic_linker='GNU/Linux ld.so'
14795 ;;
14796
14797 knetbsd*-gnu)
14798 version_type=linux
14799 need_lib_prefix=no
14800 need_version=no
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 hardcode_into_libs=yes
14806 dynamic_linker='GNU ld.so'
14807 ;;
14808
14809 netbsd*)
14810 version_type=sunos
14811 need_lib_prefix=no
14812 need_version=no
14813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14816 dynamic_linker='NetBSD (a.out) ld.so'
14817 else
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 dynamic_linker='NetBSD ld.elf_so'
14821 fi
14822 shlibpath_var=LD_LIBRARY_PATH
14823 shlibpath_overrides_runpath=yes
14824 hardcode_into_libs=yes
14825 ;;
14826
14827 newsos6)
14828 version_type=linux
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 ;;
14833
14834 nto-qnx*)
14835 version_type=linux
14836 need_lib_prefix=no
14837 need_version=no
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 shlibpath_overrides_runpath=yes
14842 ;;
14843
14844 openbsd*)
14845 version_type=sunos
14846 need_lib_prefix=no
14847 need_version=yes
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14852 case $host_os in
14853 openbsd2.[89] | openbsd2.[89].*)
14854 shlibpath_overrides_runpath=no
14855 ;;
14856 *)
14857 shlibpath_overrides_runpath=yes
14858 ;;
14859 esac
14860 else
14861 shlibpath_overrides_runpath=yes
14862 fi
14863 ;;
14864
14865 os2*)
14866 libname_spec='$name'
14867 shrext=".dll"
14868 need_lib_prefix=no
14869 library_names_spec='$libname${shared_ext} $libname.a'
14870 dynamic_linker='OS/2 ld.exe'
14871 shlibpath_var=LIBPATH
14872 ;;
14873
14874 osf3* | osf4* | osf5*)
14875 version_type=osf
14876 need_lib_prefix=no
14877 need_version=no
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14882 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14883 ;;
14884
14885 sco3.2v5*)
14886 version_type=osf
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 ;;
14891
14892 solaris*)
14893 version_type=linux
14894 need_lib_prefix=no
14895 need_version=no
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=yes
14900 hardcode_into_libs=yes
14901 # ldd complains unless libraries are executable
14902 postinstall_cmds='chmod +x $lib'
14903 ;;
14904
14905 sunos4*)
14906 version_type=sunos
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=yes
14911 if test "$with_gnu_ld" = yes; then
14912 need_lib_prefix=no
14913 fi
14914 need_version=yes
14915 ;;
14916
14917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14918 version_type=linux
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 case $host_vendor in
14923 sni)
14924 shlibpath_overrides_runpath=no
14925 need_lib_prefix=no
14926 export_dynamic_flag_spec='${wl}-Blargedynsym'
14927 runpath_var=LD_RUN_PATH
14928 ;;
14929 siemens)
14930 need_lib_prefix=no
14931 ;;
14932 motorola)
14933 need_lib_prefix=no
14934 need_version=no
14935 shlibpath_overrides_runpath=no
14936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14937 ;;
14938 esac
14939 ;;
14940
14941 sysv4*MP*)
14942 if test -d /usr/nec ;then
14943 version_type=linux
14944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14945 soname_spec='$libname${shared_ext}.$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 fi
14948 ;;
14949
14950 uts4*)
14951 version_type=linux
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 ;;
14956
14957 *)
14958 dynamic_linker=no
14959 ;;
14960 esac
14961 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14962 echo "${ECHO_T}$dynamic_linker" >&6
14963 test "$dynamic_linker" = no && can_build_shared=no
14964
14965 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14966 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14967 hardcode_action_F77=
14968 if test -n "$hardcode_libdir_flag_spec_F77" || \
14969 test -n "$runpath_var F77" || \
14970 test "X$hardcode_automatic_F77"="Xyes" ; then
14971
14972 # We can hardcode non-existant directories.
14973 if test "$hardcode_direct_F77" != no &&
14974 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14975 # have to relink, otherwise we might link with an installed library
14976 # when we should be linking with a yet-to-be-installed one
14977 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14978 test "$hardcode_minus_L_F77" != no; then
14979 # Linking always hardcodes the temporary library directory.
14980 hardcode_action_F77=relink
14981 else
14982 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14983 hardcode_action_F77=immediate
14984 fi
14985 else
14986 # We cannot hardcode anything, or else we can only hardcode existing
14987 # directories.
14988 hardcode_action_F77=unsupported
14989 fi
14990 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14991 echo "${ECHO_T}$hardcode_action_F77" >&6
14992
14993 if test "$hardcode_action_F77" = relink; then
14994 # Fast installation is not supported
14995 enable_fast_install=no
14996 elif test "$shlibpath_overrides_runpath" = yes ||
14997 test "$enable_shared" = no; then
14998 # Fast installation is not necessary
14999 enable_fast_install=needless
15000 fi
15001
15002 striplib=
15003 old_striplib=
15004 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15005 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15006 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15007 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15008 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15009 echo "$as_me:$LINENO: result: yes" >&5
15010 echo "${ECHO_T}yes" >&6
15011 else
15012 # FIXME - insert some real tests, host_os isn't really good enough
15013 case $host_os in
15014 darwin*)
15015 if test -n "$STRIP" ; then
15016 striplib="$STRIP -x"
15017 echo "$as_me:$LINENO: result: yes" >&5
15018 echo "${ECHO_T}yes" >&6
15019 else
15020 echo "$as_me:$LINENO: result: no" >&5
15021 echo "${ECHO_T}no" >&6
15022 fi
15023 ;;
15024 *)
15025 echo "$as_me:$LINENO: result: no" >&5
15026 echo "${ECHO_T}no" >&6
15027 ;;
15028 esac
15029 fi
15030
15031
15032
15033 # The else clause should only fire when bootstrapping the
15034 # libtool distribution, otherwise you forgot to ship ltmain.sh
15035 # with your package, and you will get complaints that there are
15036 # no rules to generate ltmain.sh.
15037 if test -f "$ltmain"; then
15038 # See if we are running on zsh, and set the options which allow our commands through
15039 # without removal of \ escapes.
15040 if test -n "${ZSH_VERSION+set}" ; then
15041 setopt NO_GLOB_SUBST
15042 fi
15043 # Now quote all the things that may contain metacharacters while being
15044 # careful not to overquote the AC_SUBSTed values. We take copies of the
15045 # variables and quote the copies for generation of the libtool script.
15046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15047 SED SHELL STRIP \
15048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15050 deplibs_check_method reload_flag reload_cmds need_locks \
15051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15052 lt_cv_sys_global_symbol_to_c_name_address \
15053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15054 old_postinstall_cmds old_postuninstall_cmds \
15055 compiler_F77 \
15056 CC_F77 \
15057 LD_F77 \
15058 lt_prog_compiler_wl_F77 \
15059 lt_prog_compiler_pic_F77 \
15060 lt_prog_compiler_static_F77 \
15061 lt_prog_compiler_no_builtin_flag_F77 \
15062 export_dynamic_flag_spec_F77 \
15063 thread_safe_flag_spec_F77 \
15064 whole_archive_flag_spec_F77 \
15065 enable_shared_with_static_runtimes_F77 \
15066 old_archive_cmds_F77 \
15067 old_archive_from_new_cmds_F77 \
15068 predep_objects_F77 \
15069 postdep_objects_F77 \
15070 predeps_F77 \
15071 postdeps_F77 \
15072 compiler_lib_search_path_F77 \
15073 archive_cmds_F77 \
15074 archive_expsym_cmds_F77 \
15075 postinstall_cmds_F77 \
15076 postuninstall_cmds_F77 \
15077 old_archive_from_expsyms_cmds_F77 \
15078 allow_undefined_flag_F77 \
15079 no_undefined_flag_F77 \
15080 export_symbols_cmds_F77 \
15081 hardcode_libdir_flag_spec_F77 \
15082 hardcode_libdir_flag_spec_ld_F77 \
15083 hardcode_libdir_separator_F77 \
15084 hardcode_automatic_F77 \
15085 module_cmds_F77 \
15086 module_expsym_cmds_F77 \
15087 lt_cv_prog_compiler_c_o_F77 \
15088 exclude_expsyms_F77 \
15089 include_expsyms_F77; do
15090
15091 case $var in
15092 old_archive_cmds_F77 | \
15093 old_archive_from_new_cmds_F77 | \
15094 archive_cmds_F77 | \
15095 archive_expsym_cmds_F77 | \
15096 module_cmds_F77 | \
15097 module_expsym_cmds_F77 | \
15098 old_archive_from_expsyms_cmds_F77 | \
15099 export_symbols_cmds_F77 | \
15100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15101 postinstall_cmds | postuninstall_cmds | \
15102 old_postinstall_cmds | old_postuninstall_cmds | \
15103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15104 # Double-quote double-evaled strings.
15105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15106 ;;
15107 *)
15108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15109 ;;
15110 esac
15111 done
15112
15113 case $lt_echo in
15114 *'\$0 --fallback-echo"')
15115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15116 ;;
15117 esac
15118
15119 cfgfile="$ofile"
15120
15121 cat <<__EOF__ >> "$cfgfile"
15122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15123
15124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15125
15126 # Shell to use when invoking shell scripts.
15127 SHELL=$lt_SHELL
15128
15129 # Whether or not to build shared libraries.
15130 build_libtool_libs=$enable_shared
15131
15132 # Whether or not to build static libraries.
15133 build_old_libs=$enable_static
15134
15135 # Whether or not to add -lc for building shared libraries.
15136 build_libtool_need_lc=$archive_cmds_need_lc_F77
15137
15138 # Whether or not to disallow shared libs when runtime libs are static
15139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15140
15141 # Whether or not to optimize for fast installation.
15142 fast_install=$enable_fast_install
15143
15144 # The host system.
15145 host_alias=$host_alias
15146 host=$host
15147
15148 # An echo program that does not interpret backslashes.
15149 echo=$lt_echo
15150
15151 # The archiver.
15152 AR=$lt_AR
15153 AR_FLAGS=$lt_AR_FLAGS
15154
15155 # A C compiler.
15156 LTCC=$lt_LTCC
15157
15158 # A language-specific compiler.
15159 CC=$lt_compiler_F77
15160
15161 # Is the compiler the GNU C compiler?
15162 with_gcc=$GCC_F77
15163
15164 # An ERE matcher.
15165 EGREP=$lt_EGREP
15166
15167 # The linker used to build libraries.
15168 LD=$lt_LD_F77
15169
15170 # Whether we need hard or soft links.
15171 LN_S=$lt_LN_S
15172
15173 # A BSD-compatible nm program.
15174 NM=$lt_NM
15175
15176 # A symbol stripping program
15177 STRIP=$lt_STRIP
15178
15179 # Used to examine libraries when file_magic_cmd begins "file"
15180 MAGIC_CMD=$MAGIC_CMD
15181
15182 # Used on cygwin: DLL creation program.
15183 DLLTOOL="$DLLTOOL"
15184
15185 # Used on cygwin: object dumper.
15186 OBJDUMP="$OBJDUMP"
15187
15188 # Used on cygwin: assembler.
15189 AS="$AS"
15190
15191 # The name of the directory that contains temporary libtool files.
15192 objdir=$objdir
15193
15194 # How to create reloadable object files.
15195 reload_flag=$lt_reload_flag
15196 reload_cmds=$lt_reload_cmds
15197
15198 # How to pass a linker flag through the compiler.
15199 wl=$lt_lt_prog_compiler_wl_F77
15200
15201 # Object file suffix (normally "o").
15202 objext="$ac_objext"
15203
15204 # Old archive suffix (normally "a").
15205 libext="$libext"
15206
15207 # Shared library suffix (normally ".so").
15208 shrext='$shrext'
15209
15210 # Executable file suffix (normally "").
15211 exeext="$exeext"
15212
15213 # Additional compiler flags for building library objects.
15214 pic_flag=$lt_lt_prog_compiler_pic_F77
15215 pic_mode=$pic_mode
15216
15217 # What is the maximum length of a command?
15218 max_cmd_len=$lt_cv_sys_max_cmd_len
15219
15220 # Does compiler simultaneously support -c and -o options?
15221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15222
15223 # Must we lock files when doing compilation ?
15224 need_locks=$lt_need_locks
15225
15226 # Do we need the lib prefix for modules?
15227 need_lib_prefix=$need_lib_prefix
15228
15229 # Do we need a version for libraries?
15230 need_version=$need_version
15231
15232 # Whether dlopen is supported.
15233 dlopen_support=$enable_dlopen
15234
15235 # Whether dlopen of programs is supported.
15236 dlopen_self=$enable_dlopen_self
15237
15238 # Whether dlopen of statically linked programs is supported.
15239 dlopen_self_static=$enable_dlopen_self_static
15240
15241 # Compiler flag to prevent dynamic linking.
15242 link_static_flag=$lt_lt_prog_compiler_static_F77
15243
15244 # Compiler flag to turn off builtin functions.
15245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15246
15247 # Compiler flag to allow reflexive dlopens.
15248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15249
15250 # Compiler flag to generate shared objects directly from archives.
15251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15252
15253 # Compiler flag to generate thread-safe objects.
15254 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15255
15256 # Library versioning type.
15257 version_type=$version_type
15258
15259 # Format of library name prefix.
15260 libname_spec=$lt_libname_spec
15261
15262 # List of archive names. First name is the real one, the rest are links.
15263 # The last name is the one that the linker finds with -lNAME.
15264 library_names_spec=$lt_library_names_spec
15265
15266 # The coded name of the library, if different from the real name.
15267 soname_spec=$lt_soname_spec
15268
15269 # Commands used to build and install an old-style archive.
15270 RANLIB=$lt_RANLIB
15271 old_archive_cmds=$lt_old_archive_cmds_F77
15272 old_postinstall_cmds=$lt_old_postinstall_cmds
15273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15274
15275 # Create an old-style archive from a shared archive.
15276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15277
15278 # Create a temporary old-style archive to link instead of a shared archive.
15279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15280
15281 # Commands used to build and install a shared archive.
15282 archive_cmds=$lt_archive_cmds_F77
15283 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15284 postinstall_cmds=$lt_postinstall_cmds
15285 postuninstall_cmds=$lt_postuninstall_cmds
15286
15287 # Commands used to build a loadable module (assumed same as above if empty)
15288 module_cmds=$lt_module_cmds_F77
15289 module_expsym_cmds=$lt_module_expsym_cmds_F77
15290
15291 # Commands to strip libraries.
15292 old_striplib=$lt_old_striplib
15293 striplib=$lt_striplib
15294
15295 # Dependencies to place before the objects being linked to create a
15296 # shared library.
15297 predep_objects=$lt_predep_objects_F77
15298
15299 # Dependencies to place after the objects being linked to create a
15300 # shared library.
15301 postdep_objects=$lt_postdep_objects_F77
15302
15303 # Dependencies to place before the objects being linked to create a
15304 # shared library.
15305 predeps=$lt_predeps_F77
15306
15307 # Dependencies to place after the objects being linked to create a
15308 # shared library.
15309 postdeps=$lt_postdeps_F77
15310
15311 # The library search path used internally by the compiler when linking
15312 # a shared library.
15313 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15314
15315 # Method to check whether dependent libraries are shared objects.
15316 deplibs_check_method=$lt_deplibs_check_method
15317
15318 # Command to use when deplibs_check_method == file_magic.
15319 file_magic_cmd=$lt_file_magic_cmd
15320
15321 # Flag that allows shared libraries with undefined symbols to be built.
15322 allow_undefined_flag=$lt_allow_undefined_flag_F77
15323
15324 # Flag that forces no undefined symbols.
15325 no_undefined_flag=$lt_no_undefined_flag_F77
15326
15327 # Commands used to finish a libtool library installation in a directory.
15328 finish_cmds=$lt_finish_cmds
15329
15330 # Same as above, but a single script fragment to be evaled but not shown.
15331 finish_eval=$lt_finish_eval
15332
15333 # Take the output of nm and produce a listing of raw symbols and C names.
15334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15335
15336 # Transform the output of nm in a proper C declaration
15337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15338
15339 # Transform the output of nm in a C name address pair
15340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15341
15342 # This is the shared library runtime path variable.
15343 runpath_var=$runpath_var
15344
15345 # This is the shared library path variable.
15346 shlibpath_var=$shlibpath_var
15347
15348 # Is shlibpath searched before the hard-coded library search path?
15349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15350
15351 # How to hardcode a shared library path into an executable.
15352 hardcode_action=$hardcode_action_F77
15353
15354 # Whether we should hardcode library paths into libraries.
15355 hardcode_into_libs=$hardcode_into_libs
15356
15357 # Flag to hardcode \$libdir into a binary during linking.
15358 # This must work even if \$libdir does not exist.
15359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15360
15361 # If ld is used when linking, flag to hardcode \$libdir into
15362 # a binary during linking. This must work even if \$libdir does
15363 # not exist.
15364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15365
15366 # Whether we need a single -rpath flag with a separated argument.
15367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15368
15369 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15370 # resulting binary.
15371 hardcode_direct=$hardcode_direct_F77
15372
15373 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15374 # resulting binary.
15375 hardcode_minus_L=$hardcode_minus_L_F77
15376
15377 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15378 # the resulting binary.
15379 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15380
15381 # Set to yes if building a shared library automatically hardcodes DIR into the library
15382 # and all subsequent libraries and executables linked against it.
15383 hardcode_automatic=$hardcode_automatic_F77
15384
15385 # Variables whose values should be saved in libtool wrapper scripts and
15386 # restored at relink time.
15387 variables_saved_for_relink="$variables_saved_for_relink"
15388
15389 # Whether libtool must link a program against all its dependency libraries.
15390 link_all_deplibs=$link_all_deplibs_F77
15391
15392 # Compile-time system search path for libraries
15393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15394
15395 # Run-time system search path for libraries
15396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15397
15398 # Fix the shell variable \$srcfile for the compiler.
15399 fix_srcfile_path="$fix_srcfile_path_F77"
15400
15401 # Set to yes if exported symbols are required.
15402 always_export_symbols=$always_export_symbols_F77
15403
15404 # The commands to list exported symbols.
15405 export_symbols_cmds=$lt_export_symbols_cmds_F77
15406
15407 # The commands to extract the exported symbol list from a shared archive.
15408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15409
15410 # Symbols that should not be listed in the preloaded symbols.
15411 exclude_expsyms=$lt_exclude_expsyms_F77
15412
15413 # Symbols that must always be exported.
15414 include_expsyms=$lt_include_expsyms_F77
15415
15416 # ### END LIBTOOL TAG CONFIG: $tagname
15417
15418 __EOF__
15419
15420
15421 else
15422 # If there is no Makefile yet, we rely on a make rule to execute
15423 # `config.status --recheck' to rerun these tests and create the
15424 # libtool script then.
15425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15426 if test -f "$ltmain_in"; then
15427 test -f Makefile && make "$ltmain"
15428 fi
15429 fi
15430
15431
15432 ac_ext=c
15433 ac_cpp='$CPP $CPPFLAGS'
15434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15437
15438 CC="$lt_save_CC"
15439
15440 else
15441 tagname=""
15442 fi
15443 ;;
15444
15445 GCJ)
15446 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15447
15448
15449
15450 # Source file extension for Java test sources.
15451 ac_ext=java
15452
15453 # Object file extension for compiled Java test sources.
15454 objext=o
15455 objext_GCJ=$objext
15456
15457 # Code to be used in simple compile tests
15458 lt_simple_compile_test_code="class foo {}\n"
15459
15460 # Code to be used in simple link tests
15461 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15462
15463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15464
15465 # If no C compiler was specified, use CC.
15466 LTCC=${LTCC-"$CC"}
15467
15468 # Allow CC to be a program name with arguments.
15469 compiler=$CC
15470
15471
15472 # Allow CC to be a program name with arguments.
15473 lt_save_CC="$CC"
15474 CC=${GCJ-"gcj"}
15475 compiler=$CC
15476 compiler_GCJ=$CC
15477
15478 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15479 archive_cmds_need_lc_GCJ=no
15480
15481
15482 lt_prog_compiler_no_builtin_flag_GCJ=
15483
15484 if test "$GCC" = yes; then
15485 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15486
15487
15488 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15489 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15490 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493 lt_cv_prog_compiler_rtti_exceptions=no
15494 ac_outfile=conftest.$ac_objext
15495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496 lt_compiler_flag="-fno-rtti -fno-exceptions"
15497 # Insert the option either (1) after the last *FLAGS variable, or
15498 # (2) before a word containing "conftest.", or (3) at the end.
15499 # Note that $ac_compile itself does not contain backslashes and begins
15500 # with a dollar sign (not a hyphen), so the echo should work correctly.
15501 # The option is referenced via a variable to avoid confusing sed.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
15506 (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
15507 (eval "$lt_compile" 2>conftest.err)
15508 ac_status=$?
15509 cat conftest.err >&5
15510 echo "$as_me:15510: \$? = $ac_status" >&5
15511 if (exit $ac_status) && test -s "$ac_outfile"; then
15512 # The compiler can only warn and ignore the option if not recognized
15513 # So say no if there are warnings
15514 if test ! -s conftest.err; then
15515 lt_cv_prog_compiler_rtti_exceptions=yes
15516 fi
15517 fi
15518 $rm conftest*
15519
15520 fi
15521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15523
15524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15525 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15526 else
15527 :
15528 fi
15529
15530 fi
15531
15532 lt_prog_compiler_wl_GCJ=
15533 lt_prog_compiler_pic_GCJ=
15534 lt_prog_compiler_static_GCJ=
15535
15536 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15538
15539 if test "$GCC" = yes; then
15540 lt_prog_compiler_wl_GCJ='-Wl,'
15541 lt_prog_compiler_static_GCJ='-static'
15542
15543 case $host_os in
15544 aix*)
15545 # All AIX code is PIC.
15546 if test "$host_cpu" = ia64; then
15547 # AIX 5 now supports IA64 processor
15548 lt_prog_compiler_static_GCJ='-Bstatic'
15549 fi
15550 ;;
15551
15552 amigaos*)
15553 # FIXME: we need at least 68020 code to build shared libraries, but
15554 # adding the `-m68020' flag to GCC prevents building anything better,
15555 # like `-m68040'.
15556 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15557 ;;
15558
15559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15560 # PIC is the default for these OSes.
15561 ;;
15562
15563 mingw* | pw32* | os2*)
15564 # This hack is so that the source file can tell whether it is being
15565 # built for inclusion in a dll (and should export symbols for example).
15566 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15567 ;;
15568
15569 darwin* | rhapsody*)
15570 # PIC is the default on this platform
15571 # Common symbols not allowed in MH_DYLIB files
15572 lt_prog_compiler_pic_GCJ='-fno-common'
15573 ;;
15574
15575 msdosdjgpp*)
15576 # Just because we use GCC doesn't mean we suddenly get shared libraries
15577 # on systems that don't support them.
15578 lt_prog_compiler_can_build_shared_GCJ=no
15579 enable_shared=no
15580 ;;
15581
15582 sysv4*MP*)
15583 if test -d /usr/nec; then
15584 lt_prog_compiler_pic_GCJ=-Kconform_pic
15585 fi
15586 ;;
15587
15588 hpux*)
15589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15590 # not for PA HP-UX.
15591 case "$host_cpu" in
15592 hppa*64*|ia64*)
15593 # +Z the default
15594 ;;
15595 *)
15596 lt_prog_compiler_pic_GCJ='-fPIC'
15597 ;;
15598 esac
15599 ;;
15600
15601 *)
15602 lt_prog_compiler_pic_GCJ='-fPIC'
15603 ;;
15604 esac
15605 else
15606 # PORTME Check for flag to pass linker flags through the system compiler.
15607 case $host_os in
15608 aix*)
15609 lt_prog_compiler_wl_GCJ='-Wl,'
15610 if test "$host_cpu" = ia64; then
15611 # AIX 5 now supports IA64 processor
15612 lt_prog_compiler_static_GCJ='-Bstatic'
15613 else
15614 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15615 fi
15616 ;;
15617
15618 mingw* | pw32* | os2*)
15619 # This hack is so that the source file can tell whether it is being
15620 # built for inclusion in a dll (and should export symbols for example).
15621 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15622 ;;
15623
15624 hpux9* | hpux10* | hpux11*)
15625 lt_prog_compiler_wl_GCJ='-Wl,'
15626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15627 # not for PA HP-UX.
15628 case "$host_cpu" in
15629 hppa*64*|ia64*)
15630 # +Z the default
15631 ;;
15632 *)
15633 lt_prog_compiler_pic_GCJ='+Z'
15634 ;;
15635 esac
15636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15637 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15638 ;;
15639
15640 irix5* | irix6* | nonstopux*)
15641 lt_prog_compiler_wl_GCJ='-Wl,'
15642 # PIC (with -KPIC) is the default.
15643 lt_prog_compiler_static_GCJ='-non_shared'
15644 ;;
15645
15646 newsos6)
15647 lt_prog_compiler_pic_GCJ='-KPIC'
15648 lt_prog_compiler_static_GCJ='-Bstatic'
15649 ;;
15650
15651 linux*)
15652 case $CC in
15653 icc* | ecc*)
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 lt_prog_compiler_pic_GCJ='-KPIC'
15656 lt_prog_compiler_static_GCJ='-static'
15657 ;;
15658 ccc*)
15659 lt_prog_compiler_wl_GCJ='-Wl,'
15660 # All Alpha code is PIC.
15661 lt_prog_compiler_static_GCJ='-non_shared'
15662 ;;
15663 esac
15664 ;;
15665
15666 osf3* | osf4* | osf5*)
15667 lt_prog_compiler_wl_GCJ='-Wl,'
15668 # All OSF/1 code is PIC.
15669 lt_prog_compiler_static_GCJ='-non_shared'
15670 ;;
15671
15672 sco3.2v5*)
15673 lt_prog_compiler_pic_GCJ='-Kpic'
15674 lt_prog_compiler_static_GCJ='-dn'
15675 ;;
15676
15677 solaris*)
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 lt_prog_compiler_pic_GCJ='-KPIC'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 ;;
15682
15683 sunos4*)
15684 lt_prog_compiler_wl_GCJ='-Qoption ld '
15685 lt_prog_compiler_pic_GCJ='-PIC'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15687 ;;
15688
15689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15690 lt_prog_compiler_wl_GCJ='-Wl,'
15691 lt_prog_compiler_pic_GCJ='-KPIC'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15693 ;;
15694
15695 sysv4*MP*)
15696 if test -d /usr/nec ;then
15697 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15698 lt_prog_compiler_static_GCJ='-Bstatic'
15699 fi
15700 ;;
15701
15702 uts4*)
15703 lt_prog_compiler_pic_GCJ='-pic'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15705 ;;
15706
15707 *)
15708 lt_prog_compiler_can_build_shared_GCJ=no
15709 ;;
15710 esac
15711 fi
15712
15713 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15714 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15715
15716 #
15717 # Check to make sure the PIC flag actually works.
15718 #
15719 if test -n "$lt_prog_compiler_pic_GCJ"; then
15720
15721 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15723 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726 lt_prog_compiler_pic_works_GCJ=no
15727 ac_outfile=conftest.$ac_objext
15728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15729 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15730 # Insert the option either (1) after the last *FLAGS variable, or
15731 # (2) before a word containing "conftest.", or (3) at the end.
15732 # Note that $ac_compile itself does not contain backslashes and begins
15733 # with a dollar sign (not a hyphen), so the echo should work correctly.
15734 # The option is referenced via a variable to avoid confusing sed.
15735 lt_compile=`echo "$ac_compile" | $SED \
15736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15738 -e 's:$: $lt_compiler_flag:'`
15739 (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
15740 (eval "$lt_compile" 2>conftest.err)
15741 ac_status=$?
15742 cat conftest.err >&5
15743 echo "$as_me:15743: \$? = $ac_status" >&5
15744 if (exit $ac_status) && test -s "$ac_outfile"; then
15745 # The compiler can only warn and ignore the option if not recognized
15746 # So say no if there are warnings
15747 if test ! -s conftest.err; then
15748 lt_prog_compiler_pic_works_GCJ=yes
15749 fi
15750 fi
15751 $rm conftest*
15752
15753 fi
15754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15756
15757 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15758 case $lt_prog_compiler_pic_GCJ in
15759 "" | " "*) ;;
15760 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15761 esac
15762 else
15763 lt_prog_compiler_pic_GCJ=
15764 lt_prog_compiler_can_build_shared_GCJ=no
15765 fi
15766
15767 fi
15768 case "$host_os" in
15769 # For platforms which do not support PIC, -DPIC is meaningless:
15770 *djgpp*)
15771 lt_prog_compiler_pic_GCJ=
15772 ;;
15773 *)
15774 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15775 ;;
15776 esac
15777
15778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15780 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783 lt_cv_prog_compiler_c_o_GCJ=no
15784 $rm -r conftest 2>/dev/null
15785 mkdir conftest
15786 cd conftest
15787 mkdir out
15788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15789
15790 lt_compiler_flag="-o out/conftest2.$ac_objext"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
15799 (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
15800 (eval "$lt_compile" 2>out/conftest.err)
15801 ac_status=$?
15802 cat out/conftest.err >&5
15803 echo "$as_me:15803: \$? = $ac_status" >&5
15804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15805 then
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings
15808 if test ! -s out/conftest.err; then
15809 lt_cv_prog_compiler_c_o_GCJ=yes
15810 fi
15811 fi
15812 chmod u+w .
15813 $rm conftest*
15814 # SGI C++ compiler will create directory out/ii_files/ for
15815 # template instantiation
15816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15817 $rm out/* && rmdir out
15818 cd ..
15819 rmdir conftest
15820 $rm conftest*
15821
15822 fi
15823 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15825
15826
15827 hard_links="nottested"
15828 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15829 # do not overwrite the value of need_locks provided by the user
15830 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15832 hard_links=yes
15833 $rm conftest*
15834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15835 touch conftest.a
15836 ln conftest.a conftest.b 2>&5 || hard_links=no
15837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838 echo "$as_me:$LINENO: result: $hard_links" >&5
15839 echo "${ECHO_T}$hard_links" >&6
15840 if test "$hard_links" = no; then
15841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15843 need_locks=warn
15844 fi
15845 else
15846 need_locks=no
15847 fi
15848
15849 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15851
15852 runpath_var=
15853 allow_undefined_flag_GCJ=
15854 enable_shared_with_static_runtimes_GCJ=no
15855 archive_cmds_GCJ=
15856 archive_expsym_cmds_GCJ=
15857 old_archive_From_new_cmds_GCJ=
15858 old_archive_from_expsyms_cmds_GCJ=
15859 export_dynamic_flag_spec_GCJ=
15860 whole_archive_flag_spec_GCJ=
15861 thread_safe_flag_spec_GCJ=
15862 hardcode_libdir_flag_spec_GCJ=
15863 hardcode_libdir_flag_spec_ld_GCJ=
15864 hardcode_libdir_separator_GCJ=
15865 hardcode_direct_GCJ=no
15866 hardcode_minus_L_GCJ=no
15867 hardcode_shlibpath_var_GCJ=unsupported
15868 link_all_deplibs_GCJ=unknown
15869 hardcode_automatic_GCJ=no
15870 module_cmds_GCJ=
15871 module_expsym_cmds_GCJ=
15872 always_export_symbols_GCJ=no
15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15874 # include_expsyms should be a list of space-separated symbols to be *always*
15875 # included in the symbol list
15876 include_expsyms_GCJ=
15877 # exclude_expsyms can be an extended regexp of symbols to exclude
15878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15880 # as well as any symbol that contains `d'.
15881 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15883 # platforms (ab)use it in PIC code, but their linkers get confused if
15884 # the symbol is explicitly referenced. Since portable code cannot
15885 # rely on this symbol name, it's probably fine to never include it in
15886 # preloaded symbol tables.
15887 extract_expsyms_cmds=
15888
15889 case $host_os in
15890 cygwin* | mingw* | pw32*)
15891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15892 # When not using gcc, we currently assume that we are using
15893 # Microsoft Visual C++.
15894 if test "$GCC" != yes; then
15895 with_gnu_ld=no
15896 fi
15897 ;;
15898 openbsd*)
15899 with_gnu_ld=no
15900 ;;
15901 esac
15902
15903 ld_shlibs_GCJ=yes
15904 if test "$with_gnu_ld" = yes; then
15905 # If archive_cmds runs LD, not CC, wlarc should be empty
15906 wlarc='${wl}'
15907
15908 # See if GNU ld supports shared libraries.
15909 case $host_os in
15910 aix3* | aix4* | aix5*)
15911 # On AIX/PPC, the GNU linker is very broken
15912 if test "$host_cpu" != ia64; then
15913 ld_shlibs_GCJ=no
15914 cat <<EOF 1>&2
15915
15916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15917 *** to be unable to reliably create shared libraries on AIX.
15918 *** Therefore, libtool is disabling shared libraries support. If you
15919 *** really care for shared libraries, you may want to modify your PATH
15920 *** so that a non-GNU linker is found, and then restart.
15921
15922 EOF
15923 fi
15924 ;;
15925
15926 amigaos*)
15927 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)'
15928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15929 hardcode_minus_L_GCJ=yes
15930
15931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15932 # that the semantics of dynamic libraries on AmigaOS, at least up
15933 # to version 4, is to share data among multiple programs linked
15934 # with the same dynamic library. Since this doesn't match the
15935 # behavior of shared libraries on other platforms, we can't use
15936 # them.
15937 ld_shlibs_GCJ=no
15938 ;;
15939
15940 beos*)
15941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15942 allow_undefined_flag_GCJ=unsupported
15943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15944 # support --undefined. This deserves some investigation. FIXME
15945 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946 else
15947 ld_shlibs_GCJ=no
15948 fi
15949 ;;
15950
15951 cygwin* | mingw* | pw32*)
15952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15953 # as there is no search path for DLLs.
15954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955 allow_undefined_flag_GCJ=unsupported
15956 always_export_symbols_GCJ=no
15957 enable_shared_with_static_runtimes_GCJ=yes
15958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15959
15960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15962 # If the export-symbols file already is a .def file (1st line
15963 # is EXPORTS), use it as is; otherwise, prepend...
15964 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15965 cp $export_symbols $output_objdir/$soname.def;
15966 else
15967 echo EXPORTS > $output_objdir/$soname.def;
15968 cat $export_symbols >> $output_objdir/$soname.def;
15969 fi~
15970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15971 else
15972 ld_shlibs=no
15973 fi
15974 ;;
15975
15976 netbsd*)
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15979 wlarc=
15980 else
15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983 fi
15984 ;;
15985
15986 solaris* | sysv5*)
15987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15988 ld_shlibs_GCJ=no
15989 cat <<EOF 1>&2
15990
15991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15992 *** create shared libraries on Solaris systems. Therefore, libtool
15993 *** is disabling shared libraries support. We urge you to upgrade GNU
15994 *** binutils to release 2.9.1 or newer. Another option is to modify
15995 *** your PATH or compiler configuration so that the native linker is
15996 *** used, and then restart.
15997
15998 EOF
15999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16002 else
16003 ld_shlibs_GCJ=no
16004 fi
16005 ;;
16006
16007 sunos4*)
16008 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009 wlarc=
16010 hardcode_direct_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013
16014 linux*)
16015 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16016 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_cmds_GCJ="$tmp_archive_cmds"
16018 supports_anon_versioning=no
16019 case `$LD -v 2>/dev/null` in
16020 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023 *\ 2.11.*) ;; # other 2.11 versions
16024 *) supports_anon_versioning=yes ;;
16025 esac
16026 if test $supports_anon_versioning = yes; then
16027 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16029 $echo "local: *; };" >> $output_objdir/$libname.ver~
16030 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16031 else
16032 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16033 fi
16034 else
16035 ld_shlibs_GCJ=no
16036 fi
16037 ;;
16038
16039 *)
16040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043 else
16044 ld_shlibs_GCJ=no
16045 fi
16046 ;;
16047 esac
16048
16049 if test "$ld_shlibs_GCJ" = yes; then
16050 runpath_var=LD_RUN_PATH
16051 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16052 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16053 # ancient GNU ld didn't support --whole-archive et. al.
16054 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16055 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16056 else
16057 whole_archive_flag_spec_GCJ=
16058 fi
16059 fi
16060 else
16061 # PORTME fill in a description of your system's linker (not GNU ld)
16062 case $host_os in
16063 aix3*)
16064 allow_undefined_flag_GCJ=unsupported
16065 always_export_symbols_GCJ=yes
16066 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'
16067 # Note: this linker hardcodes the directories in LIBPATH if there
16068 # are no directories specified by -L.
16069 hardcode_minus_L_GCJ=yes
16070 if test "$GCC" = yes && test -z "$link_static_flag"; then
16071 # Neither direct hardcoding nor static linking is supported with a
16072 # broken collect2.
16073 hardcode_direct_GCJ=unsupported
16074 fi
16075 ;;
16076
16077 aix4* | aix5*)
16078 if test "$host_cpu" = ia64; then
16079 # On IA64, the linker does run time linking by default, so we don't
16080 # have to do anything special.
16081 aix_use_runtimelinking=no
16082 exp_sym_flag='-Bexport'
16083 no_entry_flag=""
16084 else
16085 # If we're using GNU nm, then we don't want the "-C" option.
16086 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16087 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16088 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'
16089 else
16090 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'
16091 fi
16092 aix_use_runtimelinking=no
16093
16094 # Test if we are trying to use run time linking or normal
16095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16096 # need to do runtime linking.
16097 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16098 for ld_flag in $LDFLAGS; do
16099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16100 aix_use_runtimelinking=yes
16101 break
16102 fi
16103 done
16104 esac
16105
16106 exp_sym_flag='-bexport'
16107 no_entry_flag='-bnoentry'
16108 fi
16109
16110 # When large executables or shared objects are built, AIX ld can
16111 # have problems creating the table of contents. If linking a library
16112 # or program results in "error TOC overflow" add -mminimal-toc to
16113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16115
16116 archive_cmds_GCJ=''
16117 hardcode_direct_GCJ=yes
16118 hardcode_libdir_separator_GCJ=':'
16119 link_all_deplibs_GCJ=yes
16120
16121 if test "$GCC" = yes; then
16122 case $host_os in aix4.012|aix4.012.*)
16123 # We only want to do this on AIX 4.2 and lower, the check
16124 # below for broken collect2 doesn't work under 4.3+
16125 collect2name=`${CC} -print-prog-name=collect2`
16126 if test -f "$collect2name" && \
16127 strings "$collect2name" | grep resolve_lib_name >/dev/null
16128 then
16129 # We have reworked collect2
16130 hardcode_direct_GCJ=yes
16131 else
16132 # We have old collect2
16133 hardcode_direct_GCJ=unsupported
16134 # It fails to find uninstalled libraries when the uninstalled
16135 # path is not listed in the libpath. Setting hardcode_minus_L
16136 # to unsupported forces relinking
16137 hardcode_minus_L_GCJ=yes
16138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16139 hardcode_libdir_separator_GCJ=
16140 fi
16141 esac
16142 shared_flag='-shared'
16143 else
16144 # not using gcc
16145 if test "$host_cpu" = ia64; then
16146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16147 # chokes on -Wl,-G. The following line is correct:
16148 shared_flag='-G'
16149 else
16150 if test "$aix_use_runtimelinking" = yes; then
16151 shared_flag='${wl}-G'
16152 else
16153 shared_flag='${wl}-bM:SRE'
16154 fi
16155 fi
16156 fi
16157
16158 # It seems that -bexpall does not export symbols beginning with
16159 # underscore (_), so it is better to generate a list of symbols to export.
16160 always_export_symbols_GCJ=yes
16161 if test "$aix_use_runtimelinking" = yes; then
16162 # Warning - without using the other runtime loading flags (-brtl),
16163 # -berok will link without error, but may produce a broken library.
16164 allow_undefined_flag_GCJ='-berok'
16165 # Determine the default libpath from the value encoded in an empty executable.
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172
16173 int
16174 main ()
16175 {
16176
16177 ;
16178 return 0;
16179 }
16180 _ACEOF
16181 rm -f conftest.$ac_objext conftest$ac_exeext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183 (eval $ac_link) 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag"
16191 || test ! -s conftest.err'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest$ac_exeext'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203
16204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16205 }'`
16206 # Check for a 64-bit object if we didn't find anything.
16207 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; }
16208 }'`; fi
16209 else
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 fi
16214 rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16217
16218 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16219 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"
16220 else
16221 if test "$host_cpu" = ia64; then
16222 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16223 allow_undefined_flag_GCJ="-z nodefs"
16224 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"
16225 else
16226 # Determine the default libpath from the value encoded in an empty executable.
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233
16234 int
16235 main ()
16236 {
16237
16238 ;
16239 return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244 (eval $ac_link) 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest$ac_exeext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264
16265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16266 }'`
16267 # Check for a 64-bit object if we didn't find anything.
16268 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; }
16269 }'`; fi
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 fi
16275 rm -f conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16278
16279 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16280 # Warning - without using the other run time loading flags,
16281 # -berok will link without error, but may produce a broken library.
16282 no_undefined_flag_GCJ=' ${wl}-bernotok'
16283 allow_undefined_flag_GCJ=' ${wl}-berok'
16284 # -bexpall does not export symbols beginning with underscore (_)
16285 always_export_symbols_GCJ=yes
16286 # Exported symbols can be pulled into shared objects from archives
16287 whole_archive_flag_spec_GCJ=' '
16288 archive_cmds_need_lc_GCJ=yes
16289 # This is similar to how AIX traditionally builds it's shared libraries.
16290 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'
16291 fi
16292 fi
16293 ;;
16294
16295 amigaos*)
16296 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)'
16297 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298 hardcode_minus_L_GCJ=yes
16299 # see comment about different semantics on the GNU ld section
16300 ld_shlibs_GCJ=no
16301 ;;
16302
16303 bsdi4*)
16304 export_dynamic_flag_spec_GCJ=-rdynamic
16305 ;;
16306
16307 cygwin* | mingw* | pw32*)
16308 # When not using gcc, we currently assume that we are using
16309 # Microsoft Visual C++.
16310 # hardcode_libdir_flag_spec is actually meaningless, as there is
16311 # no search path for DLLs.
16312 hardcode_libdir_flag_spec_GCJ=' '
16313 allow_undefined_flag_GCJ=unsupported
16314 # Tell ltmain to make .lib files, not .a files.
16315 libext=lib
16316 # Tell ltmain to make .dll files, not .so files.
16317 shrext=".dll"
16318 # FIXME: Setting linknames here is a bad hack.
16319 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16320 # The linker will automatically build a .lib file if we build a DLL.
16321 old_archive_From_new_cmds_GCJ='true'
16322 # FIXME: Should let the user specify the lib program.
16323 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16324 fix_srcfile_path='`cygpath -w "$srcfile"`'
16325 enable_shared_with_static_runtimes_GCJ=yes
16326 ;;
16327
16328 darwin* | rhapsody*)
16329 if test "$GXX" = yes ; then
16330 archive_cmds_need_lc_GCJ=no
16331 case "$host_os" in
16332 rhapsody* | darwin1.[012])
16333 allow_undefined_flag_GCJ='-undefined suppress'
16334 ;;
16335 *) # Darwin 1.3 on
16336 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16337 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16338 else
16339 case ${MACOSX_DEPLOYMENT_TARGET} in
16340 10.[012])
16341 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16342 ;;
16343 10.*)
16344 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16345 ;;
16346 esac
16347 fi
16348 ;;
16349 esac
16350 lt_int_apple_cc_single_mod=no
16351 output_verbose_link_cmd='echo'
16352 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16353 lt_int_apple_cc_single_mod=yes
16354 fi
16355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16356 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16357 else
16358 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'
16359 fi
16360 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16362 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16363 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}'
16364 else
16365 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}'
16366 fi
16367 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}'
16368 hardcode_direct_GCJ=no
16369 hardcode_automatic_GCJ=yes
16370 hardcode_shlibpath_var_GCJ=unsupported
16371 whole_archive_flag_spec_GCJ='-all_load $convenience'
16372 link_all_deplibs_GCJ=yes
16373 else
16374 ld_shlibs_GCJ=no
16375 fi
16376 ;;
16377
16378 dgux*)
16379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381 hardcode_shlibpath_var_GCJ=no
16382 ;;
16383
16384 freebsd1*)
16385 ld_shlibs_GCJ=no
16386 ;;
16387
16388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16389 # support. Future versions do this automatically, but an explicit c++rt0.o
16390 # does not break anything, and helps significantly (at the cost of a little
16391 # extra space).
16392 freebsd2.2*)
16393 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16394 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16395 hardcode_direct_GCJ=yes
16396 hardcode_shlibpath_var_GCJ=no
16397 ;;
16398
16399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16400 freebsd2*)
16401 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct_GCJ=yes
16403 hardcode_minus_L_GCJ=yes
16404 hardcode_shlibpath_var_GCJ=no
16405 ;;
16406
16407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16408 freebsd* | kfreebsd*-gnu)
16409 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16411 hardcode_direct_GCJ=yes
16412 hardcode_shlibpath_var_GCJ=no
16413 ;;
16414
16415 hpux9*)
16416 if test "$GCC" = yes; then
16417 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'
16418 else
16419 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'
16420 fi
16421 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16422 hardcode_libdir_separator_GCJ=:
16423 hardcode_direct_GCJ=yes
16424
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L_GCJ=yes
16428 export_dynamic_flag_spec_GCJ='${wl}-E'
16429 ;;
16430
16431 hpux10* | hpux11*)
16432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16433 case "$host_cpu" in
16434 hppa*64*|ia64*)
16435 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16436 ;;
16437 *)
16438 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16439 ;;
16440 esac
16441 else
16442 case "$host_cpu" in
16443 hppa*64*|ia64*)
16444 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 ;;
16446 *)
16447 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16448 ;;
16449 esac
16450 fi
16451 if test "$with_gnu_ld" = no; then
16452 case "$host_cpu" in
16453 hppa*64*)
16454 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16455 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16456 hardcode_libdir_separator_GCJ=:
16457 hardcode_direct_GCJ=no
16458 hardcode_shlibpath_var_GCJ=no
16459 ;;
16460 ia64*)
16461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16462 hardcode_direct_GCJ=no
16463 hardcode_shlibpath_var_GCJ=no
16464
16465 # hardcode_minus_L: Not really in the search PATH,
16466 # but as the default location of the library.
16467 hardcode_minus_L_GCJ=yes
16468 ;;
16469 *)
16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471 hardcode_libdir_separator_GCJ=:
16472 hardcode_direct_GCJ=yes
16473 export_dynamic_flag_spec_GCJ='${wl}-E'
16474
16475 # hardcode_minus_L: Not really in the search PATH,
16476 # but as the default location of the library.
16477 hardcode_minus_L_GCJ=yes
16478 ;;
16479 esac
16480 fi
16481 ;;
16482
16483 irix5* | irix6* | nonstopux*)
16484 if test "$GCC" = yes; then
16485 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'
16486 else
16487 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'
16488 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16489 fi
16490 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16491 hardcode_libdir_separator_GCJ=:
16492 link_all_deplibs_GCJ=yes
16493 ;;
16494
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16498 else
16499 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16500 fi
16501 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16502 hardcode_direct_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16504 ;;
16505
16506 newsos6)
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct_GCJ=yes
16509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator_GCJ=:
16511 hardcode_shlibpath_var_GCJ=no
16512 ;;
16513
16514 openbsd*)
16515 hardcode_direct_GCJ=yes
16516 hardcode_shlibpath_var_GCJ=no
16517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16520 export_dynamic_flag_spec_GCJ='${wl}-E'
16521 else
16522 case $host_os in
16523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16525 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16526 ;;
16527 *)
16528 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16530 ;;
16531 esac
16532 fi
16533 ;;
16534
16535 os2*)
16536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16537 hardcode_minus_L_GCJ=yes
16538 allow_undefined_flag_GCJ=unsupported
16539 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'
16540 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16541 ;;
16542
16543 osf3*)
16544 if test "$GCC" = yes; then
16545 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16546 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'
16547 else
16548 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16549 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'
16550 fi
16551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16552 hardcode_libdir_separator_GCJ=:
16553 ;;
16554
16555 osf4* | osf5*) # as osf3* with the addition of -msym flag
16556 if test "$GCC" = yes; then
16557 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16558 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'
16559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16560 else
16561 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16562 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'
16563 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~
16564 $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'
16565
16566 # Both c and cxx compiler support -rpath directly
16567 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16568 fi
16569 hardcode_libdir_separator_GCJ=:
16570 ;;
16571
16572 sco3.2v5*)
16573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_shlibpath_var_GCJ=no
16575 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16576 runpath_var=LD_RUN_PATH
16577 hardcode_runpath_var=yes
16578 ;;
16579
16580 solaris*)
16581 no_undefined_flag_GCJ=' -z text'
16582 if test "$GCC" = yes; then
16583 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16584 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16585 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16586 else
16587 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16590 fi
16591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16592 hardcode_shlibpath_var_GCJ=no
16593 case $host_os in
16594 solaris2.[0-5] | solaris2.[0-5].*) ;;
16595 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16596 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16597 esac
16598 link_all_deplibs_GCJ=yes
16599 ;;
16600
16601 sunos4*)
16602 if test "x$host_vendor" = xsequent; then
16603 # Use $CC to link under sequent, because it throws in some extra .o
16604 # files that make .init and .fini sections work.
16605 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16606 else
16607 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16608 fi
16609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610 hardcode_direct_GCJ=yes
16611 hardcode_minus_L_GCJ=yes
16612 hardcode_shlibpath_var_GCJ=no
16613 ;;
16614
16615 sysv4)
16616 case $host_vendor in
16617 sni)
16618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_direct_GCJ=yes # is this really true???
16620 ;;
16621 siemens)
16622 ## LD is ld it makes a PLAMLIB
16623 ## CC just makes a GrossModule.
16624 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16625 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16626 hardcode_direct_GCJ=no
16627 ;;
16628 motorola)
16629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16631 ;;
16632 esac
16633 runpath_var='LD_RUN_PATH'
16634 hardcode_shlibpath_var_GCJ=no
16635 ;;
16636
16637 sysv4.3*)
16638 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_shlibpath_var_GCJ=no
16640 export_dynamic_flag_spec_GCJ='-Bexport'
16641 ;;
16642
16643 sysv4*MP*)
16644 if test -d /usr/nec; then
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_shlibpath_var_GCJ=no
16647 runpath_var=LD_RUN_PATH
16648 hardcode_runpath_var=yes
16649 ld_shlibs_GCJ=yes
16650 fi
16651 ;;
16652
16653 sysv4.2uw2*)
16654 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_direct_GCJ=yes
16656 hardcode_minus_L_GCJ=no
16657 hardcode_shlibpath_var_GCJ=no
16658 hardcode_runpath_var=yes
16659 runpath_var=LD_RUN_PATH
16660 ;;
16661
16662 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16663 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16664 if test "$GCC" = yes; then
16665 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 else
16667 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 fi
16669 runpath_var='LD_RUN_PATH'
16670 hardcode_shlibpath_var_GCJ=no
16671 ;;
16672
16673 sysv5*)
16674 no_undefined_flag_GCJ=' -z text'
16675 # $CC -shared without GNU ld will not create a library from C++
16676 # object files and a static libstdc++, better avoid it by now
16677 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16680 hardcode_libdir_flag_spec_GCJ=
16681 hardcode_shlibpath_var_GCJ=no
16682 runpath_var='LD_RUN_PATH'
16683 ;;
16684
16685 uts4*)
16686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16688 hardcode_shlibpath_var_GCJ=no
16689 ;;
16690
16691 *)
16692 ld_shlibs_GCJ=no
16693 ;;
16694 esac
16695 fi
16696
16697 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16698 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16699 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16700
16701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16702 if test "$GCC" = yes; then
16703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16704 fi
16705
16706 #
16707 # Do we need to explicitly link libc?
16708 #
16709 case "x$archive_cmds_need_lc_GCJ" in
16710 x|xyes)
16711 # Assume -lc should be added
16712 archive_cmds_need_lc_GCJ=yes
16713
16714 if test "$enable_shared" = yes && test "$GCC" = yes; then
16715 case $archive_cmds_GCJ in
16716 *'~'*)
16717 # FIXME: we may have to deal with multi-command sequences.
16718 ;;
16719 '$CC '*)
16720 # Test whether the compiler implicitly links with -lc since on some
16721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16722 # to ld, don't add -lc before -lgcc.
16723 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16724 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16725 $rm conftest*
16726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16727
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } 2>conftest.err; then
16733 soname=conftest
16734 lib=conftest
16735 libobjs=conftest.$ac_objext
16736 deplibs=
16737 wl=$lt_prog_compiler_wl_GCJ
16738 compiler_flags=-v
16739 linker_flags=-v
16740 verstring=
16741 output_objdir=.
16742 libname=conftest
16743 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16744 allow_undefined_flag_GCJ=
16745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16746 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }
16750 then
16751 archive_cmds_need_lc_GCJ=no
16752 else
16753 archive_cmds_need_lc_GCJ=yes
16754 fi
16755 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16756 else
16757 cat conftest.err 1>&5
16758 fi
16759 $rm conftest*
16760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16761 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16762 ;;
16763 esac
16764 fi
16765 ;;
16766 esac
16767
16768 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16770 library_names_spec=
16771 libname_spec='lib$name'
16772 soname_spec=
16773 shrext=".so"
16774 postinstall_cmds=
16775 postuninstall_cmds=
16776 finish_cmds=
16777 finish_eval=
16778 shlibpath_var=
16779 shlibpath_overrides_runpath=unknown
16780 version_type=none
16781 dynamic_linker="$host_os ld.so"
16782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16783 if test "$GCC" = yes; then
16784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16786 # if the path contains ";" then we assume it to be the separator
16787 # otherwise default to the standard path separator (i.e. ":") - it is
16788 # assumed that no part of a normal pathname contains ";" but that should
16789 # okay in the real world where ";" in dirpaths is itself problematic.
16790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16791 else
16792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16793 fi
16794 else
16795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16796 fi
16797 need_lib_prefix=unknown
16798 hardcode_into_libs=no
16799
16800 # when you set need_version to no, make sure it does not cause -set_version
16801 # flags to be left without arguments
16802 need_version=unknown
16803
16804 case $host_os in
16805 aix3*)
16806 version_type=linux
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16808 shlibpath_var=LIBPATH
16809
16810 # AIX 3 has no versioning support, so we append a major version to the name.
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 ;;
16813
16814 aix4* | aix5*)
16815 version_type=linux
16816 need_lib_prefix=no
16817 need_version=no
16818 hardcode_into_libs=yes
16819 if test "$host_cpu" = ia64; then
16820 # AIX 5 supports IA64
16821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 else
16824 # With GCC up to 2.95.x, collect2 would create an import file
16825 # for dependence libraries. The import file would start with
16826 # the line `#! .'. This would cause the generated library to
16827 # depend on `.', always an invalid library. This was fixed in
16828 # development snapshots of GCC prior to 3.0.
16829 case $host_os in
16830 aix4 | aix4.[01] | aix4.[01].*)
16831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16832 echo ' yes '
16833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16834 :
16835 else
16836 can_build_shared=no
16837 fi
16838 ;;
16839 esac
16840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16841 # soname into executable. Probably we can add versioning support to
16842 # collect2, so additional links can be useful in future.
16843 if test "$aix_use_runtimelinking" = yes; then
16844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16845 # instead of lib<name>.a to let people know that these are not
16846 # typical AIX shared libraries.
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 else
16849 # We preserve .a as extension for shared libraries through AIX4.2
16850 # and later when we are not doing run time linking.
16851 library_names_spec='${libname}${release}.a $libname.a'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 fi
16854 shlibpath_var=LIBPATH
16855 fi
16856 ;;
16857
16858 amigaos*)
16859 library_names_spec='$libname.ixlibrary $libname.a'
16860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16861 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'
16862 ;;
16863
16864 beos*)
16865 library_names_spec='${libname}${shared_ext}'
16866 dynamic_linker="$host_os ld.so"
16867 shlibpath_var=LIBRARY_PATH
16868 ;;
16869
16870 bsdi4*)
16871 version_type=linux
16872 need_version=no
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16879 # the default ld.so.conf also contains /usr/contrib/lib and
16880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16881 # libtool to hard-code these into programs
16882 ;;
16883
16884 cygwin* | mingw* | pw32*)
16885 version_type=windows
16886 shrext=".dll"
16887 need_version=no
16888 need_lib_prefix=no
16889
16890 case $GCC,$host_os in
16891 yes,cygwin* | yes,mingw* | yes,pw32*)
16892 library_names_spec='$libname.dll.a'
16893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16894 postinstall_cmds='base_file=`basename \${file}`~
16895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16896 dldir=$destdir/`dirname \$dlpath`~
16897 test -d \$dldir || mkdir -p \$dldir~
16898 $install_prog $dir/$dlname \$dldir/$dlname'
16899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16900 dlpath=$dir/\$dldll~
16901 $rm \$dlpath'
16902 shlibpath_overrides_runpath=yes
16903
16904 case $host_os in
16905 cygwin*)
16906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16909 ;;
16910 mingw*)
16911 # MinGW DLLs use traditional 'lib' prefix
16912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16915 # It is most probably a Windows format PATH printed by
16916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16917 # path with ; separators, and with drive letters. We can handle the
16918 # drive letters (cygwin fileutils understands them), so leave them,
16919 # especially as we might pass files found there to a mingw objdump,
16920 # which wouldn't understand a cygwinified path. Ahh.
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922 else
16923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16924 fi
16925 ;;
16926 pw32*)
16927 # pw32 DLLs use 'pw' prefix rather than 'lib'
16928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16929 ;;
16930 esac
16931 ;;
16932
16933 *)
16934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16935 ;;
16936 esac
16937 dynamic_linker='Win32 ld.exe'
16938 # FIXME: first we should search . and the directory the executable is in
16939 shlibpath_var=PATH
16940 ;;
16941
16942 darwin* | rhapsody*)
16943 dynamic_linker="$host_os dyld"
16944 version_type=darwin
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16948 soname_spec='${libname}${release}${major}$shared_ext'
16949 shlibpath_overrides_runpath=yes
16950 shlibpath_var=DYLD_LIBRARY_PATH
16951 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16953 if test "$GCC" = yes; then
16954 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"`
16955 else
16956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16957 fi
16958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16959 ;;
16960
16961 dgux*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 ;;
16969
16970 freebsd1*)
16971 dynamic_linker=no
16972 ;;
16973
16974 kfreebsd*-gnu)
16975 version_type=linux
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=no
16982 hardcode_into_libs=yes
16983 dynamic_linker='GNU ld.so'
16984 ;;
16985
16986 freebsd*)
16987 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16988 version_type=freebsd-$objformat
16989 case $version_type in
16990 freebsd-elf*)
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16992 need_version=no
16993 need_lib_prefix=no
16994 ;;
16995 freebsd-*)
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16997 need_version=yes
16998 ;;
16999 esac
17000 shlibpath_var=LD_LIBRARY_PATH
17001 case $host_os in
17002 freebsd2*)
17003 shlibpath_overrides_runpath=yes
17004 ;;
17005 freebsd3.01* | freebsdelf3.01*)
17006 shlibpath_overrides_runpath=yes
17007 hardcode_into_libs=yes
17008 ;;
17009 *) # from 3.2 on
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 ;;
17013 esac
17014 ;;
17015
17016 gnu*)
17017 version_type=linux
17018 need_lib_prefix=no
17019 need_version=no
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 hardcode_into_libs=yes
17024 ;;
17025
17026 hpux9* | hpux10* | hpux11*)
17027 # Give a soname corresponding to the major version so that dld.sl refuses to
17028 # link against other versions.
17029 version_type=sunos
17030 need_lib_prefix=no
17031 need_version=no
17032 case "$host_cpu" in
17033 ia64*)
17034 shrext='.so'
17035 hardcode_into_libs=yes
17036 dynamic_linker="$host_os dld.so"
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 if test "X$HPUX_IA64_MODE" = X32; then
17042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17043 else
17044 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17045 fi
17046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17047 ;;
17048 hppa*64*)
17049 shrext='.sl'
17050 hardcode_into_libs=yes
17051 dynamic_linker="$host_os dld.sl"
17052 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17058 ;;
17059 *)
17060 shrext='.sl'
17061 dynamic_linker="$host_os dld.sl"
17062 shlibpath_var=SHLIB_PATH
17063 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 ;;
17067 esac
17068 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17069 postinstall_cmds='chmod 555 $lib'
17070 ;;
17071
17072 irix5* | irix6* | nonstopux*)
17073 case $host_os in
17074 nonstopux*) version_type=nonstopux ;;
17075 *)
17076 if test "$lt_cv_prog_gnu_ld" = yes; then
17077 version_type=linux
17078 else
17079 version_type=irix
17080 fi ;;
17081 esac
17082 need_lib_prefix=no
17083 need_version=no
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 case $host_os in
17087 irix5* | nonstopux*)
17088 libsuff= shlibsuff=
17089 ;;
17090 *)
17091 case $LD in # libtool.m4 will add one of these switches to LD
17092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17093 libsuff= shlibsuff= libmagic=32-bit;;
17094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17095 libsuff=32 shlibsuff=N32 libmagic=N32;;
17096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17098 *) libsuff= shlibsuff= libmagic=never-match;;
17099 esac
17100 ;;
17101 esac
17102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17103 shlibpath_overrides_runpath=no
17104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17106 hardcode_into_libs=yes
17107 ;;
17108
17109 # No shared lib support for Linux oldld, aout, or coff.
17110 linux*oldld* | linux*aout* | linux*coff*)
17111 dynamic_linker=no
17112 ;;
17113
17114 # This must be Linux ELF.
17115 linux*)
17116 version_type=linux
17117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 shlibpath_overrides_runpath=no
17124 # This implies no fast_install, which is unacceptable.
17125 # Some rework will be needed to allow for fast_install
17126 # before this can be enabled.
17127 hardcode_into_libs=yes
17128
17129 # Append ld.so.conf contents to the search path
17130 if test -f /etc/ld.so.conf; then
17131 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17132 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17133 fi
17134
17135 # We used to test for /lib/ld.so.1 and disable shared libraries on
17136 # powerpc, because MkLinux only supported shared libraries with the
17137 # GNU dynamic linker. Since this was broken with cross compilers,
17138 # most powerpc-linux boxes support dynamic linking these days and
17139 # people can always --disable-shared, the test was removed, and we
17140 # assume the GNU/Linux dynamic linker is in use.
17141 dynamic_linker='GNU/Linux ld.so'
17142 ;;
17143
17144 knetbsd*-gnu)
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=no
17152 hardcode_into_libs=yes
17153 dynamic_linker='GNU ld.so'
17154 ;;
17155
17156 netbsd*)
17157 version_type=sunos
17158 need_lib_prefix=no
17159 need_version=no
17160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17163 dynamic_linker='NetBSD (a.out) ld.so'
17164 else
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 dynamic_linker='NetBSD ld.elf_so'
17168 fi
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=yes
17171 hardcode_into_libs=yes
17172 ;;
17173
17174 newsos6)
17175 version_type=linux
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 ;;
17180
17181 nto-qnx*)
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=yes
17189 ;;
17190
17191 openbsd*)
17192 version_type=sunos
17193 need_lib_prefix=no
17194 need_version=yes
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17199 case $host_os in
17200 openbsd2.[89] | openbsd2.[89].*)
17201 shlibpath_overrides_runpath=no
17202 ;;
17203 *)
17204 shlibpath_overrides_runpath=yes
17205 ;;
17206 esac
17207 else
17208 shlibpath_overrides_runpath=yes
17209 fi
17210 ;;
17211
17212 os2*)
17213 libname_spec='$name'
17214 shrext=".dll"
17215 need_lib_prefix=no
17216 library_names_spec='$libname${shared_ext} $libname.a'
17217 dynamic_linker='OS/2 ld.exe'
17218 shlibpath_var=LIBPATH
17219 ;;
17220
17221 osf3* | osf4* | osf5*)
17222 version_type=osf
17223 need_lib_prefix=no
17224 need_version=no
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17230 ;;
17231
17232 sco3.2v5*)
17233 version_type=osf
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 ;;
17238
17239 solaris*)
17240 version_type=linux
17241 need_lib_prefix=no
17242 need_version=no
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 shlibpath_overrides_runpath=yes
17247 hardcode_into_libs=yes
17248 # ldd complains unless libraries are executable
17249 postinstall_cmds='chmod +x $lib'
17250 ;;
17251
17252 sunos4*)
17253 version_type=sunos
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17258 if test "$with_gnu_ld" = yes; then
17259 need_lib_prefix=no
17260 fi
17261 need_version=yes
17262 ;;
17263
17264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17265 version_type=linux
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267 soname_spec='${libname}${release}${shared_ext}$major'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 case $host_vendor in
17270 sni)
17271 shlibpath_overrides_runpath=no
17272 need_lib_prefix=no
17273 export_dynamic_flag_spec='${wl}-Blargedynsym'
17274 runpath_var=LD_RUN_PATH
17275 ;;
17276 siemens)
17277 need_lib_prefix=no
17278 ;;
17279 motorola)
17280 need_lib_prefix=no
17281 need_version=no
17282 shlibpath_overrides_runpath=no
17283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17284 ;;
17285 esac
17286 ;;
17287
17288 sysv4*MP*)
17289 if test -d /usr/nec ;then
17290 version_type=linux
17291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17292 soname_spec='$libname${shared_ext}.$major'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 fi
17295 ;;
17296
17297 uts4*)
17298 version_type=linux
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 ;;
17303
17304 *)
17305 dynamic_linker=no
17306 ;;
17307 esac
17308 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17309 echo "${ECHO_T}$dynamic_linker" >&6
17310 test "$dynamic_linker" = no && can_build_shared=no
17311
17312 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17313 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17314 hardcode_action_GCJ=
17315 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17316 test -n "$runpath_var GCJ" || \
17317 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17318
17319 # We can hardcode non-existant directories.
17320 if test "$hardcode_direct_GCJ" != no &&
17321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17322 # have to relink, otherwise we might link with an installed library
17323 # when we should be linking with a yet-to-be-installed one
17324 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17325 test "$hardcode_minus_L_GCJ" != no; then
17326 # Linking always hardcodes the temporary library directory.
17327 hardcode_action_GCJ=relink
17328 else
17329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17330 hardcode_action_GCJ=immediate
17331 fi
17332 else
17333 # We cannot hardcode anything, or else we can only hardcode existing
17334 # directories.
17335 hardcode_action_GCJ=unsupported
17336 fi
17337 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17338 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17339
17340 if test "$hardcode_action_GCJ" = relink; then
17341 # Fast installation is not supported
17342 enable_fast_install=no
17343 elif test "$shlibpath_overrides_runpath" = yes ||
17344 test "$enable_shared" = no; then
17345 # Fast installation is not necessary
17346 enable_fast_install=needless
17347 fi
17348
17349 striplib=
17350 old_striplib=
17351 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17352 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17353 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17355 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17356 echo "$as_me:$LINENO: result: yes" >&5
17357 echo "${ECHO_T}yes" >&6
17358 else
17359 # FIXME - insert some real tests, host_os isn't really good enough
17360 case $host_os in
17361 darwin*)
17362 if test -n "$STRIP" ; then
17363 striplib="$STRIP -x"
17364 echo "$as_me:$LINENO: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6
17366 else
17367 echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6
17369 fi
17370 ;;
17371 *)
17372 echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6
17374 ;;
17375 esac
17376 fi
17377
17378 if test "x$enable_dlopen" != xyes; then
17379 enable_dlopen=unknown
17380 enable_dlopen_self=unknown
17381 enable_dlopen_self_static=unknown
17382 else
17383 lt_cv_dlopen=no
17384 lt_cv_dlopen_libs=
17385
17386 case $host_os in
17387 beos*)
17388 lt_cv_dlopen="load_add_on"
17389 lt_cv_dlopen_libs=
17390 lt_cv_dlopen_self=yes
17391 ;;
17392
17393 mingw* | pw32*)
17394 lt_cv_dlopen="LoadLibrary"
17395 lt_cv_dlopen_libs=
17396 ;;
17397
17398 cygwin*)
17399 lt_cv_dlopen="dlopen"
17400 lt_cv_dlopen_libs=
17401 ;;
17402
17403 darwin*)
17404 # if libdl is installed we need to link against it
17405 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17406 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17407 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410 ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-ldl $LIBS"
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418
17419 /* Override any gcc2 internal prototype to avoid an error. */
17420 #ifdef __cplusplus
17421 extern "C"
17422 #endif
17423 /* We use char because int might match the return type of a gcc2
17424 builtin and then its argument prototype would still apply. */
17425 char dlopen ();
17426 int
17427 main ()
17428 {
17429 dlopen ();
17430 ;
17431 return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17436 (eval $ac_link) 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } &&
17443 { ac_try='test -z "$ac_c_werror_flag"
17444 || test ! -s conftest.err'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest$ac_exeext'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_cv_lib_dl_dlopen=yes
17457 else
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 ac_cv_lib_dl_dlopen=no
17462 fi
17463 rm -f conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17465 LIBS=$ac_check_lib_save_LIBS
17466 fi
17467 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17468 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17469 if test $ac_cv_lib_dl_dlopen = yes; then
17470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17471 else
17472
17473 lt_cv_dlopen="dyld"
17474 lt_cv_dlopen_libs=
17475 lt_cv_dlopen_self=yes
17476
17477 fi
17478
17479 ;;
17480
17481 *)
17482 echo "$as_me:$LINENO: checking for shl_load" >&5
17483 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17484 if test "${ac_cv_func_shl_load+set}" = set; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17486 else
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17495 #define shl_load innocuous_shl_load
17496
17497 /* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char shl_load (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17501
17502 #ifdef __STDC__
17503 # include <limits.h>
17504 #else
17505 # include <assert.h>
17506 #endif
17507
17508 #undef shl_load
17509
17510 /* Override any gcc2 internal prototype to avoid an error. */
17511 #ifdef __cplusplus
17512 extern "C"
17513 {
17514 #endif
17515 /* We use char because int might match the return type of a gcc2
17516 builtin and then its argument prototype would still apply. */
17517 char shl_load ();
17518 /* The GNU C library defines this for functions which it implements
17519 to always fail with ENOSYS. Some functions are actually named
17520 something starting with __ and the normal name is an alias. */
17521 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17522 choke me
17523 #else
17524 char (*f) () = shl_load;
17525 #endif
17526 #ifdef __cplusplus
17527 }
17528 #endif
17529
17530 int
17531 main ()
17532 {
17533 return f != shl_load;
17534 ;
17535 return 0;
17536 }
17537 _ACEOF
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17540 (eval $ac_link) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag"
17548 || test ! -s conftest.err'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 ac_cv_func_shl_load=yes
17561 else
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565 ac_cv_func_shl_load=no
17566 fi
17567 rm -f conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17569 fi
17570 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17571 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17572 if test $ac_cv_func_shl_load = yes; then
17573 lt_cv_dlopen="shl_load"
17574 else
17575 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17576 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17577 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580 ac_check_lib_save_LIBS=$LIBS
17581 LIBS="-ldld $LIBS"
17582 cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h. */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588
17589 /* Override any gcc2 internal prototype to avoid an error. */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 /* We use char because int might match the return type of a gcc2
17594 builtin and then its argument prototype would still apply. */
17595 char shl_load ();
17596 int
17597 main ()
17598 {
17599 shl_load ();
17600 ;
17601 return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17606 (eval $ac_link) 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -z "$ac_c_werror_flag"
17614 || test ! -s conftest.err'
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_cv_lib_dld_shl_load=yes
17627 else
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 ac_cv_lib_dld_shl_load=no
17632 fi
17633 rm -f conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17636 fi
17637 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17638 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17639 if test $ac_cv_lib_dld_shl_load = yes; then
17640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17641 else
17642 echo "$as_me:$LINENO: checking for dlopen" >&5
17643 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17644 if test "${ac_cv_func_dlopen+set}" = set; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647 cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h. */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17653 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17655 #define dlopen innocuous_dlopen
17656
17657 /* System header to define __stub macros and hopefully few prototypes,
17658 which can conflict with char dlopen (); below.
17659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17660 <limits.h> exists even on freestanding compilers. */
17661
17662 #ifdef __STDC__
17663 # include <limits.h>
17664 #else
17665 # include <assert.h>
17666 #endif
17667
17668 #undef dlopen
17669
17670 /* Override any gcc2 internal prototype to avoid an error. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 {
17674 #endif
17675 /* We use char because int might match the return type of a gcc2
17676 builtin and then its argument prototype would still apply. */
17677 char dlopen ();
17678 /* The GNU C library defines this for functions which it implements
17679 to always fail with ENOSYS. Some functions are actually named
17680 something starting with __ and the normal name is an alias. */
17681 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17682 choke me
17683 #else
17684 char (*f) () = dlopen;
17685 #endif
17686 #ifdef __cplusplus
17687 }
17688 #endif
17689
17690 int
17691 main ()
17692 {
17693 return f != dlopen;
17694 ;
17695 return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700 (eval $ac_link) 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag"
17708 || test ! -s conftest.err'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_func_dlopen=yes
17721 else
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 ac_cv_func_dlopen=no
17726 fi
17727 rm -f conftest.err conftest.$ac_objext \
17728 conftest$ac_exeext conftest.$ac_ext
17729 fi
17730 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17731 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17732 if test $ac_cv_func_dlopen = yes; then
17733 lt_cv_dlopen="dlopen"
17734 else
17735 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17736 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17737 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740 ac_check_lib_save_LIBS=$LIBS
17741 LIBS="-ldl $LIBS"
17742 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h. */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748
17749 /* Override any gcc2 internal prototype to avoid an error. */
17750 #ifdef __cplusplus
17751 extern "C"
17752 #endif
17753 /* We use char because int might match the return type of a gcc2
17754 builtin and then its argument prototype would still apply. */
17755 char dlopen ();
17756 int
17757 main ()
17758 {
17759 dlopen ();
17760 ;
17761 return 0;
17762 }
17763 _ACEOF
17764 rm -f conftest.$ac_objext conftest$ac_exeext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_lib_dl_dlopen=yes
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_cv_lib_dl_dlopen=no
17792 fi
17793 rm -f conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795 LIBS=$ac_check_lib_save_LIBS
17796 fi
17797 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17798 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17799 if test $ac_cv_lib_dl_dlopen = yes; then
17800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17801 else
17802 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17803 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17804 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807 ac_check_lib_save_LIBS=$LIBS
17808 LIBS="-lsvld $LIBS"
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815
17816 /* Override any gcc2 internal prototype to avoid an error. */
17817 #ifdef __cplusplus
17818 extern "C"
17819 #endif
17820 /* We use char because int might match the return type of a gcc2
17821 builtin and then its argument prototype would still apply. */
17822 char dlopen ();
17823 int
17824 main ()
17825 {
17826 dlopen ();
17827 ;
17828 return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833 (eval $ac_link) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 ac_cv_lib_svld_dlopen=yes
17854 else
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ac_cv_lib_svld_dlopen=no
17859 fi
17860 rm -f conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17863 fi
17864 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17865 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17866 if test $ac_cv_lib_svld_dlopen = yes; then
17867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17868 else
17869 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17870 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17871 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874 ac_check_lib_save_LIBS=$LIBS
17875 LIBS="-ldld $LIBS"
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882
17883 /* Override any gcc2 internal prototype to avoid an error. */
17884 #ifdef __cplusplus
17885 extern "C"
17886 #endif
17887 /* We use char because int might match the return type of a gcc2
17888 builtin and then its argument prototype would still apply. */
17889 char dld_link ();
17890 int
17891 main ()
17892 {
17893 dld_link ();
17894 ;
17895 return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17900 (eval $ac_link) 2>conftest.er1
17901 ac_status=$?
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_dld_dld_link=yes
17921 else
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925 ac_cv_lib_dld_dld_link=no
17926 fi
17927 rm -f conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17929 LIBS=$ac_check_lib_save_LIBS
17930 fi
17931 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17932 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17933 if test $ac_cv_lib_dld_dld_link = yes; then
17934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17935 fi
17936
17937
17938 fi
17939
17940
17941 fi
17942
17943
17944 fi
17945
17946
17947 fi
17948
17949
17950 fi
17951
17952 ;;
17953 esac
17954
17955 if test "x$lt_cv_dlopen" != xno; then
17956 enable_dlopen=yes
17957 else
17958 enable_dlopen=no
17959 fi
17960
17961 case $lt_cv_dlopen in
17962 dlopen)
17963 save_CPPFLAGS="$CPPFLAGS"
17964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17965
17966 save_LDFLAGS="$LDFLAGS"
17967 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17968
17969 save_LIBS="$LIBS"
17970 LIBS="$lt_cv_dlopen_libs $LIBS"
17971
17972 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17973 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17974 if test "${lt_cv_dlopen_self+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977 if test "$cross_compiling" = yes; then :
17978 lt_cv_dlopen_self=cross
17979 else
17980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17981 lt_status=$lt_dlunknown
17982 cat > conftest.$ac_ext <<EOF
17983 #line 17983 "configure"
17984 #include "confdefs.h"
17985
17986 #if HAVE_DLFCN_H
17987 #include <dlfcn.h>
17988 #endif
17989
17990 #include <stdio.h>
17991
17992 #ifdef RTLD_GLOBAL
17993 # define LT_DLGLOBAL RTLD_GLOBAL
17994 #else
17995 # ifdef DL_GLOBAL
17996 # define LT_DLGLOBAL DL_GLOBAL
17997 # else
17998 # define LT_DLGLOBAL 0
17999 # endif
18000 #endif
18001
18002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18003 find out it does not work in some platform. */
18004 #ifndef LT_DLLAZY_OR_NOW
18005 # ifdef RTLD_LAZY
18006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18007 # else
18008 # ifdef DL_LAZY
18009 # define LT_DLLAZY_OR_NOW DL_LAZY
18010 # else
18011 # ifdef RTLD_NOW
18012 # define LT_DLLAZY_OR_NOW RTLD_NOW
18013 # else
18014 # ifdef DL_NOW
18015 # define LT_DLLAZY_OR_NOW DL_NOW
18016 # else
18017 # define LT_DLLAZY_OR_NOW 0
18018 # endif
18019 # endif
18020 # endif
18021 # endif
18022 #endif
18023
18024 #ifdef __cplusplus
18025 extern "C" void exit (int);
18026 #endif
18027
18028 void fnord() { int i=42;}
18029 int main ()
18030 {
18031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18032 int status = $lt_dlunknown;
18033
18034 if (self)
18035 {
18036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18038 /* dlclose (self); */
18039 }
18040
18041 exit (status);
18042 }
18043 EOF
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18049 (./conftest; exit; ) 2>/dev/null
18050 lt_status=$?
18051 case x$lt_status in
18052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18054 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18055 esac
18056 else :
18057 # compilation failed
18058 lt_cv_dlopen_self=no
18059 fi
18060 fi
18061 rm -fr conftest*
18062
18063
18064 fi
18065 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18066 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18067
18068 if test "x$lt_cv_dlopen_self" = xyes; then
18069 LDFLAGS="$LDFLAGS $link_static_flag"
18070 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18071 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18072 if test "${lt_cv_dlopen_self_static+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075 if test "$cross_compiling" = yes; then :
18076 lt_cv_dlopen_self_static=cross
18077 else
18078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18079 lt_status=$lt_dlunknown
18080 cat > conftest.$ac_ext <<EOF
18081 #line 18081 "configure"
18082 #include "confdefs.h"
18083
18084 #if HAVE_DLFCN_H
18085 #include <dlfcn.h>
18086 #endif
18087
18088 #include <stdio.h>
18089
18090 #ifdef RTLD_GLOBAL
18091 # define LT_DLGLOBAL RTLD_GLOBAL
18092 #else
18093 # ifdef DL_GLOBAL
18094 # define LT_DLGLOBAL DL_GLOBAL
18095 # else
18096 # define LT_DLGLOBAL 0
18097 # endif
18098 #endif
18099
18100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18101 find out it does not work in some platform. */
18102 #ifndef LT_DLLAZY_OR_NOW
18103 # ifdef RTLD_LAZY
18104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18105 # else
18106 # ifdef DL_LAZY
18107 # define LT_DLLAZY_OR_NOW DL_LAZY
18108 # else
18109 # ifdef RTLD_NOW
18110 # define LT_DLLAZY_OR_NOW RTLD_NOW
18111 # else
18112 # ifdef DL_NOW
18113 # define LT_DLLAZY_OR_NOW DL_NOW
18114 # else
18115 # define LT_DLLAZY_OR_NOW 0
18116 # endif
18117 # endif
18118 # endif
18119 # endif
18120 #endif
18121
18122 #ifdef __cplusplus
18123 extern "C" void exit (int);
18124 #endif
18125
18126 void fnord() { int i=42;}
18127 int main ()
18128 {
18129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18130 int status = $lt_dlunknown;
18131
18132 if (self)
18133 {
18134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18136 /* dlclose (self); */
18137 }
18138
18139 exit (status);
18140 }
18141 EOF
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18147 (./conftest; exit; ) 2>/dev/null
18148 lt_status=$?
18149 case x$lt_status in
18150 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18151 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18152 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18153 esac
18154 else :
18155 # compilation failed
18156 lt_cv_dlopen_self_static=no
18157 fi
18158 fi
18159 rm -fr conftest*
18160
18161
18162 fi
18163 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18164 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18165 fi
18166
18167 CPPFLAGS="$save_CPPFLAGS"
18168 LDFLAGS="$save_LDFLAGS"
18169 LIBS="$save_LIBS"
18170 ;;
18171 esac
18172
18173 case $lt_cv_dlopen_self in
18174 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18175 *) enable_dlopen_self=unknown ;;
18176 esac
18177
18178 case $lt_cv_dlopen_self_static in
18179 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18180 *) enable_dlopen_self_static=unknown ;;
18181 esac
18182 fi
18183
18184
18185 # The else clause should only fire when bootstrapping the
18186 # libtool distribution, otherwise you forgot to ship ltmain.sh
18187 # with your package, and you will get complaints that there are
18188 # no rules to generate ltmain.sh.
18189 if test -f "$ltmain"; then
18190 # See if we are running on zsh, and set the options which allow our commands through
18191 # without removal of \ escapes.
18192 if test -n "${ZSH_VERSION+set}" ; then
18193 setopt NO_GLOB_SUBST
18194 fi
18195 # Now quote all the things that may contain metacharacters while being
18196 # careful not to overquote the AC_SUBSTed values. We take copies of the
18197 # variables and quote the copies for generation of the libtool script.
18198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18199 SED SHELL STRIP \
18200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18202 deplibs_check_method reload_flag reload_cmds need_locks \
18203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18204 lt_cv_sys_global_symbol_to_c_name_address \
18205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18206 old_postinstall_cmds old_postuninstall_cmds \
18207 compiler_GCJ \
18208 CC_GCJ \
18209 LD_GCJ \
18210 lt_prog_compiler_wl_GCJ \
18211 lt_prog_compiler_pic_GCJ \
18212 lt_prog_compiler_static_GCJ \
18213 lt_prog_compiler_no_builtin_flag_GCJ \
18214 export_dynamic_flag_spec_GCJ \
18215 thread_safe_flag_spec_GCJ \
18216 whole_archive_flag_spec_GCJ \
18217 enable_shared_with_static_runtimes_GCJ \
18218 old_archive_cmds_GCJ \
18219 old_archive_from_new_cmds_GCJ \
18220 predep_objects_GCJ \
18221 postdep_objects_GCJ \
18222 predeps_GCJ \
18223 postdeps_GCJ \
18224 compiler_lib_search_path_GCJ \
18225 archive_cmds_GCJ \
18226 archive_expsym_cmds_GCJ \
18227 postinstall_cmds_GCJ \
18228 postuninstall_cmds_GCJ \
18229 old_archive_from_expsyms_cmds_GCJ \
18230 allow_undefined_flag_GCJ \
18231 no_undefined_flag_GCJ \
18232 export_symbols_cmds_GCJ \
18233 hardcode_libdir_flag_spec_GCJ \
18234 hardcode_libdir_flag_spec_ld_GCJ \
18235 hardcode_libdir_separator_GCJ \
18236 hardcode_automatic_GCJ \
18237 module_cmds_GCJ \
18238 module_expsym_cmds_GCJ \
18239 lt_cv_prog_compiler_c_o_GCJ \
18240 exclude_expsyms_GCJ \
18241 include_expsyms_GCJ; do
18242
18243 case $var in
18244 old_archive_cmds_GCJ | \
18245 old_archive_from_new_cmds_GCJ | \
18246 archive_cmds_GCJ | \
18247 archive_expsym_cmds_GCJ | \
18248 module_cmds_GCJ | \
18249 module_expsym_cmds_GCJ | \
18250 old_archive_from_expsyms_cmds_GCJ | \
18251 export_symbols_cmds_GCJ | \
18252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18253 postinstall_cmds | postuninstall_cmds | \
18254 old_postinstall_cmds | old_postuninstall_cmds | \
18255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18256 # Double-quote double-evaled strings.
18257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18258 ;;
18259 *)
18260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18261 ;;
18262 esac
18263 done
18264
18265 case $lt_echo in
18266 *'\$0 --fallback-echo"')
18267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18268 ;;
18269 esac
18270
18271 cfgfile="$ofile"
18272
18273 cat <<__EOF__ >> "$cfgfile"
18274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18275
18276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18277
18278 # Shell to use when invoking shell scripts.
18279 SHELL=$lt_SHELL
18280
18281 # Whether or not to build shared libraries.
18282 build_libtool_libs=$enable_shared
18283
18284 # Whether or not to build static libraries.
18285 build_old_libs=$enable_static
18286
18287 # Whether or not to add -lc for building shared libraries.
18288 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18289
18290 # Whether or not to disallow shared libs when runtime libs are static
18291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18292
18293 # Whether or not to optimize for fast installation.
18294 fast_install=$enable_fast_install
18295
18296 # The host system.
18297 host_alias=$host_alias
18298 host=$host
18299
18300 # An echo program that does not interpret backslashes.
18301 echo=$lt_echo
18302
18303 # The archiver.
18304 AR=$lt_AR
18305 AR_FLAGS=$lt_AR_FLAGS
18306
18307 # A C compiler.
18308 LTCC=$lt_LTCC
18309
18310 # A language-specific compiler.
18311 CC=$lt_compiler_GCJ
18312
18313 # Is the compiler the GNU C compiler?
18314 with_gcc=$GCC_GCJ
18315
18316 # An ERE matcher.
18317 EGREP=$lt_EGREP
18318
18319 # The linker used to build libraries.
18320 LD=$lt_LD_GCJ
18321
18322 # Whether we need hard or soft links.
18323 LN_S=$lt_LN_S
18324
18325 # A BSD-compatible nm program.
18326 NM=$lt_NM
18327
18328 # A symbol stripping program
18329 STRIP=$lt_STRIP
18330
18331 # Used to examine libraries when file_magic_cmd begins "file"
18332 MAGIC_CMD=$MAGIC_CMD
18333
18334 # Used on cygwin: DLL creation program.
18335 DLLTOOL="$DLLTOOL"
18336
18337 # Used on cygwin: object dumper.
18338 OBJDUMP="$OBJDUMP"
18339
18340 # Used on cygwin: assembler.
18341 AS="$AS"
18342
18343 # The name of the directory that contains temporary libtool files.
18344 objdir=$objdir
18345
18346 # How to create reloadable object files.
18347 reload_flag=$lt_reload_flag
18348 reload_cmds=$lt_reload_cmds
18349
18350 # How to pass a linker flag through the compiler.
18351 wl=$lt_lt_prog_compiler_wl_GCJ
18352
18353 # Object file suffix (normally "o").
18354 objext="$ac_objext"
18355
18356 # Old archive suffix (normally "a").
18357 libext="$libext"
18358
18359 # Shared library suffix (normally ".so").
18360 shrext='$shrext'
18361
18362 # Executable file suffix (normally "").
18363 exeext="$exeext"
18364
18365 # Additional compiler flags for building library objects.
18366 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18367 pic_mode=$pic_mode
18368
18369 # What is the maximum length of a command?
18370 max_cmd_len=$lt_cv_sys_max_cmd_len
18371
18372 # Does compiler simultaneously support -c and -o options?
18373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18374
18375 # Must we lock files when doing compilation ?
18376 need_locks=$lt_need_locks
18377
18378 # Do we need the lib prefix for modules?
18379 need_lib_prefix=$need_lib_prefix
18380
18381 # Do we need a version for libraries?
18382 need_version=$need_version
18383
18384 # Whether dlopen is supported.
18385 dlopen_support=$enable_dlopen
18386
18387 # Whether dlopen of programs is supported.
18388 dlopen_self=$enable_dlopen_self
18389
18390 # Whether dlopen of statically linked programs is supported.
18391 dlopen_self_static=$enable_dlopen_self_static
18392
18393 # Compiler flag to prevent dynamic linking.
18394 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18395
18396 # Compiler flag to turn off builtin functions.
18397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18398
18399 # Compiler flag to allow reflexive dlopens.
18400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18401
18402 # Compiler flag to generate shared objects directly from archives.
18403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18404
18405 # Compiler flag to generate thread-safe objects.
18406 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18407
18408 # Library versioning type.
18409 version_type=$version_type
18410
18411 # Format of library name prefix.
18412 libname_spec=$lt_libname_spec
18413
18414 # List of archive names. First name is the real one, the rest are links.
18415 # The last name is the one that the linker finds with -lNAME.
18416 library_names_spec=$lt_library_names_spec
18417
18418 # The coded name of the library, if different from the real name.
18419 soname_spec=$lt_soname_spec
18420
18421 # Commands used to build and install an old-style archive.
18422 RANLIB=$lt_RANLIB
18423 old_archive_cmds=$lt_old_archive_cmds_GCJ
18424 old_postinstall_cmds=$lt_old_postinstall_cmds
18425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18426
18427 # Create an old-style archive from a shared archive.
18428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18429
18430 # Create a temporary old-style archive to link instead of a shared archive.
18431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18432
18433 # Commands used to build and install a shared archive.
18434 archive_cmds=$lt_archive_cmds_GCJ
18435 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18436 postinstall_cmds=$lt_postinstall_cmds
18437 postuninstall_cmds=$lt_postuninstall_cmds
18438
18439 # Commands used to build a loadable module (assumed same as above if empty)
18440 module_cmds=$lt_module_cmds_GCJ
18441 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18442
18443 # Commands to strip libraries.
18444 old_striplib=$lt_old_striplib
18445 striplib=$lt_striplib
18446
18447 # Dependencies to place before the objects being linked to create a
18448 # shared library.
18449 predep_objects=$lt_predep_objects_GCJ
18450
18451 # Dependencies to place after the objects being linked to create a
18452 # shared library.
18453 postdep_objects=$lt_postdep_objects_GCJ
18454
18455 # Dependencies to place before the objects being linked to create a
18456 # shared library.
18457 predeps=$lt_predeps_GCJ
18458
18459 # Dependencies to place after the objects being linked to create a
18460 # shared library.
18461 postdeps=$lt_postdeps_GCJ
18462
18463 # The library search path used internally by the compiler when linking
18464 # a shared library.
18465 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18466
18467 # Method to check whether dependent libraries are shared objects.
18468 deplibs_check_method=$lt_deplibs_check_method
18469
18470 # Command to use when deplibs_check_method == file_magic.
18471 file_magic_cmd=$lt_file_magic_cmd
18472
18473 # Flag that allows shared libraries with undefined symbols to be built.
18474 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18475
18476 # Flag that forces no undefined symbols.
18477 no_undefined_flag=$lt_no_undefined_flag_GCJ
18478
18479 # Commands used to finish a libtool library installation in a directory.
18480 finish_cmds=$lt_finish_cmds
18481
18482 # Same as above, but a single script fragment to be evaled but not shown.
18483 finish_eval=$lt_finish_eval
18484
18485 # Take the output of nm and produce a listing of raw symbols and C names.
18486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18487
18488 # Transform the output of nm in a proper C declaration
18489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18490
18491 # Transform the output of nm in a C name address pair
18492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18493
18494 # This is the shared library runtime path variable.
18495 runpath_var=$runpath_var
18496
18497 # This is the shared library path variable.
18498 shlibpath_var=$shlibpath_var
18499
18500 # Is shlibpath searched before the hard-coded library search path?
18501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18502
18503 # How to hardcode a shared library path into an executable.
18504 hardcode_action=$hardcode_action_GCJ
18505
18506 # Whether we should hardcode library paths into libraries.
18507 hardcode_into_libs=$hardcode_into_libs
18508
18509 # Flag to hardcode \$libdir into a binary during linking.
18510 # This must work even if \$libdir does not exist.
18511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18512
18513 # If ld is used when linking, flag to hardcode \$libdir into
18514 # a binary during linking. This must work even if \$libdir does
18515 # not exist.
18516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18517
18518 # Whether we need a single -rpath flag with a separated argument.
18519 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18520
18521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18522 # resulting binary.
18523 hardcode_direct=$hardcode_direct_GCJ
18524
18525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18526 # resulting binary.
18527 hardcode_minus_L=$hardcode_minus_L_GCJ
18528
18529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18530 # the resulting binary.
18531 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18532
18533 # Set to yes if building a shared library automatically hardcodes DIR into the library
18534 # and all subsequent libraries and executables linked against it.
18535 hardcode_automatic=$hardcode_automatic_GCJ
18536
18537 # Variables whose values should be saved in libtool wrapper scripts and
18538 # restored at relink time.
18539 variables_saved_for_relink="$variables_saved_for_relink"
18540
18541 # Whether libtool must link a program against all its dependency libraries.
18542 link_all_deplibs=$link_all_deplibs_GCJ
18543
18544 # Compile-time system search path for libraries
18545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18546
18547 # Run-time system search path for libraries
18548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18549
18550 # Fix the shell variable \$srcfile for the compiler.
18551 fix_srcfile_path="$fix_srcfile_path_GCJ"
18552
18553 # Set to yes if exported symbols are required.
18554 always_export_symbols=$always_export_symbols_GCJ
18555
18556 # The commands to list exported symbols.
18557 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18558
18559 # The commands to extract the exported symbol list from a shared archive.
18560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18561
18562 # Symbols that should not be listed in the preloaded symbols.
18563 exclude_expsyms=$lt_exclude_expsyms_GCJ
18564
18565 # Symbols that must always be exported.
18566 include_expsyms=$lt_include_expsyms_GCJ
18567
18568 # ### END LIBTOOL TAG CONFIG: $tagname
18569
18570 __EOF__
18571
18572
18573 else
18574 # If there is no Makefile yet, we rely on a make rule to execute
18575 # `config.status --recheck' to rerun these tests and create the
18576 # libtool script then.
18577 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18578 if test -f "$ltmain_in"; then
18579 test -f Makefile && make "$ltmain"
18580 fi
18581 fi
18582
18583
18584 ac_ext=c
18585 ac_cpp='$CPP $CPPFLAGS'
18586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589
18590 CC="$lt_save_CC"
18591
18592 else
18593 tagname=""
18594 fi
18595 ;;
18596
18597 RC)
18598
18599
18600
18601 # Source file extension for RC test sources.
18602 ac_ext=rc
18603
18604 # Object file extension for compiled RC test sources.
18605 objext=o
18606 objext_RC=$objext
18607
18608 # Code to be used in simple compile tests
18609 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18610
18611 # Code to be used in simple link tests
18612 lt_simple_link_test_code="$lt_simple_compile_test_code"
18613
18614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615
18616 # If no C compiler was specified, use CC.
18617 LTCC=${LTCC-"$CC"}
18618
18619 # Allow CC to be a program name with arguments.
18620 compiler=$CC
18621
18622
18623 # Allow CC to be a program name with arguments.
18624 lt_save_CC="$CC"
18625 CC=${RC-"windres"}
18626 compiler=$CC
18627 compiler_RC=$CC
18628 lt_cv_prog_compiler_c_o_RC=yes
18629
18630 # The else clause should only fire when bootstrapping the
18631 # libtool distribution, otherwise you forgot to ship ltmain.sh
18632 # with your package, and you will get complaints that there are
18633 # no rules to generate ltmain.sh.
18634 if test -f "$ltmain"; then
18635 # See if we are running on zsh, and set the options which allow our commands through
18636 # without removal of \ escapes.
18637 if test -n "${ZSH_VERSION+set}" ; then
18638 setopt NO_GLOB_SUBST
18639 fi
18640 # Now quote all the things that may contain metacharacters while being
18641 # careful not to overquote the AC_SUBSTed values. We take copies of the
18642 # variables and quote the copies for generation of the libtool script.
18643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18644 SED SHELL STRIP \
18645 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18646 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18647 deplibs_check_method reload_flag reload_cmds need_locks \
18648 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18649 lt_cv_sys_global_symbol_to_c_name_address \
18650 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18651 old_postinstall_cmds old_postuninstall_cmds \
18652 compiler_RC \
18653 CC_RC \
18654 LD_RC \
18655 lt_prog_compiler_wl_RC \
18656 lt_prog_compiler_pic_RC \
18657 lt_prog_compiler_static_RC \
18658 lt_prog_compiler_no_builtin_flag_RC \
18659 export_dynamic_flag_spec_RC \
18660 thread_safe_flag_spec_RC \
18661 whole_archive_flag_spec_RC \
18662 enable_shared_with_static_runtimes_RC \
18663 old_archive_cmds_RC \
18664 old_archive_from_new_cmds_RC \
18665 predep_objects_RC \
18666 postdep_objects_RC \
18667 predeps_RC \
18668 postdeps_RC \
18669 compiler_lib_search_path_RC \
18670 archive_cmds_RC \
18671 archive_expsym_cmds_RC \
18672 postinstall_cmds_RC \
18673 postuninstall_cmds_RC \
18674 old_archive_from_expsyms_cmds_RC \
18675 allow_undefined_flag_RC \
18676 no_undefined_flag_RC \
18677 export_symbols_cmds_RC \
18678 hardcode_libdir_flag_spec_RC \
18679 hardcode_libdir_flag_spec_ld_RC \
18680 hardcode_libdir_separator_RC \
18681 hardcode_automatic_RC \
18682 module_cmds_RC \
18683 module_expsym_cmds_RC \
18684 lt_cv_prog_compiler_c_o_RC \
18685 exclude_expsyms_RC \
18686 include_expsyms_RC; do
18687
18688 case $var in
18689 old_archive_cmds_RC | \
18690 old_archive_from_new_cmds_RC | \
18691 archive_cmds_RC | \
18692 archive_expsym_cmds_RC | \
18693 module_cmds_RC | \
18694 module_expsym_cmds_RC | \
18695 old_archive_from_expsyms_cmds_RC | \
18696 export_symbols_cmds_RC | \
18697 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18698 postinstall_cmds | postuninstall_cmds | \
18699 old_postinstall_cmds | old_postuninstall_cmds | \
18700 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18701 # Double-quote double-evaled strings.
18702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18703 ;;
18704 *)
18705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18706 ;;
18707 esac
18708 done
18709
18710 case $lt_echo in
18711 *'\$0 --fallback-echo"')
18712 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18713 ;;
18714 esac
18715
18716 cfgfile="$ofile"
18717
18718 cat <<__EOF__ >> "$cfgfile"
18719 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18720
18721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18722
18723 # Shell to use when invoking shell scripts.
18724 SHELL=$lt_SHELL
18725
18726 # Whether or not to build shared libraries.
18727 build_libtool_libs=$enable_shared
18728
18729 # Whether or not to build static libraries.
18730 build_old_libs=$enable_static
18731
18732 # Whether or not to add -lc for building shared libraries.
18733 build_libtool_need_lc=$archive_cmds_need_lc_RC
18734
18735 # Whether or not to disallow shared libs when runtime libs are static
18736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18737
18738 # Whether or not to optimize for fast installation.
18739 fast_install=$enable_fast_install
18740
18741 # The host system.
18742 host_alias=$host_alias
18743 host=$host
18744
18745 # An echo program that does not interpret backslashes.
18746 echo=$lt_echo
18747
18748 # The archiver.
18749 AR=$lt_AR
18750 AR_FLAGS=$lt_AR_FLAGS
18751
18752 # A C compiler.
18753 LTCC=$lt_LTCC
18754
18755 # A language-specific compiler.
18756 CC=$lt_compiler_RC
18757
18758 # Is the compiler the GNU C compiler?
18759 with_gcc=$GCC_RC
18760
18761 # An ERE matcher.
18762 EGREP=$lt_EGREP
18763
18764 # The linker used to build libraries.
18765 LD=$lt_LD_RC
18766
18767 # Whether we need hard or soft links.
18768 LN_S=$lt_LN_S
18769
18770 # A BSD-compatible nm program.
18771 NM=$lt_NM
18772
18773 # A symbol stripping program
18774 STRIP=$lt_STRIP
18775
18776 # Used to examine libraries when file_magic_cmd begins "file"
18777 MAGIC_CMD=$MAGIC_CMD
18778
18779 # Used on cygwin: DLL creation program.
18780 DLLTOOL="$DLLTOOL"
18781
18782 # Used on cygwin: object dumper.
18783 OBJDUMP="$OBJDUMP"
18784
18785 # Used on cygwin: assembler.
18786 AS="$AS"
18787
18788 # The name of the directory that contains temporary libtool files.
18789 objdir=$objdir
18790
18791 # How to create reloadable object files.
18792 reload_flag=$lt_reload_flag
18793 reload_cmds=$lt_reload_cmds
18794
18795 # How to pass a linker flag through the compiler.
18796 wl=$lt_lt_prog_compiler_wl_RC
18797
18798 # Object file suffix (normally "o").
18799 objext="$ac_objext"
18800
18801 # Old archive suffix (normally "a").
18802 libext="$libext"
18803
18804 # Shared library suffix (normally ".so").
18805 shrext='$shrext'
18806
18807 # Executable file suffix (normally "").
18808 exeext="$exeext"
18809
18810 # Additional compiler flags for building library objects.
18811 pic_flag=$lt_lt_prog_compiler_pic_RC
18812 pic_mode=$pic_mode
18813
18814 # What is the maximum length of a command?
18815 max_cmd_len=$lt_cv_sys_max_cmd_len
18816
18817 # Does compiler simultaneously support -c and -o options?
18818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18819
18820 # Must we lock files when doing compilation ?
18821 need_locks=$lt_need_locks
18822
18823 # Do we need the lib prefix for modules?
18824 need_lib_prefix=$need_lib_prefix
18825
18826 # Do we need a version for libraries?
18827 need_version=$need_version
18828
18829 # Whether dlopen is supported.
18830 dlopen_support=$enable_dlopen
18831
18832 # Whether dlopen of programs is supported.
18833 dlopen_self=$enable_dlopen_self
18834
18835 # Whether dlopen of statically linked programs is supported.
18836 dlopen_self_static=$enable_dlopen_self_static
18837
18838 # Compiler flag to prevent dynamic linking.
18839 link_static_flag=$lt_lt_prog_compiler_static_RC
18840
18841 # Compiler flag to turn off builtin functions.
18842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18843
18844 # Compiler flag to allow reflexive dlopens.
18845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18846
18847 # Compiler flag to generate shared objects directly from archives.
18848 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18849
18850 # Compiler flag to generate thread-safe objects.
18851 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18852
18853 # Library versioning type.
18854 version_type=$version_type
18855
18856 # Format of library name prefix.
18857 libname_spec=$lt_libname_spec
18858
18859 # List of archive names. First name is the real one, the rest are links.
18860 # The last name is the one that the linker finds with -lNAME.
18861 library_names_spec=$lt_library_names_spec
18862
18863 # The coded name of the library, if different from the real name.
18864 soname_spec=$lt_soname_spec
18865
18866 # Commands used to build and install an old-style archive.
18867 RANLIB=$lt_RANLIB
18868 old_archive_cmds=$lt_old_archive_cmds_RC
18869 old_postinstall_cmds=$lt_old_postinstall_cmds
18870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18871
18872 # Create an old-style archive from a shared archive.
18873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18874
18875 # Create a temporary old-style archive to link instead of a shared archive.
18876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18877
18878 # Commands used to build and install a shared archive.
18879 archive_cmds=$lt_archive_cmds_RC
18880 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18881 postinstall_cmds=$lt_postinstall_cmds
18882 postuninstall_cmds=$lt_postuninstall_cmds
18883
18884 # Commands used to build a loadable module (assumed same as above if empty)
18885 module_cmds=$lt_module_cmds_RC
18886 module_expsym_cmds=$lt_module_expsym_cmds_RC
18887
18888 # Commands to strip libraries.
18889 old_striplib=$lt_old_striplib
18890 striplib=$lt_striplib
18891
18892 # Dependencies to place before the objects being linked to create a
18893 # shared library.
18894 predep_objects=$lt_predep_objects_RC
18895
18896 # Dependencies to place after the objects being linked to create a
18897 # shared library.
18898 postdep_objects=$lt_postdep_objects_RC
18899
18900 # Dependencies to place before the objects being linked to create a
18901 # shared library.
18902 predeps=$lt_predeps_RC
18903
18904 # Dependencies to place after the objects being linked to create a
18905 # shared library.
18906 postdeps=$lt_postdeps_RC
18907
18908 # The library search path used internally by the compiler when linking
18909 # a shared library.
18910 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18911
18912 # Method to check whether dependent libraries are shared objects.
18913 deplibs_check_method=$lt_deplibs_check_method
18914
18915 # Command to use when deplibs_check_method == file_magic.
18916 file_magic_cmd=$lt_file_magic_cmd
18917
18918 # Flag that allows shared libraries with undefined symbols to be built.
18919 allow_undefined_flag=$lt_allow_undefined_flag_RC
18920
18921 # Flag that forces no undefined symbols.
18922 no_undefined_flag=$lt_no_undefined_flag_RC
18923
18924 # Commands used to finish a libtool library installation in a directory.
18925 finish_cmds=$lt_finish_cmds
18926
18927 # Same as above, but a single script fragment to be evaled but not shown.
18928 finish_eval=$lt_finish_eval
18929
18930 # Take the output of nm and produce a listing of raw symbols and C names.
18931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18932
18933 # Transform the output of nm in a proper C declaration
18934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18935
18936 # Transform the output of nm in a C name address pair
18937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18938
18939 # This is the shared library runtime path variable.
18940 runpath_var=$runpath_var
18941
18942 # This is the shared library path variable.
18943 shlibpath_var=$shlibpath_var
18944
18945 # Is shlibpath searched before the hard-coded library search path?
18946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18947
18948 # How to hardcode a shared library path into an executable.
18949 hardcode_action=$hardcode_action_RC
18950
18951 # Whether we should hardcode library paths into libraries.
18952 hardcode_into_libs=$hardcode_into_libs
18953
18954 # Flag to hardcode \$libdir into a binary during linking.
18955 # This must work even if \$libdir does not exist.
18956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18957
18958 # If ld is used when linking, flag to hardcode \$libdir into
18959 # a binary during linking. This must work even if \$libdir does
18960 # not exist.
18961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18962
18963 # Whether we need a single -rpath flag with a separated argument.
18964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18965
18966 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18967 # resulting binary.
18968 hardcode_direct=$hardcode_direct_RC
18969
18970 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18971 # resulting binary.
18972 hardcode_minus_L=$hardcode_minus_L_RC
18973
18974 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18975 # the resulting binary.
18976 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18977
18978 # Set to yes if building a shared library automatically hardcodes DIR into the library
18979 # and all subsequent libraries and executables linked against it.
18980 hardcode_automatic=$hardcode_automatic_RC
18981
18982 # Variables whose values should be saved in libtool wrapper scripts and
18983 # restored at relink time.
18984 variables_saved_for_relink="$variables_saved_for_relink"
18985
18986 # Whether libtool must link a program against all its dependency libraries.
18987 link_all_deplibs=$link_all_deplibs_RC
18988
18989 # Compile-time system search path for libraries
18990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18991
18992 # Run-time system search path for libraries
18993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18994
18995 # Fix the shell variable \$srcfile for the compiler.
18996 fix_srcfile_path="$fix_srcfile_path_RC"
18997
18998 # Set to yes if exported symbols are required.
18999 always_export_symbols=$always_export_symbols_RC
19000
19001 # The commands to list exported symbols.
19002 export_symbols_cmds=$lt_export_symbols_cmds_RC
19003
19004 # The commands to extract the exported symbol list from a shared archive.
19005 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19006
19007 # Symbols that should not be listed in the preloaded symbols.
19008 exclude_expsyms=$lt_exclude_expsyms_RC
19009
19010 # Symbols that must always be exported.
19011 include_expsyms=$lt_include_expsyms_RC
19012
19013 # ### END LIBTOOL TAG CONFIG: $tagname
19014
19015 __EOF__
19016
19017
19018 else
19019 # If there is no Makefile yet, we rely on a make rule to execute
19020 # `config.status --recheck' to rerun these tests and create the
19021 # libtool script then.
19022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19023 if test -f "$ltmain_in"; then
19024 test -f Makefile && make "$ltmain"
19025 fi
19026 fi
19027
19028
19029 ac_ext=c
19030 ac_cpp='$CPP $CPPFLAGS'
19031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035 CC="$lt_save_CC"
19036
19037 ;;
19038
19039 *)
19040 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19041 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19042 { (exit 1); exit 1; }; }
19043 ;;
19044 esac
19045
19046 # Append the new tag name to the list of available tags.
19047 if test -n "$tagname" ; then
19048 available_tags="$available_tags $tagname"
19049 fi
19050 fi
19051 done
19052 IFS="$lt_save_ifs"
19053
19054 # Now substitute the updated list of available tags.
19055 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19056 mv "${ofile}T" "$ofile"
19057 chmod +x "$ofile"
19058 else
19059 rm -f "${ofile}T"
19060 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19061 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19062 { (exit 1); exit 1; }; }
19063 fi
19064 fi
19065
19066
19067
19068 # This can be used to rebuild libtool when needed
19069 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19070
19071 # Always use our own libtool.
19072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19073
19074 # Prevent multiple expansion
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095 # Find a good install program. We prefer a C program (faster),
19096 # so one script is as good as another. But avoid the broken or
19097 # incompatible versions:
19098 # SysV /etc/install, /usr/sbin/install
19099 # SunOS /usr/etc/install
19100 # IRIX /sbin/install
19101 # AIX /bin/install
19102 # AmigaOS /C/install, which installs bootblocks on floppy discs
19103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19106 # OS/2's system install, which has a completely different semantic
19107 # ./install, which can be erroneously created by make from ./install.sh.
19108 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19109 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19110 if test -z "$INSTALL"; then
19111 if test "${ac_cv_path_install+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19115 for as_dir in $PATH
19116 do
19117 IFS=$as_save_IFS
19118 test -z "$as_dir" && as_dir=.
19119 # Account for people who put trailing slashes in PATH elements.
19120 case $as_dir/ in
19121 ./ | .// | /cC/* | \
19122 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19123 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19124 /usr/ucb/* ) ;;
19125 *)
19126 # OSF1 and SCO ODT 3.0 have their own names for install.
19127 # Don't use installbsd from OSF since it installs stuff as root
19128 # by default.
19129 for ac_prog in ginstall scoinst install; do
19130 for ac_exec_ext in '' $ac_executable_extensions; do
19131 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19132 if test $ac_prog = install &&
19133 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19134 # AIX install. It has an incompatible calling convention.
19135 :
19136 elif test $ac_prog = install &&
19137 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19138 # program-specific install script used by HP pwplus--don't use.
19139 :
19140 else
19141 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19142 break 3
19143 fi
19144 fi
19145 done
19146 done
19147 ;;
19148 esac
19149 done
19150
19151
19152 fi
19153 if test "${ac_cv_path_install+set}" = set; then
19154 INSTALL=$ac_cv_path_install
19155 else
19156 # As a last resort, use the slow shell script. We don't cache a
19157 # path for INSTALL within a source directory, because that will
19158 # break other packages using the cache if that directory is
19159 # removed, or if the path is relative.
19160 INSTALL=$ac_install_sh
19161 fi
19162 fi
19163 echo "$as_me:$LINENO: result: $INSTALL" >&5
19164 echo "${ECHO_T}$INSTALL" >&6
19165
19166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19167 # It thinks the first close brace ends the variable substitution.
19168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19169
19170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19171
19172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19173
19174 for ac_prog in gawk mawk nawk awk
19175 do
19176 # Extract the first word of "$ac_prog", so it can be a program name with args.
19177 set dummy $ac_prog; ac_word=$2
19178 echo "$as_me:$LINENO: checking for $ac_word" >&5
19179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19180 if test "${ac_cv_prog_AWK+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183 if test -n "$AWK"; then
19184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19185 else
19186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19187 for as_dir in $PATH
19188 do
19189 IFS=$as_save_IFS
19190 test -z "$as_dir" && as_dir=.
19191 for ac_exec_ext in '' $ac_executable_extensions; do
19192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19193 ac_cv_prog_AWK="$ac_prog"
19194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19195 break 2
19196 fi
19197 done
19198 done
19199
19200 fi
19201 fi
19202 AWK=$ac_cv_prog_AWK
19203 if test -n "$AWK"; then
19204 echo "$as_me:$LINENO: result: $AWK" >&5
19205 echo "${ECHO_T}$AWK" >&6
19206 else
19207 echo "$as_me:$LINENO: result: no" >&5
19208 echo "${ECHO_T}no" >&6
19209 fi
19210
19211 test -n "$AWK" && break
19212 done
19213
19214
19215
19216 cat >>confdefs.h <<\_ACEOF
19217 #define __EXTENSIONS__
19218 _ACEOF
19219
19220 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19221 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19222 if test "${ac_cv_c_bigendian+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225 # See if sys/param.h defines the BYTE_ORDER macro.
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <sys/types.h>
19233 #include <sys/param.h>
19234
19235 int
19236 main ()
19237 {
19238 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19239 bogus endian macros
19240 #endif
19241
19242 ;
19243 return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 # It does; now see whether it defined to BIG_ENDIAN or not.
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275 #include <sys/types.h>
19276 #include <sys/param.h>
19277
19278 int
19279 main ()
19280 {
19281 #if BYTE_ORDER != BIG_ENDIAN
19282 not big endian
19283 #endif
19284
19285 ;
19286 return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19291 (eval $ac_compile) 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest.$ac_objext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 ac_cv_c_bigendian=yes
19312 else
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 ac_cv_c_bigendian=no
19317 fi
19318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319 else
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323 # It does not; compile a test program.
19324 if test "$cross_compiling" = yes; then
19325 # try to guess the endianness by grepping values into an object file
19326 ac_cv_c_bigendian=unknown
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19334 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19335 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19336 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19337 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19338 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19339 int
19340 main ()
19341 {
19342 _ascii (); _ebcdic ();
19343 ;
19344 return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349 (eval $ac_compile) 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19370 ac_cv_c_bigendian=yes
19371 fi
19372 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19373 if test "$ac_cv_c_bigendian" = unknown; then
19374 ac_cv_c_bigendian=no
19375 else
19376 # finding both strings is unlikely to happen, but who knows?
19377 ac_cv_c_bigendian=unknown
19378 fi
19379 fi
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 fi
19385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386 else
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h. */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19393 int
19394 main ()
19395 {
19396 /* Are we little or big endian? From Harbison&Steele. */
19397 union
19398 {
19399 long l;
19400 char c[sizeof (long)];
19401 } u;
19402 u.l = 1;
19403 exit (u.c[sizeof (long) - 1] == 1);
19404 }
19405 _ACEOF
19406 rm -f conftest$ac_exeext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19408 (eval $ac_link) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_c_bigendian=no
19418 else
19419 echo "$as_me: program exited with status $ac_status" >&5
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ( exit $ac_status )
19424 ac_cv_c_bigendian=yes
19425 fi
19426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19427 fi
19428 fi
19429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19432 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19433 case $ac_cv_c_bigendian in
19434 yes)
19435
19436 cat >>confdefs.h <<\_ACEOF
19437 #define BIG_ENDIAN_ARCHITECTURE 1
19438 _ACEOF
19439 ;;
19440 no)
19441
19442 cat >>confdefs.h <<\_ACEOF
19443 #define LITTLE_ENDIAN_ARCHITECTURE 1
19444 _ACEOF
19445 ;;
19446 *)
19447 { { echo "$as_me:$LINENO: error: unknown endianness
19448 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19449 echo "$as_me: error: unknown endianness
19450 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19451 { (exit 1); exit 1; }; } ;;
19452 esac
19453
19454
19455 # Checks for libraries.
19456
19457 echo "$as_me:$LINENO: checking for pow in -lm" >&5
19458 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19459 if test "${ac_cv_lib_m_pow+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462 ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lm $LIBS"
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h. */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470
19471 /* Override any gcc2 internal prototype to avoid an error. */
19472 #ifdef __cplusplus
19473 extern "C"
19474 #endif
19475 /* We use char because int might match the return type of a gcc2
19476 builtin and then its argument prototype would still apply. */
19477 char pow ();
19478 int
19479 main ()
19480 {
19481 pow ();
19482 ;
19483 return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19488 (eval $ac_link) 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_lib_m_pow=yes
19509 else
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_cv_lib_m_pow=no
19514 fi
19515 rm -f conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19518 fi
19519 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19520 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
19521 if test $ac_cv_lib_m_pow = yes; then
19522 cat >>confdefs.h <<_ACEOF
19523 #define HAVE_LIBM 1
19524 _ACEOF
19525
19526 LIBS="-lm $LIBS"
19527
19528 fi
19529
19530
19531 # Checks for header files.
19532 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19534 if test "${ac_cv_header_stdc+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #include <stdlib.h>
19544 #include <stdarg.h>
19545 #include <string.h>
19546 #include <float.h>
19547
19548 int
19549 main ()
19550 {
19551
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_header_stdc=yes
19579 else
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583 ac_cv_header_stdc=no
19584 fi
19585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19586
19587 if test $ac_cv_header_stdc = yes; then
19588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19589 cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h. */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <string.h>
19596
19597 _ACEOF
19598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19599 $EGREP "memchr" >/dev/null 2>&1; then
19600 :
19601 else
19602 ac_cv_header_stdc=no
19603 fi
19604 rm -f conftest*
19605
19606 fi
19607
19608 if test $ac_cv_header_stdc = yes; then
19609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19610 cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h. */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 #include <stdlib.h>
19617
19618 _ACEOF
19619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19620 $EGREP "free" >/dev/null 2>&1; then
19621 :
19622 else
19623 ac_cv_header_stdc=no
19624 fi
19625 rm -f conftest*
19626
19627 fi
19628
19629 if test $ac_cv_header_stdc = yes; then
19630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19631 if test "$cross_compiling" = yes; then
19632 :
19633 else
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <ctype.h>
19641 #if ((' ' & 0x0FF) == 0x020)
19642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19644 #else
19645 # define ISLOWER(c) \
19646 (('a' <= (c) && (c) <= 'i') \
19647 || ('j' <= (c) && (c) <= 'r') \
19648 || ('s' <= (c) && (c) <= 'z'))
19649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19650 #endif
19651
19652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19653 int
19654 main ()
19655 {
19656 int i;
19657 for (i = 0; i < 256; i++)
19658 if (XOR (islower (i), ISLOWER (i))
19659 || toupper (i) != TOUPPER (i))
19660 exit(2);
19661 exit (0);
19662 }
19663 _ACEOF
19664 rm -f conftest$ac_exeext
19665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19666 (eval $ac_link) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 :
19676 else
19677 echo "$as_me: program exited with status $ac_status" >&5
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 ( exit $ac_status )
19682 ac_cv_header_stdc=no
19683 fi
19684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19685 fi
19686 fi
19687 fi
19688 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19689 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19690 if test $ac_cv_header_stdc = yes; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define STDC_HEADERS 1
19694 _ACEOF
19695
19696 fi
19697
19698
19699
19700
19701
19702
19703 ac_header_dirent=no
19704 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19705 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19706 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19707 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 #include <sys/types.h>
19718 #include <$ac_hdr>
19719
19720 int
19721 main ()
19722 {
19723 if ((DIR *) 0)
19724 return 0;
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731 (eval $ac_compile) 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag"
19739 || test ! -s conftest.err'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19751 eval "$as_ac_Header=yes"
19752 else
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 eval "$as_ac_Header=no"
19757 fi
19758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19759 fi
19760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19763 cat >>confdefs.h <<_ACEOF
19764 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19765 _ACEOF
19766
19767 ac_header_dirent=$ac_hdr; break
19768 fi
19769
19770 done
19771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19772 if test $ac_header_dirent = dirent.h; then
19773 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19775 if test "${ac_cv_search_opendir+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 ac_func_search_save_LIBS=$LIBS
19779 ac_cv_search_opendir=no
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786
19787 /* Override any gcc2 internal prototype to avoid an error. */
19788 #ifdef __cplusplus
19789 extern "C"
19790 #endif
19791 /* We use char because int might match the return type of a gcc2
19792 builtin and then its argument prototype would still apply. */
19793 char opendir ();
19794 int
19795 main ()
19796 {
19797 opendir ();
19798 ;
19799 return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19804 (eval $ac_link) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag"
19812 || test ! -s conftest.err'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest$ac_exeext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_cv_search_opendir="none required"
19825 else
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 fi
19830 rm -f conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 if test "$ac_cv_search_opendir" = no; then
19833 for ac_lib in dir; do
19834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841
19842 /* Override any gcc2 internal prototype to avoid an error. */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19848 char opendir ();
19849 int
19850 main ()
19851 {
19852 opendir ();
19853 ;
19854 return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859 (eval $ac_link) 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag"
19867 || test ! -s conftest.err'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest$ac_exeext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_search_opendir="-l$ac_lib"
19880 break
19881 else
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 fi
19886 rm -f conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
19888 done
19889 fi
19890 LIBS=$ac_func_search_save_LIBS
19891 fi
19892 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19893 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19894 if test "$ac_cv_search_opendir" != no; then
19895 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19896
19897 fi
19898
19899 else
19900 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19902 if test "${ac_cv_search_opendir+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905 ac_func_search_save_LIBS=$LIBS
19906 ac_cv_search_opendir=no
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h. */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913
19914 /* Override any gcc2 internal prototype to avoid an error. */
19915 #ifdef __cplusplus
19916 extern "C"
19917 #endif
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19920 char opendir ();
19921 int
19922 main ()
19923 {
19924 opendir ();
19925 ;
19926 return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag"
19939 || test ! -s conftest.err'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_search_opendir="none required"
19952 else
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 fi
19957 rm -f conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19959 if test "$ac_cv_search_opendir" = no; then
19960 for ac_lib in x; do
19961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968
19969 /* Override any gcc2 internal prototype to avoid an error. */
19970 #ifdef __cplusplus
19971 extern "C"
19972 #endif
19973 /* We use char because int might match the return type of a gcc2
19974 builtin and then its argument prototype would still apply. */
19975 char opendir ();
19976 int
19977 main ()
19978 {
19979 opendir ();
19980 ;
19981 return 0;
19982 }
19983 _ACEOF
19984 rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986 (eval $ac_link) 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_cv_search_opendir="-l$ac_lib"
20007 break
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 fi
20013 rm -f conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
20015 done
20016 fi
20017 LIBS=$ac_func_search_save_LIBS
20018 fi
20019 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20020 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20021 if test "$ac_cv_search_opendir" != no; then
20022 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20023
20024 fi
20025
20026 fi
20027
20028
20029 #
20030 # flags returned as GTK so we copy them to GTK2 flags
20031 #
20032 GTK2_CFLAGS=${GTK_CFLAGS}
20033 GTK2_LIBS=${GTK_LIBS}
20034 no_gtk2=${no_gtk}
20035
20036 succeeded=no
20037
20038 if test -z "$PKG_CONFIG"; then
20039 # Extract the first word of "pkg-config", so it can be a program name with args.
20040 set dummy pkg-config; ac_word=$2
20041 echo "$as_me:$LINENO: checking for $ac_word" >&5
20042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20043 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 else
20046 case $PKG_CONFIG in
20047 [\\/]* | ?:[\\/]*)
20048 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20049 ;;
20050 *)
20051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052 for as_dir in $PATH
20053 do
20054 IFS=$as_save_IFS
20055 test -z "$as_dir" && as_dir=.
20056 for ac_exec_ext in '' $ac_executable_extensions; do
20057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20058 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20060 break 2
20061 fi
20062 done
20063 done
20064
20065 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20066 ;;
20067 esac
20068 fi
20069 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20070
20071 if test -n "$PKG_CONFIG"; then
20072 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20073 echo "${ECHO_T}$PKG_CONFIG" >&6
20074 else
20075 echo "$as_me:$LINENO: result: no" >&5
20076 echo "${ECHO_T}no" >&6
20077 fi
20078
20079 fi
20080
20081 if test "$PKG_CONFIG" = "no" ; then
20082 echo "*** The pkg-config script could not be found. Make sure it is"
20083 echo "*** in your path, or set the PKG_CONFIG environment variable"
20084 echo "*** to the full path to pkg-config."
20085 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20086 else
20087 PKG_CONFIG_MIN_VERSION=0.9.0
20088 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20089 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0" >&5
20090 echo $ECHO_N "checking for gtk+-2.0 >= 2.0... $ECHO_C" >&6
20091
20092 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0" ; then
20093 echo "$as_me:$LINENO: result: yes" >&5
20094 echo "${ECHO_T}yes" >&6
20095 succeeded=yes
20096
20097 echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
20098 echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6
20099 GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0"`
20100 echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5
20101 echo "${ECHO_T}$GTK2_CFLAGS" >&6
20102
20103 echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
20104 echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6
20105 GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0"`
20106 echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5
20107 echo "${ECHO_T}$GTK2_LIBS" >&6
20108 else
20109 GTK2_CFLAGS=""
20110 GTK2_LIBS=""
20111 ## If we have a custom action on failure, don't print errors, but
20112 ## do set a variable so people can do so.
20113 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0"`
20114
20115 fi
20116
20117
20118
20119 else
20120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20122 fi
20123 fi
20124
20125 if test $succeeded = yes; then
20126 :
20127 else
20128 no_gtk2=yes
20129 fi
20130
20131 # extra compile flag for GTK2 on MinGW
20132 if test x${no_gtk2} != xyes; then
20133 if test x${MINGW32} == xyes; then
20134 GTK2_CFLAGS="${GTK2_CFLAGS} -mms-bitfields"
20135 fi
20136 fi
20137
20138 #
20139 # Find the location of the tina-libs includes and libraries. If they are not specified to the
20140 # configure command, search in some likely places. Test the results by compiling one of the
20141 # headers and linking to one of the libraries.
20142 #
20143
20144
20145 # Check whether --with-tina-includes or --without-tina-includes was given.
20146 if test "${with_tina_includes+set}" = set; then
20147 withval="$with_tina_includes"
20148 tina_includes="$withval"
20149 else
20150 tina_includes=
20151 fi;
20152
20153
20154 # Check whether --with-tina-libraries or --without-tina-libraries was given.
20155 if test "${with_tina_libraries+set}" = set; then
20156 withval="$with_tina_libraries"
20157 tina_libraries="$withval"
20158 else
20159 tina_libraries=
20160 fi;
20161
20162 #
20163 # search for tina include files
20164 #
20165
20166 if test "$tina_includes" = ""; then
20167 if test "${ac_cv_tina_includes+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170
20171 ac_tina_save_LIBS="$LIBS"
20172 ac_tina_save_INCLUDES="$INCLUDES"
20173 ac_tina_save_CPPFLAGS="$CPPFLAGS"
20174 ac_tina_save_LDFLAGS="$LDFLAGS"
20175 #
20176 LIBS="$LIBS"
20177 INCLUDES="$INCLUDES"
20178 CPPFLAGS="$CPPFLAGS"
20179 LDFLAGS="$LDFLAGS"
20180 #
20181 ac_cv_tina_includes="none"
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h. */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 #include <tina/sys/sysDef.h>
20189 int
20190 main ()
20191 {
20192 int a;
20193 ;
20194 return 0;
20195 }
20196 _ACEOF
20197 rm -f conftest.$ac_objext
20198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -z "$ac_c_werror_flag"
20207 || test ! -s conftest.err'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; } &&
20213 { ac_try='test -s conftest.$ac_objext'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219
20220 # tina/sys/sysDef.h is in the standard search path.
20221 ac_cv_tina_includes=
20222
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227
20228 # tina/sys/sysDef.h is not in the standard search path.
20229 # Locate it and put its directory in `tina_includes'
20230 #
20231 # Lets guess where things might be
20232 # Its usual to have tina-libs<version> alongside the tina-tools for instance
20233 # or maybe the includes are in a standard place?
20234 ac_tina_curdir=`pwd`
20235 for dir in "${src}" "${src}"/* "${src}"/../tina-libs* \
20236 "${ac_tina_curdir}" "${ac_tina_curdir}"/* "${ac_tina_curdir}"/../tina-libs* \
20237 /usr/local/tina-libs* /usr/tina-libs* /usr/local/src/tina-libs* /usr/src/tina-libs* \
20238 /usr/include /usr/local/include /usr/local/*/include \
20239 /usr/include/* /usr/local/include/*; do
20240 if test -f "$dir/tina/sys/sysDef.h"; then
20241 ac_cv_tina_includes="$dir"
20242 break
20243 fi
20244 done
20245
20246 fi
20247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20248 #
20249 LIBS="$ac_tina_save_LIBS"
20250 INCLUDES="$ac_tina_save_INCLUDES"
20251 CPPFLAGS="$ac_tina_save_CPPFLAGS"
20252 LDFLAGS="$ac_tina_save_LDFLAGS"
20253
20254 fi
20255
20256 tina_includes="$ac_cv_tina_includes"
20257 fi
20258
20259
20260 #
20261 # Now for the libraries.
20262 #
20263 if test "$tina_libraries" = ""; then
20264 if test "${ac_cv_tina_libraries+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267
20268 ac_tina_save_LIBS="$LIBS"
20269 ac_tina_save_INCLUDES="$INCLUDES"
20270 ac_tina_save_CPPFLAGS="$CPPFLAGS"
20271 ac_tina_save_LDFLAGS="$LDFLAGS"
20272
20273 #
20274 # try and link to the tinaSys library
20275 #
20276 LIBS="-ltinaSys $LIBS"
20277 INCLUDES="$INCLUDES $tina_includes"
20278 CPPFLAGS="$CPPFLAGS"
20279 LDFLAGS="$LDFLAGS"
20280 #
20281 ac_cv_tina_libraries="none"
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h. */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 #include <tina/sys/sysPro.h>
20289 int
20290 main ()
20291 {
20292 ralloc(2);
20293 ;
20294 return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20299 (eval $ac_link) 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
20306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest$ac_exeext'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319
20320 # if this works libtinaSys is in the standard search path.
20321 ac_cv_tina_libraries=
20322
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327
20328 # libtinaSys not in the standard search path.
20329 # Locate it and put its directory in `tina_libraries'
20330 #
20331 # As with the includes we look in "that kind of place"!
20332 #
20333 for dir in "${src}"/lib "${src}"/*/lib "${src}"/../tina-libs*/lib \
20334 "${ac_tina_curdir}"/lib "${ac_tina_curdir}"/*/lib "${ac_tina_curdir}"/../tina-libs*/lib \
20335 /usr/local/tina-libs* /usr/tina-libs* /usr/local/src/tina-libs* /usr/src/tina-libs* \
20336 /usr/lib /usr/local/lib /usr/local/*/lib \
20337 /usr/lib/* /usr/local/*/lib; do
20338 if test -d "$dir" && test "`ls $dir/libtinaSys.* 2> /dev/null`" != ""; then
20339 ac_cv_tina_libraries="$dir"
20340 break
20341 fi
20342 done
20343
20344 fi
20345 rm -f conftest.err conftest.$ac_objext \
20346 conftest$ac_exeext conftest.$ac_ext
20347 #
20348 LIBS="$ac_tina_save_LIBS"
20349 INCLUDES="$ac_tina_save_INCLUDES"
20350 CPPFLAGS="$ac_tina_save_CPPFLAGS"
20351 LDFLAGS="$ac_tina_save_LDFLAGS"
20352
20353 fi
20354
20355 #
20356 tina_libraries="$ac_cv_tina_libraries"
20357 fi
20358 #
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368 for ac_header in memory.h errno.h stdlib.h string.h limits.h sys/param.h stdarg.h varargs.h
20369 do
20370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20372 echo "$as_me:$LINENO: checking for $ac_header" >&5
20373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 fi
20377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20379 else
20380 # Is the header compilable?
20381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 $ac_includes_default
20390 #include <$ac_header>
20391 _ACEOF
20392 rm -f conftest.$ac_objext
20393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394 (eval $ac_compile) 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
20401 { ac_try='test -z "$ac_c_werror_flag"
20402 || test ! -s conftest.err'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; } &&
20408 { ac_try='test -s conftest.$ac_objext'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_header_compiler=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_header_compiler=no
20420 fi
20421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20423 echo "${ECHO_T}$ac_header_compiler" >&6
20424
20425 # Is the header present?
20426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 #include <$ac_header>
20435 _ACEOF
20436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } >/dev/null; then
20444 if test -s conftest.err; then
20445 ac_cpp_err=$ac_c_preproc_warn_flag
20446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20447 else
20448 ac_cpp_err=
20449 fi
20450 else
20451 ac_cpp_err=yes
20452 fi
20453 if test -z "$ac_cpp_err"; then
20454 ac_header_preproc=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_header_preproc=no
20460 fi
20461 rm -f conftest.err conftest.$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20463 echo "${ECHO_T}$ac_header_preproc" >&6
20464
20465 # So? What about this header?
20466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20467 yes:no: )
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20472 ac_header_preproc=yes
20473 ;;
20474 no:yes:* )
20475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20487 (
20488 cat <<\_ASBOX
20489 ## ----------------------------------- ##
20490 ## Report this to bugs@tina-vision.net ##
20491 ## ----------------------------------- ##
20492 _ASBOX
20493 ) |
20494 sed "s/^/$as_me: WARNING: /" >&2
20495 ;;
20496 esac
20497 echo "$as_me:$LINENO: checking for $ac_header" >&5
20498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502 eval "$as_ac_Header=\$ac_header_preproc"
20503 fi
20504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20506
20507 fi
20508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20509 cat >>confdefs.h <<_ACEOF
20510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20511 _ACEOF
20512
20513 fi
20514
20515 done
20516
20517
20518 # Checks for typedefs, structures, and compiler characteristics.
20519 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20520 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20521 if test "${ac_cv_c_const+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h. */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530
20531 int
20532 main ()
20533 {
20534 /* FIXME: Include the comments suggested by Paul. */
20535 #ifndef __cplusplus
20536 /* Ultrix mips cc rejects this. */
20537 typedef int charset[2];
20538 const charset x;
20539 /* SunOS 4.1.1 cc rejects this. */
20540 char const *const *ccp;
20541 char **p;
20542 /* NEC SVR4.0.2 mips cc rejects this. */
20543 struct point {int x, y;};
20544 static struct point const zero = {0,0};
20545 /* AIX XL C 1.02.0.0 rejects this.
20546 It does not let you subtract one const X* pointer from another in
20547 an arm of an if-expression whose if-part is not a constant
20548 expression */
20549 const char *g = "string";
20550 ccp = &g + (g ? g-g : 0);
20551 /* HPUX 7.0 cc rejects these. */
20552 ++ccp;
20553 p = (char**) ccp;
20554 ccp = (char const *const *) p;
20555 { /* SCO 3.2v4 cc rejects this. */
20556 char *t;
20557 char const *s = 0 ? (char *) 0 : (char const *) 0;
20558
20559 *t++ = 0;
20560 }
20561 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20562 int x[] = {25, 17};
20563 const int *foo = &x[0];
20564 ++foo;
20565 }
20566 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20567 typedef const int *iptr;
20568 iptr p = 0;
20569 ++p;
20570 }
20571 { /* AIX XL C 1.02.0.0 rejects this saying
20572 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20573 struct s { int j; const int *ap[3]; };
20574 struct s *b; b->j = 5;
20575 }
20576 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20577 const int foo = 10;
20578 }
20579 #endif
20580
20581 ;
20582 return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587 (eval $ac_compile) 2>conftest.er1
20588 ac_status=$?
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -z "$ac_c_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest.$ac_objext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_c_const=yes
20608 else
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ac_cv_c_const=no
20613 fi
20614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20615 fi
20616 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20617 echo "${ECHO_T}$ac_cv_c_const" >&6
20618 if test $ac_cv_c_const = no; then
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define const
20622 _ACEOF
20623
20624 fi
20625
20626 echo "$as_me:$LINENO: checking for mode_t" >&5
20627 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20628 if test "${ac_cv_type_mode_t+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631 cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h. */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20637 $ac_includes_default
20638 int
20639 main ()
20640 {
20641 if ((mode_t *) 0)
20642 return 0;
20643 if (sizeof (mode_t))
20644 return 0;
20645 ;
20646 return 0;
20647 }
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651 (eval $ac_compile) 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag"
20659 || test ! -s conftest.err'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest.$ac_objext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_type_mode_t=yes
20672 else
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 ac_cv_type_mode_t=no
20677 fi
20678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 fi
20680 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
20682 if test $ac_cv_type_mode_t = yes; then
20683 :
20684 else
20685
20686 cat >>confdefs.h <<_ACEOF
20687 #define mode_t int
20688 _ACEOF
20689
20690 fi
20691
20692 echo "$as_me:$LINENO: checking for size_t" >&5
20693 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20694 if test "${ac_cv_type_size_t+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 $ac_includes_default
20704 int
20705 main ()
20706 {
20707 if ((size_t *) 0)
20708 return 0;
20709 if (sizeof (size_t))
20710 return 0;
20711 ;
20712 return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20717 (eval $ac_compile) 2>conftest.er1
20718 ac_status=$?
20719 grep -v '^ *+' conftest.er1 >conftest.err
20720 rm -f conftest.er1
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -z "$ac_c_werror_flag"
20725 || test ! -s conftest.err'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try='test -s conftest.$ac_objext'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 ac_cv_type_size_t=yes
20738 else
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742 ac_cv_type_size_t=no
20743 fi
20744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20745 fi
20746 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20747 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20748 if test $ac_cv_type_size_t = yes; then
20749 :
20750 else
20751
20752 cat >>confdefs.h <<_ACEOF
20753 #define size_t unsigned
20754 _ACEOF
20755
20756 fi
20757
20758 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20759 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20760 if test "${ac_cv_struct_tm+set}" = set; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <sys/types.h>
20770 #include <time.h>
20771
20772 int
20773 main ()
20774 {
20775 struct tm *tp; tp->tm_sec;
20776 ;
20777 return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20782 (eval $ac_compile) 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag"
20790 || test ! -s conftest.err'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest.$ac_objext'
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 ac_cv_struct_tm=time.h
20803 else
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ac_cv_struct_tm=sys/time.h
20808 fi
20809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20810 fi
20811 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20812 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20813 if test $ac_cv_struct_tm = sys/time.h; then
20814
20815 cat >>confdefs.h <<\_ACEOF
20816 #define TM_IN_SYS_TIME 1
20817 _ACEOF
20818
20819 fi
20820
20821 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20822 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20823 if test "${ac_cv_header_time+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h. */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 #include <sys/types.h>
20833 #include <sys/time.h>
20834 #include <time.h>
20835
20836 int
20837 main ()
20838 {
20839 if ((struct tm *) 0)
20840 return 0;
20841 ;
20842 return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20847 (eval $ac_compile) 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } &&
20854 { ac_try='test -z "$ac_c_werror_flag"
20855 || test ! -s conftest.err'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_header_time=yes
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_cv_header_time=no
20873 fi
20874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20875 fi
20876 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20877 echo "${ECHO_T}$ac_cv_header_time" >&6
20878 if test $ac_cv_header_time = yes; then
20879
20880 cat >>confdefs.h <<\_ACEOF
20881 #define TIME_WITH_SYS_TIME 1
20882 _ACEOF
20883
20884 fi
20885
20886 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20887 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20888 if test "${ac_cv_type_uid_t+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 #include <sys/types.h>
20898
20899 _ACEOF
20900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20901 $EGREP "uid_t" >/dev/null 2>&1; then
20902 ac_cv_type_uid_t=yes
20903 else
20904 ac_cv_type_uid_t=no
20905 fi
20906 rm -f conftest*
20907
20908 fi
20909 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20910 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20911 if test $ac_cv_type_uid_t = no; then
20912
20913 cat >>confdefs.h <<\_ACEOF
20914 #define uid_t int
20915 _ACEOF
20916
20917
20918 cat >>confdefs.h <<\_ACEOF
20919 #define gid_t int
20920 _ACEOF
20921
20922 fi
20923
20924
20925 # Checks for library functions.
20926 echo "$as_me:$LINENO: checking for error_at_line" >&5
20927 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
20928 if test "${ac_cv_lib_error_at_line+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20938 int
20939 main ()
20940 {
20941 error_at_line (0, 0, "", 0, "");
20942 ;
20943 return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext conftest$ac_exeext
20947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20948 (eval $ac_link) 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } &&
20955 { ac_try='test -z "$ac_c_werror_flag"
20956 || test ! -s conftest.err'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest$ac_exeext'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; }; then
20968 ac_cv_lib_error_at_line=yes
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 ac_cv_lib_error_at_line=no
20974 fi
20975 rm -f conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20977 fi
20978 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20979 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
20980 if test $ac_cv_lib_error_at_line = no; then
20981 case $LIBOBJS in
20982 "error.$ac_objext" | \
20983 *" error.$ac_objext" | \
20984 "error.$ac_objext "* | \
20985 *" error.$ac_objext "* ) ;;
20986 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
20987 esac
20988
20989 fi
20990
20991 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
20992 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
20993 if test "${ac_cv_func_fnmatch_works+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996 # Some versions of Solaris, SCO, and the GNU C Library
20997 # have a broken or incompatible fnmatch.
20998 # So we run a test program. If we are cross-compiling, take no chance.
20999 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
21000 if test "$cross_compiling" = yes; then
21001 ac_cv_func_fnmatch_works=cross
21002 else
21003 cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h. */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 #include <fnmatch.h>
21010 # define y(a, b, c) (fnmatch (a, b, c) == 0)
21011 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
21012
21013 int
21014 main ()
21015 {
21016 exit
21017 (!(y ("a*", "abc", 0)
21018 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
21019 && y ("a\\\\bc", "abc", 0)
21020 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
21021 && y ("*x", ".x", 0)
21022 && n ("*x", ".x", FNM_PERIOD)
21023 && 1));
21024 ;
21025 return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest$ac_exeext
21029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21030 (eval $ac_link) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 ac_cv_func_fnmatch_works=yes
21040 else
21041 echo "$as_me: program exited with status $ac_status" >&5
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ( exit $ac_status )
21046 ac_cv_func_fnmatch_works=no
21047 fi
21048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21049 fi
21050 fi
21051 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
21052 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
21053 if test $ac_cv_func_fnmatch_works = yes; then
21054
21055 cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_FNMATCH 1
21057 _ACEOF
21058
21059 fi
21060
21061
21062
21063
21064 for ac_header in stdlib.h
21065 do
21066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21068 echo "$as_me:$LINENO: checking for $ac_header" >&5
21069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21072 fi
21073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21075 else
21076 # Is the header compilable?
21077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 $ac_includes_default
21086 #include <$ac_header>
21087 _ACEOF
21088 rm -f conftest.$ac_objext
21089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21090 (eval $ac_compile) 2>conftest.er1
21091 ac_status=$?
21092 grep -v '^ *+' conftest.er1 >conftest.err
21093 rm -f conftest.er1
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } &&
21097 { ac_try='test -z "$ac_c_werror_flag"
21098 || test ! -s conftest.err'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; } &&
21104 { ac_try='test -s conftest.$ac_objext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_header_compiler=yes
21111 else
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 ac_header_compiler=no
21116 fi
21117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21119 echo "${ECHO_T}$ac_header_compiler" >&6
21120
21121 # Is the header present?
21122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130 #include <$ac_header>
21131 _ACEOF
21132 if { (eval echo