Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libuninum 2.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='libuninum'
425 PACKAGE_TARNAME='libuninum'
426 PACKAGE_VERSION='2.7'
427 PACKAGE_STRING='libuninum 2.7'
428 PACKAGE_BUGREPORT='[email protected]'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ALLOCAOK_TRUE ALLOCAOK_FALSE 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 ALLOCA LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805 done
806
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827 do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880 else
881 ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures libuninum 2.7 to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1006
1007 cat <<\_ACEOF
1008
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013
1014 System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of libuninum 2.7:";;
1023 esac
1024 cat <<\_ACEOF
1025
1026 Optional Features:
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --disable-allocaok Do not use alloca - use heap instead.
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 Report bugs to <[email protected]>.
1067 _ACEOF
1068 fi
1069
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082 ac_dir_suffix= ac_top_builddir=
1083 fi
1084
1085 case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1100
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1103 case `pwd` in
1104 .) ac_abs_builddir="$ac_dir";;
1105 *)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1123 *)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138 esac
1139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157 fi
1158
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1161 cat <<\_ACEOF
1162 libuninum configure 2.7
1163 generated by GNU Autoconf 2.59
1164
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1168 _ACEOF
1169 exit 0
1170 fi
1171 exec 5>config.log
1172 cat >&5 <<_ACEOF
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1175
1176 It was created by libuninum $as_me 2.7, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1178
1179 $ $0 $@
1180
1181 _ACEOF
1182 {
1183 cat <<_ASUNAME
1184 ## --------- ##
1185 ## Platform. ##
1186 ## --------- ##
1187
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196
1197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204
1205 _ASUNAME
1206
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210 IFS=$as_save_IFS
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1213 done
1214
1215 } >&5
1216
1217 cat >&5 <<_ACEOF
1218
1219
1220 ## ----------- ##
1221 ## Core tests. ##
1222 ## ----------- ##
1223
1224 _ACEOF
1225
1226
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_configure_args=
1233 ac_configure_args0=
1234 ac_configure_args1=
1235 ac_sep=
1236 ac_must_keep_next=false
1237 for ac_pass in 1 2
1238 do
1239 for ac_arg
1240 do
1241 case $ac_arg in
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 continue ;;
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 esac
1249 case $ac_pass in
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 2)
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1255 else
1256 case $ac_arg in
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 esac
1264 ;;
1265 -* ) ac_must_keep_next=true ;;
1266 esac
1267 fi
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1270 ac_sep=" "
1271 ;;
1272 esac
1273 done
1274 done
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1285 {
1286 echo
1287
1288 cat <<\_ASBOX
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1292 _ASBOX
1293 echo
1294 # The following way of writing the cache mishandles newlines in values,
1295 {
1296 (set) 2>&1 |
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 *ac_space=\ *)
1299 sed -n \
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 ;;
1303 *)
1304 sed -n \
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ;;
1307 esac;
1308 }
1309 echo
1310
1311 cat <<\_ASBOX
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1315 _ASBOX
1316 echo
1317 for ac_var in $ac_subst_vars
1318 do
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1321 done | sort
1322 echo
1323
1324 if test -n "$ac_subst_files"; then
1325 cat <<\_ASBOX
1326 ## ------------- ##
1327 ## Output files. ##
1328 ## ------------- ##
1329 _ASBOX
1330 echo
1331 for ac_var in $ac_subst_files
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337 fi
1338
1339 if test -s confdefs.h; then
1340 cat <<\_ASBOX
1341 ## ----------- ##
1342 ## confdefs.h. ##
1343 ## ----------- ##
1344 _ASBOX
1345 echo
1346 sed "/^$/d" confdefs.h | sort
1347 echo
1348 fi
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1352 } >&5
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 exit $exit_status
1356 ' 0
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 done
1360 ac_signal=0
1361
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 echo >confdefs.h
1366
1367 # Predefined preprocessor variables.
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 _ACEOF
1392
1393
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 else
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 fi
1402 fi
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1408 . "$ac_site_file"
1409 fi
1410 done
1411
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1418 case $cache_file in
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1421 esac
1422 fi
1423 else
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1426 >$cache_file
1427 fi
1428
1429 # Check that the precious variables saved in the cache have kept the same
1430 # value.
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1439 set,)
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1443 ,set)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,);;
1448 *)
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1457 fi;;
1458 esac
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1461 case $ac_new_val in
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1465 esac
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 esac
1470 fi
1471 done
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1478 fi
1479
1480 ac_ext=c
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512 ac_config_headers="$ac_config_headers config.h"
1513
1514 am__api_version="1.9"
1515 ac_aux_dir=
1516 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1517 if test -f $ac_dir/install-sh; then
1518 ac_aux_dir=$ac_dir
1519 ac_install_sh="$ac_aux_dir/install-sh -c"
1520 break
1521 elif test -f $ac_dir/install.sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install.sh -c"
1524 break
1525 elif test -f $ac_dir/shtool; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/shtool install -c"
1528 break
1529 fi
1530 done
1531 if test -z "$ac_aux_dir"; then
1532 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1533 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1534 { (exit 1); exit 1; }; }
1535 fi
1536 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1540 # Find a good install program. We prefer a C program (faster),
1541 # so one script is as good as another. But avoid the broken or
1542 # incompatible versions:
1543 # SysV /etc/install, /usr/sbin/install
1544 # SunOS /usr/etc/install
1545 # IRIX /sbin/install
1546 # AIX /bin/install
1547 # AmigaOS /C/install, which installs bootblocks on floppy discs
1548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1551 # OS/2's system install, which has a completely different semantic
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555 if test -z "$INSTALL"; then
1556 if test "${ac_cv_path_install+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 # Account for people who put trailing slashes in PATH elements.
1565 case $as_dir/ in
1566 ./ | .// | /cC/* | \
1567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1569 /usr/ucb/* ) ;;
1570 *)
1571 # OSF1 and SCO ODT 3.0 have their own names for install.
1572 # Don't use installbsd from OSF since it installs stuff as root
1573 # by default.
1574 for ac_prog in ginstall scoinst install; do
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1577 if test $ac_prog = install &&
1578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579 # AIX install. It has an incompatible calling convention.
1580 :
1581 elif test $ac_prog = install &&
1582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # program-specific install script used by HP pwplus--don't use.
1584 :
1585 else
1586 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1587 break 3
1588 fi
1589 fi
1590 done
1591 done
1592 ;;
1593 esac
1594 done
1595
1596
1597 fi
1598 if test "${ac_cv_path_install+set}" = set; then
1599 INSTALL=$ac_cv_path_install
1600 else
1601 # As a last resort, use the slow shell script. We don't cache a
1602 # path for INSTALL within a source directory, because that will
1603 # break other packages using the cache if that directory is
1604 # removed, or if the path is relative.
1605 INSTALL=$ac_install_sh
1606 fi
1607 fi
1608 echo "$as_me:$LINENO: result: $INSTALL" >&5
1609 echo "${ECHO_T}$INSTALL" >&6
1610
1611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1612 # It thinks the first close brace ends the variable substitution.
1613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1614
1615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1616
1617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618
1619 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1620 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1621 # Just in case
1622 sleep 1
1623 echo timestamp > conftest.file
1624 # Do `set' in a subshell so we don't clobber the current shell's
1625 # arguments. Must try -L first in case configure is actually a
1626 # symlink; some systems play weird games with the mod time of symlinks
1627 # (eg FreeBSD returns the mod time of the symlink's containing
1628 # directory).
1629 if (
1630 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1631 if test "$*" = "X"; then
1632 # -L didn't work.
1633 set X `ls -t $srcdir/configure conftest.file`
1634 fi
1635 rm -f conftest.file
1636 if test "$*" != "X $srcdir/configure conftest.file" \
1637 && test "$*" != "X conftest.file $srcdir/configure"; then
1638
1639 # If neither matched, then we have a broken ls. This can happen
1640 # if, for instance, CONFIG_SHELL is bash and it inherits a
1641 # broken ls alias from the environment. This has actually
1642 # happened. Such a system could not be considered "sane".
1643 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1644 alias in your environment" >&5
1645 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&2;}
1647 { (exit 1); exit 1; }; }
1648 fi
1649
1650 test "$2" = conftest.file
1651 )
1652 then
1653 # Ok.
1654 :
1655 else
1656 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1657 Check your system clock" >&5
1658 echo "$as_me: error: newly created file is older than distributed files!
1659 Check your system clock" >&2;}
1660 { (exit 1); exit 1; }; }
1661 fi
1662 echo "$as_me:$LINENO: result: yes" >&5
1663 echo "${ECHO_T}yes" >&6
1664 test "$program_prefix" != NONE &&
1665 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1666 # Use a double $ so make ignores it.
1667 test "$program_suffix" != NONE &&
1668 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1669 # Double any \ or $. echo might interpret backslashes.
1670 # By default was `s,x,x', remove it if useless.
1671 cat <<\_ACEOF >conftest.sed
1672 s/[\\$]/&&/g;s/;s,x,x,$//
1673 _ACEOF
1674 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1675 rm conftest.sed
1676
1677 # expand $ac_aux_dir to an absolute path
1678 am_aux_dir=`cd $ac_aux_dir && pwd`
1679
1680 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1681 # Use eval to expand $SHELL
1682 if eval "$MISSING --run true"; then
1683 am_missing_run="$MISSING --run "
1684 else
1685 am_missing_run=
1686 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1687 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1688 fi
1689
1690 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1691 # We used to keeping the `.' as first argument, in order to
1692 # allow $(mkdir_p) to be used without argument. As in
1693 # $(mkdir_p) $(somedir)
1694 # where $(somedir) is conditionally defined. However this is wrong
1695 # for two reasons:
1696 # 1. if the package is installed by a user who cannot write `.'
1697 # make install will fail,
1698 # 2. the above comment should most certainly read
1699 # $(mkdir_p) $(DESTDIR)$(somedir)
1700 # so it does not work when $(somedir) is undefined and
1701 # $(DESTDIR) is not.
1702 # To support the latter case, we have to write
1703 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1704 # so the `.' trick is pointless.
1705 mkdir_p='mkdir -p --'
1706 else
1707 # On NextStep and OpenStep, the `mkdir' command does not
1708 # recognize any option. It will interpret all options as
1709 # directories to create, and then abort because `.' already
1710 # exists.
1711 for d in ./-p ./--version;
1712 do
1713 test -d $d && rmdir $d
1714 done
1715 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1716 if test -f "$ac_aux_dir/mkinstalldirs"; then
1717 mkdir_p='$(mkinstalldirs)'
1718 else
1719 mkdir_p='$(install_sh) -d'
1720 fi
1721 fi
1722
1723 for ac_prog in gawk mawk nawk awk
1724 do
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726 set dummy $ac_prog; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_AWK+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$AWK"; then
1733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_AWK="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 AWK=$ac_cv_prog_AWK
1752 if test -n "$AWK"; then
1753 echo "$as_me:$LINENO: result: $AWK" >&5
1754 echo "${ECHO_T}$AWK" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 test -n "$AWK" && break
1761 done
1762
1763 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1764 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1765 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1766 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769 cat >conftest.make <<\_ACEOF
1770 all:
1771 @echo 'ac_maketemp="$(MAKE)"'
1772 _ACEOF
1773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1774 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1775 if test -n "$ac_maketemp"; then
1776 eval ac_cv_prog_make_${ac_make}_set=yes
1777 else
1778 eval ac_cv_prog_make_${ac_make}_set=no
1779 fi
1780 rm -f conftest.make
1781 fi
1782 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1783 echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1785 SET_MAKE=
1786 else
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 SET_MAKE="MAKE=${MAKE-make}"
1790 fi
1791
1792 rm -rf .tst 2>/dev/null
1793 mkdir .tst 2>/dev/null
1794 if test -d .tst; then
1795 am__leading_dot=.
1796 else
1797 am__leading_dot=_
1798 fi
1799 rmdir .tst 2>/dev/null
1800
1801 # test to see if srcdir already configured
1802 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1803 test -f $srcdir/config.status; then
1804 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1805 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808
1809 # test whether we have cygpath
1810 if test -z "$CYGPATH_W"; then
1811 if (cygpath --version) >/dev/null 2>/dev/null; then
1812 CYGPATH_W='cygpath -w'
1813 else
1814 CYGPATH_W=echo
1815 fi
1816 fi
1817
1818
1819 # Define the identity of the package.
1820 PACKAGE='libuninum'
1821 VERSION='2.7'
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE "$PACKAGE"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define VERSION "$VERSION"
1831 _ACEOF
1832
1833 # Some tools Automake needs.
1834
1835 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1836
1837
1838 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1839
1840
1841 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1842
1843
1844 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1845
1846
1847 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1848
1849 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1850
1851 # Installed binaries are usually stripped using `strip' when the user
1852 # run `make install-strip'. However `strip' might not be the right
1853 # tool to use in cross-compilation environments, therefore Automake
1854 # will honor the `STRIP' environment variable to overrule this program.
1855 if test "$cross_compiling" != no; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}strip; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_STRIP+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$STRIP"; then
1865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 STRIP=$ac_cv_prog_STRIP
1884 if test -n "$STRIP"; then
1885 echo "$as_me:$LINENO: result: $STRIP" >&5
1886 echo "${ECHO_T}$STRIP" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892 fi
1893 if test -z "$ac_cv_prog_STRIP"; then
1894 ac_ct_STRIP=$STRIP
1895 # Extract the first word of "strip", so it can be a program name with args.
1896 set dummy strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_STRIP"; then
1903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_STRIP="strip"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916 done
1917 done
1918
1919 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1920 fi
1921 fi
1922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1923 if test -n "$ac_ct_STRIP"; then
1924 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1925 echo "${ECHO_T}$ac_ct_STRIP" >&6
1926 else
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 STRIP=$ac_ct_STRIP
1932 else
1933 STRIP="$ac_cv_prog_STRIP"
1934 fi
1935
1936 fi
1937 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1938
1939 # We need awk for the "check" target. The system "awk" is bad on
1940 # some platforms.
1941 # Always define AMTAR for backward compatibility.
1942
1943 AMTAR=${AMTAR-"${am_missing_run}tar"}
1944
1945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1946
1947
1948
1949
1950
1951
1952 # Check whether --enable-allocaok or --disable-allocaok was given.
1953 if test "${enable_allocaok+set}" = set; then
1954 enableval="$enable_allocaok"
1955 case "${enableval}" in
1956 yes) allocaok=true ;;
1957 no) allocaok=false ;;
1958 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-allocaok" >&5
1959 echo "$as_me: error: bad value ${enableval} for --enable-allocaok" >&2;}
1960 { (exit 1); exit 1; }; } ;;
1961 esac
1962 else
1963 allocaok=true
1964 fi;
1965
1966
1967
1968 if test "$allocaok" = true; then
1969 ALLOCAOK_TRUE=
1970 ALLOCAOK_FALSE='#'
1971 else
1972 ALLOCAOK_TRUE='#'
1973 ALLOCAOK_FALSE=
1974 fi
1975
1976
1977 # Checks for programs.
1978 ac_ext=c
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005 done
2006 done
2007
2008 fi
2009 fi
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019 fi
2020 if test -z "$ac_cv_prog_CC"; then
2021 ac_ct_CC=$CC
2022 # Extract the first word of "gcc", so it can be a program name with args.
2023 set dummy gcc; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_ac_ct_CC="gcc"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043 done
2044 done
2045
2046 fi
2047 fi
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6
2052 else
2053 echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6
2055 fi
2056
2057 CC=$ac_ct_CC
2058 else
2059 CC="$ac_cv_prog_CC"
2060 fi
2061
2062 if test -z "$CC"; then
2063 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2065 set dummy ${ac_tool_prefix}cc; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC="${ac_tool_prefix}cc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085 done
2086 done
2087
2088 fi
2089 fi
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2097 fi
2098
2099 fi
2100 if test -z "$ac_cv_prog_CC"; then
2101 ac_ct_CC=$CC
2102 # Extract the first word of "cc", so it can be a program name with args.
2103 set dummy cc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 if test -n "$ac_ct_CC"; then
2110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_ac_ct_CC="cc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 break 2
2122 fi
2123 done
2124 done
2125
2126 fi
2127 fi
2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129 if test -n "$ac_ct_CC"; then
2130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131 echo "${ECHO_T}$ac_ct_CC" >&6
2132 else
2133 echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2135 fi
2136
2137 CC=$ac_ct_CC
2138 else
2139 CC="$ac_cv_prog_CC"
2140 fi
2141
2142 fi
2143 if test -z "$CC"; then
2144 # Extract the first word of "cc", so it can be a program name with args.
2145 set dummy cc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 else
2154 ac_prog_rejected=no
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2163 ac_prog_rejected=yes
2164 continue
2165 fi
2166 ac_cv_prog_CC="cc"
2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 break 2
2169 fi
2170 done
2171 done
2172
2173 if test $ac_prog_rejected = yes; then
2174 # We found a bogon in the path, so make sure we never use it.
2175 set dummy $ac_cv_prog_CC
2176 shift
2177 if test $# != 0; then
2178 # We chose a different compiler from the bogus one.
2179 # However, it has the same basename, so the bogon will be chosen
2180 # first if we set CC to just the basename; use the full file name.
2181 shift
2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2183 fi
2184 fi
2185 fi
2186 fi
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 echo "$as_me:$LINENO: result: $CC" >&5
2190 echo "${ECHO_T}$CC" >&6
2191 else
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2194 fi
2195
2196 fi
2197 if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2199 for ac_prog in cl
2200 do
2201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2221 fi
2222 done
2223 done
2224
2225 fi
2226 fi
2227 CC=$ac_cv_prog_CC
2228 if test -n "$CC"; then
2229 echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6
2231 else
2232 echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6
2234 fi
2235
2236 test -n "$CC" && break
2237 done
2238 fi
2239 if test -z "$CC"; then
2240 ac_ct_CC=$CC
2241 for ac_prog in cl
2242 do
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$ac_ct_CC"; then
2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_ac_ct_CC="$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264 done
2265 done
2266
2267 fi
2268 fi
2269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2270 if test -n "$ac_ct_CC"; then
2271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2272 echo "${ECHO_T}$ac_ct_CC" >&6
2273 else
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2276 fi
2277
2278 test -n "$ac_ct_CC" && break
2279 done
2280
2281 CC=$ac_ct_CC
2282 fi
2283
2284 fi
2285
2286
2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: no acceptable C compiler found in \$PATH
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292
2293 # Provide some information about the compiler.
2294 echo "$as_me:$LINENO:" \
2295 "checking for C compiler version" >&5
2296 ac_compiler=`set X $ac_compile; echo $2`
2297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2298 (eval $ac_compiler --version </dev/null >&5) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2303 (eval $ac_compiler -v </dev/null >&5) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2308 (eval $ac_compiler -V </dev/null >&5) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2319
2320 int
2321 main ()
2322 {
2323
2324 ;
2325 return 0;
2326 }
2327 _ACEOF
2328 ac_clean_files_save=$ac_clean_files
2329 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2330 # Try to create an executable without -o first, disregard a.out.
2331 # It will help us diagnose broken compilers, and finding out an intuition
2332 # of exeext.
2333 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2334 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2335 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2336 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2337 (eval $ac_link_default) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
2341 # Find the output, starting from the most likely. This scheme is
2342 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2343 # resort.
2344
2345 # Be careful to initialize this variable, since it used to be cached.
2346 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2347 ac_cv_exeext=
2348 # b.out is created by i960 compilers.
2349 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2350 do
2351 test -f "$ac_file" || continue
2352 case $ac_file in
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2354 ;;
2355 conftest.$ac_ext )
2356 # This is the source file.
2357 ;;
2358 [ab].out )
2359 # We found the default executable, but exeext='' is most
2360 # certainly right.
2361 break;;
2362 *.* )
2363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364 # FIXME: I believe we export ac_cv_exeext for Libtool,
2365 # but it would be cool to find out if it's true. Does anybody
2366 # maintain Libtool? --akim.
2367 export ac_cv_exeext
2368 break;;
2369 * )
2370 break;;
2371 esac
2372 done
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: C compiler cannot create executables
2380 See \`config.log' for more details." >&2;}
2381 { (exit 77); exit 77; }; }
2382 fi
2383
2384 ac_exeext=$ac_cv_exeext
2385 echo "$as_me:$LINENO: result: $ac_file" >&5
2386 echo "${ECHO_T}$ac_file" >&6
2387
2388 # Check the compiler produces executables we can run. If not, either
2389 # the compiler is broken, or we cross compile.
2390 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2391 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2392 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2393 # If not cross compiling, check that we can run a simple program.
2394 if test "$cross_compiling" != yes; then
2395 if { ac_try='./$ac_file'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 cross_compiling=no
2402 else
2403 if test "$cross_compiling" = maybe; then
2404 cross_compiling=yes
2405 else
2406 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2407 If you meant to cross compile, use \`--host'.
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: cannot run C compiled programs.
2410 If you meant to cross compile, use \`--host'.
2411 See \`config.log' for more details." >&2;}
2412 { (exit 1); exit 1; }; }
2413 fi
2414 fi
2415 fi
2416 echo "$as_me:$LINENO: result: yes" >&5
2417 echo "${ECHO_T}yes" >&6
2418
2419 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2420 ac_clean_files=$ac_clean_files_save
2421 # Check the compiler produces executables we can run. If not, either
2422 # the compiler is broken, or we cross compile.
2423 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2424 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2425 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2426 echo "${ECHO_T}$cross_compiling" >&6
2427
2428 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2429 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2437 # work properly (i.e., refer to `conftest.exe'), while it won't with
2438 # `rm'.
2439 for ac_file in conftest.exe conftest conftest.*; do
2440 test -f "$ac_file" || continue
2441 case $ac_file in
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 export ac_cv_exeext
2445 break;;
2446 * ) break;;
2447 esac
2448 done
2449 else
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2455 fi
2456
2457 rm -f conftest$ac_cv_exeext
2458 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2459 echo "${ECHO_T}$ac_cv_exeext" >&6
2460
2461 rm -f conftest.$ac_ext
2462 EXEEXT=$ac_cv_exeext
2463 ac_exeext=$EXEEXT
2464 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2465 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2466 if test "${ac_cv_objext+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475
2476 int
2477 main ()
2478 {
2479
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.o conftest.obj
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2490 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2491 case $ac_file in
2492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2494 break;;
2495 esac
2496 done
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2506 fi
2507
2508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2509 fi
2510 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2511 echo "${ECHO_T}$ac_cv_objext" >&6
2512 OBJEXT=$ac_cv_objext
2513 ac_objext=$OBJEXT
2514 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2515 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2516 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2525
2526 int
2527 main ()
2528 {
2529 #ifndef __GNUC__
2530 choke me
2531 #endif
2532
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>conftest.er1
2540 ac_status=$?
2541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_compiler_gnu=yes
2560 else
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 ac_compiler_gnu=no
2565 fi
2566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2568
2569 fi
2570 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2571 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2572 GCC=`test $ac_compiler_gnu = yes && echo yes`
2573 ac_test_CFLAGS=${CFLAGS+set}
2574 ac_save_CFLAGS=$CFLAGS
2575 CFLAGS="-g"
2576 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2578 if test "${ac_cv_prog_cc_g+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587
2588 int
2589 main ()
2590 {
2591
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 ac_cv_prog_cc_g=yes
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_cv_prog_cc_g=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 fi
2627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2629 if test "$ac_test_CFLAGS" = set; then
2630 CFLAGS=$ac_save_CFLAGS
2631 elif test $ac_cv_prog_cc_g = yes; then
2632 if test "$GCC" = yes; then
2633 CFLAGS="-g -O2"
2634 else
2635 CFLAGS="-g"
2636 fi
2637 else
2638 if test "$GCC" = yes; then
2639 CFLAGS="-O2"
2640 else
2641 CFLAGS=
2642 fi
2643 fi
2644 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2645 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2646 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 ac_cv_prog_cc_stdc=no
2650 ac_save_CC=$CC
2651 cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657 #include <stdarg.h>
2658 #include <stdio.h>
2659 #include <sys/types.h>
2660 #include <sys/stat.h>
2661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2662 struct buf { int x; };
2663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2664 static char *e (p, i)
2665 char **p;
2666 int i;
2667 {
2668 return p[i];
2669 }
2670 static char *f (char * (*g) (char **, int), char **p, ...)
2671 {
2672 char *s;
2673 va_list v;
2674 va_start (v,p);
2675 s = g (p, va_arg (v,int));
2676 va_end (v);
2677 return s;
2678 }
2679
2680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2681 function prototypes and stuff, but not '\xHH' hex character constants.
2682 These don't provoke an error unfortunately, instead are silently treated
2683 as 'x'. The following induces an error, until -std1 is added to get
2684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2685 array size at least. It's necessary to write '\x00'==0 to get something
2686 that's true only with -std1. */
2687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2688
2689 int test (int i, double x);
2690 struct s1 {int (*f) (int a);};
2691 struct s2 {int (*f) (double a);};
2692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 int argc;
2694 char **argv;
2695 int
2696 main ()
2697 {
2698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 ;
2700 return 0;
2701 }
2702 _ACEOF
2703 # Don't try gcc -ansi; that turns off useful extensions and
2704 # breaks some systems' header files.
2705 # AIX -qlanglvl=ansi
2706 # Ultrix and OSF/1 -std1
2707 # HP-UX 10.20 and later -Ae
2708 # HP-UX older versions -Aa -D_HPUX_SOURCE
2709 # SVR4 -Xc -D__EXTENSIONS__
2710 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2711 do
2712 CC="$ac_save_CC $ac_arg"
2713 rm -f conftest.$ac_objext
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag"
2723 || test ! -s conftest.err'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_prog_cc_stdc=$ac_arg
2736 break
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 fi
2742 rm -f conftest.err conftest.$ac_objext
2743 done
2744 rm -f conftest.$ac_ext conftest.$ac_objext
2745 CC=$ac_save_CC
2746
2747 fi
2748
2749 case "x$ac_cv_prog_cc_stdc" in
2750 x|xno)
2751 echo "$as_me:$LINENO: result: none needed" >&5
2752 echo "${ECHO_T}none needed" >&6 ;;
2753 *)
2754 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2755 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2756 CC="$CC $ac_cv_prog_cc_stdc" ;;
2757 esac
2758
2759 # Some people use a C++ compiler to compile C. Since we use `exit',
2760 # in C++ we need to declare it. In case someone uses the same compiler
2761 # for both compiling C and C++ we need to have the C++ compiler decide
2762 # the declaration of exit, since it's the most demanding environment.
2763 cat >conftest.$ac_ext <<_ACEOF
2764 #ifndef __cplusplus
2765 choke me
2766 #endif
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 for ac_declaration in \
2791 '' \
2792 'extern "C" void std::exit (int) throw (); using std::exit;' \
2793 'extern "C" void std::exit (int); using std::exit;' \
2794 'extern "C" void exit (int) throw ();' \
2795 'extern "C" void exit (int);' \
2796 'void exit (int);'
2797 do
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 $ac_declaration
2805 #include <stdlib.h>
2806 int
2807 main ()
2808 {
2809 exit (42);
2810 ;
2811 return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 :
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 continue
2842 fi
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 $ac_declaration
2851 int
2852 main ()
2853 {
2854 exit (42);
2855 ;
2856 return 0;
2857 }
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_c_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 break
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 fi
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 done
2889 rm -f conftest*
2890 if test -n "$ac_declaration"; then
2891 echo '#ifdef __cplusplus' >>confdefs.h
2892 echo $ac_declaration >>confdefs.h
2893 echo '#endif' >>confdefs.h
2894 fi
2895
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 ac_ext=c
2903 ac_cpp='$CPP $CPPFLAGS'
2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907 DEPDIR="${am__leading_dot}deps"
2908
2909 ac_config_commands="$ac_config_commands depfiles"
2910
2911
2912 am_make=${MAKE-make}
2913 cat > confinc << 'END'
2914 am__doit:
2915 @echo done
2916 .PHONY: am__doit
2917 END
2918 # If we don't find an include directive, just comment out the code.
2919 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2920 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2921 am__include="#"
2922 am__quote=
2923 _am_result=none
2924 # First try GNU make style include.
2925 echo "include confinc" > confmf
2926 # We grep out `Entering directory' and `Leaving directory'
2927 # messages which can occur if `w' ends up in MAKEFLAGS.
2928 # In particular we don't look at `^make:' because GNU make might
2929 # be invoked under some other name (usually "gmake"), in which
2930 # case it prints its new name instead of `make'.
2931 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2932 am__include=include
2933 am__quote=
2934 _am_result=GNU
2935 fi
2936 # Now try BSD make style include.
2937 if test "$am__include" = "#"; then
2938 echo '.include "confinc"' > confmf
2939 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2940 am__include=.include
2941 am__quote="\""
2942 _am_result=BSD
2943 fi
2944 fi
2945
2946
2947 echo "$as_me:$LINENO: result: $_am_result" >&5
2948 echo "${ECHO_T}$_am_result" >&6
2949 rm -f confinc confmf
2950
2951 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2952 if test "${enable_dependency_tracking+set}" = set; then
2953 enableval="$enable_dependency_tracking"
2954
2955 fi;
2956 if test "x$enable_dependency_tracking" != xno; then
2957 am_depcomp="$ac_aux_dir/depcomp"
2958 AMDEPBACKSLASH='\'
2959 fi
2960
2961
2962 if test "x$enable_dependency_tracking" != xno; then
2963 AMDEP_TRUE=
2964 AMDEP_FALSE='#'
2965 else
2966 AMDEP_TRUE='#'
2967 AMDEP_FALSE=
2968 fi
2969
2970
2971
2972
2973 depcc="$CC" am_compiler_list=
2974
2975 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2976 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2981 # We make a subdir and do the tests there. Otherwise we can end up
2982 # making bogus files that we don't know about and never remove. For
2983 # instance it was reported that on HP-UX the gcc test will end up
2984 # making a dummy file named `D' -- because `-MD' means `put the output
2985 # in D'.
2986 mkdir conftest.dir
2987 # Copy depcomp to subdir because otherwise we won't find it if we're
2988 # using a relative directory.
2989 cp "$am_depcomp" conftest.dir
2990 cd conftest.dir
2991 # We will build objects and dependencies in a subdirectory because
2992 # it helps to detect inapplicable dependency modes. For instance
2993 # both Tru64's cc and ICC support -MD to output dependencies as a
2994 # side effect of compilation, but ICC will put the dependencies in
2995 # the current directory while Tru64 will put them in the object
2996 # directory.
2997 mkdir sub
2998
2999 am_cv_CC_dependencies_compiler_type=none
3000 if test "$am_compiler_list" = ""; then
3001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3002 fi
3003 for depmode in $am_compiler_list; do
3004 # Setup a source with many dependencies, because some compilers
3005 # like to wrap large dependency lists on column 80 (with \), and
3006 # we should not choose a depcomp mode which is confused by this.
3007 #
3008 # We need to recreate these files for each test, as the compiler may
3009 # overwrite some of them when testing with obscure command lines.
3010 # This happens at least with the AIX C compiler.
3011 : > sub/conftest.c
3012 for i in 1 2 3 4 5 6; do
3013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3014 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3015 # Solaris 8's {/usr,}/bin/sh.
3016 touch sub/conftst$i.h
3017 done
3018 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3019
3020 case $depmode in
3021 nosideeffect)
3022 # after this tag, mechanisms are not by side-effect, so they'll
3023 # only be used when explicitly requested
3024 if test "x$enable_dependency_tracking" = xyes; then
3025 continue
3026 else
3027 break
3028 fi
3029 ;;
3030 none) break ;;
3031 esac
3032 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3033 # mode. It turns out that the SunPro C++ compiler does not properly
3034 # handle `-M -o', and we need to detect this.
3035 if depmode=$depmode \
3036 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3038 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3039 >/dev/null 2>conftest.err &&
3040 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3041 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3042 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3043 # icc doesn't choke on unknown options, it will just issue warnings
3044 # or remarks (even with -Werror). So we grep stderr for any message
3045 # that says an option was ignored or not supported.
3046 # When given -MP, icc 7.0 and 7.1 complain thusly:
3047 # icc: Command line warning: ignoring option '-M'; no argument required
3048 # The diagnosis changed in icc 8.0:
3049 # icc: Command line remark: option '-MP' not supported
3050 if (grep 'ignoring option' conftest.err ||
3051 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3052 am_cv_CC_dependencies_compiler_type=$depmode
3053 break
3054 fi
3055 fi
3056 done
3057
3058 cd ..
3059 rm -rf conftest.dir
3060 else
3061 am_cv_CC_dependencies_compiler_type=none
3062 fi
3063
3064 fi
3065 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3066 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3067 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3068
3069
3070
3071 if
3072 test "x$enable_dependency_tracking" != xno \
3073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3074 am__fastdepCC_TRUE=
3075 am__fastdepCC_FALSE='#'
3076 else
3077 am__fastdepCC_TRUE='#'
3078 am__fastdepCC_FALSE=
3079 fi
3080
3081
3082 # Find a good install program. We prefer a C program (faster),
3083 # so one script is as good as another. But avoid the broken or
3084 # incompatible versions:
3085 # SysV /etc/install, /usr/sbin/install
3086 # SunOS /usr/etc/install
3087 # IRIX /sbin/install
3088 # AIX /bin/install
3089 # AmigaOS /C/install, which installs bootblocks on floppy discs
3090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3093 # OS/2's system install, which has a completely different semantic
3094 # ./install, which can be erroneously created by make from ./install.sh.
3095 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3096 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3097 if test -z "$INSTALL"; then
3098 if test "${ac_cv_path_install+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 # Account for people who put trailing slashes in PATH elements.
3107 case $as_dir/ in
3108 ./ | .// | /cC/* | \
3109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3110 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3111 /usr/ucb/* ) ;;
3112 *)
3113 # OSF1 and SCO ODT 3.0 have their own names for install.
3114 # Don't use installbsd from OSF since it installs stuff as root
3115 # by default.
3116 for ac_prog in ginstall scoinst install; do
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3119 if test $ac_prog = install &&
3120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121 # AIX install. It has an incompatible calling convention.
3122 :
3123 elif test $ac_prog = install &&
3124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125 # program-specific install script used by HP pwplus--don't use.
3126 :
3127 else
3128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3129 break 3
3130 fi
3131 fi
3132 done
3133 done
3134 ;;
3135 esac
3136 done
3137
3138
3139 fi
3140 if test "${ac_cv_path_install+set}" = set; then
3141 INSTALL=$ac_cv_path_install
3142 else
3143 # As a last resort, use the slow shell script. We don't cache a
3144 # path for INSTALL within a source directory, because that will
3145 # break other packages using the cache if that directory is
3146 # removed, or if the path is relative.
3147 INSTALL=$ac_install_sh
3148 fi
3149 fi
3150 echo "$as_me:$LINENO: result: $INSTALL" >&5
3151 echo "${ECHO_T}$INSTALL" >&6
3152
3153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3154 # It thinks the first close brace ends the variable substitution.
3155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3156
3157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3158
3159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3160
3161 # Check whether --enable-shared or --disable-shared was given.
3162 if test "${enable_shared+set}" = set; then
3163 enableval="$enable_shared"
3164 p=${PACKAGE-default}
3165 case $enableval in
3166 yes) enable_shared=yes ;;
3167 no) enable_shared=no ;;
3168 *)
3169 enable_shared=no
3170 # Look at the argument we got. We use all the common list separators.
3171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3172 for pkg in $enableval; do
3173 IFS="$lt_save_ifs"
3174 if test "X$pkg" = "X$p"; then
3175 enable_shared=yes
3176 fi
3177 done
3178 IFS="$lt_save_ifs"
3179 ;;
3180 esac
3181 else
3182 enable_shared=yes
3183 fi;
3184
3185 # Check whether --enable-static or --disable-static was given.
3186 if test "${enable_static+set}" = set; then
3187 enableval="$enable_static"
3188 p=${PACKAGE-default}
3189 case $enableval in
3190 yes) enable_static=yes ;;
3191 no) enable_static=no ;;
3192 *)
3193 enable_static=no
3194 # Look at the argument we got. We use all the common list separators.
3195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3196 for pkg in $enableval; do
3197 IFS="$lt_save_ifs"
3198 if test "X$pkg" = "X$p"; then
3199 enable_static=yes
3200 fi
3201 done
3202 IFS="$lt_save_ifs"
3203 ;;
3204 esac
3205 else
3206 enable_static=yes
3207 fi;
3208
3209 # Check whether --enable-fast-install or --disable-fast-install was given.
3210 if test "${enable_fast_install+set}" = set; then
3211 enableval="$enable_fast_install"
3212 p=${PACKAGE-default}
3213 case $enableval in
3214 yes) enable_fast_install=yes ;;
3215 no) enable_fast_install=no ;;
3216 *)
3217 enable_fast_install=no
3218 # Look at the argument we got. We use all the common list separators.
3219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3220 for pkg in $enableval; do
3221 IFS="$lt_save_ifs"
3222 if test "X$pkg" = "X$p"; then
3223 enable_fast_install=yes
3224 fi
3225 done
3226 IFS="$lt_save_ifs"
3227 ;;
3228 esac
3229 else
3230 enable_fast_install=yes
3231 fi;
3232
3233 # Make sure we can run config.sub.
3234 $ac_config_sub sun4 >/dev/null 2>&1 ||
3235 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3236 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3237 { (exit 1); exit 1; }; }
3238
3239 echo "$as_me:$LINENO: checking build system type" >&5
3240 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3241 if test "${ac_cv_build+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 ac_cv_build_alias=$build_alias
3245 test -z "$ac_cv_build_alias" &&
3246 ac_cv_build_alias=`$ac_config_guess`
3247 test -z "$ac_cv_build_alias" &&
3248 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3249 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3250 { (exit 1); exit 1; }; }
3251 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3252 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3253 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3254 { (exit 1); exit 1; }; }
3255
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3258 echo "${ECHO_T}$ac_cv_build" >&6
3259 build=$ac_cv_build
3260 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3261 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3262 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3263
3264
3265 echo "$as_me:$LINENO: checking host system type" >&5
3266 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3267 if test "${ac_cv_host+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 ac_cv_host_alias=$host_alias
3271 test -z "$ac_cv_host_alias" &&
3272 ac_cv_host_alias=$ac_cv_build_alias
3273 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3274 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3275 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3276 { (exit 1); exit 1; }; }
3277
3278 fi
3279 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3280 echo "${ECHO_T}$ac_cv_host" >&6
3281 host=$ac_cv_host
3282 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3283 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3284 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3285
3286
3287 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3288 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3289 if test "${lt_cv_path_SED+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 # Loop through the user's path and test for sed and gsed.
3293 # Then use that list of sed's as ones to test for truncation.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for lt_ac_prog in sed gsed; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3302 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3303 fi
3304 done
3305 done
3306 done
3307 lt_ac_max=0
3308 lt_ac_count=0
3309 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3310 # along with /bin/sed that truncates output.
3311 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3312 test ! -f $lt_ac_sed && continue
3313 cat /dev/null > conftest.in
3314 lt_ac_count=0
3315 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3316 # Check for GNU sed and select it if it is found.
3317 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3318 lt_cv_path_SED=$lt_ac_sed
3319 break
3320 fi
3321 while true; do
3322 cat conftest.in conftest.in >conftest.tmp
3323 mv conftest.tmp conftest.in
3324 cp conftest.in conftest.nl
3325 echo >>conftest.nl
3326 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3327 cmp -s conftest.out conftest.nl || break
3328 # 10000 chars as input seems more than enough
3329 test $lt_ac_count -gt 10 && break
3330 lt_ac_count=`expr $lt_ac_count + 1`
3331 if test $lt_ac_count -gt $lt_ac_max; then
3332 lt_ac_max=$lt_ac_count
3333 lt_cv_path_SED=$lt_ac_sed
3334 fi
3335 done
3336 done
3337
3338 fi
3339
3340 SED=$lt_cv_path_SED
3341 echo "$as_me:$LINENO: result: $SED" >&5
3342 echo "${ECHO_T}$SED" >&6
3343
3344 echo "$as_me:$LINENO: checking for egrep" >&5
3345 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3346 if test "${ac_cv_prog_egrep+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3350 then ac_cv_prog_egrep='grep -E'
3351 else ac_cv_prog_egrep='egrep'
3352 fi
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3355 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3356 EGREP=$ac_cv_prog_egrep
3357
3358
3359
3360 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then
3362 withval="$with_gnu_ld"
3363 test "$withval" = no || with_gnu_ld=yes
3364 else
3365 with_gnu_ld=no
3366 fi;
3367 ac_prog=ld
3368 if test "$GCC" = yes; then
3369 # Check if gcc -print-prog-name=ld gives a path.
3370 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3371 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3372 case $host in
3373 *-*-mingw*)
3374 # gcc leaves a trailing carriage return which upsets mingw
3375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3376 *)
3377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3378 esac
3379 case $ac_prog in
3380 # Accept absolute paths.
3381 [\\/]* | ?:[\\/]*)
3382 re_direlt='/[^/][^/]*/\.\./'
3383 # Canonicalize the pathname of ld
3384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3387 done
3388 test -z "$LD" && LD="$ac_prog"
3389 ;;
3390 "")
3391 # If it fails, then pretend we aren't using GCC.
3392 ac_prog=ld
3393 ;;
3394 *)
3395 # If it is relative, then search for the first ld in PATH.
3396 with_gnu_ld=unknown
3397 ;;
3398 esac
3399 elif test "$with_gnu_ld" = yes; then
3400 echo "$as_me:$LINENO: checking for GNU ld" >&5
3401 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3402 else
3403 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3404 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3405 fi
3406 if test "${lt_cv_path_LD+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 if test -z "$LD"; then
3410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411 for ac_dir in $PATH; do
3412 IFS="$lt_save_ifs"
3413 test -z "$ac_dir" && ac_dir=.
3414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3415 lt_cv_path_LD="$ac_dir/$ac_prog"
3416 # Check to see if the program is GNU ld. I'd rather use --version,
3417 # but apparently some variants of GNU ld only accept -v.
3418 # Break only if it was the GNU/non-GNU ld that we prefer.
3419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3420 *GNU* | *'with BFD'*)
3421 test "$with_gnu_ld" != no && break
3422 ;;
3423 *)
3424 test "$with_gnu_ld" != yes && break
3425 ;;
3426 esac
3427 fi
3428 done
3429 IFS="$lt_save_ifs"
3430 else
3431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3432 fi
3433 fi
3434
3435 LD="$lt_cv_path_LD"
3436 if test -n "$LD"; then
3437 echo "$as_me:$LINENO: result: $LD" >&5
3438 echo "${ECHO_T}$LD" >&6
3439 else
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3442 fi
3443 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3444 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3445 { (exit 1); exit 1; }; }
3446 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3447 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3452 case `$LD -v 2>&1 </dev/null` in
3453 *GNU* | *'with BFD'*)
3454 lt_cv_prog_gnu_ld=yes
3455 ;;
3456 *)
3457 lt_cv_prog_gnu_ld=no
3458 ;;
3459 esac
3460 fi
3461 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3462 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3463 with_gnu_ld=$lt_cv_prog_gnu_ld
3464
3465
3466 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3467 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3468 if test "${lt_cv_ld_reload_flag+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 lt_cv_ld_reload_flag='-r'
3472 fi
3473 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3474 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3475 reload_flag=$lt_cv_ld_reload_flag
3476 case $reload_flag in
3477 "" | " "*) ;;
3478 *) reload_flag=" $reload_flag" ;;
3479 esac
3480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3481 case $host_os in
3482 darwin*)
3483 if test "$GCC" = yes; then
3484 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3485 else
3486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3487 fi
3488 ;;
3489 esac
3490
3491 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3492 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3493 if test "${lt_cv_path_NM+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$NM"; then
3497 # Let the user override the test.
3498 lt_cv_path_NM="$NM"
3499 else
3500 lt_nm_to_check="${ac_tool_prefix}nm"
3501 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3502 lt_nm_to_check="$lt_nm_to_check nm"
3503 fi
3504 for lt_tmp_nm in $lt_nm_to_check; do
3505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3506 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3507 IFS="$lt_save_ifs"
3508 test -z "$ac_dir" && ac_dir=.
3509 tmp_nm="$ac_dir/$lt_tmp_nm"
3510 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3511 # Check to see if the nm accepts a BSD-compat flag.
3512 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3513 # nm: unknown option "B" ignored
3514 # Tru64's nm complains that /dev/null is an invalid object file
3515 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3516 */dev/null* | *'Invalid file or object type'*)
3517 lt_cv_path_NM="$tmp_nm -B"
3518 break
3519 ;;
3520 *)
3521 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3522 */dev/null*)
3523 lt_cv_path_NM="$tmp_nm -p"
3524 break
3525 ;;
3526 *)
3527 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3528 continue # so that we can try to find one that supports BSD flags
3529 ;;
3530 esac
3531 ;;
3532 esac
3533 fi
3534 done
3535 IFS="$lt_save_ifs"
3536 done
3537 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3538 fi
3539 fi
3540 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3541 echo "${ECHO_T}$lt_cv_path_NM" >&6
3542 NM="$lt_cv_path_NM"
3543
3544 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3545 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3546 LN_S=$as_ln_s
3547 if test "$LN_S" = "ln -s"; then
3548 echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6
3550 else
3551 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3552 echo "${ECHO_T}no, using $LN_S" >&6
3553 fi
3554
3555 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3556 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3557 if test "${lt_cv_deplibs_check_method+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 lt_cv_file_magic_cmd='$MAGIC_CMD'
3561 lt_cv_file_magic_test_file=
3562 lt_cv_deplibs_check_method='unknown'
3563 # Need to set the preceding variable on all platforms that support
3564 # interlibrary dependencies.
3565 # 'none' -- dependencies not supported.
3566 # `unknown' -- same as none, but documents that we really don't know.
3567 # 'pass_all' -- all dependencies passed with no checks.
3568 # 'test_compile' -- check by making test program.
3569 # 'file_magic [[regex]]' -- check by looking for files in library path
3570 # which responds to the $file_magic_cmd with a given extended regex.
3571 # If you have `file' or equivalent on your system and you're not sure
3572 # whether `pass_all' will *always* work, you probably want this one.
3573
3574 case $host_os in
3575 aix4* | aix5*)
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579 beos*)
3580 lt_cv_deplibs_check_method=pass_all
3581 ;;
3582
3583 bsdi[45]*)
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3585 lt_cv_file_magic_cmd='/usr/bin/file -L'
3586 lt_cv_file_magic_test_file=/shlib/libc.so
3587 ;;
3588
3589 cygwin*)
3590 # func_win32_libid is a shell function defined in ltmain.sh
3591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3592 lt_cv_file_magic_cmd='func_win32_libid'
3593 ;;
3594
3595 mingw* | pw32*)
3596 # Base MSYS/MinGW do not provide the 'file' command needed by
3597 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3598 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3599 lt_cv_file_magic_cmd='$OBJDUMP -f'
3600 ;;
3601
3602 darwin* | rhapsody*)
3603 lt_cv_deplibs_check_method=pass_all
3604 ;;
3605
3606 freebsd* | kfreebsd*-gnu | dragonfly*)
3607 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3608 case $host_cpu in
3609 i*86 )
3610 # Not sure whether the presence of OpenBSD here was a mistake.
3611 # Let's accept both of them until this is cleared up.
3612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3613 lt_cv_file_magic_cmd=/usr/bin/file
3614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3615 ;;
3616 esac
3617 else
3618 lt_cv_deplibs_check_method=pass_all
3619 fi
3620 ;;
3621
3622 gnu*)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625
3626 hpux10.20* | hpux11*)
3627 lt_cv_file_magic_cmd=/usr/bin/file
3628 case $host_cpu in
3629 ia64*)
3630 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3631 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3632 ;;
3633 hppa*64*)
3634 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]'
3635 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3636 ;;
3637 *)
3638 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3639 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3640 ;;
3641 esac
3642 ;;
3643
3644 interix3*)
3645 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3647 ;;
3648
3649 irix5* | irix6* | nonstopux*)
3650 case $LD in
3651 *-32|*"-32 ") libmagic=32-bit;;
3652 *-n32|*"-n32 ") libmagic=N32;;
3653 *-64|*"-64 ") libmagic=64-bit;;
3654 *) libmagic=never-match;;
3655 esac
3656 lt_cv_deplibs_check_method=pass_all
3657 ;;
3658
3659 # This must be Linux ELF.
3660 linux*)
3661 lt_cv_deplibs_check_method=pass_all
3662 ;;
3663
3664 netbsd*)
3665 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3667 else
3668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3669 fi
3670 ;;
3671
3672 newos6*)
3673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3674 lt_cv_file_magic_cmd=/usr/bin/file
3675 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3676 ;;
3677
3678 nto-qnx*)
3679 lt_cv_deplibs_check_method=unknown
3680 ;;
3681
3682 openbsd*)
3683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3685 else
3686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3687 fi
3688 ;;
3689
3690 osf3* | osf4* | osf5*)
3691 lt_cv_deplibs_check_method=pass_all
3692 ;;
3693
3694 solaris*)
3695 lt_cv_deplibs_check_method=pass_all
3696 ;;
3697
3698 sysv4 | sysv4.3*)
3699 case $host_vendor in
3700 motorola)
3701 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]'
3702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3703 ;;
3704 ncr)
3705 lt_cv_deplibs_check_method=pass_all
3706 ;;
3707 sequent)
3708 lt_cv_file_magic_cmd='/bin/file'
3709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3710 ;;
3711 sni)
3712 lt_cv_file_magic_cmd='/bin/file'
3713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3714 lt_cv_file_magic_test_file=/lib/libc.so
3715 ;;
3716 siemens)
3717 lt_cv_deplibs_check_method=pass_all
3718 ;;
3719 pc)
3720 lt_cv_deplibs_check_method=pass_all
3721 ;;
3722 esac
3723 ;;
3724
3725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3726 lt_cv_deplibs_check_method=pass_all
3727 ;;
3728 esac
3729
3730 fi
3731 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3732 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3733 file_magic_cmd=$lt_cv_file_magic_cmd
3734 deplibs_check_method=$lt_cv_deplibs_check_method
3735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3736
3737
3738
3739
3740 # If no C compiler was specified, use CC.
3741 LTCC=${LTCC-"$CC"}
3742
3743 # If no C compiler flags were specified, use CFLAGS.
3744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3745
3746 # Allow CC to be a program name with arguments.
3747 compiler=$CC
3748
3749
3750 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3751 if test "${enable_libtool_lock+set}" = set; then
3752 enableval="$enable_libtool_lock"
3753
3754 fi;
3755 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3756
3757 # Some flags need to be propagated to the compiler or linker for good
3758 # libtool support.
3759 case $host in
3760 ia64-*-hpux*)
3761 # Find out which ABI we are using.
3762 echo 'int i;' > conftest.$ac_ext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; then
3768 case `/usr/bin/file conftest.$ac_objext` in
3769 *ELF-32*)
3770 HPUX_IA64_MODE="32"
3771 ;;
3772 *ELF-64*)
3773 HPUX_IA64_MODE="64"
3774 ;;
3775 esac
3776 fi
3777 rm -rf conftest*
3778 ;;
3779 *-*-irix6*)
3780 # Find out which ABI we are using.
3781 echo '#line 3781 "configure"' > conftest.$ac_ext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783 (eval $ac_compile) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; then
3787 if test "$lt_cv_prog_gnu_ld" = yes; then
3788 case `/usr/bin/file conftest.$ac_objext` in
3789 *32-bit*)
3790 LD="${LD-ld} -melf32bsmip"
3791 ;;
3792 *N32*)
3793 LD="${LD-ld} -melf32bmipn32"
3794 ;;
3795 *64-bit*)
3796 LD="${LD-ld} -melf64bmip"
3797 ;;
3798 esac
3799 else
3800 case `/usr/bin/file conftest.$ac_objext` in
3801 *32-bit*)
3802 LD="${LD-ld} -32"
3803 ;;
3804 *N32*)
3805 LD="${LD-ld} -n32"
3806 ;;
3807 *64-bit*)
3808 LD="${LD-ld} -64"
3809 ;;
3810 esac
3811 fi
3812 fi
3813 rm -rf conftest*
3814 ;;
3815
3816 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3817 # Find out which ABI we are using.
3818 echo 'int i;' > conftest.$ac_ext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820 (eval $ac_compile) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; then
3824 case `/usr/bin/file conftest.o` in
3825 *32-bit*)
3826 case $host in
3827 x86_64-*linux*)
3828 LD="${LD-ld} -m elf_i386"
3829 ;;
3830 ppc64-*linux*|powerpc64-*linux*)
3831 LD="${LD-ld} -m elf32ppclinux"
3832 ;;
3833 s390x-*linux*)
3834 LD="${LD-ld} -m elf_s390"
3835 ;;
3836 sparc64-*linux*)
3837 LD="${LD-ld} -m elf32_sparc"
3838 ;;
3839 esac
3840 ;;
3841 *64-bit*)
3842 case $host in
3843 x86_64-*linux*)
3844 LD="${LD-ld} -m elf_x86_64"
3845 ;;
3846 ppc*-*linux*|powerpc*-*linux*)
3847 LD="${LD-ld} -m elf64ppc"
3848 ;;
3849 s390*-*linux*)
3850 LD="${LD-ld} -m elf64_s390"
3851 ;;
3852 sparc*-*linux*)
3853 LD="${LD-ld} -m elf64_sparc"
3854 ;;
3855 esac
3856 ;;
3857 esac
3858 fi
3859 rm -rf conftest*
3860 ;;
3861
3862 *-*-sco3.2v5*)
3863 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3864 SAVE_CFLAGS="$CFLAGS"
3865 CFLAGS="$CFLAGS -belf"
3866 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3867 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3868 if test "${lt_cv_cc_needs_belf+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 lt_cv_cc_needs_belf=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 lt_cv_cc_needs_belf=no
3920 fi
3921 rm -f conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929 fi
3930 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3934 CFLAGS="$SAVE_CFLAGS"
3935 fi
3936 ;;
3937 sparc*-*solaris*)
3938 # Find out which ABI we are using.
3939 echo 'int i;' > conftest.$ac_ext
3940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; then
3945 case `/usr/bin/file conftest.o` in
3946 *64-bit*)
3947 case $lt_cv_prog_gnu_ld in
3948 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3949 *) LD="${LD-ld} -64" ;;
3950 esac
3951 ;;
3952 esac
3953 fi
3954 rm -rf conftest*
3955 ;;
3956
3957
3958 esac
3959
3960 need_locks="$enable_libtool_lock"
3961
3962
3963 ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3970 # On Suns, sometimes $CPP names a directory.
3971 if test -n "$CPP" && test -d "$CPP"; then
3972 CPP=
3973 fi
3974 if test -z "$CPP"; then
3975 if test "${ac_cv_prog_CPP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 # Double quotes because CPP needs to be expanded
3979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3980 do
3981 ac_preproc_ok=false
3982 for ac_c_preproc_warn_flag in '' yes
3983 do
3984 # Use a header file that comes with gcc, so configuring glibc
3985 # with a fresh cross-compiler works.
3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 # <limits.h> exists even on freestanding compilers.
3988 # On the NeXT, cc -E runs the code through the compiler's parser,
3989 # not just through cpp. "Syntax error" is here to catch this case.
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 #ifdef __STDC__
3997 # include <limits.h>
3998 #else
3999 # include <assert.h>
4000 #endif
4001 Syntax error
4002 _ACEOF
4003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null; then
4011 if test -s conftest.err; then
4012 ac_cpp_err=$ac_c_preproc_warn_flag
4013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4014 else
4015 ac_cpp_err=
4016 fi
4017 else
4018 ac_cpp_err=yes
4019 fi
4020 if test -z "$ac_cpp_err"; then
4021 :
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 # Broken: fails on valid input.
4027 continue
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4030
4031 # OK, works on sane cases. Now check whether non-existent headers
4032 # can be detected and how.
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h. */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 #include <ac_nonexistent.h>
4040 _ACEOF
4041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } >/dev/null; then
4049 if test -s conftest.err; then
4050 ac_cpp_err=$ac_c_preproc_warn_flag
4051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052 else
4053 ac_cpp_err=
4054 fi
4055 else
4056 ac_cpp_err=yes
4057 fi
4058 if test -z "$ac_cpp_err"; then
4059 # Broken: success on invalid input.
4060 continue
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 # Passes both tests.
4066 ac_preproc_ok=:
4067 break
4068 fi
4069 rm -f conftest.err conftest.$ac_ext
4070
4071 done
4072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073 rm -f conftest.err conftest.$ac_ext
4074 if $ac_preproc_ok; then
4075 break
4076 fi
4077
4078 done
4079 ac_cv_prog_CPP=$CPP
4080
4081 fi
4082 CPP=$ac_cv_prog_CPP
4083 else
4084 ac_cv_prog_CPP=$CPP
4085 fi
4086 echo "$as_me:$LINENO: result: $CPP" >&5
4087 echo "${ECHO_T}$CPP" >&6
4088 ac_preproc_ok=false
4089 for ac_c_preproc_warn_flag in '' yes
4090 do
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #ifdef __STDC__
4104 # include <limits.h>
4105 #else
4106 # include <assert.h>
4107 #endif
4108 Syntax error
4109 _ACEOF
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4121 else
4122 ac_cpp_err=
4123 fi
4124 else
4125 ac_cpp_err=yes
4126 fi
4127 if test -z "$ac_cpp_err"; then
4128 :
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 # Broken: fails on valid input.
4134 continue
4135 fi
4136 rm -f conftest.err conftest.$ac_ext
4137
4138 # OK, works on sane cases. Now check whether non-existent headers
4139 # can be detected and how.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4147 _ACEOF
4148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null; then
4156 if test -s conftest.err; then
4157 ac_cpp_err=$ac_c_preproc_warn_flag
4158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4159 else
4160 ac_cpp_err=
4161 fi
4162 else
4163 ac_cpp_err=yes
4164 fi
4165 if test -z "$ac_cpp_err"; then
4166 # Broken: success on invalid input.
4167 continue
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 # Passes both tests.
4173 ac_preproc_ok=:
4174 break
4175 fi
4176 rm -f conftest.err conftest.$ac_ext
4177
4178 done
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.err conftest.$ac_ext
4181 if $ac_preproc_ok; then
4182 :
4183 else
4184 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4185 See \`config.log' for more details." >&5
4186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details." >&2;}
4188 { (exit 1); exit 1; }; }
4189 fi
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197
4198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4200 if test "${ac_cv_header_stdc+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <stdlib.h>
4210 #include <stdarg.h>
4211 #include <string.h>
4212 #include <float.h>
4213
4214 int
4215 main ()
4216 {
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -z "$ac_c_werror_flag"
4232 || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_header_stdc=yes
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253 if test $ac_cv_header_stdc = yes; then
4254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 #include <string.h>
4262
4263 _ACEOF
4264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4265 $EGREP "memchr" >/dev/null 2>&1; then
4266 :
4267 else
4268 ac_cv_header_stdc=no
4269 fi
4270 rm -f conftest*
4271
4272 fi
4273
4274 if test $ac_cv_header_stdc = yes; then
4275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 #include <stdlib.h>
4283
4284 _ACEOF
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 $EGREP "free" >/dev/null 2>&1; then
4287 :
4288 else
4289 ac_cv_header_stdc=no
4290 fi
4291 rm -f conftest*
4292
4293 fi
4294
4295 if test $ac_cv_header_stdc = yes; then
4296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4297 if test "$cross_compiling" = yes; then
4298 :
4299 else
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #include <ctype.h>
4307 #if ((' ' & 0x0FF) == 0x020)
4308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4310 #else
4311 # define ISLOWER(c) \
4312 (('a' <= (c) && (c) <= 'i') \
4313 || ('j' <= (c) && (c) <= 'r') \
4314 || ('s' <= (c) && (c) <= 'z'))
4315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4316 #endif
4317
4318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319 int
4320 main ()
4321 {
4322 int i;
4323 for (i = 0; i < 256; i++)
4324 if (XOR (islower (i), ISLOWER (i))
4325 || toupper (i) != TOUPPER (i))
4326 exit(2);
4327 exit (0);
4328 }
4329 _ACEOF
4330 rm -f conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 :
4342 else
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ( exit $ac_status )
4348 ac_cv_header_stdc=no
4349 fi
4350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 fi
4353 fi
4354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4356 if test $ac_cv_header_stdc = yes; then
4357
4358 cat >>confdefs.h <<\_ACEOF
4359 #define STDC_HEADERS 1
4360 _ACEOF
4361
4362 fi
4363
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375 inttypes.h stdint.h unistd.h
4376 do
4377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 echo "$as_me:$LINENO: checking for $ac_header" >&5
4379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h. */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 $ac_includes_default
4390
4391 #include <$ac_header>
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag"
4403 || test ! -s conftest.err'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 eval "$as_ac_Header=yes"
4416 else
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 eval "$as_ac_Header=no"
4421 fi
4422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423 fi
4424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4429 _ACEOF
4430
4431 fi
4432
4433 done
4434
4435
4436
4437 for ac_header in dlfcn.h
4438 do
4439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo "$as_me:$LINENO: checking for $ac_header" >&5
4442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 fi
4446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4448 else
4449 # Is the header compilable?
4450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4459 #include <$ac_header>
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_header_compiler=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_compiler=no
4489 fi
4490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6
4493
4494 # Is the header present?
4495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <$ac_header>
4504 _ACEOF
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } >/dev/null; then
4513 if test -s conftest.err; then
4514 ac_cpp_err=$ac_c_preproc_warn_flag
4515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516 else
4517 ac_cpp_err=
4518 fi
4519 else
4520 ac_cpp_err=yes
4521 fi
4522 if test -z "$ac_cpp_err"; then
4523 ac_header_preproc=yes
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 ac_header_preproc=no
4529 fi
4530 rm -f conftest.err conftest.$ac_ext
4531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4532 echo "${ECHO_T}$ac_header_preproc" >&6
4533
4534 # So? What about this header?
4535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4536 yes:no: )
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4541 ac_header_preproc=yes
4542 ;;
4543 no:yes:* )
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4556 (
4557 cat <<\_ASBOX
4558 ## ------------------------------------- ##
4559 ## Report this to [email protected] ##
4560 ## ------------------------------------- ##
4561 _ASBOX
4562 ) |
4563 sed "s/^/$as_me: WARNING: /" >&2
4564 ;;
4565 esac
4566 echo "$as_me:$LINENO: checking for $ac_header" >&5
4567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 eval "$as_ac_Header=\$ac_header_preproc"
4572 fi
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575
4576 fi
4577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4578 cat >>confdefs.h <<_ACEOF
4579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 _ACEOF
4581
4582 fi
4583
4584 done
4585
4586 ac_ext=cc
4587 ac_cpp='$CXXCPP $CPPFLAGS'
4588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4593 do
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$CXX"; then
4602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617
4618 fi
4619 fi
4620 CXX=$ac_cv_prog_CXX
4621 if test -n "$CXX"; then
4622 echo "$as_me:$LINENO: result: $CXX" >&5
4623 echo "${ECHO_T}$CXX" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629 test -n "$CXX" && break
4630 done
4631 fi
4632 if test -z "$CXX"; then
4633 ac_ct_CXX=$CXX
4634 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4635 do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test -n "$ac_ct_CXX"; then
4644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_prog"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659
4660 fi
4661 fi
4662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4663 if test -n "$ac_ct_CXX"; then
4664 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4665 echo "${ECHO_T}$ac_ct_CXX" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669 fi
4670
4671 test -n "$ac_ct_CXX" && break
4672 done
4673 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4674
4675 CXX=$ac_ct_CXX
4676 fi
4677
4678
4679 # Provide some information about the compiler.
4680 echo "$as_me:$LINENO:" \
4681 "checking for C++ compiler version" >&5
4682 ac_compiler=`set X $ac_compile; echo $2`
4683 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4684 (eval $ac_compiler --version </dev/null >&5) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }
4688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4689 (eval $ac_compiler -v </dev/null >&5) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }
4693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4694 (eval $ac_compiler -V </dev/null >&5) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }
4698
4699 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4700 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4701 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710
4711 int
4712 main ()
4713 {
4714 #ifndef __GNUC__
4715 choke me
4716 #endif
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724 (eval $ac_compile) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_cxx_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_compiler_gnu=yes
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ac_compiler_gnu=no
4750 fi
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4753
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4756 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4757 GXX=`test $ac_compiler_gnu = yes && echo yes`
4758 ac_test_CXXFLAGS=${CXXFLAGS+set}
4759 ac_save_CXXFLAGS=$CXXFLAGS
4760 CXXFLAGS="-g"
4761 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4762 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4763 if test "${ac_cv_prog_cxx_g+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772
4773 int
4774 main ()
4775 {
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_cxx_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_prog_cxx_g=yes
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_cv_prog_cxx_g=no
4809 fi
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4813 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4814 if test "$ac_test_CXXFLAGS" = set; then
4815 CXXFLAGS=$ac_save_CXXFLAGS
4816 elif test $ac_cv_prog_cxx_g = yes; then
4817 if test "$GXX" = yes; then
4818 CXXFLAGS="-g -O2"
4819 else
4820 CXXFLAGS="-g"
4821 fi
4822 else
4823 if test "$GXX" = yes; then
4824 CXXFLAGS="-O2"
4825 else
4826 CXXFLAGS=
4827 fi
4828 fi
4829 for ac_declaration in \
4830 '' \
4831 'extern "C" void std::exit (int) throw (); using std::exit;' \
4832 'extern "C" void std::exit (int); using std::exit;' \
4833 'extern "C" void exit (int) throw ();' \
4834 'extern "C" void exit (int);' \
4835 'void exit (int);'
4836 do
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_declaration
4844 #include <stdlib.h>
4845 int
4846 main ()
4847 {
4848 exit (42);
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_cxx_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 :
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880 continue
4881 fi
4882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 $ac_declaration
4890 int
4891 main ()
4892 {
4893 exit (42);
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_cxx_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 break
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 fi
4926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4927 done
4928 rm -f conftest*
4929 if test -n "$ac_declaration"; then
4930 echo '#ifdef __cplusplus' >>confdefs.h
4931 echo $ac_declaration >>confdefs.h
4932 echo '#endif' >>confdefs.h
4933 fi
4934
4935 ac_ext=cc
4936 ac_cpp='$CXXCPP $CPPFLAGS'
4937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940
4941 depcc="$CXX" am_compiler_list=
4942
4943 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4944 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4945 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4949 # We make a subdir and do the tests there. Otherwise we can end up
4950 # making bogus files that we don't know about and never remove. For
4951 # instance it was reported that on HP-UX the gcc test will end up
4952 # making a dummy file named `D' -- because `-MD' means `put the output
4953 # in D'.
4954 mkdir conftest.dir
4955 # Copy depcomp to subdir because otherwise we won't find it if we're
4956 # using a relative directory.
4957 cp "$am_depcomp" conftest.dir
4958 cd conftest.dir
4959 # We will build objects and dependencies in a subdirectory because
4960 # it helps to detect inapplicable dependency modes. For instance
4961 # both Tru64's cc and ICC support -MD to output dependencies as a
4962 # side effect of compilation, but ICC will put the dependencies in
4963 # the current directory while Tru64 will put them in the object
4964 # directory.
4965 mkdir sub
4966
4967 am_cv_CXX_dependencies_compiler_type=none
4968 if test "$am_compiler_list" = ""; then
4969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4970 fi
4971 for depmode in $am_compiler_list; do
4972 # Setup a source with many dependencies, because some compilers
4973 # like to wrap large dependency lists on column 80 (with \), and
4974 # we should not choose a depcomp mode which is confused by this.
4975 #
4976 # We need to recreate these files for each test, as the compiler may
4977 # overwrite some of them when testing with obscure command lines.
4978 # This happens at least with the AIX C compiler.
4979 : > sub/conftest.c
4980 for i in 1 2 3 4 5 6; do
4981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4983 # Solaris 8's {/usr,}/bin/sh.
4984 touch sub/conftst$i.h
4985 done
4986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4987
4988 case $depmode in
4989 nosideeffect)
4990 # after this tag, mechanisms are not by side-effect, so they'll
4991 # only be used when explicitly requested
4992 if test "x$enable_dependency_tracking" = xyes; then
4993 continue
4994 else
4995 break
4996 fi
4997 ;;
4998 none) break ;;
4999 esac
5000 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5001 # mode. It turns out that the SunPro C++ compiler does not properly
5002 # handle `-M -o', and we need to detect this.
5003 if depmode=$depmode \
5004 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5006 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5007 >/dev/null 2>conftest.err &&
5008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5009 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5011 # icc doesn't choke on unknown options, it will just issue warnings
5012 # or remarks (even with -Werror). So we grep stderr for any message
5013 # that says an option was ignored or not supported.
5014 # When given -MP, icc 7.0 and 7.1 complain thusly:
5015 # icc: Command line warning: ignoring option '-M'; no argument required
5016 # The diagnosis changed in icc 8.0:
5017 # icc: Command line remark: option '-MP' not supported
5018 if (grep 'ignoring option' conftest.err ||
5019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5020 am_cv_CXX_dependencies_compiler_type=$depmode
5021 break
5022 fi
5023 fi
5024 done
5025
5026 cd ..
5027 rm -rf conftest.dir
5028 else
5029 am_cv_CXX_dependencies_compiler_type=none
5030 fi
5031
5032 fi
5033 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5034 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5035 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5036
5037
5038
5039 if
5040 test "x$enable_dependency_tracking" != xno \
5041 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5042 am__fastdepCXX_TRUE=
5043 am__fastdepCXX_FALSE='#'
5044 else
5045 am__fastdepCXX_TRUE='#'
5046 am__fastdepCXX_FALSE=
5047 fi
5048
5049
5050
5051
5052 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5053 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5054 (test "X$CXX" != "Xg++"))) ; then
5055 ac_ext=cc
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5061 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5062 if test -z "$CXXCPP"; then
5063 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 # Double quotes because CXXCPP needs to be expanded
5067 for CXXCPP in "$CXX -E" "/lib/cpp"
5068 do
5069 ac_preproc_ok=false
5070 for ac_cxx_preproc_warn_flag in '' yes
5071 do
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #ifdef __STDC__
5085 # include <limits.h>
5086 #else
5087 # include <assert.h>
5088 #endif
5089 Syntax error
5090 _ACEOF
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_cxx_preproc_warn_flag
5101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5102 else
5103 ac_cpp_err=
5104 fi
5105 else
5106 ac_cpp_err=yes
5107 fi
5108 if test -z "$ac_cpp_err"; then
5109 :
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 # Broken: fails on valid input.
5115 continue
5116 fi
5117 rm -f conftest.err conftest.$ac_ext
5118
5119 # OK, works on sane cases. Now check whether non-existent headers
5120 # can be detected and how.
5121 cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_cxx_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140 else
5141 ac_cpp_err=
5142 fi
5143 else
5144 ac_cpp_err=yes
5145 fi
5146 if test -z "$ac_cpp_err"; then
5147 # Broken: success on invalid input.
5148 continue
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5156 fi
5157 rm -f conftest.err conftest.$ac_ext
5158
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then
5163 break
5164 fi
5165
5166 done
5167 ac_cv_prog_CXXCPP=$CXXCPP
5168
5169 fi
5170 CXXCPP=$ac_cv_prog_CXXCPP
5171 else
5172 ac_cv_prog_CXXCPP=$CXXCPP
5173 fi
5174 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5175 echo "${ECHO_T}$CXXCPP" >&6
5176 ac_preproc_ok=false
5177 for ac_cxx_preproc_warn_flag in '' yes
5178 do
5179 # Use a header file that comes with gcc, so configuring glibc
5180 # with a fresh cross-compiler works.
5181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5182 # <limits.h> exists even on freestanding compilers.
5183 # On the NeXT, cc -E runs the code through the compiler's parser,
5184 # not just through cpp. "Syntax error" is here to catch this case.
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #ifdef __STDC__
5192 # include <limits.h>
5193 #else
5194 # include <assert.h>
5195 #endif
5196 Syntax error
5197 _ACEOF
5198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null; then
5206 if test -s conftest.err; then
5207 ac_cpp_err=$ac_cxx_preproc_warn_flag
5208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5209 else
5210 ac_cpp_err=
5211 fi
5212 else
5213 ac_cpp_err=yes
5214 fi
5215 if test -z "$ac_cpp_err"; then
5216 :
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 # Broken: fails on valid input.
5222 continue
5223 fi
5224 rm -f conftest.err conftest.$ac_ext
5225
5226 # OK, works on sane cases. Now check whether non-existent headers
5227 # can be detected and how.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <ac_nonexistent.h>
5235 _ACEOF
5236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } >/dev/null; then
5244 if test -s conftest.err; then
5245 ac_cpp_err=$ac_cxx_preproc_warn_flag
5246 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5247 else
5248 ac_cpp_err=
5249 fi
5250 else
5251 ac_cpp_err=yes
5252 fi
5253 if test -z "$ac_cpp_err"; then
5254 # Broken: success on invalid input.
5255 continue
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 # Passes both tests.
5261 ac_preproc_ok=:
5262 break
5263 fi
5264 rm -f conftest.err conftest.$ac_ext
5265
5266 done
5267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5268 rm -f conftest.err conftest.$ac_ext
5269 if $ac_preproc_ok; then
5270 :
5271 else
5272 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5273 See \`config.log' for more details." >&5
5274 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5275 See \`config.log' for more details." >&2;}
5276 { (exit 1); exit 1; }; }
5277 fi
5278
5279 ac_ext=cc
5280 ac_cpp='$CXXCPP $CPPFLAGS'
5281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5284
5285 fi
5286
5287
5288 ac_ext=f
5289 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5290 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5292 if test -n "$ac_tool_prefix"; then
5293 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5294 do
5295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_prog_F77+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 if test -n "$F77"; then
5303 ac_cv_prog_F77="$F77" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316 done
5317 done
5318
5319 fi
5320 fi
5321 F77=$ac_cv_prog_F77
5322 if test -n "$F77"; then
5323 echo "$as_me:$LINENO: result: $F77" >&5
5324 echo "${ECHO_T}$F77" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328 fi
5329
5330 test -n "$F77" && break
5331 done
5332 fi
5333 if test -z "$F77"; then
5334 ac_ct_F77=$F77
5335 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5336 do
5337 # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy $ac_prog; ac_word=$2
5339 echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 if test -n "$ac_ct_F77"; then
5345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_ac_ct_F77="$ac_prog"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360
5361 fi
5362 fi
5363 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5364 if test -n "$ac_ct_F77"; then
5365 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5366 echo "${ECHO_T}$ac_ct_F77" >&6
5367 else
5368 echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6
5370 fi
5371
5372 test -n "$ac_ct_F77" && break
5373 done
5374
5375 F77=$ac_ct_F77
5376 fi
5377
5378
5379 # Provide some information about the compiler.
5380 echo "$as_me:5380:" \
5381 "checking for Fortran 77 compiler version" >&5
5382 ac_compiler=`set X $ac_compile; echo $2`
5383 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5384 (eval $ac_compiler --version </dev/null >&5) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }
5388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5389 (eval $ac_compiler -v </dev/null >&5) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }
5393 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5394 (eval $ac_compiler -V </dev/null >&5) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }
5398 rm -f a.out
5399
5400 # If we don't use `.F' as extension, the preprocessor is not run on the
5401 # input file. (Note that this only needs to work for GNU compilers.)
5402 ac_save_ext=$ac_ext
5403 ac_ext=F
5404 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5405 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5406 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 cat >conftest.$ac_ext <<_ACEOF
5410 program main
5411 #ifndef __GNUC__
5412 choke me
5413 #endif
5414
5415 end
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_f77_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_compiler_gnu=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_compiler_gnu=no
5445 fi
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5448
5449 fi
5450 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5451 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5452 ac_ext=$ac_save_ext
5453 ac_test_FFLAGS=${FFLAGS+set}
5454 ac_save_FFLAGS=$FFLAGS
5455 FFLAGS=
5456 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5457 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5458 if test "${ac_cv_prog_f77_g+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 FFLAGS=-g
5462 cat >conftest.$ac_ext <<_ACEOF
5463 program main
5464
5465 end
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -z "$ac_f77_werror_flag"
5477 || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_prog_f77_g=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_cv_prog_f77_g=no
5495 fi
5496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5497
5498 fi
5499 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5500 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5501 if test "$ac_test_FFLAGS" = set; then
5502 FFLAGS=$ac_save_FFLAGS
5503 elif test $ac_cv_prog_f77_g = yes; then
5504 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5505 FFLAGS="-g -O2"
5506 else
5507 FFLAGS="-g"
5508 fi
5509 else
5510 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5511 FFLAGS="-O2"
5512 else
5513 FFLAGS=
5514 fi
5515 fi
5516
5517 G77=`test $ac_compiler_gnu = yes && echo yes`
5518 ac_ext=c
5519 ac_cpp='$CPP $CPPFLAGS'
5520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523
5524
5525
5526 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5527
5528 # find the maximum length of command line arguments
5529 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5530 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5531 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 i=0
5535 teststring="ABCD"
5536
5537 case $build_os in
5538 msdosdjgpp*)
5539 # On DJGPP, this test can blow up pretty badly due to problems in libc
5540 # (any single argument exceeding 2000 bytes causes a buffer overrun
5541 # during glob expansion). Even if it were fixed, the result of this
5542 # check would be larger than it should be.
5543 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5544 ;;
5545
5546 gnu*)
5547 # Under GNU Hurd, this test is not required because there is
5548 # no limit to the length of command line arguments.
5549 # Libtool will interpret -1 as no limit whatsoever
5550 lt_cv_sys_max_cmd_len=-1;
5551 ;;
5552
5553 cygwin* | mingw*)
5554 # On Win9x/ME, this test blows up -- it succeeds, but takes
5555 # about 5 minutes as the teststring grows exponentially.
5556 # Worse, since 9x/ME are not pre-emptively multitasking,
5557 # you end up with a "frozen" computer, even though with patience
5558 # the test eventually succeeds (with a max line length of 256k).
5559 # Instead, let's just punt: use the minimum linelength reported by
5560 # all of the supported platforms: 8192 (on NT/2K/XP).
5561 lt_cv_sys_max_cmd_len=8192;
5562 ;;
5563
5564 amigaos*)
5565 # On AmigaOS with pdksh, this test takes hours, literally.
5566 # So we just punt and use a minimum line length of 8192.
5567 lt_cv_sys_max_cmd_len=8192;
5568 ;;
5569
5570 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5571 # This has been around since 386BSD, at least. Likely further.
5572 if test -x /sbin/sysctl; then
5573 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5574 elif test -x /usr/sbin/sysctl; then
5575 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5576 else
5577 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5578 fi
5579 # And add a safety zone
5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5582 ;;
5583
5584 interix*)
5585 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5586 lt_cv_sys_max_cmd_len=196608
5587 ;;
5588
5589 osf*)
5590 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5591 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5592 # nice to cause kernel panics so lets avoid the loop below.
5593 # First set a reasonable default.
5594 lt_cv_sys_max_cmd_len=16384
5595 #
5596 if test -x /sbin/sysconfig; then
5597 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5598 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5599 esac
5600 fi
5601 ;;
5602 sco3.2v5*)
5603 lt_cv_sys_max_cmd_len=102400
5604 ;;
5605 sysv5* | sco5v6* | sysv4.2uw2*)
5606 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5607 if test -n "$kargmax"; then
5608 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5609 else
5610 lt_cv_sys_max_cmd_len=32768
5611 fi
5612 ;;
5613 *)
5614 # If test is not a shell built-in, we'll probably end up computing a
5615 # maximum length that is only half of the actual maximum length, but
5616 # we can't tell.
5617 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5618 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5619 = "XX$teststring") >/dev/null 2>&1 &&
5620 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5621 lt_cv_sys_max_cmd_len=$new_result &&
5622 test $i != 17 # 1/2 MB should be enough
5623 do
5624 i=`expr $i + 1`
5625 teststring=$teststring$teststring
5626 done
5627 teststring=
5628 # Add a significant safety factor because C++ compilers can tack on massive
5629 # amounts of additional arguments before passing them to the linker.
5630 # It appears as though 1/2 is a usable value.
5631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5632 ;;
5633 esac
5634
5635 fi
5636
5637 if test -n $lt_cv_sys_max_cmd_len ; then
5638 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5639 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5640 else
5641 echo "$as_me:$LINENO: result: none" >&5
5642 echo "${ECHO_T}none" >&6
5643 fi
5644
5645
5646
5647
5648 # Check for command to grab the raw symbol name followed by C symbol from nm.
5649 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5650 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5651 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654
5655 # These are sane defaults that work on at least a few old systems.
5656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5657
5658 # Character class describing NM global symbol codes.
5659 symcode='[BCDEGRST]'
5660
5661 # Regexp to match symbols that can be accessed directly from C.
5662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5663
5664 # Transform an extracted symbol line into a proper C declaration
5665 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5666
5667 # Transform an extracted symbol line into symbol name and symbol address
5668 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'"
5669
5670 # Define system-specific variables.
5671 case $host_os in
5672 aix*)
5673 symcode='[BCDT]'
5674 ;;
5675 cygwin* | mingw* | pw32*)
5676 symcode='[ABCDGISTW]'
5677 ;;
5678 hpux*) # Its linker distinguishes data from code symbols
5679 if test "$host_cpu" = ia64; then
5680 symcode='[ABCDEGRST]'
5681 fi
5682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5683 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'"
5684 ;;
5685 linux*)
5686 if test "$host_cpu" = ia64; then
5687 symcode='[ABCDGIRSTW]'
5688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5689 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'"
5690 fi
5691 ;;
5692 irix* | nonstopux*)
5693 symcode='[BCDEGRST]'
5694 ;;
5695 osf*)
5696 symcode='[BCDEGQRST]'
5697 ;;
5698 solaris*)
5699 symcode='[BDRT]'
5700 ;;
5701 sco3.2v5*)
5702 symcode='[DT]'
5703 ;;
5704 sysv4.2uw2*)
5705 symcode='[DT]'
5706 ;;
5707 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5708 symcode='[ABDT]'
5709 ;;
5710 sysv4)
5711 symcode='[DFNSTU]'
5712 ;;
5713 esac
5714
5715 # Handle CRLF in mingw tool chain
5716 opt_cr=
5717 case $build_os in
5718 mingw*)
5719 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5720 ;;
5721 esac
5722
5723 # If we're using GNU nm, then use its standard symbol codes.
5724 case `$NM -V 2>&1` in
5725 *GNU* | *'with BFD'*)
5726 symcode='[ABCDGIRSTW]' ;;
5727 esac
5728
5729 # Try without a prefix undercore, then with it.
5730 for ac_symprfx in "" "_"; do
5731
5732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5733 symxfrm="\\1 $ac_symprfx\\2 \\2"
5734
5735 # Write the raw and C identifiers.
5736 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5737
5738 # Check to see that the pipe works correctly.
5739 pipe_works=no
5740
5741 rm -f conftest*
5742 cat > conftest.$ac_ext <<EOF
5743 #ifdef __cplusplus
5744 extern "C" {
5745 #endif
5746 char nm_test_var;
5747 void nm_test_func(){}
5748 #ifdef __cplusplus
5749 }
5750 #endif
5751 int main(){nm_test_var='a';nm_test_func();return(0);}
5752 EOF
5753
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; then
5759 # Now try to grab the symbols.
5760 nlist=conftest.nm
5761 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5762 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && test -s "$nlist"; then
5766 # Try sorting and uniquifying the output.
5767 if sort "$nlist" | uniq > "$nlist"T; then
5768 mv -f "$nlist"T "$nlist"
5769 else
5770 rm -f "$nlist"T
5771 fi
5772
5773 # Make sure that we snagged all the symbols we need.
5774 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5775 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5776 cat <<EOF > conftest.$ac_ext
5777 #ifdef __cplusplus
5778 extern "C" {
5779 #endif
5780
5781 EOF
5782 # Now generate the symbol file.
5783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5784
5785 cat <<EOF >> conftest.$ac_ext
5786 #if defined (__STDC__) && __STDC__
5787 # define lt_ptr_t void *
5788 #else
5789 # define lt_ptr_t char *
5790 # define const
5791 #endif
5792
5793 /* The mapping between symbol names and symbols. */
5794 const struct {
5795 const char *name;
5796 lt_ptr_t address;
5797 }
5798 lt_preloaded_symbols[] =
5799 {
5800 EOF
5801 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5802 cat <<\EOF >> conftest.$ac_ext
5803 {0, (lt_ptr_t) 0}
5804 };
5805
5806 #ifdef __cplusplus
5807 }
5808 #endif
5809 EOF
5810 # Now try linking the two files.
5811 mv conftest.$ac_objext conftstm.$ac_objext
5812 lt_save_LIBS="$LIBS"
5813 lt_save_CFLAGS="$CFLAGS"
5814 LIBS="conftstm.$ac_objext"
5815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5821 pipe_works=yes
5822 fi
5823 LIBS="$lt_save_LIBS"
5824 CFLAGS="$lt_save_CFLAGS"
5825 else
5826 echo "cannot find nm_test_func in $nlist" >&5
5827 fi
5828 else
5829 echo "cannot find nm_test_var in $nlist" >&5
5830 fi
5831 else
5832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5833 fi
5834 else
5835 echo "$progname: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 fi
5838 rm -f conftest* conftst*
5839
5840 # Do not use the global_symbol_pipe unless it works.
5841 if test "$pipe_works" = yes; then
5842 break
5843 else
5844 lt_cv_sys_global_symbol_pipe=
5845 fi
5846 done
5847
5848 fi
5849
5850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5851 lt_cv_sys_global_symbol_to_cdecl=
5852 fi
5853 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5854 echo "$as_me:$LINENO: result: failed" >&5
5855 echo "${ECHO_T}failed" >&6
5856 else
5857 echo "$as_me:$LINENO: result: ok" >&5
5858 echo "${ECHO_T}ok" >&6
5859 fi
5860
5861 echo "$as_me:$LINENO: checking for objdir" >&5
5862 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5863 if test "${lt_cv_objdir+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 rm -f .libs 2>/dev/null
5867 mkdir .libs 2>/dev/null
5868 if test -d .libs; then
5869 lt_cv_objdir=.libs
5870 else
5871 # MS-DOS does not allow filenames that begin with a dot.
5872 lt_cv_objdir=_libs
5873 fi
5874 rmdir .libs 2>/dev/null
5875 fi
5876 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5877 echo "${ECHO_T}$lt_cv_objdir" >&6
5878 objdir=$lt_cv_objdir
5879
5880
5881
5882
5883
5884 case $host_os in
5885 aix3*)
5886 # AIX sometimes has problems with the GCC collect2 program. For some
5887 # reason, if we set the COLLECT_NAMES environment variable, the problems
5888 # vanish in a puff of smoke.
5889 if test "X${COLLECT_NAMES+set}" != Xset; then
5890 COLLECT_NAMES=
5891 export COLLECT_NAMES
5892 fi
5893 ;;
5894 esac
5895
5896 # Sed substitution that helps us do robust quoting. It backslashifies
5897 # metacharacters that are still active within double-quoted strings.
5898 Xsed='sed -e 1s/^X//'
5899 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5900
5901 # Same as above, but do not quote variable references.
5902 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5903
5904 # Sed substitution to delay expansion of an escaped shell variable in a
5905 # double_quote_subst'ed string.
5906 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5907
5908 # Sed substitution to avoid accidental globbing in evaled expressions
5909 no_glob_subst='s/\*/\\\*/g'
5910
5911 # Constants:
5912 rm="rm -f"
5913
5914 # Global variables:
5915 default_ofile=libtool
5916 can_build_shared=yes
5917
5918 # All known linkers require a `.a' archive for static linking (except MSVC,
5919 # which needs '.lib').
5920 libext=a
5921 ltmain="$ac_aux_dir/ltmain.sh"
5922 ofile="$default_ofile"
5923 with_gnu_ld="$lt_cv_prog_gnu_ld"
5924
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}ar; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_AR+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 if test -n "$AR"; then
5934 ac_cv_prog_AR="$AR" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_AR="${ac_tool_prefix}ar"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947 done
5948 done
5949
5950 fi
5951 fi
5952 AR=$ac_cv_prog_AR
5953 if test -n "$AR"; then
5954 echo "$as_me:$LINENO: result: $AR" >&5
5955 echo "${ECHO_T}$AR" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5959 fi
5960
5961 fi
5962 if test -z "$ac_cv_prog_AR"; then
5963 ac_ct_AR=$AR
5964 # Extract the first word of "ar", so it can be a program name with args.
5965 set dummy ar; ac_word=$2
5966 echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 if test -n "$ac_ct_AR"; then
5972 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_AR="ar"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987
5988 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5989 fi
5990 fi
5991 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5992 if test -n "$ac_ct_AR"; then
5993 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5994 echo "${ECHO_T}$ac_ct_AR" >&6
5995 else
5996 echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
5998 fi
5999
6000 AR=$ac_ct_AR
6001 else
6002 AR="$ac_cv_prog_AR"
6003 fi
6004
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6008 echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010 if test "${ac_cv_prog_RANLIB+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 if test -n "$RANLIB"; then
6014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027 done
6028 done
6029
6030 fi
6031 fi
6032 RANLIB=$ac_cv_prog_RANLIB
6033 if test -n "$RANLIB"; then
6034 echo "$as_me:$LINENO: result: $RANLIB" >&5
6035 echo "${ECHO_T}$RANLIB" >&6
6036 else
6037 echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6
6039 fi
6040
6041 fi
6042 if test -z "$ac_cv_prog_RANLIB"; then
6043 ac_ct_RANLIB=$RANLIB
6044 # Extract the first word of "ranlib", so it can be a program name with args.
6045 set dummy ranlib; ac_word=$2
6046 echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 if test -n "$ac_ct_RANLIB"; then
6052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_RANLIB="ranlib"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065 done
6066 done
6067
6068 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6069 fi
6070 fi
6071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6072 if test -n "$ac_ct_RANLIB"; then
6073 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6074 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6075 else
6076 echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6078 fi
6079
6080 RANLIB=$ac_ct_RANLIB
6081 else
6082 RANLIB="$ac_cv_prog_RANLIB"
6083 fi
6084
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}strip; ac_word=$2
6088 echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090 if test "${ac_cv_prog_STRIP+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 if test -n "$STRIP"; then
6094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109
6110 fi
6111 fi
6112 STRIP=$ac_cv_prog_STRIP
6113 if test -n "$STRIP"; then
6114 echo "$as_me:$LINENO: result: $STRIP" >&5
6115 echo "${ECHO_T}$STRIP" >&6
6116 else
6117 echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6119 fi
6120
6121 fi
6122 if test -z "$ac_cv_prog_STRIP"; then
6123 ac_ct_STRIP=$STRIP
6124 # Extract the first word of "strip", so it can be a program name with args.
6125 set dummy strip; ac_word=$2
6126 echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 if test -n "$ac_ct_STRIP"; then
6132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_ac_ct_STRIP="strip"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147
6148 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6149 fi
6150 fi
6151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6152 if test -n "$ac_ct_STRIP"; then
6153 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6154 echo "${ECHO_T}$ac_ct_STRIP" >&6
6155 else
6156 echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6
6158 fi
6159
6160 STRIP=$ac_ct_STRIP
6161 else
6162 STRIP="$ac_cv_prog_STRIP"
6163 fi
6164
6165
6166 old_CC="$CC"
6167 old_CFLAGS="$CFLAGS"
6168
6169 # Set sane defaults for various variables
6170 test -z "$AR" && AR=ar
6171 test -z "$AR_FLAGS" && AR_FLAGS=cru
6172 test -z "$AS" && AS=as
6173 test -z "$CC" && CC=cc
6174 test -z "$LTCC" && LTCC=$CC
6175 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6176 test -z "$DLLTOOL" && DLLTOOL=dlltool
6177 test -z "$LD" && LD=ld
6178 test -z "$LN_S" && LN_S="ln -s"
6179 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6180 test -z "$NM" && NM=nm
6181 test -z "$SED" && SED=sed
6182 test -z "$OBJDUMP" && OBJDUMP=objdump
6183 test -z "$RANLIB" && RANLIB=:
6184 test -z "$STRIP" && STRIP=:
6185 test -z "$ac_objext" && ac_objext=o
6186
6187 # Determine commands to create old-style static archives.
6188 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6189 old_postinstall_cmds='chmod 644 $oldlib'
6190 old_postuninstall_cmds=
6191
6192 if test -n "$RANLIB"; then
6193 case $host_os in
6194 openbsd*)
6195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6196 ;;
6197 *)
6198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6199 ;;
6200 esac
6201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6202 fi
6203
6204 for cc_temp in $compiler""; do
6205 case $cc_temp in
6206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6208 \-*) ;;
6209 *) break;;
6210 esac
6211 done
6212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6213
6214
6215 # Only perform the check for file, if the check method requires it
6216 case $deplibs_check_method in
6217 file_magic*)
6218 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6219 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6220 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 case $MAGIC_CMD in
6225 [\\/*] | ?:[\\/]*)
6226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6227 ;;
6228 *)
6229 lt_save_MAGIC_CMD="$MAGIC_CMD"
6230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6231 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6232 for ac_dir in $ac_dummy; do
6233 IFS="$lt_save_ifs"
6234 test -z "$ac_dir" && ac_dir=.
6235 if test -f $ac_dir/${ac_tool_prefix}file; then
6236 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6237 if test -n "$file_magic_test_file"; then
6238 case $deplibs_check_method in
6239 "file_magic "*)
6240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6243 $EGREP "$file_magic_regex" > /dev/null; then
6244 :
6245 else
6246 cat <<EOF 1>&2
6247
6248 *** Warning: the command libtool uses to detect shared libraries,
6249 *** $file_magic_cmd, produces output that libtool cannot recognize.
6250 *** The result is that libtool may fail to recognize shared libraries
6251 *** as such. This will affect the creation of libtool libraries that
6252 *** depend on shared libraries, but programs linked with such libtool
6253 *** libraries will work regardless of this problem. Nevertheless, you
6254 *** may want to report the problem to your system manager and/or to
6255 *** [email protected]
6256
6257 EOF
6258 fi ;;
6259 esac
6260 fi
6261 break
6262 fi
6263 done
6264 IFS="$lt_save_ifs"
6265 MAGIC_CMD="$lt_save_MAGIC_CMD"
6266 ;;
6267 esac
6268 fi
6269
6270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6271 if test -n "$MAGIC_CMD"; then
6272 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6273 echo "${ECHO_T}$MAGIC_CMD" >&6
6274 else
6275 echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6
6277 fi
6278
6279 if test -z "$lt_cv_path_MAGIC_CMD"; then
6280 if test -n "$ac_tool_prefix"; then
6281 echo "$as_me:$LINENO: checking for file" >&5
6282 echo $ECHO_N "checking for file... $ECHO_C" >&6
6283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 case $MAGIC_CMD in
6287 [\\/*] | ?:[\\/]*)
6288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6289 ;;
6290 *)
6291 lt_save_MAGIC_CMD="$MAGIC_CMD"
6292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6294 for ac_dir in $ac_dummy; do
6295 IFS="$lt_save_ifs"
6296 test -z "$ac_dir" && ac_dir=.
6297 if test -f $ac_dir/file; then
6298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6299 if test -n "$file_magic_test_file"; then
6300 case $deplibs_check_method in
6301 "file_magic "*)
6302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6305 $EGREP "$file_magic_regex" > /dev/null; then
6306 :
6307 else
6308 cat <<EOF 1>&2
6309
6310 *** Warning: the command libtool uses to detect shared libraries,
6311 *** $file_magic_cmd, produces output that libtool cannot recognize.
6312 *** The result is that libtool may fail to recognize shared libraries
6313 *** as such. This will affect the creation of libtool libraries that
6314 *** depend on shared libraries, but programs linked with such libtool
6315 *** libraries will work regardless of this problem. Nevertheless, you
6316 *** may want to report the problem to your system manager and/or to
6317 *** [email protected]
6318
6319 EOF
6320 fi ;;
6321 esac
6322 fi
6323 break
6324 fi
6325 done
6326 IFS="$lt_save_ifs"
6327 MAGIC_CMD="$lt_save_MAGIC_CMD"
6328 ;;
6329 esac
6330 fi
6331
6332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6333 if test -n "$MAGIC_CMD"; then
6334 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6335 echo "${ECHO_T}$MAGIC_CMD" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6
6339 fi
6340
6341 else
6342 MAGIC_CMD=:
6343 fi
6344 fi
6345
6346 fi
6347 ;;
6348 esac
6349
6350 enable_dlopen=no
6351 enable_win32_dll=no
6352
6353 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6354 if test "${enable_libtool_lock+set}" = set; then
6355 enableval="$enable_libtool_lock"
6356
6357 fi;
6358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6359
6360
6361 # Check whether --with-pic or --without-pic was given.
6362 if test "${with_pic+set}" = set; then
6363 withval="$with_pic"
6364 pic_mode="$withval"
6365 else
6366 pic_mode=default
6367 fi;
6368 test -z "$pic_mode" && pic_mode=default
6369
6370 # Use C for the default configuration in the libtool script
6371 tagname=
6372 lt_save_CC="$CC"
6373 ac_ext=c
6374 ac_cpp='$CPP $CPPFLAGS'
6375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378
6379
6380 # Source file extension for C test sources.
6381 ac_ext=c
6382
6383 # Object file extension for compiled C test sources.
6384 objext=o
6385 objext=$objext
6386
6387 # Code to be used in simple compile tests
6388 lt_simple_compile_test_code="int some_variable = 0;\n"
6389
6390 # Code to be used in simple link tests
6391 lt_simple_link_test_code='int main(){return(0);}\n'
6392
6393
6394 # If no C compiler was specified, use CC.
6395 LTCC=${LTCC-"$CC"}
6396
6397 # If no C compiler flags were specified, use CFLAGS.
6398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6399
6400 # Allow CC to be a program name with arguments.
6401 compiler=$CC
6402
6403
6404 # save warnings/boilerplate of simple test code
6405 ac_outfile=conftest.$ac_objext
6406 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6408 _lt_compiler_boilerplate=`cat conftest.err`
6409 $rm conftest*
6410
6411 ac_outfile=conftest.$ac_objext
6412 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6414 _lt_linker_boilerplate=`cat conftest.err`
6415 $rm conftest*
6416
6417
6418
6419 lt_prog_compiler_no_builtin_flag=
6420
6421 if test "$GCC" = yes; then
6422 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6423
6424
6425 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6426 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6427 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430 lt_cv_prog_compiler_rtti_exceptions=no
6431 ac_outfile=conftest.$ac_objext
6432 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6433 lt_compiler_flag="-fno-rtti -fno-exceptions"
6434 # Insert the option either (1) after the last *FLAGS variable, or
6435 # (2) before a word containing "conftest.", or (3) at the end.
6436 # Note that $ac_compile itself does not contain backslashes and begins
6437 # with a dollar sign (not a hyphen), so the echo should work correctly.
6438 # The option is referenced via a variable to avoid confusing sed.
6439 lt_compile=`echo "$ac_compile" | $SED \
6440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6442 -e 's:$: $lt_compiler_flag:'`
6443 (eval echo "\"\$as_me:6443: $lt_compile\"" >&5)
6444 (eval "$lt_compile" 2>conftest.err)
6445 ac_status=$?
6446 cat conftest.err >&5
6447 echo "$as_me:6447: \$? = $ac_status" >&5
6448 if (exit $ac_status) && test -s "$ac_outfile"; then
6449 # The compiler can only warn and ignore the option if not recognized
6450 # So say no if there are warnings other than the usual output.
6451 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6454 lt_cv_prog_compiler_rtti_exceptions=yes
6455 fi
6456 fi
6457 $rm conftest*
6458
6459 fi
6460 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6461 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6462
6463 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6464 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6465 else
6466 :
6467 fi
6468
6469 fi
6470
6471 lt_prog_compiler_wl=
6472 lt_prog_compiler_pic=
6473 lt_prog_compiler_static=
6474
6475 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6476 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6477
6478 if test "$GCC" = yes; then
6479 lt_prog_compiler_wl='-Wl,'
6480 lt_prog_compiler_static='-static'
6481
6482 case $host_os in
6483 aix*)
6484 # All AIX code is PIC.
6485 if test "$host_cpu" = ia64; then
6486 # AIX 5 now supports IA64 processor
6487 lt_prog_compiler_static='-Bstatic'
6488 fi
6489 ;;
6490
6491 amigaos*)
6492 # FIXME: we need at least 68020 code to build shared libraries, but
6493 # adding the `-m68020' flag to GCC prevents building anything better,
6494 # like `-m68040'.
6495 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6496 ;;
6497
6498 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6499 # PIC is the default for these OSes.
6500 ;;
6501
6502 mingw* | pw32* | os2*)
6503 # This hack is so that the source file can tell whether it is being
6504 # built for inclusion in a dll (and should export symbols for example).
6505 lt_prog_compiler_pic='-DDLL_EXPORT'
6506 ;;
6507
6508 darwin* | rhapsody*)
6509 # PIC is the default on this platform
6510 # Common symbols not allowed in MH_DYLIB files
6511 lt_prog_compiler_pic='-fno-common'
6512 ;;
6513
6514 interix3*)
6515 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6516 # Instead, we relocate shared libraries at runtime.
6517 ;;
6518
6519 msdosdjgpp*)
6520 # Just because we use GCC doesn't mean we suddenly get shared libraries
6521 # on systems that don't support them.
6522 lt_prog_compiler_can_build_shared=no
6523 enable_shared=no
6524 ;;
6525
6526 sysv4*MP*)
6527 if test -d /usr/nec; then
6528 lt_prog_compiler_pic=-Kconform_pic
6529 fi
6530 ;;
6531
6532 hpux*)
6533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6534 # not for PA HP-UX.
6535 case $host_cpu in
6536 hppa*64*|ia64*)
6537 # +Z the default
6538 ;;
6539 *)
6540 lt_prog_compiler_pic='-fPIC'
6541 ;;
6542 esac
6543 ;;
6544
6545 *)
6546 lt_prog_compiler_pic='-fPIC'
6547 ;;
6548 esac
6549 else
6550 # PORTME Check for flag to pass linker flags through the system compiler.
6551 case $host_os in
6552 aix*)
6553 lt_prog_compiler_wl='-Wl,'
6554 if test "$host_cpu" = ia64; then
6555 # AIX 5 now supports IA64 processor
6556 lt_prog_compiler_static='-Bstatic'
6557 else
6558 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6559 fi
6560 ;;
6561 darwin*)
6562 # PIC is the default on this platform
6563 # Common symbols not allowed in MH_DYLIB files
6564 case $cc_basename in
6565 xlc*)
6566 lt_prog_compiler_pic='-qnocommon'
6567 lt_prog_compiler_wl='-Wl,'
6568 ;;
6569 esac
6570 ;;
6571
6572 mingw* | pw32* | os2*)
6573 # This hack is so that the source file can tell whether it is being
6574 # built for inclusion in a dll (and should export symbols for example).
6575 lt_prog_compiler_pic='-DDLL_EXPORT'
6576 ;;
6577
6578 hpux9* | hpux10* | hpux11*)
6579 lt_prog_compiler_wl='-Wl,'
6580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6581 # not for PA HP-UX.
6582 case $host_cpu in
6583 hppa*64*|ia64*)
6584 # +Z the default
6585 ;;
6586 *)
6587 lt_prog_compiler_pic='+Z'
6588 ;;
6589 esac
6590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6591 lt_prog_compiler_static='${wl}-a ${wl}archive'
6592 ;;
6593
6594 irix5* | irix6* | nonstopux*)
6595 lt_prog_compiler_wl='-Wl,'
6596 # PIC (with -KPIC) is the default.
6597 lt_prog_compiler_static='-non_shared'
6598 ;;
6599
6600 newsos6)
6601 lt_prog_compiler_pic='-KPIC'
6602 lt_prog_compiler_static='-Bstatic'
6603 ;;
6604
6605 linux*)
6606 case $cc_basename in
6607 icc* | ecc*)
6608 lt_prog_compiler_wl='-Wl,'
6609 lt_prog_compiler_pic='-KPIC'
6610 lt_prog_compiler_static='-static'
6611 ;;
6612 pgcc* | pgf77* | pgf90* | pgf95*)
6613 # Portland Group compilers (*not* the Pentium gcc compiler,
6614 # which looks to be a dead project)
6615 lt_prog_compiler_wl='-Wl,'
6616 lt_prog_compiler_pic='-fpic'
6617 lt_prog_compiler_static='-Bstatic'
6618 ;;
6619 ccc*)
6620 lt_prog_compiler_wl='-Wl,'
6621 # All Alpha code is PIC.
6622 lt_prog_compiler_static='-non_shared'
6623 ;;
6624 esac
6625 ;;
6626
6627 osf3* | osf4* | osf5*)
6628 lt_prog_compiler_wl='-Wl,'
6629 # All OSF/1 code is PIC.
6630 lt_prog_compiler_static='-non_shared'
6631 ;;
6632
6633 solaris*)
6634 lt_prog_compiler_pic='-KPIC'
6635 lt_prog_compiler_static='-Bstatic'
6636 case $cc_basename in
6637 f77* | f90* | f95*)
6638 lt_prog_compiler_wl='-Qoption ld ';;
6639 *)
6640 lt_prog_compiler_wl='-Wl,';;
6641 esac
6642 ;;
6643
6644 sunos4*)
6645 lt_prog_compiler_wl='-Qoption ld '
6646 lt_prog_compiler_pic='-PIC'
6647 lt_prog_compiler_static='-Bstatic'
6648 ;;
6649
6650 sysv4 | sysv4.2uw2* | sysv4.3*)
6651 lt_prog_compiler_wl='-Wl,'
6652 lt_prog_compiler_pic='-KPIC'
6653 lt_prog_compiler_static='-Bstatic'
6654 ;;
6655
6656 sysv4*MP*)
6657 if test -d /usr/nec ;then
6658 lt_prog_compiler_pic='-Kconform_pic'
6659 lt_prog_compiler_static='-Bstatic'
6660 fi
6661 ;;
6662
6663 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6664 lt_prog_compiler_wl='-Wl,'
6665 lt_prog_compiler_pic='-KPIC'
6666 lt_prog_compiler_static='-Bstatic'
6667 ;;
6668
6669 unicos*)
6670 lt_prog_compiler_wl='-Wl,'
6671 lt_prog_compiler_can_build_shared=no
6672 ;;
6673
6674 uts4*)
6675 lt_prog_compiler_pic='-pic'
6676 lt_prog_compiler_static='-Bstatic'
6677 ;;
6678
6679 *)
6680 lt_prog_compiler_can_build_shared=no
6681 ;;
6682 esac
6683 fi
6684
6685 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6687
6688 #
6689 # Check to make sure the PIC flag actually works.
6690 #
6691 if test -n "$lt_prog_compiler_pic"; then
6692
6693 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6695 if test "${lt_prog_compiler_pic_works+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 lt_prog_compiler_pic_works=no
6699 ac_outfile=conftest.$ac_objext
6700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6701 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6702 # Insert the option either (1) after the last *FLAGS variable, or
6703 # (2) before a word containing "conftest.", or (3) at the end.
6704 # Note that $ac_compile itself does not contain backslashes and begins
6705 # with a dollar sign (not a hyphen), so the echo should work correctly.
6706 # The option is referenced via a variable to avoid confusing sed.
6707 lt_compile=`echo "$ac_compile" | $SED \
6708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710 -e 's:$: $lt_compiler_flag:'`
6711 (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712 (eval "$lt_compile" 2>conftest.err)
6713 ac_status=$?
6714 cat conftest.err >&5
6715 echo "$as_me:6715: \$? = $ac_status" >&5
6716 if (exit $ac_status) && test -s "$ac_outfile"; then
6717 # The compiler can only warn and ignore the option if not recognized
6718 # So say no if there are warnings other than the usual output.
6719 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6722 lt_prog_compiler_pic_works=yes
6723 fi
6724 fi
6725 $rm conftest*
6726
6727 fi
6728 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6729 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6730
6731 if test x"$lt_prog_compiler_pic_works" = xyes; then
6732 case $lt_prog_compiler_pic in
6733 "" | " "*) ;;
6734 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6735 esac
6736 else
6737 lt_prog_compiler_pic=
6738 lt_prog_compiler_can_build_shared=no
6739 fi
6740
6741 fi
6742 case $host_os in
6743 # For platforms which do not support PIC, -DPIC is meaningless:
6744 *djgpp*)
6745 lt_prog_compiler_pic=
6746 ;;
6747 *)
6748 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6749 ;;
6750 esac
6751
6752 #
6753 # Check to make sure the static flag actually works.
6754 #
6755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6756 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6758 if test "${lt_prog_compiler_static_works+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 lt_prog_compiler_static_works=no
6762 save_LDFLAGS="$LDFLAGS"
6763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6764 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6766 # The linker can only warn and ignore the option if not recognized
6767 # So say no if there are warnings
6768 if test -s conftest.err; then
6769 # Append any errors to the config.log.
6770 cat conftest.err 1>&5
6771 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6773 if diff conftest.exp conftest.er2 >/dev/null; then
6774 lt_prog_compiler_static_works=yes
6775 fi
6776 else
6777 lt_prog_compiler_static_works=yes
6778 fi
6779 fi
6780 $rm conftest*
6781 LDFLAGS="$save_LDFLAGS"
6782
6783 fi
6784 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6785 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6786
6787 if test x"$lt_prog_compiler_static_works" = xyes; then
6788 :
6789 else
6790 lt_prog_compiler_static=
6791 fi
6792
6793
6794 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6796 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 lt_cv_prog_compiler_c_o=no
6800 $rm -r conftest 2>/dev/null
6801 mkdir conftest
6802 cd conftest
6803 mkdir out
6804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6805
6806 lt_compiler_flag="-o out/conftest2.$ac_objext"
6807 # Insert the option either (1) after the last *FLAGS variable, or
6808 # (2) before a word containing "conftest.", or (3) at the end.
6809 # Note that $ac_compile itself does not contain backslashes and begins
6810 # with a dollar sign (not a hyphen), so the echo should work correctly.
6811 lt_compile=`echo "$ac_compile" | $SED \
6812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6814 -e 's:$: $lt_compiler_flag:'`
6815 (eval echo "\"\$as_me:6815: $lt_compile\"" >&5)
6816 (eval "$lt_compile" 2>out/conftest.err)
6817 ac_status=$?
6818 cat out/conftest.err >&5
6819 echo "$as_me:6819: \$? = $ac_status" >&5
6820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6821 then
6822 # The compiler can only warn and ignore the option if not recognized
6823 # So say no if there are warnings
6824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6827 lt_cv_prog_compiler_c_o=yes
6828 fi
6829 fi
6830 chmod u+w . 2>&5
6831 $rm conftest*
6832 # SGI C++ compiler will create directory out/ii_files/ for
6833 # template instantiation
6834 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6835 $rm out/* && rmdir out
6836 cd ..
6837 rmdir conftest
6838 $rm conftest*
6839
6840 fi
6841 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6843
6844
6845 hard_links="nottested"
6846 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6847 # do not overwrite the value of need_locks provided by the user
6848 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6850 hard_links=yes
6851 $rm conftest*
6852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6853 touch conftest.a
6854 ln conftest.a conftest.b 2>&5 || hard_links=no
6855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6856 echo "$as_me:$LINENO: result: $hard_links" >&5
6857 echo "${ECHO_T}$hard_links" >&6
6858 if test "$hard_links" = no; then
6859 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6861 need_locks=warn
6862 fi
6863 else
6864 need_locks=no
6865 fi
6866
6867 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6869
6870 runpath_var=
6871 allow_undefined_flag=
6872 enable_shared_with_static_runtimes=no
6873 archive_cmds=
6874 archive_expsym_cmds=
6875 old_archive_From_new_cmds=
6876 old_archive_from_expsyms_cmds=
6877 export_dynamic_flag_spec=
6878 whole_archive_flag_spec=
6879 thread_safe_flag_spec=
6880 hardcode_libdir_flag_spec=
6881 hardcode_libdir_flag_spec_ld=
6882 hardcode_libdir_separator=
6883 hardcode_direct=no
6884 hardcode_minus_L=no
6885 hardcode_shlibpath_var=unsupported
6886 link_all_deplibs=unknown
6887 hardcode_automatic=no
6888 module_cmds=
6889 module_expsym_cmds=
6890 always_export_symbols=no
6891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6892 # include_expsyms should be a list of space-separated symbols to be *always*
6893 # included in the symbol list
6894 include_expsyms=
6895 # exclude_expsyms can be an extended regexp of symbols to exclude
6896 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6897 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6898 # as well as any symbol that contains `d'.
6899 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6900 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6901 # platforms (ab)use it in PIC code, but their linkers get confused if
6902 # the symbol is explicitly referenced. Since portable code cannot
6903 # rely on this symbol name, it's probably fine to never include it in
6904 # preloaded symbol tables.
6905 extract_expsyms_cmds=
6906 # Just being paranoid about ensuring that cc_basename is set.
6907 for cc_temp in $compiler""; do
6908 case $cc_temp in
6909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6911 \-*) ;;
6912 *) break;;
6913 esac
6914 done
6915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6916
6917 case $host_os in
6918 cygwin* | mingw* | pw32*)
6919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6920 # When not using gcc, we currently assume that we are using
6921 # Microsoft Visual C++.
6922 if test "$GCC" != yes; then
6923 with_gnu_ld=no
6924 fi
6925 ;;
6926 interix*)
6927 # we just hope/assume this is gcc and not c89 (= MSVC++)
6928 with_gnu_ld=yes
6929 ;;
6930 openbsd*)
6931 with_gnu_ld=no
6932 ;;
6933 esac
6934
6935 ld_shlibs=yes
6936 if test "$with_gnu_ld" = yes; then
6937 # If archive_cmds runs LD, not CC, wlarc should be empty
6938 wlarc='${wl}'
6939
6940 # Set some defaults for GNU ld with shared library support. These
6941 # are reset later if shared libraries are not supported. Putting them
6942 # here allows them to be overridden if necessary.
6943 runpath_var=LD_RUN_PATH
6944 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6945 export_dynamic_flag_spec='${wl}--export-dynamic'
6946 # ancient GNU ld didn't support --whole-archive et. al.
6947 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6948 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6949 else
6950 whole_archive_flag_spec=
6951 fi
6952 supports_anon_versioning=no
6953 case `$LD -v 2>/dev/null` in
6954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6957 *\ 2.11.*) ;; # other 2.11 versions
6958 *) supports_anon_versioning=yes ;;
6959 esac
6960
6961 # See if GNU ld supports shared libraries.
6962 case $host_os in
6963 aix3* | aix4* | aix5*)
6964 # On AIX/PPC, the GNU linker is very broken
6965 if test "$host_cpu" != ia64; then
6966 ld_shlibs=no
6967 cat <<EOF 1>&2
6968
6969 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6970 *** to be unable to reliably create shared libraries on AIX.
6971 *** Therefore, libtool is disabling shared libraries support. If you
6972 *** really care for shared libraries, you may want to modify your PATH
6973 *** so that a non-GNU linker is found, and then restart.
6974
6975 EOF
6976 fi
6977 ;;
6978
6979 amigaos*)
6980 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)'
6981 hardcode_libdir_flag_spec='-L$libdir'
6982 hardcode_minus_L=yes
6983
6984 # Samuel A. Falvo II <[email protected]> reports
6985 # that the semantics of dynamic libraries on AmigaOS, at least up
6986 # to version 4, is to share data among multiple programs linked
6987 # with the same dynamic library. Since this doesn't match the
6988 # behavior of shared libraries on other platforms, we can't use
6989 # them.
6990 ld_shlibs=no
6991 ;;
6992
6993 beos*)
6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6995 allow_undefined_flag=unsupported
6996 # Joseph Beckenbach <[email protected]> says some releases of gcc
6997 # support --undefined. This deserves some investigation. FIXME
6998 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6999 else
7000 ld_shlibs=no
7001 fi
7002 ;;
7003
7004 cygwin* | mingw* | pw32*)
7005 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7006 # as there is no search path for DLLs.
7007 hardcode_libdir_flag_spec='-L$libdir'
7008 allow_undefined_flag=unsupported
7009 always_export_symbols=no
7010 enable_shared_with_static_runtimes=yes
7011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7012
7013 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7015 # If the export-symbols file already is a .def file (1st line
7016 # is EXPORTS), use it as is; otherwise, prepend...
7017 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7018 cp $export_symbols $output_objdir/$soname.def;
7019 else
7020 echo EXPORTS > $output_objdir/$soname.def;
7021 cat $export_symbols >> $output_objdir/$soname.def;
7022 fi~
7023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7024 else
7025 ld_shlibs=no
7026 fi
7027 ;;
7028
7029 interix3*)
7030 hardcode_direct=no
7031 hardcode_shlibpath_var=no
7032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7033 export_dynamic_flag_spec='${wl}-E'
7034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7035 # Instead, shared libraries are loaded at an image base (0x10000000 by
7036 # default) and relocated if they conflict, which is a slow very memory
7037 # consuming and fragmenting process. To avoid this, we pick a random,
7038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7041 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7042 ;;
7043
7044 linux*)
7045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7046 tmp_addflag=
7047 case $cc_basename,$host_cpu in
7048 pgcc*) # Portland Group C compiler
7049 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7050 tmp_addflag=' $pic_flag'
7051 ;;
7052 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7053 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7054 tmp_addflag=' $pic_flag -Mnomain' ;;
7055 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7056 tmp_addflag=' -i_dynamic' ;;
7057 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7058 tmp_addflag=' -i_dynamic -nofor_main' ;;
7059 ifc* | ifort*) # Intel Fortran compiler
7060 tmp_addflag=' -nofor_main' ;;
7061 esac
7062 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063
7064 if test $supports_anon_versioning = yes; then
7065 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7067 $echo "local: *; };" >> $output_objdir/$libname.ver~
7068 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7069 fi
7070 else
7071 ld_shlibs=no
7072 fi
7073 ;;
7074
7075 netbsd*)
7076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7078 wlarc=
7079 else
7080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7082 fi
7083 ;;
7084
7085 solaris*)
7086 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7087 ld_shlibs=no
7088 cat <<EOF 1>&2
7089
7090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7091 *** create shared libraries on Solaris systems. Therefore, libtool
7092 *** is disabling shared libraries support. We urge you to upgrade GNU
7093 *** binutils to release 2.9.1 or newer. Another option is to modify
7094 *** your PATH or compiler configuration so that the native linker is
7095 *** used, and then restart.
7096
7097 EOF
7098 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7101 else
7102 ld_shlibs=no
7103 fi
7104 ;;
7105
7106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7107 case `$LD -v 2>&1` in
7108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7109 ld_shlibs=no
7110 cat <<_LT_EOF 1>&2
7111
7112 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7113 *** reliably create shared libraries on SCO systems. Therefore, libtool
7114 *** is disabling shared libraries support. We urge you to upgrade GNU
7115 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7116 *** your PATH or compiler configuration so that the native linker is
7117 *** used, and then restart.
7118
7119 _LT_EOF
7120 ;;
7121 *)
7122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7123 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7126 else
7127 ld_shlibs=no
7128 fi
7129 ;;
7130 esac
7131 ;;
7132
7133 sunos4*)
7134 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7135 wlarc=
7136 hardcode_direct=yes
7137 hardcode_shlibpath_var=no
7138 ;;
7139
7140 *)
7141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7144 else
7145 ld_shlibs=no
7146 fi
7147 ;;
7148 esac
7149
7150 if test "$ld_shlibs" = no; then
7151 runpath_var=
7152 hardcode_libdir_flag_spec=
7153 export_dynamic_flag_spec=
7154 whole_archive_flag_spec=
7155 fi
7156 else
7157 # PORTME fill in a description of your system's linker (not GNU ld)
7158 case $host_os in
7159 aix3*)
7160 allow_undefined_flag=unsupported
7161 always_export_symbols=yes
7162 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'
7163 # Note: this linker hardcodes the directories in LIBPATH if there
7164 # are no directories specified by -L.
7165 hardcode_minus_L=yes
7166 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7167 # Neither direct hardcoding nor static linking is supported with a
7168 # broken collect2.
7169 hardcode_direct=unsupported
7170 fi
7171 ;;
7172
7173 aix4* | aix5*)
7174 if test "$host_cpu" = ia64; then
7175 # On IA64, the linker does run time linking by default, so we don't
7176 # have to do anything special.
7177 aix_use_runtimelinking=no
7178 exp_sym_flag='-Bexport'
7179 no_entry_flag=""
7180 else
7181 # If we're using GNU nm, then we don't want the "-C" option.
7182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7184 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'
7185 else
7186 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'
7187 fi
7188 aix_use_runtimelinking=no
7189
7190 # Test if we are trying to use run time linking or normal
7191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7192 # need to do runtime linking.
7193 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7194 for ld_flag in $LDFLAGS; do
7195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7196 aix_use_runtimelinking=yes
7197 break
7198 fi
7199 done
7200 ;;
7201 esac
7202
7203 exp_sym_flag='-bexport'
7204 no_entry_flag='-bnoentry'
7205 fi
7206
7207 # When large executables or shared objects are built, AIX ld can
7208 # have problems creating the table of contents. If linking a library
7209 # or program results in "error TOC overflow" add -mminimal-toc to
7210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7212
7213 archive_cmds=''
7214 hardcode_direct=yes
7215 hardcode_libdir_separator=':'
7216 link_all_deplibs=yes
7217
7218 if test "$GCC" = yes; then
7219 case $host_os in aix4.[012]|aix4.[012].*)
7220 # We only want to do this on AIX 4.2 and lower, the check
7221 # below for broken collect2 doesn't work under 4.3+
7222 collect2name=`${CC} -print-prog-name=collect2`
7223 if test -f "$collect2name" && \
7224 strings "$collect2name" | grep resolve_lib_name >/dev/null
7225 then
7226 # We have reworked collect2
7227 hardcode_direct=yes
7228 else
7229 # We have old collect2
7230 hardcode_direct=unsupported
7231 # It fails to find uninstalled libraries when the uninstalled
7232 # path is not listed in the libpath. Setting hardcode_minus_L
7233 # to unsupported forces relinking
7234 hardcode_minus_L=yes
7235 hardcode_libdir_flag_spec='-L$libdir'
7236 hardcode_libdir_separator=
7237 fi
7238 ;;
7239 esac
7240 shared_flag='-shared'
7241 if test "$aix_use_runtimelinking" = yes; then
7242 shared_flag="$shared_flag "'${wl}-G'
7243 fi
7244 else
7245 # not using gcc
7246 if test "$host_cpu" = ia64; then
7247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7248 # chokes on -Wl,-G. The following line is correct:
7249 shared_flag='-G'
7250 else
7251 if test "$aix_use_runtimelinking" = yes; then
7252 shared_flag='${wl}-G'
7253 else
7254 shared_flag='${wl}-bM:SRE'
7255 fi
7256 fi
7257 fi
7258
7259 # It seems that -bexpall does not export symbols beginning with
7260 # underscore (_), so it is better to generate a list of symbols to export.
7261 always_export_symbols=yes
7262 if test "$aix_use_runtimelinking" = yes; then
7263 # Warning - without using the other runtime loading flags (-brtl),
7264 # -berok will link without error, but may produce a broken library.
7265 allow_undefined_flag='-berok'
7266 # Determine the default libpath from the value encoded in an empty executable.
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273
7274 int
7275 main ()
7276 {
7277
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -z "$ac_c_werror_flag"
7292 || test ! -s conftest.err'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; } &&
7298 { ac_try='test -s conftest$ac_exeext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304
7305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7306 }'`
7307 # Check for a 64-bit object if we didn't find anything.
7308 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; }
7309 }'`; fi
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 fi
7315 rm -f conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7318
7319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7320 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7321 else
7322 if test "$host_cpu" = ia64; then
7323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7324 allow_undefined_flag="-z nodefs"
7325 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7326 else
7327 # Determine the default libpath from the value encoded in an empty executable.
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334
7335 int
7336 main ()
7337 {
7338
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest$ac_exeext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365
7366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7367 }'`
7368 # Check for a 64-bit object if we didn't find anything.
7369 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; }
7370 }'`; fi
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 fi
7376 rm -f conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7379
7380 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7381 # Warning - without using the other run time loading flags,
7382 # -berok will link without error, but may produce a broken library.
7383 no_undefined_flag=' ${wl}-bernotok'
7384 allow_undefined_flag=' ${wl}-berok'
7385 # Exported symbols can be pulled into shared objects from archives
7386 whole_archive_flag_spec='$convenience'
7387 archive_cmds_need_lc=yes
7388 # This is similar to how AIX traditionally builds its shared libraries.
7389 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7390 fi
7391 fi
7392 ;;
7393
7394 amigaos*)
7395 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)'
7396 hardcode_libdir_flag_spec='-L$libdir'
7397 hardcode_minus_L=yes
7398 # see comment about different semantics on the GNU ld section
7399 ld_shlibs=no
7400 ;;
7401
7402 bsdi[45]*)
7403 export_dynamic_flag_spec=-rdynamic
7404 ;;
7405
7406 cygwin* | mingw* | pw32*)
7407 # When not using gcc, we currently assume that we are using
7408 # Microsoft Visual C++.
7409 # hardcode_libdir_flag_spec is actually meaningless, as there is
7410 # no search path for DLLs.
7411 hardcode_libdir_flag_spec=' '
7412 allow_undefined_flag=unsupported
7413 # Tell ltmain to make .lib files, not .a files.
7414 libext=lib
7415 # Tell ltmain to make .dll files, not .so files.
7416 shrext_cmds=".dll"
7417 # FIXME: Setting linknames here is a bad hack.
7418 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7419 # The linker will automatically build a .lib file if we build a DLL.
7420 old_archive_From_new_cmds='true'
7421 # FIXME: Should let the user specify the lib program.
7422 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7423 fix_srcfile_path='`cygpath -w "$srcfile"`'
7424 enable_shared_with_static_runtimes=yes
7425 ;;
7426
7427 darwin* | rhapsody*)
7428 case $host_os in
7429 rhapsody* | darwin1.[012])
7430 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7431 ;;
7432 *) # Darwin 1.3 on
7433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7434 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7435 else
7436 case ${MACOSX_DEPLOYMENT_TARGET} in
7437 10.[012])
7438 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7439 ;;
7440 10.*)
7441 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7442 ;;
7443 esac
7444 fi
7445 ;;
7446 esac
7447 archive_cmds_need_lc=no
7448 hardcode_direct=no
7449 hardcode_automatic=yes
7450 hardcode_shlibpath_var=unsupported
7451 whole_archive_flag_spec=''
7452 link_all_deplibs=yes
7453 if test "$GCC" = yes ; then
7454 output_verbose_link_cmd='echo'
7455 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7456 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7458 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}'
7459 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}'
7460 else
7461 case $cc_basename in
7462 xlc*)
7463 output_verbose_link_cmd='echo'
7464 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7465 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7467 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7468 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}'
7469 ;;
7470 *)
7471 ld_shlibs=no
7472 ;;
7473 esac
7474 fi
7475 ;;
7476
7477 dgux*)
7478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479 hardcode_libdir_flag_spec='-L$libdir'
7480 hardcode_shlibpath_var=no
7481 ;;
7482
7483 freebsd1*)
7484 ld_shlibs=no
7485 ;;
7486
7487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7488 # support. Future versions do this automatically, but an explicit c++rt0.o
7489 # does not break anything, and helps significantly (at the cost of a little
7490 # extra space).
7491 freebsd2.2*)
7492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7493 hardcode_libdir_flag_spec='-R$libdir'
7494 hardcode_direct=yes
7495 hardcode_shlibpath_var=no
7496 ;;
7497
7498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7499 freebsd2*)
7500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7501 hardcode_direct=yes
7502 hardcode_minus_L=yes
7503 hardcode_shlibpath_var=no
7504 ;;
7505
7506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7507 freebsd* | kfreebsd*-gnu | dragonfly*)
7508 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7509 hardcode_libdir_flag_spec='-R$libdir'
7510 hardcode_direct=yes
7511 hardcode_shlibpath_var=no
7512 ;;
7513
7514 hpux9*)
7515 if test "$GCC" = yes; then
7516 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'
7517 else
7518 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'
7519 fi
7520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7521 hardcode_libdir_separator=:
7522 hardcode_direct=yes
7523
7524 # hardcode_minus_L: Not really in the search PATH,
7525 # but as the default location of the library.
7526 hardcode_minus_L=yes
7527 export_dynamic_flag_spec='${wl}-E'
7528 ;;
7529
7530 hpux10*)
7531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7532 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7533 else
7534 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7535 fi
7536 if test "$with_gnu_ld" = no; then
7537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7538 hardcode_libdir_separator=:
7539
7540 hardcode_direct=yes
7541 export_dynamic_flag_spec='${wl}-E'
7542
7543 # hardcode_minus_L: Not really in the search PATH,
7544 # but as the default location of the library.
7545 hardcode_minus_L=yes
7546 fi
7547 ;;
7548
7549 hpux11*)
7550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7551 case $host_cpu in
7552 hppa*64*)
7553 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7554 ;;
7555 ia64*)
7556 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7557 ;;
7558 *)
7559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7560 ;;
7561 esac
7562 else
7563 case $host_cpu in
7564 hppa*64*)
7565 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7566 ;;
7567 ia64*)
7568 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7569 ;;
7570 *)
7571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7572 ;;
7573 esac
7574 fi
7575 if test "$with_gnu_ld" = no; then
7576 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7577 hardcode_libdir_separator=:
7578
7579 case $host_cpu in
7580 hppa*64*|ia64*)
7581 hardcode_libdir_flag_spec_ld='+b $libdir'
7582 hardcode_direct=no
7583 hardcode_shlibpath_var=no
7584 ;;
7585 *)
7586 hardcode_direct=yes
7587 export_dynamic_flag_spec='${wl}-E'
7588
7589 # hardcode_minus_L: Not really in the search PATH,
7590 # but as the default location of the library.
7591 hardcode_minus_L=yes
7592 ;;
7593 esac
7594 fi
7595 ;;
7596
7597 irix5* | irix6* | nonstopux*)
7598 if test "$GCC" = yes; then
7599 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'
7600 else
7601 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'
7602 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7603 fi
7604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7605 hardcode_libdir_separator=:
7606 link_all_deplibs=yes
7607 ;;
7608
7609 netbsd*)
7610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7612 else
7613 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7614 fi
7615 hardcode_libdir_flag_spec='-R$libdir'
7616 hardcode_direct=yes
7617 hardcode_shlibpath_var=no
7618 ;;
7619
7620 newsos6)
7621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622 hardcode_direct=yes
7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624 hardcode_libdir_separator=:
7625 hardcode_shlibpath_var=no
7626 ;;
7627
7628 openbsd*)
7629 hardcode_direct=yes
7630 hardcode_shlibpath_var=no
7631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7633 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7635 export_dynamic_flag_spec='${wl}-E'
7636 else
7637 case $host_os in
7638 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7640 hardcode_libdir_flag_spec='-R$libdir'
7641 ;;
7642 *)
7643 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7645 ;;
7646 esac
7647 fi
7648 ;;
7649
7650 os2*)
7651 hardcode_libdir_flag_spec='-L$libdir'
7652 hardcode_minus_L=yes
7653 allow_undefined_flag=unsupported
7654 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'
7655 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7656 ;;
7657
7658 osf3*)
7659 if test "$GCC" = yes; then
7660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7661 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'
7662 else
7663 allow_undefined_flag=' -expect_unresolved \*'
7664 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'
7665 fi
7666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7667 hardcode_libdir_separator=:
7668 ;;
7669
7670 osf4* | osf5*) # as osf3* with the addition of -msym flag
7671 if test "$GCC" = yes; then
7672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7673 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'
7674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7675 else
7676 allow_undefined_flag=' -expect_unresolved \*'
7677 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'
7678 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7679 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7680
7681 # Both c and cxx compiler support -rpath directly
7682 hardcode_libdir_flag_spec='-rpath $libdir'
7683 fi
7684 hardcode_libdir_separator=:
7685 ;;
7686
7687 solaris*)
7688 no_undefined_flag=' -z text'
7689 if test "$GCC" = yes; then
7690 wlarc='${wl}'
7691 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7692 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7693 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7694 else
7695 wlarc=''
7696 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7699 fi
7700 hardcode_libdir_flag_spec='-R$libdir'
7701 hardcode_shlibpath_var=no
7702 case $host_os in
7703 solaris2.[0-5] | solaris2.[0-5].*) ;;
7704 *)
7705 # The compiler driver will combine linker options so we
7706 # cannot just pass the convience library names through
7707 # without $wl, iff we do not link with $LD.
7708 # Luckily, gcc supports the same syntax we need for Sun Studio.
7709 # Supported since Solaris 2.6 (maybe 2.5.1?)
7710 case $wlarc in
7711 '')
7712 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7713 *)
7714 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7715 esac ;;
7716 esac
7717 link_all_deplibs=yes
7718 ;;
7719
7720 sunos4*)
7721 if test "x$host_vendor" = xsequent; then
7722 # Use $CC to link under sequent, because it throws in some extra .o
7723 # files that make .init and .fini sections work.
7724 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7725 else
7726 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7727 fi
7728 hardcode_libdir_flag_spec='-L$libdir'
7729 hardcode_direct=yes
7730 hardcode_minus_L=yes
7731 hardcode_shlibpath_var=no
7732 ;;
7733
7734 sysv4)
7735 case $host_vendor in
7736 sni)
7737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_direct=yes # is this really true???
7739 ;;
7740 siemens)
7741 ## LD is ld it makes a PLAMLIB
7742 ## CC just makes a GrossModule.
7743 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7744 reload_cmds='$CC -r -o $output$reload_objs'
7745 hardcode_direct=no
7746 ;;
7747 motorola)
7748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7749 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7750 ;;
7751 esac
7752 runpath_var='LD_RUN_PATH'
7753 hardcode_shlibpath_var=no
7754 ;;
7755
7756 sysv4.3*)
7757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7758 hardcode_shlibpath_var=no
7759 export_dynamic_flag_spec='-Bexport'
7760 ;;
7761
7762 sysv4*MP*)
7763 if test -d /usr/nec; then
7764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7765 hardcode_shlibpath_var=no
7766 runpath_var=LD_RUN_PATH
7767 hardcode_runpath_var=yes
7768 ld_shlibs=yes
7769 fi
7770 ;;
7771
7772 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7773 no_undefined_flag='${wl}-z,text'
7774 archive_cmds_need_lc=no
7775 hardcode_shlibpath_var=no
7776 runpath_var='LD_RUN_PATH'
7777
7778 if test "$GCC" = yes; then
7779 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7780 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7781 else
7782 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7783 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7784 fi
7785 ;;
7786
7787 sysv5* | sco3.2v5* | sco5v6*)
7788 # Note: We can NOT use -z defs as we might desire, because we do not
7789 # link with -lc, and that would cause any symbols used from libc to
7790 # always be unresolved, which means just about no library would
7791 # ever link correctly. If we're not using GNU ld we use -z text
7792 # though, which does catch some bad symbols but isn't as heavy-handed
7793 # as -z defs.
7794 no_undefined_flag='${wl}-z,text'
7795 allow_undefined_flag='${wl}-z,nodefs'
7796 archive_cmds_need_lc=no
7797 hardcode_shlibpath_var=no
7798 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7799 hardcode_libdir_separator=':'
7800 link_all_deplibs=yes
7801 export_dynamic_flag_spec='${wl}-Bexport'
7802 runpath_var='LD_RUN_PATH'
7803
7804 if test "$GCC" = yes; then
7805 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7806 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7807 else
7808 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7809 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7810 fi
7811 ;;
7812
7813 uts4*)
7814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7815 hardcode_libdir_flag_spec='-L$libdir'
7816 hardcode_shlibpath_var=no
7817 ;;
7818
7819 *)
7820 ld_shlibs=no
7821 ;;
7822 esac
7823 fi
7824
7825 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7826 echo "${ECHO_T}$ld_shlibs" >&6
7827 test "$ld_shlibs" = no && can_build_shared=no
7828
7829 #
7830 # Do we need to explicitly link libc?
7831 #
7832 case "x$archive_cmds_need_lc" in
7833 x|xyes)
7834 # Assume -lc should be added
7835 archive_cmds_need_lc=yes
7836
7837 if test "$enable_shared" = yes && test "$GCC" = yes; then
7838 case $archive_cmds in
7839 *'~'*)
7840 # FIXME: we may have to deal with multi-command sequences.
7841 ;;
7842 '$CC '*)
7843 # Test whether the compiler implicitly links with -lc since on some
7844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7845 # to ld, don't add -lc before -lgcc.
7846 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7847 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7848 $rm conftest*
7849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7850
7851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7852 (eval $ac_compile) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } 2>conftest.err; then
7856 soname=conftest
7857 lib=conftest
7858 libobjs=conftest.$ac_objext
7859 deplibs=
7860 wl=$lt_prog_compiler_wl
7861 pic_flag=$lt_prog_compiler_pic
7862 compiler_flags=-v
7863 linker_flags=-v
7864 verstring=
7865 output_objdir=.
7866 libname=conftest
7867 lt_save_allow_undefined_flag=$allow_undefined_flag
7868 allow_undefined_flag=
7869 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7870 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }
7874 then
7875 archive_cmds_need_lc=no
7876 else
7877 archive_cmds_need_lc=yes
7878 fi
7879 allow_undefined_flag=$lt_save_allow_undefined_flag
7880 else
7881 cat conftest.err 1>&5
7882 fi
7883 $rm conftest*
7884 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7885 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7886 ;;
7887 esac
7888 fi
7889 ;;
7890 esac
7891
7892 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7894 library_names_spec=
7895 libname_spec='lib$name'
7896 soname_spec=
7897 shrext_cmds=".so"
7898 postinstall_cmds=
7899 postuninstall_cmds=
7900 finish_cmds=
7901 finish_eval=
7902 shlibpath_var=
7903 shlibpath_overrides_runpath=unknown
7904 version_type=none
7905 dynamic_linker="$host_os ld.so"
7906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7907 if test "$GCC" = yes; then
7908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7910 # if the path contains ";" then we assume it to be the separator
7911 # otherwise default to the standard path separator (i.e. ":") - it is
7912 # assumed that no part of a normal pathname contains ";" but that should
7913 # okay in the real world where ";" in dirpaths is itself problematic.
7914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7915 else
7916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7917 fi
7918 else
7919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7920 fi
7921 need_lib_prefix=unknown
7922 hardcode_into_libs=no
7923
7924 # when you set need_version to no, make sure it does not cause -set_version
7925 # flags to be left without arguments
7926 need_version=unknown
7927
7928 case $host_os in
7929 aix3*)
7930 version_type=linux
7931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7932 shlibpath_var=LIBPATH
7933
7934 # AIX 3 has no versioning support, so we append a major version to the name.
7935 soname_spec='${libname}${release}${shared_ext}$major'
7936 ;;
7937
7938 aix4* | aix5*)
7939 version_type=linux
7940 need_lib_prefix=no
7941 need_version=no
7942 hardcode_into_libs=yes
7943 if test "$host_cpu" = ia64; then
7944 # AIX 5 supports IA64
7945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7946 shlibpath_var=LD_LIBRARY_PATH
7947 else
7948 # With GCC up to 2.95.x, collect2 would create an import file
7949 # for dependence libraries. The import file would start with
7950 # the line `#! .'. This would cause the generated library to
7951 # depend on `.', always an invalid library. This was fixed in
7952 # development snapshots of GCC prior to 3.0.
7953 case $host_os in
7954 aix4 | aix4.[01] | aix4.[01].*)
7955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7956 echo ' yes '
7957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7958 :
7959 else
7960 can_build_shared=no
7961 fi
7962 ;;
7963 esac
7964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7965 # soname into executable. Probably we can add versioning support to
7966 # collect2, so additional links can be useful in future.
7967 if test "$aix_use_runtimelinking" = yes; then
7968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7969 # instead of lib<name>.a to let people know that these are not
7970 # typical AIX shared libraries.
7971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7972 else
7973 # We preserve .a as extension for shared libraries through AIX4.2
7974 # and later when we are not doing run time linking.
7975 library_names_spec='${libname}${release}.a $libname.a'
7976 soname_spec='${libname}${release}${shared_ext}$major'
7977 fi
7978 shlibpath_var=LIBPATH
7979 fi
7980 ;;
7981
7982 amigaos*)
7983 library_names_spec='$libname.ixlibrary $libname.a'
7984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7985 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'
7986 ;;
7987
7988 beos*)
7989 library_names_spec='${libname}${shared_ext}'
7990 dynamic_linker="$host_os ld.so"
7991 shlibpath_var=LIBRARY_PATH
7992 ;;
7993
7994 bsdi[45]*)
7995 version_type=linux
7996 need_version=no
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8000 shlibpath_var=LD_LIBRARY_PATH
8001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8003 # the default ld.so.conf also contains /usr/contrib/lib and
8004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8005 # libtool to hard-code these into programs
8006 ;;
8007
8008 cygwin* | mingw* | pw32*)
8009 version_type=windows
8010 shrext_cmds=".dll"
8011 need_version=no
8012 need_lib_prefix=no
8013
8014 case $GCC,$host_os in
8015 yes,cygwin* | yes,mingw* | yes,pw32*)
8016 library_names_spec='$libname.dll.a'
8017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8018 postinstall_cmds='base_file=`basename \${file}`~
8019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8020 dldir=$destdir/`dirname \$dlpath`~
8021 test -d \$dldir || mkdir -p \$dldir~
8022 $install_prog $dir/$dlname \$dldir/$dlname~
8023 chmod a+x \$dldir/$dlname'
8024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8025 dlpath=$dir/\$dldll~
8026 $rm \$dlpath'
8027 shlibpath_overrides_runpath=yes
8028
8029 case $host_os in
8030 cygwin*)
8031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8033 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8034 ;;
8035 mingw*)
8036 # MinGW DLLs use traditional 'lib' prefix
8037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8040 # It is most probably a Windows format PATH printed by
8041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8042 # path with ; separators, and with drive letters. We can handle the
8043 # drive letters (cygwin fileutils understands them), so leave them,
8044 # especially as we might pass files found there to a mingw objdump,
8045 # which wouldn't understand a cygwinified path. Ahh.
8046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8047 else
8048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8049 fi
8050 ;;
8051 pw32*)
8052 # pw32 DLLs use 'pw' prefix rather than 'lib'
8053 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8054 ;;
8055 esac
8056 ;;
8057
8058 *)
8059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8060 ;;
8061 esac
8062 dynamic_linker='Win32 ld.exe'
8063 # FIXME: first we should search . and the directory the executable is in
8064 shlibpath_var=PATH
8065 ;;
8066
8067 darwin* | rhapsody*)
8068 dynamic_linker="$host_os dyld"
8069 version_type=darwin
8070 need_lib_prefix=no
8071 need_version=no
8072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8073 soname_spec='${libname}${release}${major}$shared_ext'
8074 shlibpath_overrides_runpath=yes
8075 shlibpath_var=DYLD_LIBRARY_PATH
8076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8077 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8078 if test "$GCC" = yes; then
8079 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"`
8080 else
8081 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8082 fi
8083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8084 ;;
8085
8086 dgux*)
8087 version_type=linux
8088 need_lib_prefix=no
8089 need_version=no
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8091 soname_spec='${libname}${release}${shared_ext}$major'
8092 shlibpath_var=LD_LIBRARY_PATH
8093 ;;
8094
8095 freebsd1*)
8096 dynamic_linker=no
8097 ;;
8098
8099 kfreebsd*-gnu)
8100 version_type=linux
8101 need_lib_prefix=no
8102 need_version=no
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 shlibpath_overrides_runpath=no
8107 hardcode_into_libs=yes
8108 dynamic_linker='GNU ld.so'
8109 ;;
8110
8111 freebsd* | dragonfly*)
8112 # DragonFly does not have aout. When/if they implement a new
8113 # versioning mechanism, adjust this.
8114 if test -x /usr/bin/objformat; then
8115 objformat=`/usr/bin/objformat`
8116 else
8117 case $host_os in
8118 freebsd[123]*) objformat=aout ;;
8119 *) objformat=elf ;;
8120 esac
8121 fi
8122 version_type=freebsd-$objformat
8123 case $version_type in
8124 freebsd-elf*)
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8126 need_version=no
8127 need_lib_prefix=no
8128 ;;
8129 freebsd-*)
8130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8131 need_version=yes
8132 ;;
8133 esac
8134 shlibpath_var=LD_LIBRARY_PATH
8135 case $host_os in
8136 freebsd2*)
8137 shlibpath_overrides_runpath=yes
8138 ;;
8139 freebsd3.[01]* | freebsdelf3.[01]*)
8140 shlibpath_overrides_runpath=yes
8141 hardcode_into_libs=yes
8142 ;;
8143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8145 shlibpath_overrides_runpath=no
8146 hardcode_into_libs=yes
8147 ;;
8148 freebsd*) # from 4.6 on
8149 shlibpath_overrides_runpath=yes
8150 hardcode_into_libs=yes
8151 ;;
8152 esac
8153 ;;
8154
8155 gnu*)
8156 version_type=linux
8157 need_lib_prefix=no
8158 need_version=no
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8160 soname_spec='${libname}${release}${shared_ext}$major'
8161 shlibpath_var=LD_LIBRARY_PATH
8162 hardcode_into_libs=yes
8163 ;;
8164
8165 hpux9* | hpux10* | hpux11*)
8166 # Give a soname corresponding to the major version so that dld.sl refuses to
8167 # link against other versions.
8168 version_type=sunos
8169 need_lib_prefix=no
8170 need_version=no
8171 case $host_cpu in
8172 ia64*)
8173 shrext_cmds='.so'
8174 hardcode_into_libs=yes
8175 dynamic_linker="$host_os dld.so"
8176 shlibpath_var=LD_LIBRARY_PATH
8177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179 soname_spec='${libname}${release}${shared_ext}$major'
8180 if test "X$HPUX_IA64_MODE" = X32; then
8181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8182 else
8183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8184 fi
8185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8186 ;;
8187 hppa*64*)
8188 shrext_cmds='.sl'
8189 hardcode_into_libs=yes
8190 dynamic_linker="$host_os dld.sl"
8191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194 soname_spec='${libname}${release}${shared_ext}$major'
8195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8197 ;;
8198 *)
8199 shrext_cmds='.sl'
8200 dynamic_linker="$host_os dld.sl"
8201 shlibpath_var=SHLIB_PATH
8202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8204 soname_spec='${libname}${release}${shared_ext}$major'
8205 ;;
8206 esac
8207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8208 postinstall_cmds='chmod 555 $lib'
8209 ;;
8210
8211 interix3*)
8212 version_type=linux
8213 need_lib_prefix=no
8214 need_version=no
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8216 soname_spec='${libname}${release}${shared_ext}$major'
8217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8218 shlibpath_var=LD_LIBRARY_PATH
8219 shlibpath_overrides_runpath=no
8220 hardcode_into_libs=yes
8221 ;;
8222
8223 irix5* | irix6* | nonstopux*)
8224 case $host_os in
8225 nonstopux*) version_type=nonstopux ;;
8226 *)
8227 if test "$lt_cv_prog_gnu_ld" = yes; then
8228 version_type=linux
8229 else
8230 version_type=irix
8231 fi ;;
8232 esac
8233 need_lib_prefix=no
8234 need_version=no
8235 soname_spec='${libname}${release}${shared_ext}$major'
8236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8237 case $host_os in
8238 irix5* | nonstopux*)
8239 libsuff= shlibsuff=
8240 ;;
8241 *)
8242 case $LD in # libtool.m4 will add one of these switches to LD
8243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8244 libsuff= shlibsuff= libmagic=32-bit;;
8245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8246 libsuff=32 shlibsuff=N32 libmagic=N32;;
8247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8249 *) libsuff= shlibsuff= libmagic=never-match;;
8250 esac
8251 ;;
8252 esac
8253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8254 shlibpath_overrides_runpath=no
8255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8257 hardcode_into_libs=yes
8258 ;;
8259
8260 # No shared lib support for Linux oldld, aout, or coff.
8261 linux*oldld* | linux*aout* | linux*coff*)
8262 dynamic_linker=no
8263 ;;
8264
8265 # This must be Linux ELF.
8266 linux*)
8267 version_type=linux
8268 need_lib_prefix=no
8269 need_version=no
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8271 soname_spec='${libname}${release}${shared_ext}$major'
8272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8273 shlibpath_var=LD_LIBRARY_PATH
8274 shlibpath_overrides_runpath=no
8275 # This implies no fast_install, which is unacceptable.
8276 # Some rework will be needed to allow for fast_install
8277 # before this can be enabled.
8278 hardcode_into_libs=yes
8279
8280 # Append ld.so.conf contents to the search path
8281 if test -f /etc/ld.so.conf; then
8282 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8284 fi
8285
8286 # We used to test for /lib/ld.so.1 and disable shared libraries on
8287 # powerpc, because MkLinux only supported shared libraries with the
8288 # GNU dynamic linker. Since this was broken with cross compilers,
8289 # most powerpc-linux boxes support dynamic linking these days and
8290 # people can always --disable-shared, the test was removed, and we
8291 # assume the GNU/Linux dynamic linker is in use.
8292 dynamic_linker='GNU/Linux ld.so'
8293 ;;
8294
8295 knetbsd*-gnu)
8296 version_type=linux
8297 need_lib_prefix=no
8298 need_version=no
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 shlibpath_overrides_runpath=no
8303 hardcode_into_libs=yes
8304 dynamic_linker='GNU ld.so'
8305 ;;
8306
8307 netbsd*)
8308 version_type=sunos
8309 need_lib_prefix=no
8310 need_version=no
8311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8314 dynamic_linker='NetBSD (a.out) ld.so'
8315 else
8316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8317 soname_spec='${libname}${release}${shared_ext}$major'
8318 dynamic_linker='NetBSD ld.elf_so'
8319 fi
8320 shlibpath_var=LD_LIBRARY_PATH
8321 shlibpath_overrides_runpath=yes
8322 hardcode_into_libs=yes
8323 ;;
8324
8325 newsos6)
8326 version_type=linux
8327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8328 shlibpath_var=LD_LIBRARY_PATH
8329 shlibpath_overrides_runpath=yes
8330 ;;
8331
8332 nto-qnx*)
8333 version_type=linux
8334 need_lib_prefix=no
8335 need_version=no
8336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337 soname_spec='${libname}${release}${shared_ext}$major'
8338 shlibpath_var=LD_LIBRARY_PATH
8339 shlibpath_overrides_runpath=yes
8340 ;;
8341
8342 openbsd*)
8343 version_type=sunos
8344 sys_lib_dlsearch_path_spec="/usr/lib"
8345 need_lib_prefix=no
8346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8347 case $host_os in
8348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8349 *) need_version=no ;;
8350 esac
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8355 case $host_os in
8356 openbsd2.[89] | openbsd2.[89].*)
8357 shlibpath_overrides_runpath=no
8358 ;;
8359 *)
8360 shlibpath_overrides_runpath=yes
8361 ;;
8362 esac
8363 else
8364 shlibpath_overrides_runpath=yes
8365 fi
8366 ;;
8367
8368 os2*)
8369 libname_spec='$name'
8370 shrext_cmds=".dll"
8371 need_lib_prefix=no
8372 library_names_spec='$libname${shared_ext} $libname.a'
8373 dynamic_linker='OS/2 ld.exe'
8374 shlibpath_var=LIBPATH
8375 ;;
8376
8377 osf3* | osf4* | osf5*)
8378 version_type=osf
8379 need_lib_prefix=no
8380 need_version=no
8381 soname_spec='${libname}${release}${shared_ext}$major'
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383 shlibpath_var=LD_LIBRARY_PATH
8384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8386 ;;
8387
8388 solaris*)
8389 version_type=linux
8390 need_lib_prefix=no
8391 need_version=no
8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8393 soname_spec='${libname}${release}${shared_ext}$major'
8394 shlibpath_var=LD_LIBRARY_PATH
8395 shlibpath_overrides_runpath=yes
8396 hardcode_into_libs=yes
8397 # ldd complains unless libraries are executable
8398 postinstall_cmds='chmod +x $lib'
8399 ;;
8400
8401 sunos4*)
8402 version_type=sunos
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8405 shlibpath_var=LD_LIBRARY_PATH
8406 shlibpath_overrides_runpath=yes
8407 if test "$with_gnu_ld" = yes; then
8408 need_lib_prefix=no
8409 fi
8410 need_version=yes
8411 ;;
8412
8413 sysv4 | sysv4.3*)
8414 version_type=linux
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416 soname_spec='${libname}${release}${shared_ext}$major'
8417 shlibpath_var=LD_LIBRARY_PATH
8418 case $host_vendor in
8419 sni)
8420 shlibpath_overrides_runpath=no
8421 need_lib_prefix=no
8422 export_dynamic_flag_spec='${wl}-Blargedynsym'
8423 runpath_var=LD_RUN_PATH
8424 ;;
8425 siemens)
8426 need_lib_prefix=no
8427 ;;
8428 motorola)
8429 need_lib_prefix=no
8430 need_version=no
8431 shlibpath_overrides_runpath=no
8432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8433 ;;
8434 esac
8435 ;;
8436
8437 sysv4*MP*)
8438 if test -d /usr/nec ;then
8439 version_type=linux
8440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8441 soname_spec='$libname${shared_ext}.$major'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 fi
8444 ;;
8445
8446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8447 version_type=freebsd-elf
8448 need_lib_prefix=no
8449 need_version=no
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 hardcode_into_libs=yes
8454 if test "$with_gnu_ld" = yes; then
8455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8456 shlibpath_overrides_runpath=no
8457 else
8458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8459 shlibpath_overrides_runpath=yes
8460 case $host_os in
8461 sco3.2v5*)
8462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8463 ;;
8464 esac
8465 fi
8466 sys_lib_dlsearch_path_spec='/usr/lib'
8467 ;;
8468
8469 uts4*)
8470 version_type=linux
8471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8472 soname_spec='${libname}${release}${shared_ext}$major'
8473 shlibpath_var=LD_LIBRARY_PATH
8474 ;;
8475
8476 *)
8477 dynamic_linker=no
8478 ;;
8479 esac
8480 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8481 echo "${ECHO_T}$dynamic_linker" >&6
8482 test "$dynamic_linker" = no && can_build_shared=no
8483
8484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8485 if test "$GCC" = yes; then
8486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8487 fi
8488
8489 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8490 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8491 hardcode_action=
8492 if test -n "$hardcode_libdir_flag_spec" || \
8493 test -n "$runpath_var" || \
8494 test "X$hardcode_automatic" = "Xyes" ; then
8495
8496 # We can hardcode non-existant directories.
8497 if test "$hardcode_direct" != no &&
8498 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8499 # have to relink, otherwise we might link with an installed library
8500 # when we should be linking with a yet-to-be-installed one
8501 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8502 test "$hardcode_minus_L" != no; then
8503 # Linking always hardcodes the temporary library directory.
8504 hardcode_action=relink
8505 else
8506 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8507 hardcode_action=immediate
8508 fi
8509 else
8510 # We cannot hardcode anything, or else we can only hardcode existing
8511 # directories.
8512 hardcode_action=unsupported
8513 fi
8514 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8515 echo "${ECHO_T}$hardcode_action" >&6
8516
8517 if test "$hardcode_action" = relink; then
8518 # Fast installation is not supported
8519 enable_fast_install=no
8520 elif test "$shlibpath_overrides_runpath" = yes ||
8521 test "$enable_shared" = no; then
8522 # Fast installation is not necessary
8523 enable_fast_install=needless
8524 fi
8525
8526 striplib=
8527 old_striplib=
8528 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8529 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8530 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8531 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8532 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8533 echo "$as_me:$LINENO: result: yes" >&5
8534 echo "${ECHO_T}yes" >&6
8535 else
8536 # FIXME - insert some real tests, host_os isn't really good enough
8537 case $host_os in
8538 darwin*)
8539 if test -n "$STRIP" ; then
8540 striplib="$STRIP -x"
8541 echo "$as_me:$LINENO: result: yes" >&5
8542 echo "${ECHO_T}yes" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545 echo "${ECHO_T}no" >&6
8546 fi
8547 ;;
8548 *)
8549 echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6
8551 ;;
8552 esac
8553 fi
8554
8555 if test "x$enable_dlopen" != xyes; then
8556 enable_dlopen=unknown
8557 enable_dlopen_self=unknown
8558 enable_dlopen_self_static=unknown
8559 else
8560 lt_cv_dlopen=no
8561 lt_cv_dlopen_libs=
8562
8563 case $host_os in
8564 beos*)
8565 lt_cv_dlopen="load_add_on"
8566 lt_cv_dlopen_libs=
8567 lt_cv_dlopen_self=yes
8568 ;;
8569
8570 mingw* | pw32*)
8571 lt_cv_dlopen="LoadLibrary"
8572 lt_cv_dlopen_libs=
8573 ;;
8574
8575 cygwin*)
8576 lt_cv_dlopen="dlopen"
8577 lt_cv_dlopen_libs=
8578 ;;
8579
8580 darwin*)
8581 # if libdl is installed we need to link against it
8582 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8583 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8584 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-ldl $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595
8596 /* Override any gcc2 internal prototype to avoid an error. */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8602 char dlopen ();
8603 int
8604 main ()
8605 {
8606 dlopen ();
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag"
8621 || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_dl_dlopen=yes
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_cv_lib_dl_dlopen=no
8639 fi
8640 rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8643 fi
8644 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8645 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8646 if test $ac_cv_lib_dl_dlopen = yes; then
8647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8648 else
8649
8650 lt_cv_dlopen="dyld"
8651 lt_cv_dlopen_libs=
8652 lt_cv_dlopen_self=yes
8653
8654 fi
8655
8656 ;;
8657
8658 *)
8659 echo "$as_me:$LINENO: checking for shl_load" >&5
8660 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8661 if test "${ac_cv_func_shl_load+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8672 #define shl_load innocuous_shl_load
8673
8674 /* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char shl_load (); below.
8676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677 <limits.h> exists even on freestanding compilers. */
8678
8679 #ifdef __STDC__
8680 # include <limits.h>
8681 #else
8682 # include <assert.h>
8683 #endif
8684
8685 #undef shl_load
8686
8687 /* Override any gcc2 internal prototype to avoid an error. */
8688 #ifdef __cplusplus
8689 extern "C"
8690 {
8691 #endif
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8694 char shl_load ();
8695 /* The GNU C library defines this for functions which it implements
8696 to always fail with ENOSYS. Some functions are actually named
8697 something starting with __ and the normal name is an alias. */
8698 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8699 choke me
8700 #else
8701 char (*f) () = shl_load;
8702 #endif
8703 #ifdef __cplusplus
8704 }
8705 #endif
8706
8707 int
8708 main ()
8709 {
8710 return f != shl_load;
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_cv_func_shl_load=yes
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_cv_func_shl_load=no
8743 fi
8744 rm -f conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8748 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8749 if test $ac_cv_func_shl_load = yes; then
8750 lt_cv_dlopen="shl_load"
8751 else
8752 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8753 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8754 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-ldld $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 #ifdef __cplusplus
8768 extern "C"
8769 #endif
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char shl_load ();
8773 int
8774 main ()
8775 {
8776 shl_load ();
8777 ;
8778 return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest$ac_exeext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_cv_lib_dld_shl_load=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8807
8808 ac_cv_lib_dld_shl_load=no
8809 fi
8810 rm -f conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8813 fi
8814 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8816 if test $ac_cv_lib_dld_shl_load = yes; then
8817 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8818 else
8819 echo "$as_me:$LINENO: checking for dlopen" >&5
8820 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8821 if test "${ac_cv_func_dlopen+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8832 #define dlopen innocuous_dlopen
8833
8834 /* System header to define __stub macros and hopefully few prototypes,
8835 which can conflict with char dlopen (); below.
8836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837 <limits.h> exists even on freestanding compilers. */
8838
8839 #ifdef __STDC__
8840 # include <limits.h>
8841 #else
8842 # include <assert.h>
8843 #endif
8844
8845 #undef dlopen
8846
8847 /* Override any gcc2 internal prototype to avoid an error. */
8848 #ifdef __cplusplus
8849 extern "C"
8850 {
8851 #endif
8852 /* We use char because int might match the return type of a gcc2
8853 builtin and then its argument prototype would still apply. */
8854 char dlopen ();
8855 /* The GNU C library defines this for functions which it implements
8856 to always fail with ENOSYS. Some functions are actually named
8857 something starting with __ and the normal name is an alias. */
8858 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8859 choke me
8860 #else
8861 char (*f) () = dlopen;
8862 #endif
8863 #ifdef __cplusplus
8864 }
8865 #endif
8866
8867 int
8868 main ()
8869 {
8870 return f != dlopen;
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -z "$ac_c_werror_flag"
8885 || test ! -s conftest.err'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest$ac_exeext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 ac_cv_func_dlopen=yes
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_cv_func_dlopen=no
8903 fi
8904 rm -f conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 fi
8907 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8908 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8909 if test $ac_cv_func_dlopen = yes; then
8910 lt_cv_dlopen="dlopen"
8911 else
8912 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 ac_check_lib_save_LIBS=$LIBS
8918 LIBS="-ldl $LIBS"
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h. */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925
8926 /* Override any gcc2 internal prototype to avoid an error. */
8927 #ifdef __cplusplus
8928 extern "C"
8929 #endif
8930 /* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8932 char dlopen ();
8933 int
8934 main ()
8935 {
8936 dlopen ();
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 ac_cv_lib_dl_dlopen=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968 ac_cv_lib_dl_dlopen=no
8969 fi
8970 rm -f conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8973 fi
8974 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8975 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8976 if test $ac_cv_lib_dl_dlopen = yes; then
8977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8978 else
8979 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8980 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8981 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-lsvld $LIBS"
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h. */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992
8993 /* Override any gcc2 internal prototype to avoid an error. */
8994 #ifdef __cplusplus
8995 extern "C"
8996 #endif
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
8999 char dlopen ();
9000 int
9001 main ()
9002 {
9003 dlopen ();
9004 ;
9005 return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010 (eval $ac_link) 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_lib_svld_dlopen=yes
9031 else
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 ac_cv_lib_svld_dlopen=no
9036 fi
9037 rm -f conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 LIBS=$ac_check_lib_save_LIBS
9040 fi
9041 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9042 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9043 if test $ac_cv_lib_svld_dlopen = yes; then
9044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9045 else
9046 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9047 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9048 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-ldld $LIBS"
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9066 char dld_link ();
9067 int
9068 main ()
9069 {
9070 dld_link ();
9071 ;
9072 return 0;
9073 }
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077 (eval $ac_link) 2>conftest.er1
9078 ac_status=$?
9079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -z "$ac_c_werror_flag"
9085 || test ! -s conftest.err'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 (eval $ac_try) 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 (eval $ac_try) 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_lib_dld_dld_link=yes
9098 else
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9101
9102 ac_cv_lib_dld_dld_link=no
9103 fi
9104 rm -f conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 LIBS=$ac_check_lib_save_LIBS
9107 fi
9108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9109 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9110 if test $ac_cv_lib_dld_dld_link = yes; then
9111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9112 fi
9113
9114
9115 fi
9116
9117
9118 fi
9119
9120
9121 fi
9122
9123
9124 fi
9125
9126
9127 fi
9128
9129 ;;
9130 esac
9131
9132 if test "x$lt_cv_dlopen" != xno; then
9133 enable_dlopen=yes
9134 else
9135 enable_dlopen=no
9136 fi
9137
9138 case $lt_cv_dlopen in
9139 dlopen)
9140 save_CPPFLAGS="$CPPFLAGS"
9141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9142
9143 save_LDFLAGS="$LDFLAGS"
9144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9145
9146 save_LIBS="$LIBS"
9147 LIBS="$lt_cv_dlopen_libs $LIBS"
9148
9149 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9150 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9151 if test "${lt_cv_dlopen_self+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 if test "$cross_compiling" = yes; then :
9155 lt_cv_dlopen_self=cross
9156 else
9157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9158 lt_status=$lt_dlunknown
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9160 "configure"
9161 #include "confdefs.h"
9162
9163 #if HAVE_DLFCN_H
9164 #include <dlfcn.h>
9165 #endif
9166
9167 #include <stdio.h>
9168
9169 #ifdef RTLD_GLOBAL
9170 # define LT_DLGLOBAL RTLD_GLOBAL
9171 #else
9172 # ifdef DL_GLOBAL
9173 # define LT_DLGLOBAL DL_GLOBAL
9174 # else
9175 # define LT_DLGLOBAL 0
9176 # endif
9177 #endif
9178
9179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9180 find out it does not work in some platform. */
9181 #ifndef LT_DLLAZY_OR_NOW
9182 # ifdef RTLD_LAZY
9183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9184 # else
9185 # ifdef DL_LAZY
9186 # define LT_DLLAZY_OR_NOW DL_LAZY
9187 # else
9188 # ifdef RTLD_NOW
9189 # define LT_DLLAZY_OR_NOW RTLD_NOW
9190 # else
9191 # ifdef DL_NOW
9192 # define LT_DLLAZY_OR_NOW DL_NOW
9193 # else
9194 # define LT_DLLAZY_OR_NOW 0
9195 # endif
9196 # endif
9197 # endif
9198 # endif
9199 #endif
9200
9201 #ifdef __cplusplus
9202 extern "C" void exit (int);
9203 #endif
9204
9205 void fnord() { int i=42;}
9206 int main ()
9207 {
9208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9209 int status = $lt_dlunknown;
9210
9211 if (self)
9212 {
9213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9214 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9215 /* dlclose (self); */
9216 }
9217 else
9218 puts (dlerror ());
9219
9220 exit (status);
9221 }
9222 EOF
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9228 (./conftest; exit; ) >&5 2>/dev/null
9229 lt_status=$?
9230 case x$lt_status in
9231 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9232 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9233 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9234 esac
9235 else :
9236 # compilation failed
9237 lt_cv_dlopen_self=no
9238 fi
9239 fi
9240 rm -fr conftest*
9241
9242
9243 fi
9244 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9245 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9246
9247 if test "x$lt_cv_dlopen_self" = xyes; then
9248 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9249 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9250 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9251 if test "${lt_cv_dlopen_self_static+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254 if test "$cross_compiling" = yes; then :
9255 lt_cv_dlopen_self_static=cross
9256 else
9257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9258 lt_status=$lt_dlunknown
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9260 "configure"
9261 #include "confdefs.h"
9262
9263 #if HAVE_DLFCN_H
9264 #include <dlfcn.h>
9265 #endif
9266
9267 #include <stdio.h>
9268
9269 #ifdef RTLD_GLOBAL
9270 # define LT_DLGLOBAL RTLD_GLOBAL
9271 #else
9272 # ifdef DL_GLOBAL
9273 # define LT_DLGLOBAL DL_GLOBAL
9274 # else
9275 # define LT_DLGLOBAL 0
9276 # endif
9277 #endif
9278
9279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9280 find out it does not work in some platform. */
9281 #ifndef LT_DLLAZY_OR_NOW
9282 # ifdef RTLD_LAZY
9283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9284 # else
9285 # ifdef DL_LAZY
9286 # define LT_DLLAZY_OR_NOW DL_LAZY
9287 # else
9288 # ifdef RTLD_NOW
9289 # define LT_DLLAZY_OR_NOW RTLD_NOW
9290 # else
9291 # ifdef DL_NOW
9292 # define LT_DLLAZY_OR_NOW DL_NOW
9293 # else
9294 # define LT_DLLAZY_OR_NOW 0
9295 # endif
9296 # endif
9297 # endif
9298 # endif
9299 #endif
9300
9301 #ifdef __cplusplus
9302 extern "C" void exit (int);
9303 #endif
9304
9305 void fnord() { int i=42;}
9306 int main ()
9307 {
9308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9309 int status = $lt_dlunknown;
9310
9311 if (self)
9312 {
9313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9314 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9315 /* dlclose (self); */
9316 }
9317 else
9318 puts (dlerror ());
9319
9320 exit (status);
9321 }
9322 EOF
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9328 (./conftest; exit; ) >&5 2>/dev/null
9329 lt_status=$?
9330 case x$lt_status in
9331 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9332 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9333 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9334 esac
9335 else :
9336 # compilation failed
9337 lt_cv_dlopen_self_static=no
9338 fi
9339 fi
9340 rm -fr conftest*
9341
9342
9343 fi
9344 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9345 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9346 fi
9347
9348 CPPFLAGS="$save_CPPFLAGS"
9349 LDFLAGS="$save_LDFLAGS"
9350 LIBS="$save_LIBS"
9351 ;;
9352 esac
9353
9354 case $lt_cv_dlopen_self in
9355 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9356 *) enable_dlopen_self=unknown ;;
9357 esac
9358
9359 case $lt_cv_dlopen_self_static in
9360 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9361 *) enable_dlopen_self_static=unknown ;;
9362 esac
9363 fi
9364
9365
9366 # Report which library types will actually be built
9367 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9368 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9369 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9370 echo "${ECHO_T}$can_build_shared" >&6
9371
9372 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9373 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9374 test "$can_build_shared" = "no" && enable_shared=no
9375
9376 # On AIX, shared libraries and static libraries use the same namespace, and
9377 # are all built from PIC.
9378 case $host_os in
9379 aix3*)
9380 test "$enable_shared" = yes && enable_static=no
9381 if test -n "$RANLIB"; then
9382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9383 postinstall_cmds='$RANLIB $lib'
9384 fi
9385 ;;
9386
9387 aix4* | aix5*)
9388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9389 test "$enable_shared" = yes && enable_static=no
9390 fi
9391 ;;
9392 esac
9393 echo "$as_me:$LINENO: result: $enable_shared" >&5
9394 echo "${ECHO_T}$enable_shared" >&6
9395
9396 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9397 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9398 # Make sure either enable_shared or enable_static is yes.
9399 test "$enable_shared" = yes || enable_static=yes
9400 echo "$as_me:$LINENO: result: $enable_static" >&5
9401 echo "${ECHO_T}$enable_static" >&6
9402
9403 # The else clause should only fire when bootstrapping the
9404 # libtool distribution, otherwise you forgot to ship ltmain.sh
9405 # with your package, and you will get complaints that there are
9406 # no rules to generate ltmain.sh.
9407 if test -f "$ltmain"; then
9408 # See if we are running on zsh, and set the options which allow our commands through
9409 # without removal of \ escapes.
9410 if test -n "${ZSH_VERSION+set}" ; then
9411 setopt NO_GLOB_SUBST
9412 fi
9413 # Now quote all the things that may contain metacharacters while being
9414 # careful not to overquote the AC_SUBSTed values. We take copies of the
9415 # variables and quote the copies for generation of the libtool script.
9416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9417 SED SHELL STRIP \
9418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9420 deplibs_check_method reload_flag reload_cmds need_locks \
9421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9422 lt_cv_sys_global_symbol_to_c_name_address \
9423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9424 old_postinstall_cmds old_postuninstall_cmds \
9425 compiler \
9426 CC \
9427 LD \
9428 lt_prog_compiler_wl \
9429 lt_prog_compiler_pic \
9430 lt_prog_compiler_static \
9431 lt_prog_compiler_no_builtin_flag \
9432 export_dynamic_flag_spec \
9433 thread_safe_flag_spec \
9434 whole_archive_flag_spec \
9435 enable_shared_with_static_runtimes \
9436 old_archive_cmds \
9437 old_archive_from_new_cmds \
9438 predep_objects \
9439 postdep_objects \
9440 predeps \
9441 postdeps \
9442 compiler_lib_search_path \
9443 archive_cmds \
9444 archive_expsym_cmds \
9445 postinstall_cmds \
9446 postuninstall_cmds \
9447 old_archive_from_expsyms_cmds \
9448 allow_undefined_flag \
9449 no_undefined_flag \
9450 export_symbols_cmds \
9451 hardcode_libdir_flag_spec \
9452 hardcode_libdir_flag_spec_ld \
9453 hardcode_libdir_separator \
9454 hardcode_automatic \
9455 module_cmds \
9456 module_expsym_cmds \
9457 lt_cv_prog_compiler_c_o \
9458 exclude_expsyms \
9459 include_expsyms; do
9460
9461 case $var in
9462 old_archive_cmds | \
9463 old_archive_from_new_cmds | \
9464 archive_cmds | \
9465 archive_expsym_cmds | \
9466 module_cmds | \
9467 module_expsym_cmds | \
9468 old_archive_from_expsyms_cmds | \
9469 export_symbols_cmds | \
9470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9471 postinstall_cmds | postuninstall_cmds | \
9472 old_postinstall_cmds | old_postuninstall_cmds | \
9473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9474 # Double-quote double-evaled strings.
9475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9476 ;;
9477 *)
9478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9479 ;;
9480 esac
9481 done
9482
9483 case $lt_echo in
9484 *'\$0 --fallback-echo"')
9485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9486 ;;
9487 esac
9488
9489 cfgfile="${ofile}T"
9490 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9491 $rm -f "$cfgfile"
9492 { echo "$as_me:$LINENO: creating $ofile" >&5
9493 echo "$as_me: creating $ofile" >&6;}
9494
9495 cat <<__EOF__ >> "$cfgfile"
9496 #! $SHELL
9497
9498 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9499 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9500 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9501 #
9502 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9503 # Free Software Foundation, Inc.
9504 #
9505 # This file is part of GNU Libtool:
9506 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9507 #
9508 # This program is free software; you can redistribute it and/or modify
9509 # it under the terms of the GNU General Public License as published by
9510 # the Free Software Foundation; either version 2 of the License, or
9511 # (at your option) any later version.
9512 #
9513 # This program is distributed in the hope that it will be useful, but
9514 # WITHOUT ANY WARRANTY; without even the implied warranty of
9515 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9516 # General Public License for more details.
9517 #
9518 # You should have received a copy of the GNU General Public License
9519 # along with this program; if not, write to the Free Software
9520 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9521 #
9522 # As a special exception to the GNU General Public License, if you
9523 # distribute this file as part of a program that contains a
9524 # configuration script generated by Autoconf, you may include it under
9525 # the same distribution terms that you use for the rest of that program.
9526
9527 # A sed program that does not truncate output.
9528 SED=$lt_SED
9529
9530 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9531 Xsed="$SED -e 1s/^X//"
9532
9533 # The HP-UX ksh and POSIX shell print the target directory to stdout
9534 # if CDPATH is set.
9535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9536
9537 # The names of the tagged configurations supported by this script.
9538 available_tags=
9539
9540 # ### BEGIN LIBTOOL CONFIG
9541
9542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9543
9544 # Shell to use when invoking shell scripts.
9545 SHELL=$lt_SHELL
9546
9547 # Whether or not to build shared libraries.
9548 build_libtool_libs=$enable_shared
9549
9550 # Whether or not to build static libraries.
9551 build_old_libs=$enable_static
9552
9553 # Whether or not to add -lc for building shared libraries.
9554 build_libtool_need_lc=$archive_cmds_need_lc
9555
9556 # Whether or not to disallow shared libs when runtime libs are static
9557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9558
9559 # Whether or not to optimize for fast installation.
9560 fast_install=$enable_fast_install
9561
9562 # The host system.
9563 host_alias=$host_alias
9564 host=$host
9565 host_os=$host_os
9566
9567 # The build system.
9568 build_alias=$build_alias
9569 build=$build
9570 build_os=$build_os
9571
9572 # An echo program that does not interpret backslashes.
9573 echo=$lt_echo
9574
9575 # The archiver.
9576 AR=$lt_AR
9577 AR_FLAGS=$lt_AR_FLAGS
9578
9579 # A C compiler.
9580 LTCC=$lt_LTCC
9581
9582 # LTCC compiler flags.
9583 LTCFLAGS=$lt_LTCFLAGS
9584
9585 # A language-specific compiler.
9586 CC=$lt_compiler
9587
9588 # Is the compiler the GNU C compiler?
9589 with_gcc=$GCC
9590
9591 # An ERE matcher.
9592 EGREP=$lt_EGREP
9593
9594 # The linker used to build libraries.
9595 LD=$lt_LD
9596
9597 # Whether we need hard or soft links.
9598 LN_S=$lt_LN_S
9599
9600 # A BSD-compatible nm program.
9601 NM=$lt_NM
9602
9603 # A symbol stripping program
9604 STRIP=$lt_STRIP
9605
9606 # Used to examine libraries when file_magic_cmd begins "file"
9607 MAGIC_CMD=$MAGIC_CMD
9608
9609 # Used on cygwin: DLL creation program.
9610 DLLTOOL="$DLLTOOL"
9611
9612 # Used on cygwin: object dumper.
9613 OBJDUMP="$OBJDUMP"
9614
9615 # Used on cygwin: assembler.
9616 AS="$AS"
9617
9618 # The name of the directory that contains temporary libtool files.
9619 objdir=$objdir
9620
9621 # How to create reloadable object files.
9622 reload_flag=$lt_reload_flag
9623 reload_cmds=$lt_reload_cmds
9624
9625 # How to pass a linker flag through the compiler.
9626 wl=$lt_lt_prog_compiler_wl
9627
9628 # Object file suffix (normally "o").
9629 objext="$ac_objext"
9630
9631 # Old archive suffix (normally "a").
9632 libext="$libext"
9633
9634 # Shared library suffix (normally ".so").
9635 shrext_cmds='$shrext_cmds'
9636
9637 # Executable file suffix (normally "").
9638 exeext="$exeext"
9639
9640 # Additional compiler flags for building library objects.
9641 pic_flag=$lt_lt_prog_compiler_pic
9642 pic_mode=$pic_mode
9643
9644 # What is the maximum length of a command?
9645 max_cmd_len=$lt_cv_sys_max_cmd_len
9646
9647 # Does compiler simultaneously support -c and -o options?
9648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9649
9650 # Must we lock files when doing compilation?
9651 need_locks=$lt_need_locks
9652
9653 # Do we need the lib prefix for modules?
9654 need_lib_prefix=$need_lib_prefix
9655
9656 # Do we need a version for libraries?
9657 need_version=$need_version
9658
9659 # Whether dlopen is supported.
9660 dlopen_support=$enable_dlopen
9661
9662 # Whether dlopen of programs is supported.
9663 dlopen_self=$enable_dlopen_self
9664
9665 # Whether dlopen of statically linked programs is supported.
9666 dlopen_self_static=$enable_dlopen_self_static
9667
9668 # Compiler flag to prevent dynamic linking.
9669 link_static_flag=$lt_lt_prog_compiler_static
9670
9671 # Compiler flag to turn off builtin functions.
9672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9673
9674 # Compiler flag to allow reflexive dlopens.
9675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9676
9677 # Compiler flag to generate shared objects directly from archives.
9678 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9679
9680 # Compiler flag to generate thread-safe objects.
9681 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9682
9683 # Library versioning type.
9684 version_type=$version_type
9685
9686 # Format of library name prefix.
9687 libname_spec=$lt_libname_spec
9688
9689 # List of archive names. First name is the real one, the rest are links.
9690 # The last name is the one that the linker finds with -lNAME.
9691 library_names_spec=$lt_library_names_spec
9692
9693 # The coded name of the library, if different from the real name.
9694 soname_spec=$lt_soname_spec
9695
9696 # Commands used to build and install an old-style archive.
9697 RANLIB=$lt_RANLIB
9698 old_archive_cmds=$lt_old_archive_cmds
9699 old_postinstall_cmds=$lt_old_postinstall_cmds
9700 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9701
9702 # Create an old-style archive from a shared archive.
9703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9704
9705 # Create a temporary old-style archive to link instead of a shared archive.
9706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9707
9708 # Commands used to build and install a shared archive.
9709 archive_cmds=$lt_archive_cmds
9710 archive_expsym_cmds=$lt_archive_expsym_cmds
9711 postinstall_cmds=$lt_postinstall_cmds
9712 postuninstall_cmds=$lt_postuninstall_cmds
9713
9714 # Commands used to build a loadable module (assumed same as above if empty)
9715 module_cmds=$lt_module_cmds
9716 module_expsym_cmds=$lt_module_expsym_cmds
9717
9718 # Commands to strip libraries.
9719 old_striplib=$lt_old_striplib
9720 striplib=$lt_striplib
9721
9722 # Dependencies to place before the objects being linked to create a
9723 # shared library.
9724 predep_objects=$lt_predep_objects
9725
9726 # Dependencies to place after the objects being linked to create a
9727 # shared library.
9728 postdep_objects=$lt_postdep_objects
9729
9730 # Dependencies to place before the objects being linked to create a
9731 # shared library.
9732 predeps=$lt_predeps
9733
9734 # Dependencies to place after the objects being linked to create a
9735 # shared library.
9736 postdeps=$lt_postdeps
9737
9738 # The library search path used internally by the compiler when linking
9739 # a shared library.
9740 compiler_lib_search_path=$lt_compiler_lib_search_path
9741
9742 # Method to check whether dependent libraries are shared objects.
9743 deplibs_check_method=$lt_deplibs_check_method
9744
9745 # Command to use when deplibs_check_method == file_magic.
9746 file_magic_cmd=$lt_file_magic_cmd
9747
9748 # Flag that allows shared libraries with undefined symbols to be built.
9749 allow_undefined_flag=$lt_allow_undefined_flag
9750
9751 # Flag that forces no undefined symbols.
9752 no_undefined_flag=$lt_no_undefined_flag
9753
9754 # Commands used to finish a libtool library installation in a directory.
9755 finish_cmds=$lt_finish_cmds
9756
9757 # Same as above, but a single script fragment to be evaled but not shown.
9758 finish_eval=$lt_finish_eval
9759
9760 # Take the output of nm and produce a listing of raw symbols and C names.
9761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9762
9763 # Transform the output of nm in a proper C declaration
9764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9765
9766 # Transform the output of nm in a C name address pair
9767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9768
9769 # This is the shared library runtime path variable.
9770 runpath_var=$runpath_var
9771
9772 # This is the shared library path variable.
9773 shlibpath_var=$shlibpath_var
9774
9775 # Is shlibpath searched before the hard-coded library search path?
9776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9777
9778 # How to hardcode a shared library path into an executable.
9779 hardcode_action=$hardcode_action
9780
9781 # Whether we should hardcode library paths into libraries.
9782 hardcode_into_libs=$hardcode_into_libs
9783
9784 # Flag to hardcode \$libdir into a binary during linking.
9785 # This must work even if \$libdir does not exist.
9786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9787
9788 # If ld is used when linking, flag to hardcode \$libdir into
9789 # a binary during linking. This must work even if \$libdir does
9790 # not exist.
9791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9792
9793 # Whether we need a single -rpath flag with a separated argument.
9794 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9795
9796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9797 # resulting binary.
9798 hardcode_direct=$hardcode_direct
9799
9800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9801 # resulting binary.
9802 hardcode_minus_L=$hardcode_minus_L
9803
9804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9805 # the resulting binary.
9806 hardcode_shlibpath_var=$hardcode_shlibpath_var
9807
9808 # Set to yes if building a shared library automatically hardcodes DIR into the library
9809 # and all subsequent libraries and executables linked against it.
9810 hardcode_automatic=$hardcode_automatic
9811
9812 # Variables whose values should be saved in libtool wrapper scripts and
9813 # restored at relink time.
9814 variables_saved_for_relink="$variables_saved_for_relink"
9815
9816 # Whether libtool must link a program against all its dependency libraries.
9817 link_all_deplibs=$link_all_deplibs
9818
9819 # Compile-time system search path for libraries
9820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9821
9822 # Run-time system search path for libraries
9823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9824
9825 # Fix the shell variable \$srcfile for the compiler.
9826 fix_srcfile_path="$fix_srcfile_path"
9827
9828 # Set to yes if exported symbols are required.
9829 always_export_symbols=$always_export_symbols
9830
9831 # The commands to list exported symbols.
9832 export_symbols_cmds=$lt_export_symbols_cmds
9833
9834 # The commands to extract the exported symbol list from a shared archive.
9835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9836
9837 # Symbols that should not be listed in the preloaded symbols.
9838 exclude_expsyms=$lt_exclude_expsyms
9839
9840 # Symbols that must always be exported.
9841 include_expsyms=$lt_include_expsyms
9842
9843 # ### END LIBTOOL CONFIG
9844
9845 __EOF__
9846
9847
9848 case $host_os in
9849 aix3*)
9850 cat <<\EOF >> "$cfgfile"
9851
9852 # AIX sometimes has problems with the GCC collect2 program. For some
9853 # reason, if we set the COLLECT_NAMES environment variable, the problems
9854 # vanish in a puff of smoke.
9855 if test "X${COLLECT_NAMES+set}" != Xset; then
9856 COLLECT_NAMES=
9857 export COLLECT_NAMES
9858 fi
9859 EOF
9860 ;;
9861 esac
9862
9863 # We use sed instead of cat because bash on DJGPP gets confused if
9864 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9865 # text mode, it properly converts lines to CR/LF. This bash problem
9866 # is reportedly fixed, but why not run on old versions too?
9867 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9868
9869 mv -f "$cfgfile" "$ofile" || \
9870 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9871 chmod +x "$ofile"
9872
9873 else
9874 # If there is no Makefile yet, we rely on a make rule to execute
9875 # `config.status --recheck' to rerun these tests and create the
9876 # libtool script then.
9877 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9878 if test -f "$ltmain_in"; then
9879 test -f Makefile && make "$ltmain"
9880 fi
9881 fi
9882
9883
9884 ac_ext=c
9885 ac_cpp='$CPP $CPPFLAGS'
9886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889
9890 CC="$lt_save_CC"
9891
9892
9893 # Check whether --with-tags or --without-tags was given.
9894 if test "${with_tags+set}" = set; then
9895 withval="$with_tags"
9896 tagnames="$withval"
9897 fi;
9898
9899 if test -f "$ltmain" && test -n "$tagnames"; then
9900 if test ! -f "${ofile}"; then
9901 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9902 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9903 fi
9904
9905 if test -z "$LTCC"; then
9906 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9907 if test -z "$LTCC"; then
9908 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9909 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9910 else
9911 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9912 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9913 fi
9914 fi
9915 if test -z "$LTCFLAGS"; then
9916 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9917 fi
9918
9919 # Extract list of available tagged configurations in $ofile.
9920 # Note that this assumes the entire list is on one line.
9921 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9922
9923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9924 for tagname in $tagnames; do
9925 IFS="$lt_save_ifs"
9926 # Check whether tagname contains only valid characters
9927 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9928 "") ;;
9929 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9930 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9931 { (exit 1); exit 1; }; }
9932 ;;
9933 esac
9934
9935 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9936 then
9937 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9938 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9939 { (exit 1); exit 1; }; }
9940 fi
9941
9942 # Update the list of available tags.
9943 if test -n "$tagname"; then
9944 echo appending configuration tag \"$tagname\" to $ofile
9945
9946 case $tagname in
9947 CXX)
9948 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9949 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9950 (test "X$CXX" != "Xg++"))) ; then
9951 ac_ext=cc
9952 ac_cpp='$CXXCPP $CPPFLAGS'
9953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9956
9957
9958
9959
9960 archive_cmds_need_lc_CXX=no
9961 allow_undefined_flag_CXX=
9962 always_export_symbols_CXX=no
9963 archive_expsym_cmds_CXX=
9964 export_dynamic_flag_spec_CXX=
9965 hardcode_direct_CXX=no
9966 hardcode_libdir_flag_spec_CXX=
9967 hardcode_libdir_flag_spec_ld_CXX=
9968 hardcode_libdir_separator_CXX=
9969 hardcode_minus_L_CXX=no
9970 hardcode_shlibpath_var_CXX=unsupported
9971 hardcode_automatic_CXX=no
9972 module_cmds_CXX=
9973 module_expsym_cmds_CXX=
9974 link_all_deplibs_CXX=unknown
9975 old_archive_cmds_CXX=$old_archive_cmds
9976 no_undefined_flag_CXX=
9977 whole_archive_flag_spec_CXX=
9978 enable_shared_with_static_runtimes_CXX=no
9979
9980 # Dependencies to place before and after the object being linked:
9981 predep_objects_CXX=
9982 postdep_objects_CXX=
9983 predeps_CXX=
9984 postdeps_CXX=
9985 compiler_lib_search_path_CXX=
9986
9987 # Source file extension for C++ test sources.
9988 ac_ext=cpp
9989
9990 # Object file extension for compiled C++ test sources.
9991 objext=o
9992 objext_CXX=$objext
9993
9994 # Code to be used in simple compile tests
9995 lt_simple_compile_test_code="int some_variable = 0;\n"
9996
9997 # Code to be used in simple link tests
9998 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9999
10000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10001
10002 # If no C compiler was specified, use CC.
10003 LTCC=${LTCC-"$CC"}
10004
10005 # If no C compiler flags were specified, use CFLAGS.
10006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10007
10008 # Allow CC to be a program name with arguments.
10009 compiler=$CC
10010
10011
10012 # save warnings/boilerplate of simple test code
10013 ac_outfile=conftest.$ac_objext
10014 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10016 _lt_compiler_boilerplate=`cat conftest.err`
10017 $rm conftest*
10018
10019 ac_outfile=conftest.$ac_objext
10020 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10022 _lt_linker_boilerplate=`cat conftest.err`
10023 $rm conftest*
10024
10025
10026 # Allow CC to be a program name with arguments.
10027 lt_save_CC=$CC
10028 lt_save_LD=$LD
10029 lt_save_GCC=$GCC
10030 GCC=$GXX
10031 lt_save_with_gnu_ld=$with_gnu_ld
10032 lt_save_path_LD=$lt_cv_path_LD
10033 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10034 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10035 else
10036 $as_unset lt_cv_prog_gnu_ld
10037 fi
10038 if test -n "${lt_cv_path_LDCXX+set}"; then
10039 lt_cv_path_LD=$lt_cv_path_LDCXX
10040 else
10041 $as_unset lt_cv_path_LD
10042 fi
10043 test -z "${LDCXX+set}" || LD=$LDCXX
10044 CC=${CXX-"c++"}
10045 compiler=$CC
10046 compiler_CXX=$CC
10047 for cc_temp in $compiler""; do
10048 case $cc_temp in
10049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10051 \-*) ;;
10052 *) break;;
10053 esac
10054 done
10055 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10056
10057
10058 # We don't want -fno-exception wen compiling C++ code, so set the
10059 # no_builtin_flag separately
10060 if test "$GXX" = yes; then
10061 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10062 else
10063 lt_prog_compiler_no_builtin_flag_CXX=
10064 fi
10065
10066 if test "$GXX" = yes; then
10067 # Set up default GNU C++ configuration
10068
10069
10070 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10071 if test "${with_gnu_ld+set}" = set; then
10072 withval="$with_gnu_ld"
10073 test "$withval" = no || with_gnu_ld=yes
10074 else
10075 with_gnu_ld=no
10076 fi;
10077 ac_prog=ld
10078 if test "$GCC" = yes; then
10079 # Check if gcc -print-prog-name=ld gives a path.
10080 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10081 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10082 case $host in
10083 *-*-mingw*)
10084 # gcc leaves a trailing carriage return which upsets mingw
10085 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10086 *)
10087 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10088 esac
10089 case $ac_prog in
10090 # Accept absolute paths.
10091 [\\/]* | ?:[\\/]*)
10092 re_direlt='/[^/][^/]*/\.\./'
10093 # Canonicalize the pathname of ld
10094 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10095 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10096 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10097 done
10098 test -z "$LD" && LD="$ac_prog"
10099 ;;
10100 "")
10101 # If it fails, then pretend we aren't using GCC.
10102 ac_prog=ld
10103 ;;
10104 *)
10105 # If it is relative, then search for the first ld in PATH.
10106 with_gnu_ld=unknown
10107 ;;
10108 esac
10109 elif test "$with_gnu_ld" = yes; then
10110 echo "$as_me:$LINENO: checking for GNU ld" >&5
10111 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10112 else
10113 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10114 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10115 fi
10116 if test "${lt_cv_path_LD+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 if test -z "$LD"; then
10120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10121 for ac_dir in $PATH; do
10122 IFS="$lt_save_ifs"
10123 test -z "$ac_dir" && ac_dir=.
10124 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10125 lt_cv_path_LD="$ac_dir/$ac_prog"
10126 # Check to see if the program is GNU ld. I'd rather use --version,
10127 # but apparently some variants of GNU ld only accept -v.
10128 # Break only if it was the GNU/non-GNU ld that we prefer.
10129 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10130 *GNU* | *'with BFD'*)
10131 test "$with_gnu_ld" != no && break
10132 ;;
10133 *)
10134 test "$with_gnu_ld" != yes && break
10135 ;;
10136 esac
10137 fi
10138 done
10139 IFS="$lt_save_ifs"
10140 else
10141 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10142 fi
10143 fi
10144
10145 LD="$lt_cv_path_LD"
10146 if test -n "$LD"; then
10147 echo "$as_me:$LINENO: result: $LD" >&5
10148 echo "${ECHO_T}$LD" >&6
10149 else
10150 echo "$as_me:$LINENO: result: no" >&5
10151 echo "${ECHO_T}no" >&6
10152 fi
10153 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10154 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10155 { (exit 1); exit 1; }; }
10156 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10157 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10158 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10162 case `$LD -v 2>&1 </dev/null` in
10163 *GNU* | *'with BFD'*)
10164 lt_cv_prog_gnu_ld=yes
10165 ;;
10166 *)
10167 lt_cv_prog_gnu_ld=no
10168 ;;
10169 esac
10170 fi
10171 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10172 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10173 with_gnu_ld=$lt_cv_prog_gnu_ld
10174
10175
10176
10177 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10178 # archiving commands below assume that GNU ld is being used.
10179 if test "$with_gnu_ld" = yes; then
10180 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181 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'
10182
10183 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10184 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10185
10186 # If archive_cmds runs LD, not CC, wlarc should be empty
10187 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10188 # investigate it a little bit more. (MM)
10189 wlarc='${wl}'
10190
10191 # ancient GNU ld didn't support --whole-archive et. al.
10192 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10193 grep 'no-whole-archive' > /dev/null; then
10194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10195 else
10196 whole_archive_flag_spec_CXX=
10197 fi
10198 else
10199 with_gnu_ld=no
10200 wlarc=
10201
10202 # A generic and very simple default shared library creation
10203 # command for GNU C++ for the case where it uses the native
10204 # linker, instead of GNU ld. If possible, this setting should
10205 # overridden to take advantage of the native linker features on
10206 # the platform it is being used on.
10207 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10208 fi
10209
10210 # Commands to make compiler produce verbose output that lists
10211 # what "hidden" libraries, object files and flags are used when
10212 # linking a shared library.
10213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10214
10215 else
10216 GXX=no
10217 with_gnu_ld=no
10218 wlarc=
10219 fi
10220
10221 # PORTME: fill in a description of your system's C++ link characteristics
10222 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10224 ld_shlibs_CXX=yes
10225 case $host_os in
10226 aix3*)
10227 # FIXME: insert proper C++ library support
10228 ld_shlibs_CXX=no
10229 ;;
10230 aix4* | aix5*)
10231 if test "$host_cpu" = ia64; then
10232 # On IA64, the linker does run time linking by default, so we don't
10233 # have to do anything special.
10234 aix_use_runtimelinking=no
10235 exp_sym_flag='-Bexport'
10236 no_entry_flag=""
10237 else
10238 aix_use_runtimelinking=no
10239
10240 # Test if we are trying to use run time linking or normal
10241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10242 # need to do runtime linking.
10243 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10244 for ld_flag in $LDFLAGS; do
10245 case $ld_flag in
10246 *-brtl*)
10247 aix_use_runtimelinking=yes
10248 break
10249 ;;
10250 esac
10251 done
10252 ;;
10253 esac
10254
10255 exp_sym_flag='-bexport'
10256 no_entry_flag='-bnoentry'
10257 fi
10258
10259 # When large executables or shared objects are built, AIX ld can
10260 # have problems creating the table of contents. If linking a library
10261 # or program results in "error TOC overflow" add -mminimal-toc to
10262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10264
10265 archive_cmds_CXX=''
10266 hardcode_direct_CXX=yes
10267 hardcode_libdir_separator_CXX=':'
10268 link_all_deplibs_CXX=yes
10269
10270 if test "$GXX" = yes; then
10271 case $host_os in aix4.[012]|aix4.[012].*)
10272 # We only want to do this on AIX 4.2 and lower, the check
10273 # below for broken collect2 doesn't work under 4.3+
10274 collect2name=`${CC} -print-prog-name=collect2`
10275 if test -f "$collect2name" && \
10276 strings "$collect2name" | grep resolve_lib_name >/dev/null
10277 then
10278 # We have reworked collect2
10279 hardcode_direct_CXX=yes
10280 else
10281 # We have old collect2
10282 hardcode_direct_CXX=unsupported
10283 # It fails to find uninstalled libraries when the uninstalled
10284 # path is not listed in the libpath. Setting hardcode_minus_L
10285 # to unsupported forces relinking
10286 hardcode_minus_L_CXX=yes
10287 hardcode_libdir_flag_spec_CXX='-L$libdir'
10288 hardcode_libdir_separator_CXX=
10289 fi
10290 ;;
10291 esac
10292 shared_flag='-shared'
10293 if test "$aix_use_runtimelinking" = yes; then
10294 shared_flag="$shared_flag "'${wl}-G'
10295 fi
10296 else
10297 # not using gcc
10298 if test "$host_cpu" = ia64; then
10299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10300 # chokes on -Wl,-G. The following line is correct:
10301 shared_flag='-G'
10302 else
10303 if test "$aix_use_runtimelinking" = yes; then
10304 shared_flag='${wl}-G'
10305 else
10306 shared_flag='${wl}-bM:SRE'
10307 fi
10308 fi
10309 fi
10310
10311 # It seems that -bexpall does not export symbols beginning with
10312 # underscore (_), so it is better to generate a list of symbols to export.
10313 always_export_symbols_CXX=yes
10314 if test "$aix_use_runtimelinking" = yes; then
10315 # Warning - without using the other runtime loading flags (-brtl),
10316 # -berok will link without error, but may produce a broken library.
10317 allow_undefined_flag_CXX='-berok'
10318 # Determine the default libpath from the value encoded in an empty executable.
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325
10326 int
10327 main ()
10328 {
10329
10330 ;
10331 return 0;
10332 }
10333 _ACEOF
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336 (eval $ac_link) 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_cxx_werror_flag"
10344 || test ! -s conftest.err'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356
10357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10358 }'`
10359 # Check for a 64-bit object if we didn't find anything.
10360 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; }
10361 }'`; fi
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 fi
10367 rm -f conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext conftest.$ac_ext
10369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10370
10371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10372
10373 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10374 else
10375 if test "$host_cpu" = ia64; then
10376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10377 allow_undefined_flag_CXX="-z nodefs"
10378 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10379 else
10380 # Determine the default libpath from the value encoded in an empty executable.
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387
10388 int
10389 main ()
10390 {
10391
10392 ;
10393 return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_cxx_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest$ac_exeext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418
10419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10420 }'`
10421 # Check for a 64-bit object if we didn't find anything.
10422 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; }
10423 }'`; fi
10424 else
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 fi
10429 rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10432
10433 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10434 # Warning - without using the other run time loading flags,
10435 # -berok will link without error, but may produce a broken library.
10436 no_undefined_flag_CXX=' ${wl}-bernotok'
10437 allow_undefined_flag_CXX=' ${wl}-berok'
10438 # Exported symbols can be pulled into shared objects from archives
10439 whole_archive_flag_spec_CXX='$convenience'
10440 archive_cmds_need_lc_CXX=yes
10441 # This is similar to how AIX traditionally builds its shared libraries.
10442 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10443 fi
10444 fi
10445 ;;
10446
10447 beos*)
10448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10449 allow_undefined_flag_CXX=unsupported
10450 # Joseph Beckenbach <[email protected]> says some releases of gcc
10451 # support --undefined. This deserves some investigation. FIXME
10452 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10453 else
10454 ld_shlibs_CXX=no
10455 fi
10456 ;;
10457
10458 chorus*)
10459 case $cc_basename in
10460 *)
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 ;;
10464 esac
10465 ;;
10466
10467 cygwin* | mingw* | pw32*)
10468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10469 # as there is no search path for DLLs.
10470 hardcode_libdir_flag_spec_CXX='-L$libdir'
10471 allow_undefined_flag_CXX=unsupported
10472 always_export_symbols_CXX=no
10473 enable_shared_with_static_runtimes_CXX=yes
10474
10475 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10477 # If the export-symbols file already is a .def file (1st line
10478 # is EXPORTS), use it as is; otherwise, prepend...
10479 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10480 cp $export_symbols $output_objdir/$soname.def;
10481 else
10482 echo EXPORTS > $output_objdir/$soname.def;
10483 cat $export_symbols >> $output_objdir/$soname.def;
10484 fi~
10485 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10486 else
10487 ld_shlibs_CXX=no
10488 fi
10489 ;;
10490 darwin* | rhapsody*)
10491 case $host_os in
10492 rhapsody* | darwin1.[012])
10493 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10494 ;;
10495 *) # Darwin 1.3 on
10496 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10497 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10498 else
10499 case ${MACOSX_DEPLOYMENT_TARGET} in
10500 10.[012])
10501 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10502 ;;
10503 10.*)
10504 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10505 ;;
10506 esac
10507 fi
10508 ;;
10509 esac
10510 archive_cmds_need_lc_CXX=no
10511 hardcode_direct_CXX=no
10512 hardcode_automatic_CXX=yes
10513 hardcode_shlibpath_var_CXX=unsupported
10514 whole_archive_flag_spec_CXX=''
10515 link_all_deplibs_CXX=yes
10516
10517 if test "$GXX" = yes ; then
10518 lt_int_apple_cc_single_mod=no
10519 output_verbose_link_cmd='echo'
10520 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10521 lt_int_apple_cc_single_mod=yes
10522 fi
10523 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10524 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10525 else
10526 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10527 fi
10528 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10531 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}'
10532 else
10533 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10534 fi
10535 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}'
10536 else
10537 case $cc_basename in
10538 xlc*)
10539 output_verbose_link_cmd='echo'
10540 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10541 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10543 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10544 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}'
10545 ;;
10546 *)
10547 ld_shlibs_CXX=no
10548 ;;
10549 esac
10550 fi
10551 ;;
10552
10553 dgux*)
10554 case $cc_basename in
10555 ec++*)
10556 # FIXME: insert proper C++ library support
10557 ld_shlibs_CXX=no
10558 ;;
10559 ghcx*)
10560 # Green Hills C++ Compiler
10561 # FIXME: insert proper C++ library support
10562 ld_shlibs_CXX=no
10563 ;;
10564 *)
10565 # FIXME: insert proper C++ library support
10566 ld_shlibs_CXX=no
10567 ;;
10568 esac
10569 ;;
10570 freebsd[12]*)
10571 # C++ shared libraries reported to be fairly broken before switch to ELF
10572 ld_shlibs_CXX=no
10573 ;;
10574 freebsd-elf*)
10575 archive_cmds_need_lc_CXX=no
10576 ;;
10577 freebsd* | kfreebsd*-gnu | dragonfly*)
10578 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10579 # conventions
10580 ld_shlibs_CXX=yes
10581 ;;
10582 gnu*)
10583 ;;
10584 hpux9*)
10585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10586 hardcode_libdir_separator_CXX=:
10587 export_dynamic_flag_spec_CXX='${wl}-E'
10588 hardcode_direct_CXX=yes
10589 hardcode_minus_L_CXX=yes # Not in the search PATH,
10590 # but as the default
10591 # location of the library.
10592
10593 case $cc_basename in
10594 CC*)
10595 # FIXME: insert proper C++ library support
10596 ld_shlibs_CXX=no
10597 ;;
10598 aCC*)
10599 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'
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10603 #
10604 # There doesn't appear to be a way to prevent this compiler from
10605 # explicitly linking system object files so we need to strip them
10606 # from the output so that they don't get included in the library
10607 # dependencies.
10608 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'
10609 ;;
10610 *)
10611 if test "$GXX" = yes; then
10612 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'
10613 else
10614 # FIXME: insert proper C++ library support
10615 ld_shlibs_CXX=no
10616 fi
10617 ;;
10618 esac
10619 ;;
10620 hpux10*|hpux11*)
10621 if test $with_gnu_ld = no; then
10622 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10623 hardcode_libdir_separator_CXX=:
10624
10625 case $host_cpu in
10626 hppa*64*|ia64*)
10627 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10628 ;;
10629 *)
10630 export_dynamic_flag_spec_CXX='${wl}-E'
10631 ;;
10632 esac
10633 fi
10634 case $host_cpu in
10635 hppa*64*|ia64*)
10636 hardcode_direct_CXX=no
10637 hardcode_shlibpath_var_CXX=no
10638 ;;
10639 *)
10640 hardcode_direct_CXX=yes
10641 hardcode_minus_L_CXX=yes # Not in the search PATH,
10642 # but as the default
10643 # location of the library.
10644 ;;
10645 esac
10646
10647 case $cc_basename in
10648 CC*)
10649 # FIXME: insert proper C++ library support
10650 ld_shlibs_CXX=no
10651 ;;
10652 aCC*)
10653 case $host_cpu in
10654 hppa*64*)
10655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656 ;;
10657 ia64*)
10658 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10659 ;;
10660 *)
10661 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10662 ;;
10663 esac
10664 # Commands to make compiler produce verbose output that lists
10665 # what "hidden" libraries, object files and flags are used when
10666 # linking a shared library.
10667 #
10668 # There doesn't appear to be a way to prevent this compiler from
10669 # explicitly linking system object files so we need to strip them
10670 # from the output so that they don't get included in the library
10671 # dependencies.
10672 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'
10673 ;;
10674 *)
10675 if test "$GXX" = yes; then
10676 if test $with_gnu_ld = no; then
10677 case $host_cpu in
10678 hppa*64*)
10679 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10680 ;;
10681 ia64*)
10682 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10683 ;;
10684 *)
10685 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'
10686 ;;
10687 esac
10688 fi
10689 else
10690 # FIXME: insert proper C++ library support
10691 ld_shlibs_CXX=no
10692 fi
10693 ;;
10694 esac
10695 ;;
10696 interix3*)
10697 hardcode_direct_CXX=no
10698 hardcode_shlibpath_var_CXX=no
10699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10700 export_dynamic_flag_spec_CXX='${wl}-E'
10701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10702 # Instead, shared libraries are loaded at an image base (0x10000000 by
10703 # default) and relocated if they conflict, which is a slow very memory
10704 # consuming and fragmenting process. To avoid this, we pick a random,
10705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10706 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10707 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10708 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10709 ;;
10710 irix5* | irix6*)
10711 case $cc_basename in
10712 CC*)
10713 # SGI C++
10714 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10715
10716 # Archives containing C++ object files must be created using
10717 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10718 # necessary to make sure instantiated templates are included
10719 # in the archive.
10720 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10721 ;;
10722 *)
10723 if test "$GXX" = yes; then
10724 if test "$with_gnu_ld" = no; then
10725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10726 else
10727 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'
10728 fi
10729 fi
10730 link_all_deplibs_CXX=yes
10731 ;;
10732 esac
10733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10734 hardcode_libdir_separator_CXX=:
10735 ;;
10736 linux*)
10737 case $cc_basename in
10738 KCC*)
10739 # Kuck and Associates, Inc. (KAI) C++ Compiler
10740
10741 # KCC will only create a shared library if the output file
10742 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10743 # to its proper name (with version) after linking.
10744 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'
10745 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'
10746 # Commands to make compiler produce verbose output that lists
10747 # what "hidden" libraries, object files and flags are used when
10748 # linking a shared library.
10749 #
10750 # There doesn't appear to be a way to prevent this compiler from
10751 # explicitly linking system object files so we need to strip them
10752 # from the output so that they don't get included in the library
10753 # dependencies.
10754 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'
10755
10756 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10758
10759 # Archives containing C++ object files must be created using
10760 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10761 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10762 ;;
10763 icpc*)
10764 # Intel C++
10765 with_gnu_ld=yes
10766 # version 8.0 and above of icpc choke on multiply defined symbols
10767 # if we add $predep_objects and $postdep_objects, however 7.1 and
10768 # earlier do not add the objects themselves.
10769 case `$CC -V 2>&1` in
10770 *"Version 7."*)
10771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10772 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'
10773 ;;
10774 *) # Version 8.0 or newer
10775 tmp_idyn=
10776 case $host_cpu in
10777 ia64*) tmp_idyn=' -i_dynamic';;
10778 esac
10779 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10781 ;;
10782 esac
10783 archive_cmds_need_lc_CXX=no
10784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10786 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10787 ;;
10788 pgCC*)
10789 # Portland Group C++ compiler
10790 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10791 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10792
10793 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10795 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10796 ;;
10797 cxx*)
10798 # Compaq C++
10799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10800 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'
10801
10802 runpath_var=LD_RUN_PATH
10803 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10804 hardcode_libdir_separator_CXX=:
10805
10806 # Commands to make compiler produce verbose output that lists
10807 # what "hidden" libraries, object files and flags are used when
10808 # linking a shared library.
10809 #
10810 # There doesn't appear to be a way to prevent this compiler from
10811 # explicitly linking system object files so we need to strip them
10812 # from the output so that they don't get included in the library
10813 # dependencies.
10814 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'
10815 ;;
10816 esac
10817 ;;
10818 lynxos*)
10819 # FIXME: insert proper C++ library support
10820 ld_shlibs_CXX=no
10821 ;;
10822 m88k*)
10823 # FIXME: insert proper C++ library support
10824 ld_shlibs_CXX=no
10825 ;;
10826 mvs*)
10827 case $cc_basename in
10828 cxx*)
10829 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no
10831 ;;
10832 *)
10833 # FIXME: insert proper C++ library support
10834 ld_shlibs_CXX=no
10835 ;;
10836 esac
10837 ;;
10838 netbsd*)
10839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10840 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10841 wlarc=
10842 hardcode_libdir_flag_spec_CXX='-R$libdir'
10843 hardcode_direct_CXX=yes
10844 hardcode_shlibpath_var_CXX=no
10845 fi
10846 # Workaround some broken pre-1.5 toolchains
10847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10848 ;;
10849 openbsd2*)
10850 # C++ shared libraries are fairly broken
10851 ld_shlibs_CXX=no
10852 ;;
10853 openbsd*)
10854 hardcode_direct_CXX=yes
10855 hardcode_shlibpath_var_CXX=no
10856 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10860 export_dynamic_flag_spec_CXX='${wl}-E'
10861 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10862 fi
10863 output_verbose_link_cmd='echo'
10864 ;;
10865 osf3*)
10866 case $cc_basename in
10867 KCC*)
10868 # Kuck and Associates, Inc. (KAI) C++ Compiler
10869
10870 # KCC will only create a shared library if the output file
10871 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10872 # to its proper name (with version) after linking.
10873 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'
10874
10875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10876 hardcode_libdir_separator_CXX=:
10877
10878 # Archives containing C++ object files must be created using
10879 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10880 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10881
10882 ;;
10883 RCC*)
10884 # Rational C++ 2.4.1
10885 # FIXME: insert proper C++ library support
10886 ld_shlibs_CXX=no
10887 ;;
10888 cxx*)
10889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10890 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10891
10892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10893 hardcode_libdir_separator_CXX=:
10894
10895 # Commands to make compiler produce verbose output that lists
10896 # what "hidden" libraries, object files and flags are used when
10897 # linking a shared library.
10898 #
10899 # There doesn't appear to be a way to prevent this compiler from
10900 # explicitly linking system object files so we need to strip them
10901 # from the output so that they don't get included in the library
10902 # dependencies.
10903 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'
10904 ;;
10905 *)
10906 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10908 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10909
10910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10911 hardcode_libdir_separator_CXX=:
10912
10913 # Commands to make compiler produce verbose output that lists
10914 # what "hidden" libraries, object files and flags are used when
10915 # linking a shared library.
10916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10917
10918 else
10919 # FIXME: insert proper C++ library support
10920 ld_shlibs_CXX=no
10921 fi
10922 ;;
10923 esac
10924 ;;
10925 osf4* | osf5*)
10926 case $cc_basename in
10927 KCC*)
10928 # Kuck and Associates, Inc. (KAI) C++ Compiler
10929
10930 # KCC will only create a shared library if the output file
10931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10932 # to its proper name (with version) after linking.
10933 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'
10934
10935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10936 hardcode_libdir_separator_CXX=:
10937
10938 # Archives containing C++ object files must be created using
10939 # the KAI C++ compiler.
10940 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10941 ;;
10942 RCC*)
10943 # Rational C++ 2.4.1
10944 # FIXME: insert proper C++ library support
10945 ld_shlibs_CXX=no
10946 ;;
10947 cxx*)
10948 allow_undefined_flag_CXX=' -expect_unresolved \*'
10949 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10950 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10951 echo "-hidden">> $lib.exp~
10952 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10953 $rm $lib.exp'
10954
10955 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10956 hardcode_libdir_separator_CXX=:
10957
10958 # Commands to make compiler produce verbose output that lists
10959 # what "hidden" libraries, object files and flags are used when
10960 # linking a shared library.
10961 #
10962 # There doesn't appear to be a way to prevent this compiler from
10963 # explicitly linking system object files so we need to strip them
10964 # from the output so that they don't get included in the library
10965 # dependencies.
10966 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'
10967 ;;
10968 *)
10969 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10970 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10971 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10972
10973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10974 hardcode_libdir_separator_CXX=:
10975
10976 # Commands to make compiler produce verbose output that lists
10977 # what "hidden" libraries, object files and flags are used when
10978 # linking a shared library.
10979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10980
10981 else
10982 # FIXME: insert proper C++ library support
10983 ld_shlibs_CXX=no
10984 fi
10985 ;;
10986 esac
10987 ;;
10988 psos*)
10989 # FIXME: insert proper C++ library support
10990 ld_shlibs_CXX=no
10991 ;;
10992 sunos4*)
10993 case $cc_basename in
10994 CC*)
10995 # Sun C++ 4.x
10996 # FIXME: insert proper C++ library support
10997 ld_shlibs_CXX=no
10998 ;;
10999 lcc*)
11000 # Lucid
11001 # FIXME: insert proper C++ library support
11002 ld_shlibs_CXX=no
11003 ;;
11004 *)
11005 # FIXME: insert proper C++ library support
11006 ld_shlibs_CXX=no
11007 ;;
11008 esac
11009 ;;
11010 solaris*)
11011 case $cc_basename in
11012 CC*)
11013 # Sun C++ 4.2, 5.x and Centerline C++
11014 archive_cmds_need_lc_CXX=yes
11015 no_undefined_flag_CXX=' -zdefs'
11016 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11017 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11018 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11019
11020 hardcode_libdir_flag_spec_CXX='-R$libdir'
11021 hardcode_shlibpath_var_CXX=no
11022 case $host_os in
11023 solaris2.[0-5] | solaris2.[0-5].*) ;;
11024 *)
11025 # The C++ compiler is used as linker so we must use $wl
11026 # flag to pass the commands to the underlying system
11027 # linker. We must also pass each convience library through
11028 # to the system linker between allextract/defaultextract.
11029 # The C++ compiler will combine linker options so we
11030 # cannot just pass the convience library names through
11031 # without $wl.
11032 # Supported since Solaris 2.6 (maybe 2.5.1?)
11033 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11034 ;;
11035 esac
11036 link_all_deplibs_CXX=yes
11037
11038 output_verbose_link_cmd='echo'
11039
11040 # Archives containing C++ object files must be created using
11041 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11042 # necessary to make sure instantiated templates are included
11043 # in the archive.
11044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11045 ;;
11046 gcx*)
11047 # Green Hills C++ Compiler
11048 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11049
11050 # The C++ compiler must be used to create the archive.
11051 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11052 ;;
11053 *)
11054 # GNU C++ compiler with Solaris linker
11055 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11056 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11057 if $CC --version | grep -v '^2\.7' > /dev/null; then
11058 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11059 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11060 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11061
11062 # Commands to make compiler produce verbose output that lists
11063 # what "hidden" libraries, object files and flags are used when
11064 # linking a shared library.
11065 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11066 else
11067 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11068 # platform.
11069 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11070 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11071 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11072
11073 # Commands to make compiler produce verbose output that lists
11074 # what "hidden" libraries, object files and flags are used when
11075 # linking a shared library.
11076 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11077 fi
11078
11079 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11080 fi
11081 ;;
11082 esac
11083 ;;
11084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11085 no_undefined_flag_CXX='${wl}-z,text'
11086 archive_cmds_need_lc_CXX=no
11087 hardcode_shlibpath_var_CXX=no
11088 runpath_var='LD_RUN_PATH'
11089
11090 case $cc_basename in
11091 CC*)
11092 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094 ;;
11095 *)
11096 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 ;;
11099 esac
11100 ;;
11101 sysv5* | sco3.2v5* | sco5v6*)
11102 # Note: We can NOT use -z defs as we might desire, because we do not
11103 # link with -lc, and that would cause any symbols used from libc to
11104 # always be unresolved, which means just about no library would
11105 # ever link correctly. If we're not using GNU ld we use -z text
11106 # though, which does catch some bad symbols but isn't as heavy-handed
11107 # as -z defs.
11108 # For security reasons, it is highly recommended that you always
11109 # use absolute paths for naming shared libraries, and exclude the
11110 # DT_RUNPATH tag from executables and libraries. But doing so
11111 # requires that you compile everything twice, which is a pain.
11112 # So that behaviour is only enabled if SCOABSPATH is set to a
11113 # non-empty value in the environment. Most likely only useful for
11114 # creating official distributions of packages.
11115 # This is a hack until libtool officially supports absolute path
11116 # names for shared libraries.
11117 no_undefined_flag_CXX='${wl}-z,text'
11118 allow_undefined_flag_CXX='${wl}-z,nodefs'
11119 archive_cmds_need_lc_CXX=no
11120 hardcode_shlibpath_var_CXX=no
11121 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11122 hardcode_libdir_separator_CXX=':'
11123 link_all_deplibs_CXX=yes
11124 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11125 runpath_var='LD_RUN_PATH'
11126
11127 case $cc_basename in
11128 CC*)
11129 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 ;;
11132 *)
11133 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11134 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11135 ;;
11136 esac
11137 ;;
11138 tandem*)
11139 case $cc_basename in
11140 NCC*)
11141 # NonStop-UX NCC 3.20
11142 # FIXME: insert proper C++ library support
11143 ld_shlibs_CXX=no
11144 ;;
11145 *)
11146 # FIXME: insert proper C++ library support
11147 ld_shlibs_CXX=no
11148 ;;
11149 esac
11150 ;;
11151 vxworks*)
11152 # FIXME: insert proper C++ library support
11153 ld_shlibs_CXX=no
11154 ;;
11155 *)
11156 # FIXME: insert proper C++ library support
11157 ld_shlibs_CXX=no
11158 ;;
11159 esac
11160 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11161 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11162 test "$ld_shlibs_CXX" = no && can_build_shared=no
11163
11164 GCC_CXX="$GXX"
11165 LD_CXX="$LD"
11166
11167
11168 cat > conftest.$ac_ext <<EOF
11169 class Foo
11170 {
11171 public:
11172 Foo (void) { a = 0; }
11173 private:
11174 int a;
11175 };
11176 EOF
11177
11178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; then
11183 # Parse the compiler output and extract the necessary
11184 # objects, libraries and library flags.
11185
11186 # Sentinel used to keep track of whether or not we are before
11187 # the conftest object file.
11188 pre_test_object_deps_done=no
11189
11190 # The `*' in the case matches for architectures that use `case' in
11191 # $output_verbose_cmd can trigger glob expansion during the loop
11192 # eval without this substitution.
11193 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11194
11195 for p in `eval $output_verbose_link_cmd`; do
11196 case $p in
11197
11198 -L* | -R* | -l*)
11199 # Some compilers place space between "-{L,R}" and the path.
11200 # Remove the space.
11201 if test $p = "-L" \
11202 || test $p = "-R"; then
11203 prev=$p
11204 continue
11205 else
11206 prev=
11207 fi
11208
11209 if test "$pre_test_object_deps_done" = no; then
11210 case $p in
11211 -L* | -R*)
11212 # Internal compiler library paths should come after those
11213 # provided the user. The postdeps already come after the
11214 # user supplied libs so there is no need to process them.
11215 if test -z "$compiler_lib_search_path_CXX"; then
11216 compiler_lib_search_path_CXX="${prev}${p}"
11217 else
11218 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11219 fi
11220 ;;
11221 # The "-l" case would never come before the object being
11222 # linked, so don't bother handling this case.
11223 esac
11224 else
11225 if test -z "$postdeps_CXX"; then
11226 postdeps_CXX="${prev}${p}"
11227 else
11228 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11229 fi
11230 fi
11231 ;;
11232
11233 *.$objext)
11234 # This assumes that the test object file only shows up
11235 # once in the compiler output.
11236 if test "$p" = "conftest.$objext"; then
11237 pre_test_object_deps_done=yes
11238 continue
11239 fi
11240
11241 if test "$pre_test_object_deps_done" = no; then
11242 if test -z "$predep_objects_CXX"; then
11243 predep_objects_CXX="$p"
11244 else
11245 predep_objects_CXX="$predep_objects_CXX $p"
11246 fi
11247 else
11248 if test -z "$postdep_objects_CXX"; then
11249 postdep_objects_CXX="$p"
11250 else
11251 postdep_objects_CXX="$postdep_objects_CXX $p"
11252 fi
11253 fi
11254 ;;
11255
11256 *) ;; # Ignore the rest.
11257
11258 esac
11259 done
11260
11261 # Clean up.
11262 rm -f a.out a.exe
11263 else
11264 echo "libtool.m4: error: problem compiling CXX test program"
11265 fi
11266
11267 $rm -f confest.$objext
11268
11269 # PORTME: override above test on systems where it is broken
11270 case $host_os in
11271 interix3*)
11272 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11273 # hack all around it, let's just trust "g++" to DTRT.
11274 predep_objects_CXX=
11275 postdep_objects_CXX=
11276 postdeps_CXX=
11277 ;;
11278
11279 solaris*)
11280 case $cc_basename in
11281 CC*)
11282 # Adding this requires a known-good setup of shared libraries for
11283 # Sun compiler versions before 5.6, else PIC objects from an old
11284 # archive will be linked into the output, leading to subtle bugs.
11285 postdeps_CXX='-lCstd -lCrun'
11286 ;;
11287 esac
11288 ;;
11289 esac
11290
11291
11292 case " $postdeps_CXX " in
11293 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11294 esac
11295
11296 lt_prog_compiler_wl_CXX=
11297 lt_prog_compiler_pic_CXX=
11298 lt_prog_compiler_static_CXX=
11299
11300 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11301 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11302
11303 # C++ specific cases for pic, static, wl, etc.
11304 if test "$GXX" = yes; then
11305 lt_prog_compiler_wl_CXX='-Wl,'
11306 lt_prog_compiler_static_CXX='-static'
11307
11308 case $host_os in
11309 aix*)
11310 # All AIX code is PIC.
11311 if test "$host_cpu" = ia64; then
11312 # AIX 5 now supports IA64 processor
11313 lt_prog_compiler_static_CXX='-Bstatic'
11314 fi
11315 ;;
11316 amigaos*)
11317 # FIXME: we need at least 68020 code to build shared libraries, but
11318 # adding the `-m68020' flag to GCC prevents building anything better,
11319 # like `-m68040'.
11320 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11321 ;;
11322 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11323 # PIC is the default for these OSes.
11324 ;;
11325 mingw* | os2* | pw32*)
11326 # This hack is so that the source file can tell whether it is being
11327 # built for inclusion in a dll (and should export symbols for example).
11328 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11329 ;;
11330 darwin* | rhapsody*)
11331 # PIC is the default on this platform
11332 # Common symbols not allowed in MH_DYLIB files
11333 lt_prog_compiler_pic_CXX='-fno-common'
11334 ;;
11335 *djgpp*)
11336 # DJGPP does not support shared libraries at all
11337 lt_prog_compiler_pic_CXX=
11338 ;;
11339 interix3*)
11340 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11341 # Instead, we relocate shared libraries at runtime.
11342 ;;
11343 sysv4*MP*)
11344 if test -d /usr/nec; then
11345 lt_prog_compiler_pic_CXX=-Kconform_pic
11346 fi
11347 ;;
11348 hpux*)
11349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11350 # not for PA HP-UX.
11351 case $host_cpu in
11352 hppa*64*|ia64*)
11353 ;;
11354 *)
11355 lt_prog_compiler_pic_CXX='-fPIC'
11356 ;;
11357 esac
11358 ;;
11359 *)
11360 lt_prog_compiler_pic_CXX='-fPIC'
11361 ;;
11362 esac
11363 else
11364 case $host_os in
11365 aix4* | aix5*)
11366 # All AIX code is PIC.
11367 if test "$host_cpu" = ia64; then
11368 # AIX 5 now supports IA64 processor
11369 lt_prog_compiler_static_CXX='-Bstatic'
11370 else
11371 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11372 fi
11373 ;;
11374 chorus*)
11375 case $cc_basename in
11376 cxch68*)
11377 # Green Hills C++ Compiler
11378 # _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"
11379 ;;
11380 esac
11381 ;;
11382 darwin*)
11383 # PIC is the default on this platform
11384 # Common symbols not allowed in MH_DYLIB files
11385 case $cc_basename in
11386 xlc*)
11387 lt_prog_compiler_pic_CXX='-qnocommon'
11388 lt_prog_compiler_wl_CXX='-Wl,'
11389 ;;
11390 esac
11391 ;;
11392 dgux*)
11393 case $cc_basename in
11394 ec++*)
11395 lt_prog_compiler_pic_CXX='-KPIC'
11396 ;;
11397 ghcx*)
11398 # Green Hills C++ Compiler
11399 lt_prog_compiler_pic_CXX='-pic'
11400 ;;
11401 *)
11402 ;;
11403 esac
11404 ;;
11405 freebsd* | kfreebsd*-gnu | dragonfly*)
11406 # FreeBSD uses GNU C++
11407 ;;
11408 hpux9* | hpux10* | hpux11*)
11409 case $cc_basename in
11410 CC*)
11411 lt_prog_compiler_wl_CXX='-Wl,'
11412 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11413 if test "$host_cpu" != ia64; then
11414 lt_prog_compiler_pic_CXX='+Z'
11415 fi
11416 ;;
11417 aCC*)
11418 lt_prog_compiler_wl_CXX='-Wl,'
11419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11420 case $host_cpu in
11421 hppa*64*|ia64*)
11422 # +Z the default
11423 ;;
11424 *)
11425 lt_prog_compiler_pic_CXX='+Z'
11426 ;;
11427 esac
11428 ;;
11429 *)
11430 ;;
11431 esac
11432 ;;
11433 interix*)
11434 # This is c89, which is MS Visual C++ (no shared libs)
11435 # Anyone wants to do a port?
11436 ;;
11437 irix5* | irix6* | nonstopux*)
11438 case $cc_basename in
11439 CC*)
11440 lt_prog_compiler_wl_CXX='-Wl,'
11441 lt_prog_compiler_static_CXX='-non_shared'
11442 # CC pic flag -KPIC is the default.
11443 ;;
11444 *)
11445 ;;
11446 esac
11447 ;;
11448 linux*)
11449 case $cc_basename in
11450 KCC*)
11451 # KAI C++ Compiler
11452 lt_prog_compiler_wl_CXX='--backend -Wl,'
11453 lt_prog_compiler_pic_CXX='-fPIC'
11454 ;;
11455 icpc* | ecpc*)
11456 # Intel C++
11457 lt_prog_compiler_wl_CXX='-Wl,'
11458 lt_prog_compiler_pic_CXX='-KPIC'
11459 lt_prog_compiler_static_CXX='-static'
11460 ;;
11461 pgCC*)
11462 # Portland Group C++ compiler.
11463 lt_prog_compiler_wl_CXX='-Wl,'
11464 lt_prog_compiler_pic_CXX='-fpic'
11465 lt_prog_compiler_static_CXX='-Bstatic'
11466 ;;
11467 cxx*)
11468 # Compaq C++
11469 # Make sure the PIC flag is empty. It appears that all Alpha
11470 # Linux and Compaq Tru64 Unix objects are PIC.
11471 lt_prog_compiler_pic_CXX=
11472 lt_prog_compiler_static_CXX='-non_shared'
11473 ;;
11474 *)
11475 ;;
11476 esac
11477 ;;
11478 lynxos*)
11479 ;;
11480 m88k*)
11481 ;;
11482 mvs*)
11483 case $cc_basename in
11484 cxx*)
11485 lt_prog_compiler_pic_CXX='-W c,exportall'
11486 ;;
11487 *)
11488 ;;
11489 esac
11490 ;;
11491 netbsd*)
11492 ;;
11493 osf3* | osf4* | osf5*)
11494 case $cc_basename in
11495 KCC*)
11496 lt_prog_compiler_wl_CXX='--backend -Wl,'
11497 ;;
11498 RCC*)
11499 # Rational C++ 2.4.1
11500 lt_prog_compiler_pic_CXX='-pic'
11501 ;;
11502 cxx*)
11503 # Digital/Compaq C++
11504 lt_prog_compiler_wl_CXX='-Wl,'
11505 # Make sure the PIC flag is empty. It appears that all Alpha
11506 # Linux and Compaq Tru64 Unix objects are PIC.
11507 lt_prog_compiler_pic_CXX=
11508 lt_prog_compiler_static_CXX='-non_shared'
11509 ;;
11510 *)
11511 ;;
11512 esac
11513 ;;
11514 psos*)
11515 ;;
11516 solaris*)
11517 case $cc_basename in
11518 CC*)
11519 # Sun C++ 4.2, 5.x and Centerline C++
11520 lt_prog_compiler_pic_CXX='-KPIC'
11521 lt_prog_compiler_static_CXX='-Bstatic'
11522 lt_prog_compiler_wl_CXX='-Qoption ld '
11523 ;;
11524 gcx*)
11525 # Green Hills C++ Compiler
11526 lt_prog_compiler_pic_CXX='-PIC'
11527 ;;
11528 *)
11529 ;;
11530 esac
11531 ;;
11532 sunos4*)
11533 case $cc_basename in
11534 CC*)
11535 # Sun C++ 4.x
11536 lt_prog_compiler_pic_CXX='-pic'
11537 lt_prog_compiler_static_CXX='-Bstatic'
11538 ;;
11539 lcc*)
11540 # Lucid
11541 lt_prog_compiler_pic_CXX='-pic'
11542 ;;
11543 *)
11544 ;;
11545 esac
11546 ;;
11547 tandem*)
11548 case $cc_basename in
11549 NCC*)
11550 # NonStop-UX NCC 3.20
11551 lt_prog_compiler_pic_CXX='-KPIC'
11552 ;;
11553 *)
11554 ;;
11555 esac
11556 ;;
11557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11558 case $cc_basename in
11559 CC*)
11560 lt_prog_compiler_wl_CXX='-Wl,'
11561 lt_prog_compiler_pic_CXX='-KPIC'
11562 lt_prog_compiler_static_CXX='-Bstatic'
11563 ;;
11564 esac
11565 ;;
11566 vxworks*)
11567 ;;
11568 *)
11569 lt_prog_compiler_can_build_shared_CXX=no
11570 ;;
11571 esac
11572 fi
11573
11574 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11575 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11576
11577 #
11578 # Check to make sure the PIC flag actually works.
11579 #
11580 if test -n "$lt_prog_compiler_pic_CXX"; then
11581
11582 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11583 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11584 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 lt_prog_compiler_pic_works_CXX=no
11588 ac_outfile=conftest.$ac_objext
11589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11590 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11591 # Insert the option either (1) after the last *FLAGS variable, or
11592 # (2) before a word containing "conftest.", or (3) at the end.
11593 # Note that $ac_compile itself does not contain backslashes and begins
11594 # with a dollar sign (not a hyphen), so the echo should work correctly.
11595 # The option is referenced via a variable to avoid confusing sed.
11596 lt_compile=`echo "$ac_compile" | $SED \
11597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11599 -e 's:$: $lt_compiler_flag:'`
11600 (eval echo "\"\$as_me:11600: $lt_compile\"" >&5)
11601 (eval "$lt_compile" 2>conftest.err)
11602 ac_status=$?
11603 cat conftest.err >&5
11604 echo "$as_me:11604: \$? = $ac_status" >&5
11605 if (exit $ac_status) && test -s "$ac_outfile"; then
11606 # The compiler can only warn and ignore the option if not recognized
11607 # So say no if there are warnings other than the usual output.
11608 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11611 lt_prog_compiler_pic_works_CXX=yes
11612 fi
11613 fi
11614 $rm conftest*
11615
11616 fi
11617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11618 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11619
11620 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11621 case $lt_prog_compiler_pic_CXX in
11622 "" | " "*) ;;
11623 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11624 esac
11625 else
11626 lt_prog_compiler_pic_CXX=
11627 lt_prog_compiler_can_build_shared_CXX=no
11628 fi
11629
11630 fi
11631 case $host_os in
11632 # For platforms which do not support PIC, -DPIC is meaningless:
11633 *djgpp*)
11634 lt_prog_compiler_pic_CXX=
11635 ;;
11636 *)
11637 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11638 ;;
11639 esac
11640
11641 #
11642 # Check to make sure the static flag actually works.
11643 #
11644 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11645 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11646 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11647 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650 lt_prog_compiler_static_works_CXX=no
11651 save_LDFLAGS="$LDFLAGS"
11652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11653 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11655 # The linker can only warn and ignore the option if not recognized
11656 # So say no if there are warnings
11657 if test -s conftest.err; then
11658 # Append any errors to the config.log.
11659 cat conftest.err 1>&5
11660 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11662 if diff conftest.exp conftest.er2 >/dev/null; then
11663 lt_prog_compiler_static_works_CXX=yes
11664 fi
11665 else
11666 lt_prog_compiler_static_works_CXX=yes
11667 fi
11668 fi
11669 $rm conftest*
11670 LDFLAGS="$save_LDFLAGS"
11671
11672 fi
11673 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11674 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11675
11676 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11677 :
11678 else
11679 lt_prog_compiler_static_CXX=
11680 fi
11681
11682
11683 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11684 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11685 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 lt_cv_prog_compiler_c_o_CXX=no
11689 $rm -r conftest 2>/dev/null
11690 mkdir conftest
11691 cd conftest
11692 mkdir out
11693 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11694
11695 lt_compiler_flag="-o out/conftest2.$ac_objext"
11696 # Insert the option either (1) after the last *FLAGS variable, or
11697 # (2) before a word containing "conftest.", or (3) at the end.
11698 # Note that $ac_compile itself does not contain backslashes and begins
11699 # with a dollar sign (not a hyphen), so the echo should work correctly.
11700 lt_compile=`echo "$ac_compile" | $SED \
11701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11703 -e 's:$: $lt_compiler_flag:'`
11704 (eval echo "\"\$as_me:11704: $lt_compile\"" >&5)
11705 (eval "$lt_compile" 2>out/conftest.err)
11706 ac_status=$?
11707 cat out/conftest.err >&5
11708 echo "$as_me:11708: \$? = $ac_status" >&5
11709 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11710 then
11711 # The compiler can only warn and ignore the option if not recognized
11712 # So say no if there are warnings
11713 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11716 lt_cv_prog_compiler_c_o_CXX=yes
11717 fi
11718 fi
11719 chmod u+w . 2>&5
11720 $rm conftest*
11721 # SGI C++ compiler will create directory out/ii_files/ for
11722 # template instantiation
11723 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11724 $rm out/* && rmdir out
11725 cd ..
11726 rmdir conftest
11727 $rm conftest*
11728
11729 fi
11730 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11731 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11732
11733
11734 hard_links="nottested"
11735 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11736 # do not overwrite the value of need_locks provided by the user
11737 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11738 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11739 hard_links=yes
11740 $rm conftest*
11741 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11742 touch conftest.a
11743 ln conftest.a conftest.b 2>&5 || hard_links=no
11744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11745 echo "$as_me:$LINENO: result: $hard_links" >&5
11746 echo "${ECHO_T}$hard_links" >&6
11747 if test "$hard_links" = no; then
11748 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11749 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11750 need_locks=warn
11751 fi
11752 else
11753 need_locks=no
11754 fi
11755
11756 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11757 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11758
11759 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11760 case $host_os in
11761 aix4* | aix5*)
11762 # If we're using GNU nm, then we don't want the "-C" option.
11763 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11764 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11765 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'
11766 else
11767 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'
11768 fi
11769 ;;
11770 pw32*)
11771 export_symbols_cmds_CXX="$ltdll_cmds"
11772 ;;
11773 cygwin* | mingw*)
11774 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11775 ;;
11776 *)
11777 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11778 ;;
11779 esac
11780
11781 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11782 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11783 test "$ld_shlibs_CXX" = no && can_build_shared=no
11784
11785 #
11786 # Do we need to explicitly link libc?
11787 #
11788 case "x$archive_cmds_need_lc_CXX" in
11789 x|xyes)
11790 # Assume -lc should be added
11791 archive_cmds_need_lc_CXX=yes
11792
11793 if test "$enable_shared" = yes && test "$GCC" = yes; then
11794 case $archive_cmds_CXX in
11795 *'~'*)
11796 # FIXME: we may have to deal with multi-command sequences.
11797 ;;
11798 '$CC '*)
11799 # Test whether the compiler implicitly links with -lc since on some
11800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11801 # to ld, don't add -lc before -lgcc.
11802 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11804 $rm conftest*
11805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11806
11807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11808 (eval $ac_compile) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } 2>conftest.err; then
11812 soname=conftest
11813 lib=conftest
11814 libobjs=conftest.$ac_objext
11815 deplibs=
11816 wl=$lt_prog_compiler_wl_CXX
11817 pic_flag=$lt_prog_compiler_pic_CXX
11818 compiler_flags=-v
11819 linker_flags=-v
11820 verstring=
11821 output_objdir=.
11822 libname=conftest
11823 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11824 allow_undefined_flag_CXX=
11825 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11826 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }
11830 then
11831 archive_cmds_need_lc_CXX=no
11832 else
11833 archive_cmds_need_lc_CXX=yes
11834 fi
11835 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11836 else
11837 cat conftest.err 1>&5
11838 fi
11839 $rm conftest*
11840 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11841 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11842 ;;
11843 esac
11844 fi
11845 ;;
11846 esac
11847
11848 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11849 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11850 library_names_spec=
11851 libname_spec='lib$name'
11852 soname_spec=
11853 shrext_cmds=".so"
11854 postinstall_cmds=
11855 postuninstall_cmds=
11856 finish_cmds=
11857 finish_eval=
11858 shlibpath_var=
11859 shlibpath_overrides_runpath=unknown
11860 version_type=none
11861 dynamic_linker="$host_os ld.so"
11862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11863 if test "$GCC" = yes; then
11864 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11865 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11866 # if the path contains ";" then we assume it to be the separator
11867 # otherwise default to the standard path separator (i.e. ":") - it is
11868 # assumed that no part of a normal pathname contains ";" but that should
11869 # okay in the real world where ";" in dirpaths is itself problematic.
11870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11871 else
11872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11873 fi
11874 else
11875 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11876 fi
11877 need_lib_prefix=unknown
11878 hardcode_into_libs=no
11879
11880 # when you set need_version to no, make sure it does not cause -set_version
11881 # flags to be left without arguments
11882 need_version=unknown
11883
11884 case $host_os in
11885 aix3*)
11886 version_type=linux
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11888 shlibpath_var=LIBPATH
11889
11890 # AIX 3 has no versioning support, so we append a major version to the name.
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 ;;
11893
11894 aix4* | aix5*)
11895 version_type=linux
11896 need_lib_prefix=no
11897 need_version=no
11898 hardcode_into_libs=yes
11899 if test "$host_cpu" = ia64; then
11900 # AIX 5 supports IA64
11901 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 else
11904 # With GCC up to 2.95.x, collect2 would create an import file
11905 # for dependence libraries. The import file would start with
11906 # the line `#! .'. This would cause the generated library to
11907 # depend on `.', always an invalid library. This was fixed in
11908 # development snapshots of GCC prior to 3.0.
11909 case $host_os in
11910 aix4 | aix4.[01] | aix4.[01].*)
11911 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11912 echo ' yes '
11913 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11914 :
11915 else
11916 can_build_shared=no
11917 fi
11918 ;;
11919 esac
11920 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11921 # soname into executable. Probably we can add versioning support to
11922 # collect2, so additional links can be useful in future.
11923 if test "$aix_use_runtimelinking" = yes; then
11924 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11925 # instead of lib<name>.a to let people know that these are not
11926 # typical AIX shared libraries.
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928 else
11929 # We preserve .a as extension for shared libraries through AIX4.2
11930 # and later when we are not doing run time linking.
11931 library_names_spec='${libname}${release}.a $libname.a'
11932 soname_spec='${libname}${release}${shared_ext}$major'
11933 fi
11934 shlibpath_var=LIBPATH
11935 fi
11936 ;;
11937
11938 amigaos*)
11939 library_names_spec='$libname.ixlibrary $libname.a'
11940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11941 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'
11942 ;;
11943
11944 beos*)
11945 library_names_spec='${libname}${shared_ext}'
11946 dynamic_linker="$host_os ld.so"
11947 shlibpath_var=LIBRARY_PATH
11948 ;;
11949
11950 bsdi[45]*)
11951 version_type=linux
11952 need_version=no
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11959 # the default ld.so.conf also contains /usr/contrib/lib and
11960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11961 # libtool to hard-code these into programs
11962 ;;
11963
11964 cygwin* | mingw* | pw32*)
11965 version_type=windows
11966 shrext_cmds=".dll"
11967 need_version=no
11968 need_lib_prefix=no
11969
11970 case $GCC,$host_os in
11971 yes,cygwin* | yes,mingw* | yes,pw32*)
11972 library_names_spec='$libname.dll.a'
11973 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11974 postinstall_cmds='base_file=`basename \${file}`~
11975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11976 dldir=$destdir/`dirname \$dlpath`~
11977 test -d \$dldir || mkdir -p \$dldir~
11978 $install_prog $dir/$dlname \$dldir/$dlname~
11979 chmod a+x \$dldir/$dlname'
11980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11981 dlpath=$dir/\$dldll~
11982 $rm \$dlpath'
11983 shlibpath_overrides_runpath=yes
11984
11985 case $host_os in
11986 cygwin*)
11987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11989 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11990 ;;
11991 mingw*)
11992 # MinGW DLLs use traditional 'lib' prefix
11993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11994 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11995 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11996 # It is most probably a Windows format PATH printed by
11997 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11998 # path with ; separators, and with drive letters. We can handle the
11999 # drive letters (cygwin fileutils understands them), so leave them,
12000 # especially as we might pass files found there to a mingw objdump,
12001 # which wouldn't understand a cygwinified path. Ahh.
12002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12003 else
12004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12005 fi
12006 ;;
12007 pw32*)
12008 # pw32 DLLs use 'pw' prefix rather than 'lib'
12009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12010 ;;
12011 esac
12012 ;;
12013
12014 *)
12015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12016 ;;
12017 esac
12018 dynamic_linker='Win32 ld.exe'
12019 # FIXME: first we should search . and the directory the executable is in
12020 shlibpath_var=PATH
12021 ;;
12022
12023 darwin* | rhapsody*)
12024 dynamic_linker="$host_os dyld"
12025 version_type=darwin
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12029 soname_spec='${libname}${release}${major}$shared_ext'
12030 shlibpath_overrides_runpath=yes
12031 shlibpath_var=DYLD_LIBRARY_PATH
12032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12033 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12034 if test "$GCC" = yes; then
12035 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"`
12036 else
12037 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12038 fi
12039 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12040 ;;
12041
12042 dgux*)
12043 version_type=linux
12044 need_lib_prefix=no
12045 need_version=no
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 ;;
12050
12051 freebsd1*)
12052 dynamic_linker=no
12053 ;;
12054
12055 kfreebsd*-gnu)
12056 version_type=linux
12057 need_lib_prefix=no
12058 need_version=no
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12060 soname_spec='${libname}${release}${shared_ext}$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=no
12063 hardcode_into_libs=yes
12064 dynamic_linker='GNU ld.so'
12065 ;;
12066
12067 freebsd* | dragonfly*)
12068 # DragonFly does not have aout. When/if they implement a new
12069 # versioning mechanism, adjust this.
12070 if test -x /usr/bin/objformat; then
12071 objformat=`/usr/bin/objformat`
12072 else
12073 case $host_os in
12074 freebsd[123]*) objformat=aout ;;
12075 *) objformat=elf ;;
12076 esac
12077 fi
12078 version_type=freebsd-$objformat
12079 case $version_type in
12080 freebsd-elf*)
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12082 need_version=no
12083 need_lib_prefix=no
12084 ;;
12085 freebsd-*)
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12087 need_version=yes
12088 ;;
12089 esac
12090 shlibpath_var=LD_LIBRARY_PATH
12091 case $host_os in
12092 freebsd2*)
12093 shlibpath_overrides_runpath=yes
12094 ;;
12095 freebsd3.[01]* | freebsdelf3.[01]*)
12096 shlibpath_overrides_runpath=yes
12097 hardcode_into_libs=yes
12098 ;;
12099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12101 shlibpath_overrides_runpath=no
12102 hardcode_into_libs=yes
12103 ;;
12104 freebsd*) # from 4.6 on
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12107 ;;
12108 esac
12109 ;;
12110
12111 gnu*)
12112 version_type=linux
12113 need_lib_prefix=no
12114 need_version=no
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12116 soname_spec='${libname}${release}${shared_ext}$major'
12117 shlibpath_var=LD_LIBRARY_PATH
12118 hardcode_into_libs=yes
12119 ;;
12120
12121 hpux9* | hpux10* | hpux11*)
12122 # Give a soname corresponding to the major version so that dld.sl refuses to
12123 # link against other versions.
12124 version_type=sunos
12125 need_lib_prefix=no
12126 need_version=no
12127 case $host_cpu in
12128 ia64*)
12129 shrext_cmds='.so'
12130 hardcode_into_libs=yes
12131 dynamic_linker="$host_os dld.so"
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135 soname_spec='${libname}${release}${shared_ext}$major'
12136 if test "X$HPUX_IA64_MODE" = X32; then
12137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12138 else
12139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12140 fi
12141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12142 ;;
12143 hppa*64*)
12144 shrext_cmds='.sl'
12145 hardcode_into_libs=yes
12146 dynamic_linker="$host_os dld.sl"
12147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12153 ;;
12154 *)
12155 shrext_cmds='.sl'
12156 dynamic_linker="$host_os dld.sl"
12157 shlibpath_var=SHLIB_PATH
12158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12161 ;;
12162 esac
12163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12164 postinstall_cmds='chmod 555 $lib'
12165 ;;
12166
12167 interix3*)
12168 version_type=linux
12169 need_lib_prefix=no
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 shlibpath_overrides_runpath=no
12176 hardcode_into_libs=yes
12177 ;;
12178
12179 irix5* | irix6* | nonstopux*)
12180 case $host_os in
12181 nonstopux*) version_type=nonstopux ;;
12182 *)
12183 if test "$lt_cv_prog_gnu_ld" = yes; then
12184 version_type=linux
12185 else
12186 version_type=irix
12187 fi ;;
12188 esac
12189 need_lib_prefix=no
12190 need_version=no
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12193 case $host_os in
12194 irix5* | nonstopux*)
12195 libsuff= shlibsuff=
12196 ;;
12197 *)
12198 case $LD in # libtool.m4 will add one of these switches to LD
12199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12200 libsuff= shlibsuff= libmagic=32-bit;;
12201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12202 libsuff=32 shlibsuff=N32 libmagic=N32;;
12203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12205 *) libsuff= shlibsuff= libmagic=never-match;;
12206 esac
12207 ;;
12208 esac
12209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12210 shlibpath_overrides_runpath=no
12211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12213 hardcode_into_libs=yes
12214 ;;
12215
12216 # No shared lib support for Linux oldld, aout, or coff.
12217 linux*oldld* | linux*aout* | linux*coff*)
12218 dynamic_linker=no
12219 ;;
12220
12221 # This must be Linux ELF.
12222 linux*)
12223 version_type=linux
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=no
12231 # This implies no fast_install, which is unacceptable.
12232 # Some rework will be needed to allow for fast_install
12233 # before this can be enabled.
12234 hardcode_into_libs=yes
12235
12236 # Append ld.so.conf contents to the search path
12237 if test -f /etc/ld.so.conf; then
12238 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12239 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12240 fi
12241
12242 # We used to test for /lib/ld.so.1 and disable shared libraries on
12243 # powerpc, because MkLinux only supported shared libraries with the
12244 # GNU dynamic linker. Since this was broken with cross compilers,
12245 # most powerpc-linux boxes support dynamic linking these days and
12246 # people can always --disable-shared, the test was removed, and we
12247 # assume the GNU/Linux dynamic linker is in use.
12248 dynamic_linker='GNU/Linux ld.so'
12249 ;;
12250
12251 knetbsd*-gnu)
12252 version_type=linux
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12256 soname_spec='${libname}${release}${shared_ext}$major'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259 hardcode_into_libs=yes
12260 dynamic_linker='GNU ld.so'
12261 ;;
12262
12263 netbsd*)
12264 version_type=sunos
12265 need_lib_prefix=no
12266 need_version=no
12267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12270 dynamic_linker='NetBSD (a.out) ld.so'
12271 else
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 dynamic_linker='NetBSD ld.elf_so'
12275 fi
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=yes
12278 hardcode_into_libs=yes
12279 ;;
12280
12281 newsos6)
12282 version_type=linux
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 ;;
12287
12288 nto-qnx*)
12289 version_type=linux
12290 need_lib_prefix=no
12291 need_version=no
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes
12296 ;;
12297
12298 openbsd*)
12299 version_type=sunos
12300 sys_lib_dlsearch_path_spec="/usr/lib"
12301 need_lib_prefix=no
12302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12303 case $host_os in
12304 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12305 *) need_version=no ;;
12306 esac
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12311 case $host_os in
12312 openbsd2.[89] | openbsd2.[89].*)
12313 shlibpath_overrides_runpath=no
12314 ;;
12315 *)
12316 shlibpath_overrides_runpath=yes
12317 ;;
12318 esac
12319 else
12320 shlibpath_overrides_runpath=yes
12321 fi
12322 ;;
12323
12324 os2*)
12325 libname_spec='$name'
12326 shrext_cmds=".dll"
12327 need_lib_prefix=no
12328 library_names_spec='$libname${shared_ext} $libname.a'
12329 dynamic_linker='OS/2 ld.exe'
12330 shlibpath_var=LIBPATH
12331 ;;
12332
12333 osf3* | osf4* | osf5*)
12334 version_type=osf
12335 need_lib_prefix=no
12336 need_version=no
12337 soname_spec='${libname}${release}${shared_ext}$major'
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12342 ;;
12343
12344 solaris*)
12345 version_type=linux
12346 need_lib_prefix=no
12347 need_version=no
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12352 hardcode_into_libs=yes
12353 # ldd complains unless libraries are executable
12354 postinstall_cmds='chmod +x $lib'
12355 ;;
12356
12357 sunos4*)
12358 version_type=sunos
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=yes
12363 if test "$with_gnu_ld" = yes; then
12364 need_lib_prefix=no
12365 fi
12366 need_version=yes
12367 ;;
12368
12369 sysv4 | sysv4.3*)
12370 version_type=linux
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372 soname_spec='${libname}${release}${shared_ext}$major'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 case $host_vendor in
12375 sni)
12376 shlibpath_overrides_runpath=no
12377 need_lib_prefix=no
12378 export_dynamic_flag_spec='${wl}-Blargedynsym'
12379 runpath_var=LD_RUN_PATH
12380 ;;
12381 siemens)
12382 need_lib_prefix=no
12383 ;;
12384 motorola)
12385 need_lib_prefix=no
12386 need_version=no
12387 shlibpath_overrides_runpath=no
12388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12389 ;;
12390 esac
12391 ;;
12392
12393 sysv4*MP*)
12394 if test -d /usr/nec ;then
12395 version_type=linux
12396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12397 soname_spec='$libname${shared_ext}.$major'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 fi
12400 ;;
12401
12402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12403 version_type=freebsd-elf
12404 need_lib_prefix=no
12405 need_version=no
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 hardcode_into_libs=yes
12410 if test "$with_gnu_ld" = yes; then
12411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12412 shlibpath_overrides_runpath=no
12413 else
12414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12415 shlibpath_overrides_runpath=yes
12416 case $host_os in
12417 sco3.2v5*)
12418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12419 ;;
12420 esac
12421 fi
12422 sys_lib_dlsearch_path_spec='/usr/lib'
12423 ;;
12424
12425 uts4*)
12426 version_type=linux
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428 soname_spec='${libname}${release}${shared_ext}$major'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 ;;
12431
12432 *)
12433 dynamic_linker=no
12434 ;;
12435 esac
12436 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12437 echo "${ECHO_T}$dynamic_linker" >&6
12438 test "$dynamic_linker" = no && can_build_shared=no
12439
12440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12441 if test "$GCC" = yes; then
12442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12443 fi
12444
12445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12447 hardcode_action_CXX=
12448 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12449 test -n "$runpath_var_CXX" || \
12450 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12451
12452 # We can hardcode non-existant directories.
12453 if test "$hardcode_direct_CXX" != no &&
12454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12455 # have to relink, otherwise we might link with an installed library
12456 # when we should be linking with a yet-to-be-installed one
12457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12458 test "$hardcode_minus_L_CXX" != no; then
12459 # Linking always hardcodes the temporary library directory.
12460 hardcode_action_CXX=relink
12461 else
12462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12463 hardcode_action_CXX=immediate
12464 fi
12465 else
12466 # We cannot hardcode anything, or else we can only hardcode existing
12467 # directories.
12468 hardcode_action_CXX=unsupported
12469 fi
12470 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12471 echo "${ECHO_T}$hardcode_action_CXX" >&6
12472
12473 if test "$hardcode_action_CXX" = relink; then
12474 # Fast installation is not supported
12475 enable_fast_install=no
12476 elif test "$shlibpath_overrides_runpath" = yes ||
12477 test "$enable_shared" = no; then
12478 # Fast installation is not necessary
12479 enable_fast_install=needless
12480 fi
12481
12482
12483 # The else clause should only fire when bootstrapping the
12484 # libtool distribution, otherwise you forgot to ship ltmain.sh
12485 # with your package, and you will get complaints that there are
12486 # no rules to generate ltmain.sh.
12487 if test -f "$ltmain"; then
12488 # See if we are running on zsh, and set the options which allow our commands through
12489 # without removal of \ escapes.
12490 if test -n "${ZSH_VERSION+set}" ; then
12491 setopt NO_GLOB_SUBST
12492 fi
12493 # Now quote all the things that may contain metacharacters while being
12494 # careful not to overquote the AC_SUBSTed values. We take copies of the
12495 # variables and quote the copies for generation of the libtool script.
12496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12497 SED SHELL STRIP \
12498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12500 deplibs_check_method reload_flag reload_cmds need_locks \
12501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12502 lt_cv_sys_global_symbol_to_c_name_address \
12503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12504 old_postinstall_cmds old_postuninstall_cmds \
12505 compiler_CXX \
12506 CC_CXX \
12507 LD_CXX \
12508 lt_prog_compiler_wl_CXX \
12509 lt_prog_compiler_pic_CXX \
12510 lt_prog_compiler_static_CXX \
12511 lt_prog_compiler_no_builtin_flag_CXX \
12512 export_dynamic_flag_spec_CXX \
12513 thread_safe_flag_spec_CXX \
12514 whole_archive_flag_spec_CXX \
12515 enable_shared_with_static_runtimes_CXX \
12516 old_archive_cmds_CXX \
12517 old_archive_from_new_cmds_CXX \
12518 predep_objects_CXX \
12519 postdep_objects_CXX \
12520 predeps_CXX \
12521 postdeps_CXX \
12522 compiler_lib_search_path_CXX \
12523 archive_cmds_CXX \
12524 archive_expsym_cmds_CXX \
12525 postinstall_cmds_CXX \
12526 postuninstall_cmds_CXX \
12527 old_archive_from_expsyms_cmds_CXX \
12528 allow_undefined_flag_CXX \
12529 no_undefined_flag_CXX \
12530 export_symbols_cmds_CXX \
12531 hardcode_libdir_flag_spec_CXX \
12532 hardcode_libdir_flag_spec_ld_CXX \
12533 hardcode_libdir_separator_CXX \
12534 hardcode_automatic_CXX \
12535 module_cmds_CXX \
12536 module_expsym_cmds_CXX \
12537 lt_cv_prog_compiler_c_o_CXX \
12538 exclude_expsyms_CXX \
12539 include_expsyms_CXX; do
12540
12541 case $var in
12542 old_archive_cmds_CXX | \
12543 old_archive_from_new_cmds_CXX | \
12544 archive_cmds_CXX | \
12545 archive_expsym_cmds_CXX | \
12546 module_cmds_CXX | \
12547 module_expsym_cmds_CXX | \
12548 old_archive_from_expsyms_cmds_CXX | \
12549 export_symbols_cmds_CXX | \
12550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12551 postinstall_cmds | postuninstall_cmds | \
12552 old_postinstall_cmds | old_postuninstall_cmds | \
12553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12554 # Double-quote double-evaled strings.
12555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12556 ;;
12557 *)
12558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12559 ;;
12560 esac
12561 done
12562
12563 case $lt_echo in
12564 *'\$0 --fallback-echo"')
12565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12566 ;;
12567 esac
12568
12569 cfgfile="$ofile"
12570
12571 cat <<__EOF__ >> "$cfgfile"
12572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12573
12574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12575
12576 # Shell to use when invoking shell scripts.
12577 SHELL=$lt_SHELL
12578
12579 # Whether or not to build shared libraries.
12580 build_libtool_libs=$enable_shared
12581
12582 # Whether or not to build static libraries.
12583 build_old_libs=$enable_static
12584
12585 # Whether or not to add -lc for building shared libraries.
12586 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12587
12588 # Whether or not to disallow shared libs when runtime libs are static
12589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12590
12591 # Whether or not to optimize for fast installation.
12592 fast_install=$enable_fast_install
12593
12594 # The host system.
12595 host_alias=$host_alias
12596 host=$host
12597 host_os=$host_os
12598
12599 # The build system.
12600 build_alias=$build_alias
12601 build=$build
12602 build_os=$build_os
12603
12604 # An echo program that does not interpret backslashes.
12605 echo=$lt_echo
12606
12607 # The archiver.
12608 AR=$lt_AR
12609 AR_FLAGS=$lt_AR_FLAGS
12610
12611 # A C compiler.
12612 LTCC=$lt_LTCC
12613
12614 # LTCC compiler flags.
12615 LTCFLAGS=$lt_LTCFLAGS
12616
12617 # A language-specific compiler.
12618 CC=$lt_compiler_CXX
12619
12620 # Is the compiler the GNU C compiler?
12621 with_gcc=$GCC_CXX
12622
12623 # An ERE matcher.
12624 EGREP=$lt_EGREP
12625
12626 # The linker used to build libraries.
12627 LD=$lt_LD_CXX
12628
12629 # Whether we need hard or soft links.
12630 LN_S=$lt_LN_S
12631
12632 # A BSD-compatible nm program.
12633 NM=$lt_NM
12634
12635 # A symbol stripping program
12636 STRIP=$lt_STRIP
12637
12638 # Used to examine libraries when file_magic_cmd begins "file"
12639 MAGIC_CMD=$MAGIC_CMD
12640
12641 # Used on cygwin: DLL creation program.
12642 DLLTOOL="$DLLTOOL"
12643
12644 # Used on cygwin: object dumper.
12645 OBJDUMP="$OBJDUMP"
12646
12647 # Used on cygwin: assembler.
12648 AS="$AS"
12649
12650 # The name of the directory that contains temporary libtool files.
12651 objdir=$objdir
12652
12653 # How to create reloadable object files.
12654 reload_flag=$lt_reload_flag
12655 reload_cmds=$lt_reload_cmds
12656
12657 # How to pass a linker flag through the compiler.
12658 wl=$lt_lt_prog_compiler_wl_CXX
12659
12660 # Object file suffix (normally "o").
12661 objext="$ac_objext"
12662
12663 # Old archive suffix (normally "a").
12664 libext="$libext"
12665
12666 # Shared library suffix (normally ".so").
12667 shrext_cmds='$shrext_cmds'
12668
12669 # Executable file suffix (normally "").
12670 exeext="$exeext"
12671
12672 # Additional compiler flags for building library objects.
12673 pic_flag=$lt_lt_prog_compiler_pic_CXX
12674 pic_mode=$pic_mode
12675
12676 # What is the maximum length of a command?
12677 max_cmd_len=$lt_cv_sys_max_cmd_len
12678
12679 # Does compiler simultaneously support -c and -o options?
12680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12681
12682 # Must we lock files when doing compilation?
12683 need_locks=$lt_need_locks
12684
12685 # Do we need the lib prefix for modules?
12686 need_lib_prefix=$need_lib_prefix
12687
12688 # Do we need a version for libraries?
12689 need_version=$need_version
12690
12691 # Whether dlopen is supported.
12692 dlopen_support=$enable_dlopen
12693
12694 # Whether dlopen of programs is supported.
12695 dlopen_self=$enable_dlopen_self
12696
12697 # Whether dlopen of statically linked programs is supported.
12698 dlopen_self_static=$enable_dlopen_self_static
12699
12700 # Compiler flag to prevent dynamic linking.
12701 link_static_flag=$lt_lt_prog_compiler_static_CXX
12702
12703 # Compiler flag to turn off builtin functions.
12704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12705
12706 # Compiler flag to allow reflexive dlopens.
12707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12708
12709 # Compiler flag to generate shared objects directly from archives.
12710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12711
12712 # Compiler flag to generate thread-safe objects.
12713 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12714
12715 # Library versioning type.
12716 version_type=$version_type
12717
12718 # Format of library name prefix.
12719 libname_spec=$lt_libname_spec
12720
12721 # List of archive names. First name is the real one, the rest are links.
12722 # The last name is the one that the linker finds with -lNAME.
12723 library_names_spec=$lt_library_names_spec
12724
12725 # The coded name of the library, if different from the real name.
12726 soname_spec=$lt_soname_spec
12727
12728 # Commands used to build and install an old-style archive.
12729 RANLIB=$lt_RANLIB
12730 old_archive_cmds=$lt_old_archive_cmds_CXX
12731 old_postinstall_cmds=$lt_old_postinstall_cmds
12732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12733
12734 # Create an old-style archive from a shared archive.
12735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12736
12737 # Create a temporary old-style archive to link instead of a shared archive.
12738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12739
12740 # Commands used to build and install a shared archive.
12741 archive_cmds=$lt_archive_cmds_CXX
12742 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12743 postinstall_cmds=$lt_postinstall_cmds
12744 postuninstall_cmds=$lt_postuninstall_cmds
12745
12746 # Commands used to build a loadable module (assumed same as above if empty)
12747 module_cmds=$lt_module_cmds_CXX
12748 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12749
12750 # Commands to strip libraries.
12751 old_striplib=$lt_old_striplib
12752 striplib=$lt_striplib
12753
12754 # Dependencies to place before the objects being linked to create a
12755 # shared library.
12756 predep_objects=$lt_predep_objects_CXX
12757
12758 # Dependencies to place after the objects being linked to create a
12759 # shared library.
12760 postdep_objects=$lt_postdep_objects_CXX
12761
12762 # Dependencies to place before the objects being linked to create a
12763 # shared library.
12764 predeps=$lt_predeps_CXX
12765
12766 # Dependencies to place after the objects being linked to create a
12767 # shared library.
12768 postdeps=$lt_postdeps_CXX
12769
12770 # The library search path used internally by the compiler when linking
12771 # a shared library.
12772 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12773
12774 # Method to check whether dependent libraries are shared objects.
12775 deplibs_check_method=$lt_deplibs_check_method
12776
12777 # Command to use when deplibs_check_method == file_magic.
12778 file_magic_cmd=$lt_file_magic_cmd
12779
12780 # Flag that allows shared libraries with undefined symbols to be built.
12781 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12782
12783 # Flag that forces no undefined symbols.
12784 no_undefined_flag=$lt_no_undefined_flag_CXX
12785
12786 # Commands used to finish a libtool library installation in a directory.
12787 finish_cmds=$lt_finish_cmds
12788
12789 # Same as above, but a single script fragment to be evaled but not shown.
12790 finish_eval=$lt_finish_eval
12791
12792 # Take the output of nm and produce a listing of raw symbols and C names.
12793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12794
12795 # Transform the output of nm in a proper C declaration
12796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12797
12798 # Transform the output of nm in a C name address pair
12799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12800
12801 # This is the shared library runtime path variable.
12802 runpath_var=$runpath_var
12803
12804 # This is the shared library path variable.
12805 shlibpath_var=$shlibpath_var
12806
12807 # Is shlibpath searched before the hard-coded library search path?
12808 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12809
12810 # How to hardcode a shared library path into an executable.
12811 hardcode_action=$hardcode_action_CXX
12812
12813 # Whether we should hardcode library paths into libraries.
12814 hardcode_into_libs=$hardcode_into_libs
12815
12816 # Flag to hardcode \$libdir into a binary during linking.
12817 # This must work even if \$libdir does not exist.
12818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12819
12820 # If ld is used when linking, flag to hardcode \$libdir into
12821 # a binary during linking. This must work even if \$libdir does
12822 # not exist.
12823 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12824
12825 # Whether we need a single -rpath flag with a separated argument.
12826 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12827
12828 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12829 # resulting binary.
12830 hardcode_direct=$hardcode_direct_CXX
12831
12832 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12833 # resulting binary.
12834 hardcode_minus_L=$hardcode_minus_L_CXX
12835
12836 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12837 # the resulting binary.
12838 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12839
12840 # Set to yes if building a shared library automatically hardcodes DIR into the library
12841 # and all subsequent libraries and executables linked against it.
12842 hardcode_automatic=$hardcode_automatic_CXX
12843
12844 # Variables whose values should be saved in libtool wrapper scripts and
12845 # restored at relink time.
12846 variables_saved_for_relink="$variables_saved_for_relink"
12847
12848 # Whether libtool must link a program against all its dependency libraries.
12849 link_all_deplibs=$link_all_deplibs_CXX
12850
12851 # Compile-time system search path for libraries
12852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12853
12854 # Run-time system search path for libraries
12855 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12856
12857 # Fix the shell variable \$srcfile for the compiler.
12858 fix_srcfile_path="$fix_srcfile_path_CXX"
12859
12860 # Set to yes if exported symbols are required.
12861 always_export_symbols=$always_export_symbols_CXX
12862
12863 # The commands to list exported symbols.
12864 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12865
12866 # The commands to extract the exported symbol list from a shared archive.
12867 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12868
12869 # Symbols that should not be listed in the preloaded symbols.
12870 exclude_expsyms=$lt_exclude_expsyms_CXX
12871
12872 # Symbols that must always be exported.
12873 include_expsyms=$lt_include_expsyms_CXX
12874
12875 # ### END LIBTOOL TAG CONFIG: $tagname
12876
12877 __EOF__
12878
12879
12880 else
12881 # If there is no Makefile yet, we rely on a make rule to execute
12882 # `config.status --recheck' to rerun these tests and create the
12883 # libtool script then.
12884 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12885 if test -f "$ltmain_in"; then
12886 test -f Makefile && make "$ltmain"
12887 fi
12888 fi
12889
12890
12891 ac_ext=c
12892 ac_cpp='$CPP $CPPFLAGS'
12893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896
12897 CC=$lt_save_CC
12898 LDCXX=$LD
12899 LD=$lt_save_LD
12900 GCC=$lt_save_GCC
12901 with_gnu_ldcxx=$with_gnu_ld
12902 with_gnu_ld=$lt_save_with_gnu_ld
12903 lt_cv_path_LDCXX=$lt_cv_path_LD
12904 lt_cv_path_LD=$lt_save_path_LD
12905 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12906 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12907
12908 else
12909 tagname=""
12910 fi
12911 ;;
12912
12913 F77)
12914 if test -n "$F77" && test "X$F77" != "Xno"; then
12915
12916 ac_ext=f
12917 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12918 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12920
12921
12922 archive_cmds_need_lc_F77=no
12923 allow_undefined_flag_F77=
12924 always_export_symbols_F77=no
12925 archive_expsym_cmds_F77=
12926 export_dynamic_flag_spec_F77=
12927 hardcode_direct_F77=no
12928 hardcode_libdir_flag_spec_F77=
12929 hardcode_libdir_flag_spec_ld_F77=
12930 hardcode_libdir_separator_F77=
12931 hardcode_minus_L_F77=no
12932 hardcode_automatic_F77=no
12933 module_cmds_F77=
12934 module_expsym_cmds_F77=
12935 link_all_deplibs_F77=unknown
12936 old_archive_cmds_F77=$old_archive_cmds
12937 no_undefined_flag_F77=
12938 whole_archive_flag_spec_F77=
12939 enable_shared_with_static_runtimes_F77=no
12940
12941 # Source file extension for f77 test sources.
12942 ac_ext=f
12943
12944 # Object file extension for compiled f77 test sources.
12945 objext=o
12946 objext_F77=$objext
12947
12948 # Code to be used in simple compile tests
12949 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12950
12951 # Code to be used in simple link tests
12952 lt_simple_link_test_code=" program t\n end\n"
12953
12954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12955
12956 # If no C compiler was specified, use CC.
12957 LTCC=${LTCC-"$CC"}
12958
12959 # If no C compiler flags were specified, use CFLAGS.
12960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12961
12962 # Allow CC to be a program name with arguments.
12963 compiler=$CC
12964
12965
12966 # save warnings/boilerplate of simple test code
12967 ac_outfile=conftest.$ac_objext
12968 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970 _lt_compiler_boilerplate=`cat conftest.err`
12971 $rm conftest*
12972
12973 ac_outfile=conftest.$ac_objext
12974 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12976 _lt_linker_boilerplate=`cat conftest.err`
12977 $rm conftest*
12978
12979
12980 # Allow CC to be a program name with arguments.
12981 lt_save_CC="$CC"
12982 CC=${F77-"f77"}
12983 compiler=$CC
12984 compiler_F77=$CC
12985 for cc_temp in $compiler""; do
12986 case $cc_temp in
12987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12989 \-*) ;;
12990 *) break;;
12991 esac
12992 done
12993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12994
12995
12996 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12997 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12998 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12999 echo "${ECHO_T}$can_build_shared" >&6
13000
13001 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13002 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13003 test "$can_build_shared" = "no" && enable_shared=no
13004
13005 # On AIX, shared libraries and static libraries use the same namespace, and
13006 # are all built from PIC.
13007 case $host_os in
13008 aix3*)
13009 test "$enable_shared" = yes && enable_static=no
13010 if test -n "$RANLIB"; then
13011 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13012 postinstall_cmds='$RANLIB $lib'
13013 fi
13014 ;;
13015 aix4* | aix5*)
13016 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13017 test "$enable_shared" = yes && enable_static=no
13018 fi
13019 ;;
13020 esac
13021 echo "$as_me:$LINENO: result: $enable_shared" >&5
13022 echo "${ECHO_T}$enable_shared" >&6
13023
13024 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13025 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13026 # Make sure either enable_shared or enable_static is yes.
13027 test "$enable_shared" = yes || enable_static=yes
13028 echo "$as_me:$LINENO: result: $enable_static" >&5
13029 echo "${ECHO_T}$enable_static" >&6
13030
13031 GCC_F77="$G77"
13032 LD_F77="$LD"
13033
13034 lt_prog_compiler_wl_F77=
13035 lt_prog_compiler_pic_F77=
13036 lt_prog_compiler_static_F77=
13037
13038 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13039 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13040
13041 if test "$GCC" = yes; then
13042 lt_prog_compiler_wl_F77='-Wl,'
13043 lt_prog_compiler_static_F77='-static'
13044
13045 case $host_os in
13046 aix*)
13047 # All AIX code is PIC.
13048 if test "$host_cpu" = ia64; then
13049 # AIX 5 now supports IA64 processor
13050 lt_prog_compiler_static_F77='-Bstatic'
13051 fi
13052 ;;
13053
13054 amigaos*)
13055 # FIXME: we need at least 68020 code to build shared libraries, but
13056 # adding the `-m68020' flag to GCC prevents building anything better,
13057 # like `-m68040'.
13058 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13059 ;;
13060
13061 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13062 # PIC is the default for these OSes.
13063 ;;
13064
13065 mingw* | pw32* | os2*)
13066 # This hack is so that the source file can tell whether it is being
13067 # built for inclusion in a dll (and should export symbols for example).
13068 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13069 ;;
13070
13071 darwin* | rhapsody*)
13072 # PIC is the default on this platform
13073 # Common symbols not allowed in MH_DYLIB files
13074 lt_prog_compiler_pic_F77='-fno-common'
13075 ;;
13076
13077 interix3*)
13078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13079 # Instead, we relocate shared libraries at runtime.
13080 ;;
13081
13082 msdosdjgpp*)
13083 # Just because we use GCC doesn't mean we suddenly get shared libraries
13084 # on systems that don't support them.
13085 lt_prog_compiler_can_build_shared_F77=no
13086 enable_shared=no
13087 ;;
13088
13089 sysv4*MP*)
13090 if test -d /usr/nec; then
13091 lt_prog_compiler_pic_F77=-Kconform_pic
13092 fi
13093 ;;
13094
13095 hpux*)
13096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13097 # not for PA HP-UX.
13098 case $host_cpu in
13099 hppa*64*|ia64*)
13100 # +Z the default
13101 ;;
13102 *)
13103 lt_prog_compiler_pic_F77='-fPIC'
13104 ;;
13105 esac
13106 ;;
13107
13108 *)
13109 lt_prog_compiler_pic_F77='-fPIC'
13110 ;;
13111 esac
13112 else
13113 # PORTME Check for flag to pass linker flags through the system compiler.
13114 case $host_os in
13115 aix*)
13116 lt_prog_compiler_wl_F77='-Wl,'
13117 if test "$host_cpu" = ia64; then
13118 # AIX 5 now supports IA64 processor
13119 lt_prog_compiler_static_F77='-Bstatic'
13120 else
13121 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13122 fi
13123 ;;
13124 darwin*)
13125 # PIC is the default on this platform
13126 # Common symbols not allowed in MH_DYLIB files
13127 case $cc_basename in
13128 xlc*)
13129 lt_prog_compiler_pic_F77='-qnocommon'
13130 lt_prog_compiler_wl_F77='-Wl,'
13131 ;;
13132 esac
13133 ;;
13134
13135 mingw* | pw32* | os2*)
13136 # This hack is so that the source file can tell whether it is being
13137 # built for inclusion in a dll (and should export symbols for example).
13138 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13139 ;;
13140
13141 hpux9* | hpux10* | hpux11*)
13142 lt_prog_compiler_wl_F77='-Wl,'
13143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13144 # not for PA HP-UX.
13145 case $host_cpu in
13146 hppa*64*|ia64*)
13147 # +Z the default
13148 ;;
13149 *)
13150 lt_prog_compiler_pic_F77='+Z'
13151 ;;
13152 esac
13153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13154 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13155 ;;
13156
13157 irix5* | irix6* | nonstopux*)
13158 lt_prog_compiler_wl_F77='-Wl,'
13159 # PIC (with -KPIC) is the default.
13160 lt_prog_compiler_static_F77='-non_shared'
13161 ;;
13162
13163 newsos6)
13164 lt_prog_compiler_pic_F77='-KPIC'
13165 lt_prog_compiler_static_F77='-Bstatic'
13166 ;;
13167
13168 linux*)
13169 case $cc_basename in
13170 icc* | ecc*)
13171 lt_prog_compiler_wl_F77='-Wl,'
13172 lt_prog_compiler_pic_F77='-KPIC'
13173 lt_prog_compiler_static_F77='-static'
13174 ;;
13175 pgcc* | pgf77* | pgf90* | pgf95*)
13176 # Portland Group compilers (*not* the Pentium gcc compiler,
13177 # which looks to be a dead project)
13178 lt_prog_compiler_wl_F77='-Wl,'
13179 lt_prog_compiler_pic_F77='-fpic'
13180 lt_prog_compiler_static_F77='-Bstatic'
13181 ;;
13182 ccc*)
13183 lt_prog_compiler_wl_F77='-Wl,'
13184 # All Alpha code is PIC.
13185 lt_prog_compiler_static_F77='-non_shared'
13186 ;;
13187 esac
13188 ;;
13189
13190 osf3* | osf4* | osf5*)
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 # All OSF/1 code is PIC.
13193 lt_prog_compiler_static_F77='-non_shared'
13194 ;;
13195
13196 solaris*)
13197 lt_prog_compiler_pic_F77='-KPIC'
13198 lt_prog_compiler_static_F77='-Bstatic'
13199 case $cc_basename in
13200 f77* | f90* | f95*)
13201 lt_prog_compiler_wl_F77='-Qoption ld ';;
13202 *)
13203 lt_prog_compiler_wl_F77='-Wl,';;
13204 esac
13205 ;;
13206
13207 sunos4*)
13208 lt_prog_compiler_wl_F77='-Qoption ld '
13209 lt_prog_compiler_pic_F77='-PIC'
13210 lt_prog_compiler_static_F77='-Bstatic'
13211 ;;
13212
13213 sysv4 | sysv4.2uw2* | sysv4.3*)
13214 lt_prog_compiler_wl_F77='-Wl,'
13215 lt_prog_compiler_pic_F77='-KPIC'
13216 lt_prog_compiler_static_F77='-Bstatic'
13217 ;;
13218
13219 sysv4*MP*)
13220 if test -d /usr/nec ;then
13221 lt_prog_compiler_pic_F77='-Kconform_pic'
13222 lt_prog_compiler_static_F77='-Bstatic'
13223 fi
13224 ;;
13225
13226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13227 lt_prog_compiler_wl_F77='-Wl,'
13228 lt_prog_compiler_pic_F77='-KPIC'
13229 lt_prog_compiler_static_F77='-Bstatic'
13230 ;;
13231
13232 unicos*)
13233 lt_prog_compiler_wl_F77='-Wl,'
13234 lt_prog_compiler_can_build_shared_F77=no
13235 ;;
13236
13237 uts4*)
13238 lt_prog_compiler_pic_F77='-pic'
13239 lt_prog_compiler_static_F77='-Bstatic'
13240 ;;
13241
13242 *)
13243 lt_prog_compiler_can_build_shared_F77=no
13244 ;;
13245 esac
13246 fi
13247
13248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13249 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13250
13251 #
13252 # Check to make sure the PIC flag actually works.
13253 #
13254 if test -n "$lt_prog_compiler_pic_F77"; then
13255
13256 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13257 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13258 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261 lt_prog_compiler_pic_works_F77=no
13262 ac_outfile=conftest.$ac_objext
13263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13264 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13265 # Insert the option either (1) after the last *FLAGS variable, or
13266 # (2) before a word containing "conftest.", or (3) at the end.
13267 # Note that $ac_compile itself does not contain backslashes and begins
13268 # with a dollar sign (not a hyphen), so the echo should work correctly.
13269 # The option is referenced via a variable to avoid confusing sed.
13270 lt_compile=`echo "$ac_compile" | $SED \
13271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13273 -e 's:$: $lt_compiler_flag:'`
13274 (eval echo "\"\$as_me:13274: $lt_compile\"" >&5)
13275 (eval "$lt_compile" 2>conftest.err)
13276 ac_status=$?
13277 cat conftest.err >&5
13278 echo "$as_me:13278: \$? = $ac_status" >&5
13279 if (exit $ac_status) && test -s "$ac_outfile"; then
13280 # The compiler can only warn and ignore the option if not recognized
13281 # So say no if there are warnings other than the usual output.
13282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13285 lt_prog_compiler_pic_works_F77=yes
13286 fi
13287 fi
13288 $rm conftest*
13289
13290 fi
13291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13292 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13293
13294 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13295 case $lt_prog_compiler_pic_F77 in
13296 "" | " "*) ;;
13297 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13298 esac
13299 else
13300 lt_prog_compiler_pic_F77=
13301 lt_prog_compiler_can_build_shared_F77=no
13302 fi
13303
13304 fi
13305 case $host_os in
13306 # For platforms which do not support PIC, -DPIC is meaningless:
13307 *djgpp*)
13308 lt_prog_compiler_pic_F77=
13309 ;;
13310 *)
13311 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13312 ;;
13313 esac
13314
13315 #
13316 # Check to make sure the static flag actually works.
13317 #
13318 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13319 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13320 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13321 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324 lt_prog_compiler_static_works_F77=no
13325 save_LDFLAGS="$LDFLAGS"
13326 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13327 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13329 # The linker can only warn and ignore the option if not recognized
13330 # So say no if there are warnings
13331 if test -s conftest.err; then
13332 # Append any errors to the config.log.
13333 cat conftest.err 1>&5
13334 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13336 if diff conftest.exp conftest.er2 >/dev/null; then
13337 lt_prog_compiler_static_works_F77=yes
13338 fi
13339 else
13340 lt_prog_compiler_static_works_F77=yes
13341 fi
13342 fi
13343 $rm conftest*
13344 LDFLAGS="$save_LDFLAGS"
13345
13346 fi
13347 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13348 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13349
13350 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13351 :
13352 else
13353 lt_prog_compiler_static_F77=
13354 fi
13355
13356
13357 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13358 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13359 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 lt_cv_prog_compiler_c_o_F77=no
13363 $rm -r conftest 2>/dev/null
13364 mkdir conftest
13365 cd conftest
13366 mkdir out
13367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13368
13369 lt_compiler_flag="-o out/conftest2.$ac_objext"
13370 # Insert the option either (1) after the last *FLAGS variable, or
13371 # (2) before a word containing "conftest.", or (3) at the end.
13372 # Note that $ac_compile itself does not contain backslashes and begins
13373 # with a dollar sign (not a hyphen), so the echo should work correctly.
13374 lt_compile=`echo "$ac_compile" | $SED \
13375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13377 -e 's:$: $lt_compiler_flag:'`
13378 (eval echo "\"\$as_me:13378: $lt_compile\"" >&5)
13379 (eval "$lt_compile" 2>out/conftest.err)
13380 ac_status=$?
13381 cat out/conftest.err >&5
13382 echo "$as_me:13382: \$? = $ac_status" >&5
13383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13384 then
13385 # The compiler can only warn and ignore the option if not recognized
13386 # So say no if there are warnings
13387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13390 lt_cv_prog_compiler_c_o_F77=yes
13391 fi
13392 fi
13393 chmod u+w . 2>&5
13394 $rm conftest*
13395 # SGI C++ compiler will create directory out/ii_files/ for
13396 # template instantiation
13397 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13398 $rm out/* && rmdir out
13399 cd ..
13400 rmdir conftest
13401 $rm conftest*
13402
13403 fi
13404 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13405 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13406
13407
13408 hard_links="nottested"
13409 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13410 # do not overwrite the value of need_locks provided by the user
13411 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13412 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13413 hard_links=yes
13414 $rm conftest*
13415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13416 touch conftest.a
13417 ln conftest.a conftest.b 2>&5 || hard_links=no
13418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13419 echo "$as_me:$LINENO: result: $hard_links" >&5
13420 echo "${ECHO_T}$hard_links" >&6
13421 if test "$hard_links" = no; then
13422 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13423 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13424 need_locks=warn
13425 fi
13426 else
13427 need_locks=no
13428 fi
13429
13430 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13431 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13432
13433 runpath_var=
13434 allow_undefined_flag_F77=
13435 enable_shared_with_static_runtimes_F77=no
13436 archive_cmds_F77=
13437 archive_expsym_cmds_F77=
13438 old_archive_From_new_cmds_F77=
13439 old_archive_from_expsyms_cmds_F77=
13440 export_dynamic_flag_spec_F77=
13441 whole_archive_flag_spec_F77=
13442 thread_safe_flag_spec_F77=
13443 hardcode_libdir_flag_spec_F77=
13444 hardcode_libdir_flag_spec_ld_F77=
13445 hardcode_libdir_separator_F77=
13446 hardcode_direct_F77=no
13447 hardcode_minus_L_F77=no
13448 hardcode_shlibpath_var_F77=unsupported
13449 link_all_deplibs_F77=unknown
13450 hardcode_automatic_F77=no
13451 module_cmds_F77=
13452 module_expsym_cmds_F77=
13453 always_export_symbols_F77=no
13454 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13455 # include_expsyms should be a list of space-separated symbols to be *always*
13456 # included in the symbol list
13457 include_expsyms_F77=
13458 # exclude_expsyms can be an extended regexp of symbols to exclude
13459 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13460 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13461 # as well as any symbol that contains `d'.
13462 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13463 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13464 # platforms (ab)use it in PIC code, but their linkers get confused if
13465 # the symbol is explicitly referenced. Since portable code cannot
13466 # rely on this symbol name, it's probably fine to never include it in
13467 # preloaded symbol tables.
13468 extract_expsyms_cmds=
13469 # Just being paranoid about ensuring that cc_basename is set.
13470 for cc_temp in $compiler""; do
13471 case $cc_temp in
13472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13474 \-*) ;;
13475 *) break;;
13476 esac
13477 done
13478 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13479
13480 case $host_os in
13481 cygwin* | mingw* | pw32*)
13482 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13483 # When not using gcc, we currently assume that we are using
13484 # Microsoft Visual C++.
13485 if test "$GCC" != yes; then
13486 with_gnu_ld=no
13487 fi
13488 ;;
13489 interix*)
13490 # we just hope/assume this is gcc and not c89 (= MSVC++)
13491 with_gnu_ld=yes
13492 ;;
13493 openbsd*)
13494 with_gnu_ld=no
13495 ;;
13496 esac
13497
13498 ld_shlibs_F77=yes
13499 if test "$with_gnu_ld" = yes; then
13500 # If archive_cmds runs LD, not CC, wlarc should be empty
13501 wlarc='${wl}'
13502
13503 # Set some defaults for GNU ld with shared library support. These
13504 # are reset later if shared libraries are not supported. Putting them
13505 # here allows them to be overridden if necessary.
13506 runpath_var=LD_RUN_PATH
13507 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13508 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13509 # ancient GNU ld didn't support --whole-archive et. al.
13510 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13511 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13512 else
13513 whole_archive_flag_spec_F77=
13514 fi
13515 supports_anon_versioning=no
13516 case `$LD -v 2>/dev/null` in
13517 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13518 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13519 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13520 *\ 2.11.*) ;; # other 2.11 versions
13521 *) supports_anon_versioning=yes ;;
13522 esac
13523
13524 # See if GNU ld supports shared libraries.
13525 case $host_os in
13526 aix3* | aix4* | aix5*)
13527 # On AIX/PPC, the GNU linker is very broken
13528 if test "$host_cpu" != ia64; then
13529 ld_shlibs_F77=no
13530 cat <<EOF 1>&2
13531
13532 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13533 *** to be unable to reliably create shared libraries on AIX.
13534 *** Therefore, libtool is disabling shared libraries support. If you
13535 *** really care for shared libraries, you may want to modify your PATH
13536 *** so that a non-GNU linker is found, and then restart.
13537
13538 EOF
13539 fi
13540 ;;
13541
13542 amigaos*)
13543 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)'
13544 hardcode_libdir_flag_spec_F77='-L$libdir'
13545 hardcode_minus_L_F77=yes
13546
13547 # Samuel A. Falvo II <[email protected]> reports
13548 # that the semantics of dynamic libraries on AmigaOS, at least up
13549 # to version 4, is to share data among multiple programs linked
13550 # with the same dynamic library. Since this doesn't match the
13551 # behavior of shared libraries on other platforms, we can't use
13552 # them.
13553 ld_shlibs_F77=no
13554 ;;
13555
13556 beos*)
13557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13558 allow_undefined_flag_F77=unsupported
13559 # Joseph Beckenbach <[email protected]> says some releases of gcc
13560 # support --undefined. This deserves some investigation. FIXME
13561 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 else
13563 ld_shlibs_F77=no
13564 fi
13565 ;;
13566
13567 cygwin* | mingw* | pw32*)
13568 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13569 # as there is no search path for DLLs.
13570 hardcode_libdir_flag_spec_F77='-L$libdir'
13571 allow_undefined_flag_F77=unsupported
13572 always_export_symbols_F77=no
13573 enable_shared_with_static_runtimes_F77=yes
13574 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13575
13576 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13577 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13578 # If the export-symbols file already is a .def file (1st line
13579 # is EXPORTS), use it as is; otherwise, prepend...
13580 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13581 cp $export_symbols $output_objdir/$soname.def;
13582 else
13583 echo EXPORTS > $output_objdir/$soname.def;
13584 cat $export_symbols >> $output_objdir/$soname.def;
13585 fi~
13586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13587 else
13588 ld_shlibs_F77=no
13589 fi
13590 ;;
13591
13592 interix3*)
13593 hardcode_direct_F77=no
13594 hardcode_shlibpath_var_F77=no
13595 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13596 export_dynamic_flag_spec_F77='${wl}-E'
13597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13598 # Instead, shared libraries are loaded at an image base (0x10000000 by
13599 # default) and relocated if they conflict, which is a slow very memory
13600 # consuming and fragmenting process. To avoid this, we pick a random,
13601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13603 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13604 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13605 ;;
13606
13607 linux*)
13608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13609 tmp_addflag=
13610 case $cc_basename,$host_cpu in
13611 pgcc*) # Portland Group C compiler
13612 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13613 tmp_addflag=' $pic_flag'
13614 ;;
13615 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13616 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13617 tmp_addflag=' $pic_flag -Mnomain' ;;
13618 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13619 tmp_addflag=' -i_dynamic' ;;
13620 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13621 tmp_addflag=' -i_dynamic -nofor_main' ;;
13622 ifc* | ifort*) # Intel Fortran compiler
13623 tmp_addflag=' -nofor_main' ;;
13624 esac
13625 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626
13627 if test $supports_anon_versioning = yes; then
13628 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13630 $echo "local: *; };" >> $output_objdir/$libname.ver~
13631 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13632 fi
13633 else
13634 ld_shlibs_F77=no
13635 fi
13636 ;;
13637
13638 netbsd*)
13639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13640 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13641 wlarc=
13642 else
13643 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13644 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13645 fi
13646 ;;
13647
13648 solaris*)
13649 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13650 ld_shlibs_F77=no
13651 cat <<EOF 1>&2
13652
13653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13654 *** create shared libraries on Solaris systems. Therefore, libtool
13655 *** is disabling shared libraries support. We urge you to upgrade GNU
13656 *** binutils to release 2.9.1 or newer. Another option is to modify
13657 *** your PATH or compiler configuration so that the native linker is
13658 *** used, and then restart.
13659
13660 EOF
13661 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13664 else
13665 ld_shlibs_F77=no
13666 fi
13667 ;;
13668
13669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13670 case `$LD -v 2>&1` in
13671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13672 ld_shlibs_F77=no
13673 cat <<_LT_EOF 1>&2
13674
13675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13676 *** reliably create shared libraries on SCO systems. Therefore, libtool
13677 *** is disabling shared libraries support. We urge you to upgrade GNU
13678 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13679 *** your PATH or compiler configuration so that the native linker is
13680 *** used, and then restart.
13681
13682 _LT_EOF
13683 ;;
13684 *)
13685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13686 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13689 else
13690 ld_shlibs_F77=no
13691 fi
13692 ;;
13693 esac
13694 ;;
13695
13696 sunos4*)
13697 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698 wlarc=
13699 hardcode_direct_F77=yes
13700 hardcode_shlibpath_var_F77=no
13701 ;;
13702
13703 *)
13704 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13707 else
13708 ld_shlibs_F77=no
13709 fi
13710 ;;
13711 esac
13712
13713 if test "$ld_shlibs_F77" = no; then
13714 runpath_var=
13715 hardcode_libdir_flag_spec_F77=
13716 export_dynamic_flag_spec_F77=
13717 whole_archive_flag_spec_F77=
13718 fi
13719 else
13720 # PORTME fill in a description of your system's linker (not GNU ld)
13721 case $host_os in
13722 aix3*)
13723 allow_undefined_flag_F77=unsupported
13724 always_export_symbols_F77=yes
13725 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'
13726 # Note: this linker hardcodes the directories in LIBPATH if there
13727 # are no directories specified by -L.
13728 hardcode_minus_L_F77=yes
13729 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13730 # Neither direct hardcoding nor static linking is supported with a
13731 # broken collect2.
13732 hardcode_direct_F77=unsupported
13733 fi
13734 ;;
13735
13736 aix4* | aix5*)
13737 if test "$host_cpu" = ia64; then
13738 # On IA64, the linker does run time linking by default, so we don't
13739 # have to do anything special.
13740 aix_use_runtimelinking=no
13741 exp_sym_flag='-Bexport'
13742 no_entry_flag=""
13743 else
13744 # If we're using GNU nm, then we don't want the "-C" option.
13745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13746 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13747 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'
13748 else
13749 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'
13750 fi
13751 aix_use_runtimelinking=no
13752
13753 # Test if we are trying to use run time linking or normal
13754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13755 # need to do runtime linking.
13756 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13757 for ld_flag in $LDFLAGS; do
13758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13759 aix_use_runtimelinking=yes
13760 break
13761 fi
13762 done
13763 ;;
13764 esac
13765
13766 exp_sym_flag='-bexport'
13767 no_entry_flag='-bnoentry'
13768 fi
13769
13770 # When large executables or shared objects are built, AIX ld can
13771 # have problems creating the table of contents. If linking a library
13772 # or program results in "error TOC overflow" add -mminimal-toc to
13773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13775
13776 archive_cmds_F77=''
13777 hardcode_direct_F77=yes
13778 hardcode_libdir_separator_F77=':'
13779 link_all_deplibs_F77=yes
13780
13781 if test "$GCC" = yes; then
13782 case $host_os in aix4.[012]|aix4.[012].*)
13783 # We only want to do this on AIX 4.2 and lower, the check
13784 # below for broken collect2 doesn't work under 4.3+
13785 collect2name=`${CC} -print-prog-name=collect2`
13786 if test -f "$collect2name" && \
13787 strings "$collect2name" | grep resolve_lib_name >/dev/null
13788 then
13789 # We have reworked collect2
13790 hardcode_direct_F77=yes
13791 else
13792 # We have old collect2
13793 hardcode_direct_F77=unsupported
13794 # It fails to find uninstalled libraries when the uninstalled
13795 # path is not listed in the libpath. Setting hardcode_minus_L
13796 # to unsupported forces relinking
13797 hardcode_minus_L_F77=yes
13798 hardcode_libdir_flag_spec_F77='-L$libdir'
13799 hardcode_libdir_separator_F77=
13800 fi
13801 ;;
13802 esac
13803 shared_flag='-shared'
13804 if test "$aix_use_runtimelinking" = yes; then
13805 shared_flag="$shared_flag "'${wl}-G'
13806 fi
13807 else
13808 # not using gcc
13809 if test "$host_cpu" = ia64; then
13810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13811 # chokes on -Wl,-G. The following line is correct:
13812 shared_flag='-G'
13813 else
13814 if test "$aix_use_runtimelinking" = yes; then
13815 shared_flag='${wl}-G'
13816 else
13817 shared_flag='${wl}-bM:SRE'
13818 fi
13819 fi
13820 fi
13821
13822 # It seems that -bexpall does not export symbols beginning with
13823 # underscore (_), so it is better to generate a list of symbols to export.
13824 always_export_symbols_F77=yes
13825 if test "$aix_use_runtimelinking" = yes; then
13826 # Warning - without using the other runtime loading flags (-brtl),
13827 # -berok will link without error, but may produce a broken library.
13828 allow_undefined_flag_F77='-berok'
13829 # Determine the default libpath from the value encoded in an empty executable.
13830 cat >conftest.$ac_ext <<_ACEOF
13831 program main
13832
13833 end
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_f77_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857
13858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13859 }'`
13860 # Check for a 64-bit object if we didn't find anything.
13861 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; }
13862 }'`; fi
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867 fi
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13871
13872 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13873 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13874 else
13875 if test "$host_cpu" = ia64; then
13876 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13877 allow_undefined_flag_F77="-z nodefs"
13878 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13879 else
13880 # Determine the default libpath from the value encoded in an empty executable.
13881 cat >conftest.$ac_ext <<_ACEOF
13882 program main
13883
13884 end
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>conftest.er1
13889 ac_status=$?
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_f77_werror_flag"
13896 || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908
13909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13910 }'`
13911 # Check for a 64-bit object if we didn't find anything.
13912 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; }
13913 }'`; fi
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 fi
13919 rm -f conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13922
13923 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13924 # Warning - without using the other run time loading flags,
13925 # -berok will link without error, but may produce a broken library.
13926 no_undefined_flag_F77=' ${wl}-bernotok'
13927 allow_undefined_flag_F77=' ${wl}-berok'
13928 # Exported symbols can be pulled into shared objects from archives
13929 whole_archive_flag_spec_F77='$convenience'
13930 archive_cmds_need_lc_F77=yes
13931 # This is similar to how AIX traditionally builds its shared libraries.
13932 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13933 fi
13934 fi
13935 ;;
13936
13937 amigaos*)
13938 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)'
13939 hardcode_libdir_flag_spec_F77='-L$libdir'
13940 hardcode_minus_L_F77=yes
13941 # see comment about different semantics on the GNU ld section
13942 ld_shlibs_F77=no
13943 ;;
13944
13945 bsdi[45]*)
13946 export_dynamic_flag_spec_F77=-rdynamic
13947 ;;
13948
13949 cygwin* | mingw* | pw32*)
13950 # When not using gcc, we currently assume that we are using
13951 # Microsoft Visual C++.
13952 # hardcode_libdir_flag_spec is actually meaningless, as there is
13953 # no search path for DLLs.
13954 hardcode_libdir_flag_spec_F77=' '
13955 allow_undefined_flag_F77=unsupported
13956 # Tell ltmain to make .lib files, not .a files.
13957 libext=lib
13958 # Tell ltmain to make .dll files, not .so files.
13959 shrext_cmds=".dll"
13960 # FIXME: Setting linknames here is a bad hack.
13961 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13962 # The linker will automatically build a .lib file if we build a DLL.
13963 old_archive_From_new_cmds_F77='true'
13964 # FIXME: Should let the user specify the lib program.
13965 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13966 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13967 enable_shared_with_static_runtimes_F77=yes
13968 ;;
13969
13970 darwin* | rhapsody*)
13971 case $host_os in
13972 rhapsody* | darwin1.[012])
13973 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13974 ;;
13975 *) # Darwin 1.3 on
13976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13977 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13978 else
13979 case ${MACOSX_DEPLOYMENT_TARGET} in
13980 10.[012])
13981 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13982 ;;
13983 10.*)
13984 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13985 ;;
13986 esac
13987 fi
13988 ;;
13989 esac
13990 archive_cmds_need_lc_F77=no
13991 hardcode_direct_F77=no
13992 hardcode_automatic_F77=yes
13993 hardcode_shlibpath_var_F77=unsupported
13994 whole_archive_flag_spec_F77=''
13995 link_all_deplibs_F77=yes
13996 if test "$GCC" = yes ; then
13997 output_verbose_link_cmd='echo'
13998 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13999 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14001 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14002 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}'
14003 else
14004 case $cc_basename in
14005 xlc*)
14006 output_verbose_link_cmd='echo'
14007 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14008 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14010 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14011 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}'
14012 ;;
14013 *)
14014 ld_shlibs_F77=no
14015 ;;
14016 esac
14017 fi
14018 ;;
14019
14020 dgux*)
14021 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022 hardcode_libdir_flag_spec_F77='-L$libdir'
14023 hardcode_shlibpath_var_F77=no
14024 ;;
14025
14026 freebsd1*)
14027 ld_shlibs_F77=no
14028 ;;
14029
14030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14031 # support. Future versions do this automatically, but an explicit c++rt0.o
14032 # does not break anything, and helps significantly (at the cost of a little
14033 # extra space).
14034 freebsd2.2*)
14035 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14036 hardcode_libdir_flag_spec_F77='-R$libdir'
14037 hardcode_direct_F77=yes
14038 hardcode_shlibpath_var_F77=no
14039 ;;
14040
14041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14042 freebsd2*)
14043 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14044 hardcode_direct_F77=yes
14045 hardcode_minus_L_F77=yes
14046 hardcode_shlibpath_var_F77=no
14047 ;;
14048
14049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14050 freebsd* | kfreebsd*-gnu | dragonfly*)
14051 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14052 hardcode_libdir_flag_spec_F77='-R$libdir'
14053 hardcode_direct_F77=yes
14054 hardcode_shlibpath_var_F77=no
14055 ;;
14056
14057 hpux9*)
14058 if test "$GCC" = yes; then
14059 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'
14060 else
14061 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'
14062 fi
14063 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14064 hardcode_libdir_separator_F77=:
14065 hardcode_direct_F77=yes
14066
14067 # hardcode_minus_L: Not really in the search PATH,
14068 # but as the default location of the library.
14069 hardcode_minus_L_F77=yes
14070 export_dynamic_flag_spec_F77='${wl}-E'
14071 ;;
14072
14073 hpux10*)
14074 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14075 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14076 else
14077 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14078 fi
14079 if test "$with_gnu_ld" = no; then
14080 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14081 hardcode_libdir_separator_F77=:
14082
14083 hardcode_direct_F77=yes
14084 export_dynamic_flag_spec_F77='${wl}-E'
14085
14086 # hardcode_minus_L: Not really in the search PATH,
14087 # but as the default location of the library.
14088 hardcode_minus_L_F77=yes
14089 fi
14090 ;;
14091
14092 hpux11*)
14093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14094 case $host_cpu in
14095 hppa*64*)
14096 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14097 ;;
14098 ia64*)
14099 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14100 ;;
14101 *)
14102 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14103 ;;
14104 esac
14105 else
14106 case $host_cpu in
14107 hppa*64*)
14108 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14109 ;;
14110 ia64*)
14111 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14112 ;;
14113 *)
14114 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14115 ;;
14116 esac
14117 fi
14118 if test "$with_gnu_ld" = no; then
14119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14120 hardcode_libdir_separator_F77=:
14121
14122 case $host_cpu in
14123 hppa*64*|ia64*)
14124 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14125 hardcode_direct_F77=no
14126 hardcode_shlibpath_var_F77=no
14127 ;;
14128 *)
14129 hardcode_direct_F77=yes
14130 export_dynamic_flag_spec_F77='${wl}-E'
14131
14132 # hardcode_minus_L: Not really in the search PATH,
14133 # but as the default location of the library.
14134 hardcode_minus_L_F77=yes
14135 ;;
14136 esac
14137 fi
14138 ;;
14139
14140 irix5* | irix6* | nonstopux*)
14141 if test "$GCC" = yes; then
14142 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'
14143 else
14144 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'
14145 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14146 fi
14147 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14148 hardcode_libdir_separator_F77=:
14149 link_all_deplibs_F77=yes
14150 ;;
14151
14152 netbsd*)
14153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14154 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14155 else
14156 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14157 fi
14158 hardcode_libdir_flag_spec_F77='-R$libdir'
14159 hardcode_direct_F77=yes
14160 hardcode_shlibpath_var_F77=no
14161 ;;
14162
14163 newsos6)
14164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165 hardcode_direct_F77=yes
14166 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14167 hardcode_libdir_separator_F77=:
14168 hardcode_shlibpath_var_F77=no
14169 ;;
14170
14171 openbsd*)
14172 hardcode_direct_F77=yes
14173 hardcode_shlibpath_var_F77=no
14174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14175 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14176 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14177 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14178 export_dynamic_flag_spec_F77='${wl}-E'
14179 else
14180 case $host_os in
14181 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14182 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_libdir_flag_spec_F77='-R$libdir'
14184 ;;
14185 *)
14186 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188 ;;
14189 esac
14190 fi
14191 ;;
14192
14193 os2*)
14194 hardcode_libdir_flag_spec_F77='-L$libdir'
14195 hardcode_minus_L_F77=yes
14196 allow_undefined_flag_F77=unsupported
14197 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'
14198 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14199 ;;
14200
14201 osf3*)
14202 if test "$GCC" = yes; then
14203 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14204 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'
14205 else
14206 allow_undefined_flag_F77=' -expect_unresolved \*'
14207 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'
14208 fi
14209 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14210 hardcode_libdir_separator_F77=:
14211 ;;
14212
14213 osf4* | osf5*) # as osf3* with the addition of -msym flag
14214 if test "$GCC" = yes; then
14215 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14216 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'
14217 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14218 else
14219 allow_undefined_flag_F77=' -expect_unresolved \*'
14220 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'
14221 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~
14222 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14223
14224 # Both c and cxx compiler support -rpath directly
14225 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14226 fi
14227 hardcode_libdir_separator_F77=:
14228 ;;
14229
14230 solaris*)
14231 no_undefined_flag_F77=' -z text'
14232 if test "$GCC" = yes; then
14233 wlarc='${wl}'
14234 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14235 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14236 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14237 else
14238 wlarc=''
14239 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14240 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14242 fi
14243 hardcode_libdir_flag_spec_F77='-R$libdir'
14244 hardcode_shlibpath_var_F77=no
14245 case $host_os in
14246 solaris2.[0-5] | solaris2.[0-5].*) ;;
14247 *)
14248 # The compiler driver will combine linker options so we
14249 # cannot just pass the convience library names through
14250 # without $wl, iff we do not link with $LD.
14251 # Luckily, gcc supports the same syntax we need for Sun Studio.
14252 # Supported since Solaris 2.6 (maybe 2.5.1?)
14253 case $wlarc in
14254 '')
14255 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14256 *)
14257 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14258 esac ;;
14259 esac
14260 link_all_deplibs_F77=yes
14261 ;;
14262
14263 sunos4*)
14264 if test "x$host_vendor" = xsequent; then
14265 # Use $CC to link under sequent, because it throws in some extra .o
14266 # files that make .init and .fini sections work.
14267 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14268 else
14269 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14270 fi
14271 hardcode_libdir_flag_spec_F77='-L$libdir'
14272 hardcode_direct_F77=yes
14273 hardcode_minus_L_F77=yes
14274 hardcode_shlibpath_var_F77=no
14275 ;;
14276
14277 sysv4)
14278 case $host_vendor in
14279 sni)
14280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14281 hardcode_direct_F77=yes # is this really true???
14282 ;;
14283 siemens)
14284 ## LD is ld it makes a PLAMLIB
14285 ## CC just makes a GrossModule.
14286 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14287 reload_cmds_F77='$CC -r -o $output$reload_objs'
14288 hardcode_direct_F77=no
14289 ;;
14290 motorola)
14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14293 ;;
14294 esac
14295 runpath_var='LD_RUN_PATH'
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 sysv4.3*)
14300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_shlibpath_var_F77=no
14302 export_dynamic_flag_spec_F77='-Bexport'
14303 ;;
14304
14305 sysv4*MP*)
14306 if test -d /usr/nec; then
14307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_shlibpath_var_F77=no
14309 runpath_var=LD_RUN_PATH
14310 hardcode_runpath_var=yes
14311 ld_shlibs_F77=yes
14312 fi
14313 ;;
14314
14315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14316 no_undefined_flag_F77='${wl}-z,text'
14317 archive_cmds_need_lc_F77=no
14318 hardcode_shlibpath_var_F77=no
14319 runpath_var='LD_RUN_PATH'
14320
14321 if test "$GCC" = yes; then
14322 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324 else
14325 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 fi
14328 ;;
14329
14330 sysv5* | sco3.2v5* | sco5v6*)
14331 # Note: We can NOT use -z defs as we might desire, because we do not
14332 # link with -lc, and that would cause any symbols used from libc to
14333 # always be unresolved, which means just about no library would
14334 # ever link correctly. If we're not using GNU ld we use -z text
14335 # though, which does catch some bad symbols but isn't as heavy-handed
14336 # as -z defs.
14337 no_undefined_flag_F77='${wl}-z,text'
14338 allow_undefined_flag_F77='${wl}-z,nodefs'
14339 archive_cmds_need_lc_F77=no
14340 hardcode_shlibpath_var_F77=no
14341 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14342 hardcode_libdir_separator_F77=':'
14343 link_all_deplibs_F77=yes
14344 export_dynamic_flag_spec_F77='${wl}-Bexport'
14345 runpath_var='LD_RUN_PATH'
14346
14347 if test "$GCC" = yes; then
14348 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14349 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 else
14351 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 fi
14354 ;;
14355
14356 uts4*)
14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_libdir_flag_spec_F77='-L$libdir'
14359 hardcode_shlibpath_var_F77=no
14360 ;;
14361
14362 *)
14363 ld_shlibs_F77=no
14364 ;;
14365 esac
14366 fi
14367
14368 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14369 echo "${ECHO_T}$ld_shlibs_F77" >&6
14370 test "$ld_shlibs_F77" = no && can_build_shared=no
14371
14372 #
14373 # Do we need to explicitly link libc?
14374 #
14375 case "x$archive_cmds_need_lc_F77" in
14376 x|xyes)
14377 # Assume -lc should be added
14378 archive_cmds_need_lc_F77=yes
14379
14380 if test "$enable_shared" = yes && test "$GCC" = yes; then
14381 case $archive_cmds_F77 in
14382 *'~'*)
14383 # FIXME: we may have to deal with multi-command sequences.
14384 ;;
14385 '$CC '*)
14386 # Test whether the compiler implicitly links with -lc since on some
14387 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14388 # to ld, don't add -lc before -lgcc.
14389 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14390 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14391 $rm conftest*
14392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14393
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } 2>conftest.err; then
14399 soname=conftest
14400 lib=conftest
14401 libobjs=conftest.$ac_objext
14402 deplibs=
14403 wl=$lt_prog_compiler_wl_F77
14404 pic_flag=$lt_prog_compiler_pic_F77
14405 compiler_flags=-v
14406 linker_flags=-v
14407 verstring=
14408 output_objdir=.
14409 libname=conftest
14410 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14411 allow_undefined_flag_F77=
14412 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14413 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }
14417 then
14418 archive_cmds_need_lc_F77=no
14419 else
14420 archive_cmds_need_lc_F77=yes
14421 fi
14422 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14423 else
14424 cat conftest.err 1>&5
14425 fi
14426 $rm conftest*
14427 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14428 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14429 ;;
14430 esac
14431 fi
14432 ;;
14433 esac
14434
14435 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14436 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14437 library_names_spec=
14438 libname_spec='lib$name'
14439 soname_spec=
14440 shrext_cmds=".so"
14441 postinstall_cmds=
14442 postuninstall_cmds=
14443 finish_cmds=
14444 finish_eval=
14445 shlibpath_var=
14446 shlibpath_overrides_runpath=unknown
14447 version_type=none
14448 dynamic_linker="$host_os ld.so"
14449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14450 if test "$GCC" = yes; then
14451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14452 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14453 # if the path contains ";" then we assume it to be the separator
14454 # otherwise default to the standard path separator (i.e. ":") - it is
14455 # assumed that no part of a normal pathname contains ";" but that should
14456 # okay in the real world where ";" in dirpaths is itself problematic.
14457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14458 else
14459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14460 fi
14461 else
14462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14463 fi
14464 need_lib_prefix=unknown
14465 hardcode_into_libs=no
14466
14467 # when you set need_version to no, make sure it does not cause -set_version
14468 # flags to be left without arguments
14469 need_version=unknown
14470
14471 case $host_os in
14472 aix3*)
14473 version_type=linux
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14475 shlibpath_var=LIBPATH
14476
14477 # AIX 3 has no versioning support, so we append a major version to the name.
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 ;;
14480
14481 aix4* | aix5*)
14482 version_type=linux
14483 need_lib_prefix=no
14484 need_version=no
14485 hardcode_into_libs=yes
14486 if test "$host_cpu" = ia64; then
14487 # AIX 5 supports IA64
14488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 else
14491 # With GCC up to 2.95.x, collect2 would create an import file
14492 # for dependence libraries. The import file would start with
14493 # the line `#! .'. This would cause the generated library to
14494 # depend on `.', always an invalid library. This was fixed in
14495 # development snapshots of GCC prior to 3.0.
14496 case $host_os in
14497 aix4 | aix4.[01] | aix4.[01].*)
14498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14499 echo ' yes '
14500 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14501 :
14502 else
14503 can_build_shared=no
14504 fi
14505 ;;
14506 esac
14507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14508 # soname into executable. Probably we can add versioning support to
14509 # collect2, so additional links can be useful in future.
14510 if test "$aix_use_runtimelinking" = yes; then
14511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14512 # instead of lib<name>.a to let people know that these are not
14513 # typical AIX shared libraries.
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 else
14516 # We preserve .a as extension for shared libraries through AIX4.2
14517 # and later when we are not doing run time linking.
14518 library_names_spec='${libname}${release}.a $libname.a'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 fi
14521 shlibpath_var=LIBPATH
14522 fi
14523 ;;
14524
14525 amigaos*)
14526 library_names_spec='$libname.ixlibrary $libname.a'
14527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14528 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'
14529 ;;
14530
14531 beos*)
14532 library_names_spec='${libname}${shared_ext}'
14533 dynamic_linker="$host_os ld.so"
14534 shlibpath_var=LIBRARY_PATH
14535 ;;
14536
14537 bsdi[45]*)
14538 version_type=linux
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14546 # the default ld.so.conf also contains /usr/contrib/lib and
14547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14548 # libtool to hard-code these into programs
14549 ;;
14550
14551 cygwin* | mingw* | pw32*)
14552 version_type=windows
14553 shrext_cmds=".dll"
14554 need_version=no
14555 need_lib_prefix=no
14556
14557 case $GCC,$host_os in
14558 yes,cygwin* | yes,mingw* | yes,pw32*)
14559 library_names_spec='$libname.dll.a'
14560 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14561 postinstall_cmds='base_file=`basename \${file}`~
14562 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14563 dldir=$destdir/`dirname \$dlpath`~
14564 test -d \$dldir || mkdir -p \$dldir~
14565 $install_prog $dir/$dlname \$dldir/$dlname~
14566 chmod a+x \$dldir/$dlname'
14567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14568 dlpath=$dir/\$dldll~
14569 $rm \$dlpath'
14570 shlibpath_overrides_runpath=yes
14571
14572 case $host_os in
14573 cygwin*)
14574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14576 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14577 ;;
14578 mingw*)
14579 # MinGW DLLs use traditional 'lib' prefix
14580 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14582 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14583 # It is most probably a Windows format PATH printed by
14584 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14585 # path with ; separators, and with drive letters. We can handle the
14586 # drive letters (cygwin fileutils understands them), so leave them,
14587 # especially as we might pass files found there to a mingw objdump,
14588 # which wouldn't understand a cygwinified path. Ahh.
14589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14590 else
14591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14592 fi
14593 ;;
14594 pw32*)
14595 # pw32 DLLs use 'pw' prefix rather than 'lib'
14596 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597 ;;
14598 esac
14599 ;;
14600
14601 *)
14602 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14603 ;;
14604 esac
14605 dynamic_linker='Win32 ld.exe'
14606 # FIXME: first we should search . and the directory the executable is in
14607 shlibpath_var=PATH
14608 ;;
14609
14610 darwin* | rhapsody*)
14611 dynamic_linker="$host_os dyld"
14612 version_type=darwin
14613 need_lib_prefix=no
14614 need_version=no
14615 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14616 soname_spec='${libname}${release}${major}$shared_ext'
14617 shlibpath_overrides_runpath=yes
14618 shlibpath_var=DYLD_LIBRARY_PATH
14619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14620 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14621 if test "$GCC" = yes; then
14622 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"`
14623 else
14624 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14625 fi
14626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14627 ;;
14628
14629 dgux*)
14630 version_type=linux
14631 need_lib_prefix=no
14632 need_version=no
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 ;;
14637
14638 freebsd1*)
14639 dynamic_linker=no
14640 ;;
14641
14642 kfreebsd*-gnu)
14643 version_type=linux
14644 need_lib_prefix=no
14645 need_version=no
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 shlibpath_overrides_runpath=no
14650 hardcode_into_libs=yes
14651 dynamic_linker='GNU ld.so'
14652 ;;
14653
14654 freebsd* | dragonfly*)
14655 # DragonFly does not have aout. When/if they implement a new
14656 # versioning mechanism, adjust this.
14657 if test -x /usr/bin/objformat; then
14658 objformat=`/usr/bin/objformat`
14659 else
14660 case $host_os in
14661 freebsd[123]*) objformat=aout ;;
14662 *) objformat=elf ;;
14663 esac
14664 fi
14665 version_type=freebsd-$objformat
14666 case $version_type in
14667 freebsd-elf*)
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14669 need_version=no
14670 need_lib_prefix=no
14671 ;;
14672 freebsd-*)
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14674 need_version=yes
14675 ;;
14676 esac
14677 shlibpath_var=LD_LIBRARY_PATH
14678 case $host_os in
14679 freebsd2*)
14680 shlibpath_overrides_runpath=yes
14681 ;;
14682 freebsd3.[01]* | freebsdelf3.[01]*)
14683 shlibpath_overrides_runpath=yes
14684 hardcode_into_libs=yes
14685 ;;
14686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14688 shlibpath_overrides_runpath=no
14689 hardcode_into_libs=yes
14690 ;;
14691 freebsd*) # from 4.6 on
14692 shlibpath_overrides_runpath=yes
14693 hardcode_into_libs=yes
14694 ;;
14695 esac
14696 ;;
14697
14698 gnu*)
14699 version_type=linux
14700 need_lib_prefix=no
14701 need_version=no
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 hardcode_into_libs=yes
14706 ;;
14707
14708 hpux9* | hpux10* | hpux11*)
14709 # Give a soname corresponding to the major version so that dld.sl refuses to
14710 # link against other versions.
14711 version_type=sunos
14712 need_lib_prefix=no
14713 need_version=no
14714 case $host_cpu in
14715 ia64*)
14716 shrext_cmds='.so'
14717 hardcode_into_libs=yes
14718 dynamic_linker="$host_os dld.so"
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 if test "X$HPUX_IA64_MODE" = X32; then
14724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14725 else
14726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14727 fi
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 ;;
14730 hppa*64*)
14731 shrext_cmds='.sl'
14732 hardcode_into_libs=yes
14733 dynamic_linker="$host_os dld.sl"
14734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14740 ;;
14741 *)
14742 shrext_cmds='.sl'
14743 dynamic_linker="$host_os dld.sl"
14744 shlibpath_var=SHLIB_PATH
14745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 ;;
14749 esac
14750 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14751 postinstall_cmds='chmod 555 $lib'
14752 ;;
14753
14754 interix3*)
14755 version_type=linux
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 shlibpath_overrides_runpath=no
14763 hardcode_into_libs=yes
14764 ;;
14765
14766 irix5* | irix6* | nonstopux*)
14767 case $host_os in
14768 nonstopux*) version_type=nonstopux ;;
14769 *)
14770 if test "$lt_cv_prog_gnu_ld" = yes; then
14771 version_type=linux
14772 else
14773 version_type=irix
14774 fi ;;
14775 esac
14776 need_lib_prefix=no
14777 need_version=no
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14780 case $host_os in
14781 irix5* | nonstopux*)
14782 libsuff= shlibsuff=
14783 ;;
14784 *)
14785 case $LD in # libtool.m4 will add one of these switches to LD
14786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14787 libsuff= shlibsuff= libmagic=32-bit;;
14788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14789 libsuff=32 shlibsuff=N32 libmagic=N32;;
14790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14792 *) libsuff= shlibsuff= libmagic=never-match;;
14793 esac
14794 ;;
14795 esac
14796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14797 shlibpath_overrides_runpath=no
14798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14800 hardcode_into_libs=yes
14801 ;;
14802
14803 # No shared lib support for Linux oldld, aout, or coff.
14804 linux*oldld* | linux*aout* | linux*coff*)
14805 dynamic_linker=no
14806 ;;
14807
14808 # This must be Linux ELF.
14809 linux*)
14810 version_type=linux
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 # This implies no fast_install, which is unacceptable.
14819 # Some rework will be needed to allow for fast_install
14820 # before this can be enabled.
14821 hardcode_into_libs=yes
14822
14823 # Append ld.so.conf contents to the search path
14824 if test -f /etc/ld.so.conf; then
14825 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14827 fi
14828
14829 # We used to test for /lib/ld.so.1 and disable shared libraries on
14830 # powerpc, because MkLinux only supported shared libraries with the
14831 # GNU dynamic linker. Since this was broken with cross compilers,
14832 # most powerpc-linux boxes support dynamic linking these days and
14833 # people can always --disable-shared, the test was removed, and we
14834 # assume the GNU/Linux dynamic linker is in use.
14835 dynamic_linker='GNU/Linux ld.so'
14836 ;;
14837
14838 knetbsd*-gnu)
14839 version_type=linux
14840 need_lib_prefix=no
14841 need_version=no
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=no
14846 hardcode_into_libs=yes
14847 dynamic_linker='GNU ld.so'
14848 ;;
14849
14850 netbsd*)
14851 version_type=sunos
14852 need_lib_prefix=no
14853 need_version=no
14854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14857 dynamic_linker='NetBSD (a.out) ld.so'
14858 else
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14860 soname_spec='${libname}${release}${shared_ext}$major'
14861 dynamic_linker='NetBSD ld.elf_so'
14862 fi
14863 shlibpath_var=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath=yes
14865 hardcode_into_libs=yes
14866 ;;
14867
14868 newsos6)
14869 version_type=linux
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 shlibpath_overrides_runpath=yes
14873 ;;
14874
14875 nto-qnx*)
14876 version_type=linux
14877 need_lib_prefix=no
14878 need_version=no
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=yes
14883 ;;
14884
14885 openbsd*)
14886 version_type=sunos
14887 sys_lib_dlsearch_path_spec="/usr/lib"
14888 need_lib_prefix=no
14889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14890 case $host_os in
14891 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14892 *) need_version=no ;;
14893 esac
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14898 case $host_os in
14899 openbsd2.[89] | openbsd2.[89].*)
14900 shlibpath_overrides_runpath=no
14901 ;;
14902 *)
14903 shlibpath_overrides_runpath=yes
14904 ;;
14905 esac
14906 else
14907 shlibpath_overrides_runpath=yes
14908 fi
14909 ;;
14910
14911 os2*)
14912 libname_spec='$name'
14913 shrext_cmds=".dll"
14914 need_lib_prefix=no
14915 library_names_spec='$libname${shared_ext} $libname.a'
14916 dynamic_linker='OS/2 ld.exe'
14917 shlibpath_var=LIBPATH
14918 ;;
14919
14920 osf3* | osf4* | osf5*)
14921 version_type=osf
14922 need_lib_prefix=no
14923 need_version=no
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14929 ;;
14930
14931 solaris*)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14940 # ldd complains unless libraries are executable
14941 postinstall_cmds='chmod +x $lib'
14942 ;;
14943
14944 sunos4*)
14945 version_type=sunos
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14950 if test "$with_gnu_ld" = yes; then
14951 need_lib_prefix=no
14952 fi
14953 need_version=yes
14954 ;;
14955
14956 sysv4 | sysv4.3*)
14957 version_type=linux
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 case $host_vendor in
14962 sni)
14963 shlibpath_overrides_runpath=no
14964 need_lib_prefix=no
14965 export_dynamic_flag_spec='${wl}-Blargedynsym'
14966 runpath_var=LD_RUN_PATH
14967 ;;
14968 siemens)
14969 need_lib_prefix=no
14970 ;;
14971 motorola)
14972 need_lib_prefix=no
14973 need_version=no
14974 shlibpath_overrides_runpath=no
14975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14976 ;;
14977 esac
14978 ;;
14979
14980 sysv4*MP*)
14981 if test -d /usr/nec ;then
14982 version_type=linux
14983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14984 soname_spec='$libname${shared_ext}.$major'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 fi
14987 ;;
14988
14989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14990 version_type=freebsd-elf
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 hardcode_into_libs=yes
14997 if test "$with_gnu_ld" = yes; then
14998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14999 shlibpath_overrides_runpath=no
15000 else
15001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15002 shlibpath_overrides_runpath=yes
15003 case $host_os in
15004 sco3.2v5*)
15005 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15006 ;;
15007 esac
15008 fi
15009 sys_lib_dlsearch_path_spec='/usr/lib'
15010 ;;
15011
15012 uts4*)
15013 version_type=linux
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 ;;
15018
15019 *)
15020 dynamic_linker=no
15021 ;;
15022 esac
15023 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15024 echo "${ECHO_T}$dynamic_linker" >&6
15025 test "$dynamic_linker" = no && can_build_shared=no
15026
15027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15028 if test "$GCC" = yes; then
15029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15030 fi
15031
15032 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15034 hardcode_action_F77=
15035 if test -n "$hardcode_libdir_flag_spec_F77" || \
15036 test -n "$runpath_var_F77" || \
15037 test "X$hardcode_automatic_F77" = "Xyes" ; then
15038
15039 # We can hardcode non-existant directories.
15040 if test "$hardcode_direct_F77" != no &&
15041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15042 # have to relink, otherwise we might link with an installed library
15043 # when we should be linking with a yet-to-be-installed one
15044 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15045 test "$hardcode_minus_L_F77" != no; then
15046 # Linking always hardcodes the temporary library directory.
15047 hardcode_action_F77=relink
15048 else
15049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15050 hardcode_action_F77=immediate
15051 fi
15052 else
15053 # We cannot hardcode anything, or else we can only hardcode existing
15054 # directories.
15055 hardcode_action_F77=unsupported
15056 fi
15057 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15058 echo "${ECHO_T}$hardcode_action_F77" >&6
15059
15060 if test "$hardcode_action_F77" = relink; then
15061 # Fast installation is not supported
15062 enable_fast_install=no
15063 elif test "$shlibpath_overrides_runpath" = yes ||
15064 test "$enable_shared" = no; then
15065 # Fast installation is not necessary
15066 enable_fast_install=needless
15067 fi
15068
15069
15070 # The else clause should only fire when bootstrapping the
15071 # libtool distribution, otherwise you forgot to ship ltmain.sh
15072 # with your package, and you will get complaints that there are
15073 # no rules to generate ltmain.sh.
15074 if test -f "$ltmain"; then
15075 # See if we are running on zsh, and set the options which allow our commands through
15076 # without removal of \ escapes.
15077 if test -n "${ZSH_VERSION+set}" ; then
15078 setopt NO_GLOB_SUBST
15079 fi
15080 # Now quote all the things that may contain metacharacters while being
15081 # careful not to overquote the AC_SUBSTed values. We take copies of the
15082 # variables and quote the copies for generation of the libtool script.
15083 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15084 SED SHELL STRIP \
15085 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15086 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15087 deplibs_check_method reload_flag reload_cmds need_locks \
15088 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15089 lt_cv_sys_global_symbol_to_c_name_address \
15090 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15091 old_postinstall_cmds old_postuninstall_cmds \
15092 compiler_F77 \
15093 CC_F77 \
15094 LD_F77 \
15095 lt_prog_compiler_wl_F77 \
15096 lt_prog_compiler_pic_F77 \
15097 lt_prog_compiler_static_F77 \
15098 lt_prog_compiler_no_builtin_flag_F77 \
15099 export_dynamic_flag_spec_F77 \
15100 thread_safe_flag_spec_F77 \
15101 whole_archive_flag_spec_F77 \
15102 enable_shared_with_static_runtimes_F77 \
15103 old_archive_cmds_F77 \
15104 old_archive_from_new_cmds_F77 \
15105 predep_objects_F77 \
15106 postdep_objects_F77 \
15107 predeps_F77 \
15108 postdeps_F77 \
15109 compiler_lib_search_path_F77 \
15110 archive_cmds_F77 \
15111 archive_expsym_cmds_F77 \
15112 postinstall_cmds_F77 \
15113 postuninstall_cmds_F77 \
15114 old_archive_from_expsyms_cmds_F77 \
15115 allow_undefined_flag_F77 \
15116 no_undefined_flag_F77 \
15117 export_symbols_cmds_F77 \
15118 hardcode_libdir_flag_spec_F77 \
15119 hardcode_libdir_flag_spec_ld_F77 \
15120 hardcode_libdir_separator_F77 \
15121 hardcode_automatic_F77 \
15122 module_cmds_F77 \
15123 module_expsym_cmds_F77 \
15124 lt_cv_prog_compiler_c_o_F77 \
15125 exclude_expsyms_F77 \
15126 include_expsyms_F77; do
15127
15128 case $var in
15129 old_archive_cmds_F77 | \
15130 old_archive_from_new_cmds_F77 | \
15131 archive_cmds_F77 | \
15132 archive_expsym_cmds_F77 | \
15133 module_cmds_F77 | \
15134 module_expsym_cmds_F77 | \
15135 old_archive_from_expsyms_cmds_F77 | \
15136 export_symbols_cmds_F77 | \
15137 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15138 postinstall_cmds | postuninstall_cmds | \
15139 old_postinstall_cmds | old_postuninstall_cmds | \
15140 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15141 # Double-quote double-evaled strings.
15142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15143 ;;
15144 *)
15145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15146 ;;
15147 esac
15148 done
15149
15150 case $lt_echo in
15151 *'\$0 --fallback-echo"')
15152 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15153 ;;
15154 esac
15155
15156 cfgfile="$ofile"
15157
15158 cat <<__EOF__ >> "$cfgfile"
15159 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15160
15161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15162
15163 # Shell to use when invoking shell scripts.
15164 SHELL=$lt_SHELL
15165
15166 # Whether or not to build shared libraries.
15167 build_libtool_libs=$enable_shared
15168
15169 # Whether or not to build static libraries.
15170 build_old_libs=$enable_static
15171
15172 # Whether or not to add -lc for building shared libraries.
15173 build_libtool_need_lc=$archive_cmds_need_lc_F77
15174
15175 # Whether or not to disallow shared libs when runtime libs are static
15176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15177
15178 # Whether or not to optimize for fast installation.
15179 fast_install=$enable_fast_install
15180
15181 # The host system.
15182 host_alias=$host_alias
15183 host=$host
15184 host_os=$host_os
15185
15186 # The build system.
15187 build_alias=$build_alias
15188 build=$build
15189 build_os=$build_os
15190
15191 # An echo program that does not interpret backslashes.
15192 echo=$lt_echo
15193
15194 # The archiver.
15195 AR=$lt_AR
15196 AR_FLAGS=$lt_AR_FLAGS
15197
15198 # A C compiler.
15199 LTCC=$lt_LTCC
15200
15201 # LTCC compiler flags.
15202 LTCFLAGS=$lt_LTCFLAGS
15203
15204 # A language-specific compiler.
15205 CC=$lt_compiler_F77
15206
15207 # Is the compiler the GNU C compiler?
15208 with_gcc=$GCC_F77
15209
15210 # An ERE matcher.
15211 EGREP=$lt_EGREP
15212
15213 # The linker used to build libraries.
15214 LD=$lt_LD_F77
15215
15216 # Whether we need hard or soft links.
15217 LN_S=$lt_LN_S
15218
15219 # A BSD-compatible nm program.
15220 NM=$lt_NM
15221
15222 # A symbol stripping program
15223 STRIP=$lt_STRIP
15224
15225 # Used to examine libraries when file_magic_cmd begins "file"
15226 MAGIC_CMD=$MAGIC_CMD
15227
15228 # Used on cygwin: DLL creation program.
15229 DLLTOOL="$DLLTOOL"
15230
15231 # Used on cygwin: object dumper.
15232 OBJDUMP="$OBJDUMP"
15233
15234 # Used on cygwin: assembler.
15235 AS="$AS"
15236
15237 # The name of the directory that contains temporary libtool files.
15238 objdir=$objdir
15239
15240 # How to create reloadable object files.
15241 reload_flag=$lt_reload_flag
15242 reload_cmds=$lt_reload_cmds
15243
15244 # How to pass a linker flag through the compiler.
15245 wl=$lt_lt_prog_compiler_wl_F77
15246
15247 # Object file suffix (normally "o").
15248 objext="$ac_objext"
15249
15250 # Old archive suffix (normally "a").
15251 libext="$libext"
15252
15253 # Shared library suffix (normally ".so").
15254 shrext_cmds='$shrext_cmds'
15255
15256 # Executable file suffix (normally "").
15257 exeext="$exeext"
15258
15259 # Additional compiler flags for building library objects.
15260 pic_flag=$lt_lt_prog_compiler_pic_F77
15261 pic_mode=$pic_mode
15262
15263 # What is the maximum length of a command?
15264 max_cmd_len=$lt_cv_sys_max_cmd_len
15265
15266 # Does compiler simultaneously support -c and -o options?
15267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15268
15269 # Must we lock files when doing compilation?
15270 need_locks=$lt_need_locks
15271
15272 # Do we need the lib prefix for modules?
15273 need_lib_prefix=$need_lib_prefix
15274
15275 # Do we need a version for libraries?
15276 need_version=$need_version
15277
15278 # Whether dlopen is supported.
15279 dlopen_support=$enable_dlopen
15280
15281 # Whether dlopen of programs is supported.
15282 dlopen_self=$enable_dlopen_self
15283
15284 # Whether dlopen of statically linked programs is supported.
15285 dlopen_self_static=$enable_dlopen_self_static
15286
15287 # Compiler flag to prevent dynamic linking.
15288 link_static_flag=$lt_lt_prog_compiler_static_F77
15289
15290 # Compiler flag to turn off builtin functions.
15291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15292
15293 # Compiler flag to allow reflexive dlopens.
15294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15295
15296 # Compiler flag to generate shared objects directly from archives.
15297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15298
15299 # Compiler flag to generate thread-safe objects.
15300 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15301
15302 # Library versioning type.
15303 version_type=$version_type
15304
15305 # Format of library name prefix.
15306 libname_spec=$lt_libname_spec
15307
15308 # List of archive names. First name is the real one, the rest are links.
15309 # The last name is the one that the linker finds with -lNAME.
15310 library_names_spec=$lt_library_names_spec
15311
15312 # The coded name of the library, if different from the real name.
15313 soname_spec=$lt_soname_spec
15314
15315 # Commands used to build and install an old-style archive.
15316 RANLIB=$lt_RANLIB
15317 old_archive_cmds=$lt_old_archive_cmds_F77
15318 old_postinstall_cmds=$lt_old_postinstall_cmds
15319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15320
15321 # Create an old-style archive from a shared archive.
15322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15323
15324 # Create a temporary old-style archive to link instead of a shared archive.
15325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15326
15327 # Commands used to build and install a shared archive.
15328 archive_cmds=$lt_archive_cmds_F77
15329 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15330 postinstall_cmds=$lt_postinstall_cmds
15331 postuninstall_cmds=$lt_postuninstall_cmds
15332
15333 # Commands used to build a loadable module (assumed same as above if empty)
15334 module_cmds=$lt_module_cmds_F77
15335 module_expsym_cmds=$lt_module_expsym_cmds_F77
15336
15337 # Commands to strip libraries.
15338 old_striplib=$lt_old_striplib
15339 striplib=$lt_striplib
15340
15341 # Dependencies to place before the objects being linked to create a
15342 # shared library.
15343 predep_objects=$lt_predep_objects_F77
15344
15345 # Dependencies to place after the objects being linked to create a
15346 # shared library.
15347 postdep_objects=$lt_postdep_objects_F77
15348
15349 # Dependencies to place before the objects being linked to create a
15350 # shared library.
15351 predeps=$lt_predeps_F77
15352
15353 # Dependencies to place after the objects being linked to create a
15354 # shared library.
15355 postdeps=$lt_postdeps_F77
15356
15357 # The library search path used internally by the compiler when linking
15358 # a shared library.
15359 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15360
15361 # Method to check whether dependent libraries are shared objects.
15362 deplibs_check_method=$lt_deplibs_check_method
15363
15364 # Command to use when deplibs_check_method == file_magic.
15365 file_magic_cmd=$lt_file_magic_cmd
15366
15367 # Flag that allows shared libraries with undefined symbols to be built.
15368 allow_undefined_flag=$lt_allow_undefined_flag_F77
15369
15370 # Flag that forces no undefined symbols.
15371 no_undefined_flag=$lt_no_undefined_flag_F77
15372
15373 # Commands used to finish a libtool library installation in a directory.
15374 finish_cmds=$lt_finish_cmds
15375
15376 # Same as above, but a single script fragment to be evaled but not shown.
15377 finish_eval=$lt_finish_eval
15378
15379 # Take the output of nm and produce a listing of raw symbols and C names.
15380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15381
15382 # Transform the output of nm in a proper C declaration
15383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15384
15385 # Transform the output of nm in a C name address pair
15386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15387
15388 # This is the shared library runtime path variable.
15389 runpath_var=$runpath_var
15390
15391 # This is the shared library path variable.
15392 shlibpath_var=$shlibpath_var
15393
15394 # Is shlibpath searched before the hard-coded library search path?
15395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15396
15397 # How to hardcode a shared library path into an executable.
15398 hardcode_action=$hardcode_action_F77
15399
15400 # Whether we should hardcode library paths into libraries.
15401 hardcode_into_libs=$hardcode_into_libs
15402
15403 # Flag to hardcode \$libdir into a binary during linking.
15404 # This must work even if \$libdir does not exist.
15405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15406
15407 # If ld is used when linking, flag to hardcode \$libdir into
15408 # a binary during linking. This must work even if \$libdir does
15409 # not exist.
15410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15411
15412 # Whether we need a single -rpath flag with a separated argument.
15413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15414
15415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15416 # resulting binary.
15417 hardcode_direct=$hardcode_direct_F77
15418
15419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15420 # resulting binary.
15421 hardcode_minus_L=$hardcode_minus_L_F77
15422
15423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15424 # the resulting binary.
15425 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15426
15427 # Set to yes if building a shared library automatically hardcodes DIR into the library
15428 # and all subsequent libraries and executables linked against it.
15429 hardcode_automatic=$hardcode_automatic_F77
15430
15431 # Variables whose values should be saved in libtool wrapper scripts and
15432 # restored at relink time.
15433 variables_saved_for_relink="$variables_saved_for_relink"
15434
15435 # Whether libtool must link a program against all its dependency libraries.
15436 link_all_deplibs=$link_all_deplibs_F77
15437
15438 # Compile-time system search path for libraries
15439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15440
15441 # Run-time system search path for libraries
15442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15443
15444 # Fix the shell variable \$srcfile for the compiler.
15445 fix_srcfile_path="$fix_srcfile_path_F77"
15446
15447 # Set to yes if exported symbols are required.
15448 always_export_symbols=$always_export_symbols_F77
15449
15450 # The commands to list exported symbols.
15451 export_symbols_cmds=$lt_export_symbols_cmds_F77
15452
15453 # The commands to extract the exported symbol list from a shared archive.
15454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15455
15456 # Symbols that should not be listed in the preloaded symbols.
15457 exclude_expsyms=$lt_exclude_expsyms_F77
15458
15459 # Symbols that must always be exported.
15460 include_expsyms=$lt_include_expsyms_F77
15461
15462 # ### END LIBTOOL TAG CONFIG: $tagname
15463
15464 __EOF__
15465
15466
15467 else
15468 # If there is no Makefile yet, we rely on a make rule to execute
15469 # `config.status --recheck' to rerun these tests and create the
15470 # libtool script then.
15471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15472 if test -f "$ltmain_in"; then
15473 test -f Makefile && make "$ltmain"
15474 fi
15475 fi
15476
15477
15478 ac_ext=c
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15483
15484 CC="$lt_save_CC"
15485
15486 else
15487 tagname=""
15488 fi
15489 ;;
15490
15491 GCJ)
15492 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15493
15494
15495
15496 # Source file extension for Java test sources.
15497 ac_ext=java
15498
15499 # Object file extension for compiled Java test sources.
15500 objext=o
15501 objext_GCJ=$objext
15502
15503 # Code to be used in simple compile tests
15504 lt_simple_compile_test_code="class foo {}\n"
15505
15506 # Code to be used in simple link tests
15507 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15508
15509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15510
15511 # If no C compiler was specified, use CC.
15512 LTCC=${LTCC-"$CC"}
15513
15514 # If no C compiler flags were specified, use CFLAGS.
15515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15516
15517 # Allow CC to be a program name with arguments.
15518 compiler=$CC
15519
15520
15521 # save warnings/boilerplate of simple test code
15522 ac_outfile=conftest.$ac_objext
15523 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15525 _lt_compiler_boilerplate=`cat conftest.err`
15526 $rm conftest*
15527
15528 ac_outfile=conftest.$ac_objext
15529 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15531 _lt_linker_boilerplate=`cat conftest.err`
15532 $rm conftest*
15533
15534
15535 # Allow CC to be a program name with arguments.
15536 lt_save_CC="$CC"
15537 CC=${GCJ-"gcj"}
15538 compiler=$CC
15539 compiler_GCJ=$CC
15540 for cc_temp in $compiler""; do
15541 case $cc_temp in
15542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15544 \-*) ;;
15545 *) break;;
15546 esac
15547 done
15548 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15549
15550
15551 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15552 archive_cmds_need_lc_GCJ=no
15553
15554 old_archive_cmds_GCJ=$old_archive_cmds
15555
15556
15557 lt_prog_compiler_no_builtin_flag_GCJ=
15558
15559 if test "$GCC" = yes; then
15560 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15561
15562
15563 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15564 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15565 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568 lt_cv_prog_compiler_rtti_exceptions=no
15569 ac_outfile=conftest.$ac_objext
15570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15571 lt_compiler_flag="-fno-rtti -fno-exceptions"
15572 # Insert the option either (1) after the last *FLAGS variable, or
15573 # (2) before a word containing "conftest.", or (3) at the end.
15574 # Note that $ac_compile itself does not contain backslashes and begins
15575 # with a dollar sign (not a hyphen), so the echo should work correctly.
15576 # The option is referenced via a variable to avoid confusing sed.
15577 lt_compile=`echo "$ac_compile" | $SED \
15578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15580 -e 's:$: $lt_compiler_flag:'`
15581 (eval echo "\"\$as_me:15581: $lt_compile\"" >&5)
15582 (eval "$lt_compile" 2>conftest.err)
15583 ac_status=$?
15584 cat conftest.err >&5
15585 echo "$as_me:15585: \$? = $ac_status" >&5
15586 if (exit $ac_status) && test -s "$ac_outfile"; then
15587 # The compiler can only warn and ignore the option if not recognized
15588 # So say no if there are warnings other than the usual output.
15589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15592 lt_cv_prog_compiler_rtti_exceptions=yes
15593 fi
15594 fi
15595 $rm conftest*
15596
15597 fi
15598 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15599 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15600
15601 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15602 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15603 else
15604 :
15605 fi
15606
15607 fi
15608
15609 lt_prog_compiler_wl_GCJ=
15610 lt_prog_compiler_pic_GCJ=
15611 lt_prog_compiler_static_GCJ=
15612
15613 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15614 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15615
15616 if test "$GCC" = yes; then
15617 lt_prog_compiler_wl_GCJ='-Wl,'
15618 lt_prog_compiler_static_GCJ='-static'
15619
15620 case $host_os in
15621 aix*)
15622 # All AIX code is PIC.
15623 if test "$host_cpu" = ia64; then
15624 # AIX 5 now supports IA64 processor
15625 lt_prog_compiler_static_GCJ='-Bstatic'
15626 fi
15627 ;;
15628
15629 amigaos*)
15630 # FIXME: we need at least 68020 code to build shared libraries, but
15631 # adding the `-m68020' flag to GCC prevents building anything better,
15632 # like `-m68040'.
15633 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15634 ;;
15635
15636 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15637 # PIC is the default for these OSes.
15638 ;;
15639
15640 mingw* | pw32* | os2*)
15641 # This hack is so that the source file can tell whether it is being
15642 # built for inclusion in a dll (and should export symbols for example).
15643 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15644 ;;
15645
15646 darwin* | rhapsody*)
15647 # PIC is the default on this platform
15648 # Common symbols not allowed in MH_DYLIB files
15649 lt_prog_compiler_pic_GCJ='-fno-common'
15650 ;;
15651
15652 interix3*)
15653 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15654 # Instead, we relocate shared libraries at runtime.
15655 ;;
15656
15657 msdosdjgpp*)
15658 # Just because we use GCC doesn't mean we suddenly get shared libraries
15659 # on systems that don't support them.
15660 lt_prog_compiler_can_build_shared_GCJ=no
15661 enable_shared=no
15662 ;;
15663
15664 sysv4*MP*)
15665 if test -d /usr/nec; then
15666 lt_prog_compiler_pic_GCJ=-Kconform_pic
15667 fi
15668 ;;
15669
15670 hpux*)
15671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15672 # not for PA HP-UX.
15673 case $host_cpu in
15674 hppa*64*|ia64*)
15675 # +Z the default
15676 ;;
15677 *)
15678 lt_prog_compiler_pic_GCJ='-fPIC'
15679 ;;
15680 esac
15681 ;;
15682
15683 *)
15684 lt_prog_compiler_pic_GCJ='-fPIC'
15685 ;;
15686 esac
15687 else
15688 # PORTME Check for flag to pass linker flags through the system compiler.
15689 case $host_os in
15690 aix*)
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 if test "$host_cpu" = ia64; then
15693 # AIX 5 now supports IA64 processor
15694 lt_prog_compiler_static_GCJ='-Bstatic'
15695 else
15696 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15697 fi
15698 ;;
15699 darwin*)
15700 # PIC is the default on this platform
15701 # Common symbols not allowed in MH_DYLIB files
15702 case $cc_basename in
15703 xlc*)
15704 lt_prog_compiler_pic_GCJ='-qnocommon'
15705 lt_prog_compiler_wl_GCJ='-Wl,'
15706 ;;
15707 esac
15708 ;;
15709
15710 mingw* | pw32* | os2*)
15711 # This hack is so that the source file can tell whether it is being
15712 # built for inclusion in a dll (and should export symbols for example).
15713 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15714 ;;
15715
15716 hpux9* | hpux10* | hpux11*)
15717 lt_prog_compiler_wl_GCJ='-Wl,'
15718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15719 # not for PA HP-UX.
15720 case $host_cpu in
15721 hppa*64*|ia64*)
15722 # +Z the default
15723 ;;
15724 *)
15725 lt_prog_compiler_pic_GCJ='+Z'
15726 ;;
15727 esac
15728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15729 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15730 ;;
15731
15732 irix5* | irix6* | nonstopux*)
15733 lt_prog_compiler_wl_GCJ='-Wl,'
15734 # PIC (with -KPIC) is the default.
15735 lt_prog_compiler_static_GCJ='-non_shared'
15736 ;;
15737
15738 newsos6)
15739 lt_prog_compiler_pic_GCJ='-KPIC'
15740 lt_prog_compiler_static_GCJ='-Bstatic'
15741 ;;
15742
15743 linux*)
15744 case $cc_basename in
15745 icc* | ecc*)
15746 lt_prog_compiler_wl_GCJ='-Wl,'
15747 lt_prog_compiler_pic_GCJ='-KPIC'
15748 lt_prog_compiler_static_GCJ='-static'
15749 ;;
15750 pgcc* | pgf77* | pgf90* | pgf95*)
15751 # Portland Group compilers (*not* the Pentium gcc compiler,
15752 # which looks to be a dead project)
15753 lt_prog_compiler_wl_GCJ='-Wl,'
15754 lt_prog_compiler_pic_GCJ='-fpic'
15755 lt_prog_compiler_static_GCJ='-Bstatic'
15756 ;;
15757 ccc*)
15758 lt_prog_compiler_wl_GCJ='-Wl,'
15759 # All Alpha code is PIC.
15760 lt_prog_compiler_static_GCJ='-non_shared'
15761 ;;
15762 esac
15763 ;;
15764
15765 osf3* | osf4* | osf5*)
15766 lt_prog_compiler_wl_GCJ='-Wl,'
15767 # All OSF/1 code is PIC.
15768 lt_prog_compiler_static_GCJ='-non_shared'
15769 ;;
15770
15771 solaris*)
15772 lt_prog_compiler_pic_GCJ='-KPIC'
15773 lt_prog_compiler_static_GCJ='-Bstatic'
15774 case $cc_basename in
15775 f77* | f90* | f95*)
15776 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15777 *)
15778 lt_prog_compiler_wl_GCJ='-Wl,';;
15779 esac
15780 ;;
15781
15782 sunos4*)
15783 lt_prog_compiler_wl_GCJ='-Qoption ld '
15784 lt_prog_compiler_pic_GCJ='-PIC'
15785 lt_prog_compiler_static_GCJ='-Bstatic'
15786 ;;
15787
15788 sysv4 | sysv4.2uw2* | sysv4.3*)
15789 lt_prog_compiler_wl_GCJ='-Wl,'
15790 lt_prog_compiler_pic_GCJ='-KPIC'
15791 lt_prog_compiler_static_GCJ='-Bstatic'
15792 ;;
15793
15794 sysv4*MP*)
15795 if test -d /usr/nec ;then
15796 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15797 lt_prog_compiler_static_GCJ='-Bstatic'
15798 fi
15799 ;;
15800
15801 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15802 lt_prog_compiler_wl_GCJ='-Wl,'
15803 lt_prog_compiler_pic_GCJ='-KPIC'
15804 lt_prog_compiler_static_GCJ='-Bstatic'
15805 ;;
15806
15807 unicos*)
15808 lt_prog_compiler_wl_GCJ='-Wl,'
15809 lt_prog_compiler_can_build_shared_GCJ=no
15810 ;;
15811
15812 uts4*)
15813 lt_prog_compiler_pic_GCJ='-pic'
15814 lt_prog_compiler_static_GCJ='-Bstatic'
15815 ;;
15816
15817 *)
15818 lt_prog_compiler_can_build_shared_GCJ=no
15819 ;;
15820 esac
15821 fi
15822
15823 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15824 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15825
15826 #
15827 # Check to make sure the PIC flag actually works.
15828 #
15829 if test -n "$lt_prog_compiler_pic_GCJ"; then
15830
15831 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15832 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15833 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836 lt_prog_compiler_pic_works_GCJ=no
15837 ac_outfile=conftest.$ac_objext
15838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15839 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15840 # Insert the option either (1) after the last *FLAGS variable, or
15841 # (2) before a word containing "conftest.", or (3) at the end.
15842 # Note that $ac_compile itself does not contain backslashes and begins
15843 # with a dollar sign (not a hyphen), so the echo should work correctly.
15844 # The option is referenced via a variable to avoid confusing sed.
15845 lt_compile=`echo "$ac_compile" | $SED \
15846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15848 -e 's:$: $lt_compiler_flag:'`
15849 (eval echo "\"\$as_me:15849: $lt_compile\"" >&5)
15850 (eval "$lt_compile" 2>conftest.err)
15851 ac_status=$?
15852 cat conftest.err >&5
15853 echo "$as_me:15853: \$? = $ac_status" >&5
15854 if (exit $ac_status) && test -s "$ac_outfile"; then
15855 # The compiler can only warn and ignore the option if not recognized
15856 # So say no if there are warnings other than the usual output.
15857 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15860 lt_prog_compiler_pic_works_GCJ=yes
15861 fi
15862 fi
15863 $rm conftest*
15864
15865 fi
15866 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15867 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15868
15869 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15870 case $lt_prog_compiler_pic_GCJ in
15871 "" | " "*) ;;
15872 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15873 esac
15874 else
15875 lt_prog_compiler_pic_GCJ=
15876 lt_prog_compiler_can_build_shared_GCJ=no
15877 fi
15878
15879 fi
15880 case $host_os in
15881 # For platforms which do not support PIC, -DPIC is meaningless:
15882 *djgpp*)
15883 lt_prog_compiler_pic_GCJ=
15884 ;;
15885 *)
15886 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15887 ;;
15888 esac
15889
15890 #
15891 # Check to make sure the static flag actually works.
15892 #
15893 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15894 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15895 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15896 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 else
15899 lt_prog_compiler_static_works_GCJ=no
15900 save_LDFLAGS="$LDFLAGS"
15901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15902 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15904 # The linker can only warn and ignore the option if not recognized
15905 # So say no if there are warnings
15906 if test -s conftest.err; then
15907 # Append any errors to the config.log.
15908 cat conftest.err 1>&5
15909 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15911 if diff conftest.exp conftest.er2 >/dev/null; then
15912 lt_prog_compiler_static_works_GCJ=yes
15913 fi
15914 else
15915 lt_prog_compiler_static_works_GCJ=yes
15916 fi
15917 fi
15918 $rm conftest*
15919 LDFLAGS="$save_LDFLAGS"
15920
15921 fi
15922 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15923 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15924
15925 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15926 :
15927 else
15928 lt_prog_compiler_static_GCJ=
15929 fi
15930
15931
15932 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15934 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937 lt_cv_prog_compiler_c_o_GCJ=no
15938 $rm -r conftest 2>/dev/null
15939 mkdir conftest
15940 cd conftest
15941 mkdir out
15942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15943
15944 lt_compiler_flag="-o out/conftest2.$ac_objext"
15945 # Insert the option either (1) after the last *FLAGS variable, or
15946 # (2) before a word containing "conftest.", or (3) at the end.
15947 # Note that $ac_compile itself does not contain backslashes and begins
15948 # with a dollar sign (not a hyphen), so the echo should work correctly.
15949 lt_compile=`echo "$ac_compile" | $SED \
15950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15952 -e 's:$: $lt_compiler_flag:'`
15953 (eval echo "\"\$as_me:15953: $lt_compile\"" >&5)
15954 (eval "$lt_compile" 2>out/conftest.err)
15955 ac_status=$?
15956 cat out/conftest.err >&5
15957 echo "$as_me:15957: \$? = $ac_status" >&5
15958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15959 then
15960 # The compiler can only warn and ignore the option if not recognized
15961 # So say no if there are warnings
15962 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15965 lt_cv_prog_compiler_c_o_GCJ=yes
15966 fi
15967 fi
15968 chmod u+w . 2>&5
15969 $rm conftest*
15970 # SGI C++ compiler will create directory out/ii_files/ for
15971 # template instantiation
15972 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15973 $rm out/* && rmdir out
15974 cd ..
15975 rmdir conftest
15976 $rm conftest*
15977
15978 fi
15979 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15981
15982
15983 hard_links="nottested"
15984 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15985 # do not overwrite the value of need_locks provided by the user
15986 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15988 hard_links=yes
15989 $rm conftest*
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15991 touch conftest.a
15992 ln conftest.a conftest.b 2>&5 || hard_links=no
15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15994 echo "$as_me:$LINENO: result: $hard_links" >&5
15995 echo "${ECHO_T}$hard_links" >&6
15996 if test "$hard_links" = no; then
15997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15999 need_locks=warn
16000 fi
16001 else
16002 need_locks=no
16003 fi
16004
16005 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16006 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16007
16008 runpath_var=
16009 allow_undefined_flag_GCJ=
16010 enable_shared_with_static_runtimes_GCJ=no
16011 archive_cmds_GCJ=
16012 archive_expsym_cmds_GCJ=
16013 old_archive_From_new_cmds_GCJ=
16014 old_archive_from_expsyms_cmds_GCJ=
16015 export_dynamic_flag_spec_GCJ=
16016 whole_archive_flag_spec_GCJ=
16017 thread_safe_flag_spec_GCJ=
16018 hardcode_libdir_flag_spec_GCJ=
16019 hardcode_libdir_flag_spec_ld_GCJ=
16020 hardcode_libdir_separator_GCJ=
16021 hardcode_direct_GCJ=no
16022 hardcode_minus_L_GCJ=no
16023 hardcode_shlibpath_var_GCJ=unsupported
16024 link_all_deplibs_GCJ=unknown
16025 hardcode_automatic_GCJ=no
16026 module_cmds_GCJ=
16027 module_expsym_cmds_GCJ=
16028 always_export_symbols_GCJ=no
16029 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16030 # include_expsyms should be a list of space-separated symbols to be *always*
16031 # included in the symbol list
16032 include_expsyms_GCJ=
16033 # exclude_expsyms can be an extended regexp of symbols to exclude
16034 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16036 # as well as any symbol that contains `d'.
16037 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16039 # platforms (ab)use it in PIC code, but their linkers get confused if
16040 # the symbol is explicitly referenced. Since portable code cannot
16041 # rely on this symbol name, it's probably fine to never include it in
16042 # preloaded symbol tables.
16043 extract_expsyms_cmds=
16044 # Just being paranoid about ensuring that cc_basename is set.
16045 for cc_temp in $compiler""; do
16046 case $cc_temp in
16047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16049 \-*) ;;
16050 *) break;;
16051 esac
16052 done
16053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16054
16055 case $host_os in
16056 cygwin* | mingw* | pw32*)
16057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16058 # When not using gcc, we currently assume that we are using
16059 # Microsoft Visual C++.
16060 if test "$GCC" != yes; then
16061 with_gnu_ld=no
16062 fi
16063 ;;
16064 interix*)
16065 # we just hope/assume this is gcc and not c89 (= MSVC++)
16066 with_gnu_ld=yes
16067 ;;
16068 openbsd*)
16069 with_gnu_ld=no
16070 ;;
16071 esac
16072
16073 ld_shlibs_GCJ=yes
16074 if test "$with_gnu_ld" = yes; then
16075 # If archive_cmds runs LD, not CC, wlarc should be empty
16076 wlarc='${wl}'
16077
16078 # Set some defaults for GNU ld with shared library support. These
16079 # are reset later if shared libraries are not supported. Putting them
16080 # here allows them to be overridden if necessary.
16081 runpath_var=LD_RUN_PATH
16082 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16083 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16084 # ancient GNU ld didn't support --whole-archive et. al.
16085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16086 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16087 else
16088 whole_archive_flag_spec_GCJ=
16089 fi
16090 supports_anon_versioning=no
16091 case `$LD -v 2>/dev/null` in
16092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16095 *\ 2.11.*) ;; # other 2.11 versions
16096 *) supports_anon_versioning=yes ;;
16097 esac
16098
16099 # See if GNU ld supports shared libraries.
16100 case $host_os in
16101 aix3* | aix4* | aix5*)
16102 # On AIX/PPC, the GNU linker is very broken
16103 if test "$host_cpu" != ia64; then
16104 ld_shlibs_GCJ=no
16105 cat <<EOF 1>&2
16106
16107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16108 *** to be unable to reliably create shared libraries on AIX.
16109 *** Therefore, libtool is disabling shared libraries support. If you
16110 *** really care for shared libraries, you may want to modify your PATH
16111 *** so that a non-GNU linker is found, and then restart.
16112
16113 EOF
16114 fi
16115 ;;
16116
16117 amigaos*)
16118 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)'
16119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16120 hardcode_minus_L_GCJ=yes
16121
16122 # Samuel A. Falvo II <[email protected]> reports
16123 # that the semantics of dynamic libraries on AmigaOS, at least up
16124 # to version 4, is to share data among multiple programs linked
16125 # with the same dynamic library. Since this doesn't match the
16126 # behavior of shared libraries on other platforms, we can't use
16127 # them.
16128 ld_shlibs_GCJ=no
16129 ;;
16130
16131 beos*)
16132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133 allow_undefined_flag_GCJ=unsupported
16134 # Joseph Beckenbach <[email protected]> says some releases of gcc
16135 # support --undefined. This deserves some investigation. FIXME
16136 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 else
16138 ld_shlibs_GCJ=no
16139 fi
16140 ;;
16141
16142 cygwin* | mingw* | pw32*)
16143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16144 # as there is no search path for DLLs.
16145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16146 allow_undefined_flag_GCJ=unsupported
16147 always_export_symbols_GCJ=no
16148 enable_shared_with_static_runtimes_GCJ=yes
16149 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16150
16151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16152 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16153 # If the export-symbols file already is a .def file (1st line
16154 # is EXPORTS), use it as is; otherwise, prepend...
16155 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16156 cp $export_symbols $output_objdir/$soname.def;
16157 else
16158 echo EXPORTS > $output_objdir/$soname.def;
16159 cat $export_symbols >> $output_objdir/$soname.def;
16160 fi~
16161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16162 else
16163 ld_shlibs_GCJ=no
16164 fi
16165 ;;
16166
16167 interix3*)
16168 hardcode_direct_GCJ=no
16169 hardcode_shlibpath_var_GCJ=no
16170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16171 export_dynamic_flag_spec_GCJ='${wl}-E'
16172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16173 # Instead, shared libraries are loaded at an image base (0x10000000 by
16174 # default) and relocated if they conflict, which is a slow very memory
16175 # consuming and fragmenting process. To avoid this, we pick a random,
16176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16177 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16178 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16179 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16180 ;;
16181
16182 linux*)
16183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16184 tmp_addflag=
16185 case $cc_basename,$host_cpu in
16186 pgcc*) # Portland Group C compiler
16187 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16188 tmp_addflag=' $pic_flag'
16189 ;;
16190 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16191 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16192 tmp_addflag=' $pic_flag -Mnomain' ;;
16193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16194 tmp_addflag=' -i_dynamic' ;;
16195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16196 tmp_addflag=' -i_dynamic -nofor_main' ;;
16197 ifc* | ifort*) # Intel Fortran compiler
16198 tmp_addflag=' -nofor_main' ;;
16199 esac
16200 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201
16202 if test $supports_anon_versioning = yes; then
16203 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16205 $echo "local: *; };" >> $output_objdir/$libname.ver~
16206 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16207 fi
16208 else
16209 ld_shlibs_GCJ=no
16210 fi
16211 ;;
16212
16213 netbsd*)
16214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16215 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16216 wlarc=
16217 else
16218 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16219 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16220 fi
16221 ;;
16222
16223 solaris*)
16224 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16225 ld_shlibs_GCJ=no
16226 cat <<EOF 1>&2
16227
16228 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16229 *** create shared libraries on Solaris systems. Therefore, libtool
16230 *** is disabling shared libraries support. We urge you to upgrade GNU
16231 *** binutils to release 2.9.1 or newer. Another option is to modify
16232 *** your PATH or compiler configuration so that the native linker is
16233 *** used, and then restart.
16234
16235 EOF
16236 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16239 else
16240 ld_shlibs_GCJ=no
16241 fi
16242 ;;
16243
16244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16245 case `$LD -v 2>&1` in
16246 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16247 ld_shlibs_GCJ=no
16248 cat <<_LT_EOF 1>&2
16249
16250 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16251 *** reliably create shared libraries on SCO systems. Therefore, libtool
16252 *** is disabling shared libraries support. We urge you to upgrade GNU
16253 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16254 *** your PATH or compiler configuration so that the native linker is
16255 *** used, and then restart.
16256
16257 _LT_EOF
16258 ;;
16259 *)
16260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16261 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16263 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16264 else
16265 ld_shlibs_GCJ=no
16266 fi
16267 ;;
16268 esac
16269 ;;
16270
16271 sunos4*)
16272 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16273 wlarc=
16274 hardcode_direct_GCJ=yes
16275 hardcode_shlibpath_var_GCJ=no
16276 ;;
16277
16278 *)
16279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16282 else
16283 ld_shlibs_GCJ=no
16284 fi
16285 ;;
16286 esac
16287
16288 if test "$ld_shlibs_GCJ" = no; then
16289 runpath_var=
16290 hardcode_libdir_flag_spec_GCJ=
16291 export_dynamic_flag_spec_GCJ=
16292 whole_archive_flag_spec_GCJ=
16293 fi
16294 else
16295 # PORTME fill in a description of your system's linker (not GNU ld)
16296 case $host_os in
16297 aix3*)
16298 allow_undefined_flag_GCJ=unsupported
16299 always_export_symbols_GCJ=yes
16300 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'
16301 # Note: this linker hardcodes the directories in LIBPATH if there
16302 # are no directories specified by -L.
16303 hardcode_minus_L_GCJ=yes
16304 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16305 # Neither direct hardcoding nor static linking is supported with a
16306 # broken collect2.
16307 hardcode_direct_GCJ=unsupported
16308 fi
16309 ;;
16310
16311 aix4* | aix5*)
16312 if test "$host_cpu" = ia64; then
16313 # On IA64, the linker does run time linking by default, so we don't
16314 # have to do anything special.
16315 aix_use_runtimelinking=no
16316 exp_sym_flag='-Bexport'
16317 no_entry_flag=""
16318 else
16319 # If we're using GNU nm, then we don't want the "-C" option.
16320 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16321 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16322 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'
16323 else
16324 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'
16325 fi
16326 aix_use_runtimelinking=no
16327
16328 # Test if we are trying to use run time linking or normal
16329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16330 # need to do runtime linking.
16331 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16332 for ld_flag in $LDFLAGS; do
16333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16334 aix_use_runtimelinking=yes
16335 break
16336 fi
16337 done
16338 ;;
16339 esac
16340
16341 exp_sym_flag='-bexport'
16342 no_entry_flag='-bnoentry'
16343 fi
16344
16345 # When large executables or shared objects are built, AIX ld can
16346 # have problems creating the table of contents. If linking a library
16347 # or program results in "error TOC overflow" add -mminimal-toc to
16348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16350
16351 archive_cmds_GCJ=''
16352 hardcode_direct_GCJ=yes
16353 hardcode_libdir_separator_GCJ=':'
16354 link_all_deplibs_GCJ=yes
16355
16356 if test "$GCC" = yes; then
16357 case $host_os in aix4.[012]|aix4.[012].*)
16358 # We only want to do this on AIX 4.2 and lower, the check
16359 # below for broken collect2 doesn't work under 4.3+
16360 collect2name=`${CC} -print-prog-name=collect2`
16361 if test -f "$collect2name" && \
16362 strings "$collect2name" | grep resolve_lib_name >/dev/null
16363 then
16364 # We have reworked collect2
16365 hardcode_direct_GCJ=yes
16366 else
16367 # We have old collect2
16368 hardcode_direct_GCJ=unsupported
16369 # It fails to find uninstalled libraries when the uninstalled
16370 # path is not listed in the libpath. Setting hardcode_minus_L
16371 # to unsupported forces relinking
16372 hardcode_minus_L_GCJ=yes
16373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16374 hardcode_libdir_separator_GCJ=
16375 fi
16376 ;;
16377 esac
16378 shared_flag='-shared'
16379 if test "$aix_use_runtimelinking" = yes; then
16380 shared_flag="$shared_flag "'${wl}-G'
16381 fi
16382 else
16383 # not using gcc
16384 if test "$host_cpu" = ia64; then
16385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16386 # chokes on -Wl,-G. The following line is correct:
16387 shared_flag='-G'
16388 else
16389 if test "$aix_use_runtimelinking" = yes; then
16390 shared_flag='${wl}-G'
16391 else
16392 shared_flag='${wl}-bM:SRE'
16393 fi
16394 fi
16395 fi
16396
16397 # It seems that -bexpall does not export symbols beginning with
16398 # underscore (_), so it is better to generate a list of symbols to export.
16399 always_export_symbols_GCJ=yes
16400 if test "$aix_use_runtimelinking" = yes; then
16401 # Warning - without using the other runtime loading flags (-brtl),
16402 # -berok will link without error, but may produce a broken library.
16403 allow_undefined_flag_GCJ='-berok'
16404 # Determine the default libpath from the value encoded in an empty executable.
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h. */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411
16412 int
16413 main ()
16414 {
16415
16416 ;
16417 return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16422 (eval $ac_link) 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -z "$ac_c_werror_flag"
16430 || test ! -s conftest.err'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest$ac_exeext'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442
16443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16444 }'`
16445 # Check for a 64-bit object if we didn't find anything.
16446 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; }
16447 }'`; fi
16448 else
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452 fi
16453 rm -f conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16456
16457 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16458 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16459 else
16460 if test "$host_cpu" = ia64; then
16461 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16462 allow_undefined_flag_GCJ="-z nodefs"
16463 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16464 else
16465 # Determine the default libpath from the value encoded in an empty executable.
16466 cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472
16473 int
16474 main ()
16475 {
16476
16477 ;
16478 return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>conftest.er1
16484 ac_status=$?
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try='test -z "$ac_c_werror_flag"
16491 || test ! -s conftest.err'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503
16504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16505 }'`
16506 # Check for a 64-bit object if we didn't find anything.
16507 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; }
16508 }'`; fi
16509 else
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 fi
16514 rm -f conftest.err conftest.$ac_objext \
16515 conftest$ac_exeext conftest.$ac_ext
16516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16517
16518 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16519 # Warning - without using the other run time loading flags,
16520 # -berok will link without error, but may produce a broken library.
16521 no_undefined_flag_GCJ=' ${wl}-bernotok'
16522 allow_undefined_flag_GCJ=' ${wl}-berok'
16523 # Exported symbols can be pulled into shared objects from archives
16524 whole_archive_flag_spec_GCJ='$convenience'
16525 archive_cmds_need_lc_GCJ=yes
16526 # This is similar to how AIX traditionally builds its shared libraries.
16527 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16528 fi
16529 fi
16530 ;;
16531
16532 amigaos*)
16533 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)'
16534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16535 hardcode_minus_L_GCJ=yes
16536 # see comment about different semantics on the GNU ld section
16537 ld_shlibs_GCJ=no
16538 ;;
16539
16540 bsdi[45]*)
16541 export_dynamic_flag_spec_GCJ=-rdynamic
16542 ;;
16543
16544 cygwin* | mingw* | pw32*)
16545 # When not using gcc, we currently assume that we are using
16546 # Microsoft Visual C++.
16547 # hardcode_libdir_flag_spec is actually meaningless, as there is
16548 # no search path for DLLs.
16549 hardcode_libdir_flag_spec_GCJ=' '
16550 allow_undefined_flag_GCJ=unsupported
16551 # Tell ltmain to make .lib files, not .a files.
16552 libext=lib
16553 # Tell ltmain to make .dll files, not .so files.
16554 shrext_cmds=".dll"
16555 # FIXME: Setting linknames here is a bad hack.
16556 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16557 # The linker will automatically build a .lib file if we build a DLL.
16558 old_archive_From_new_cmds_GCJ='true'
16559 # FIXME: Should let the user specify the lib program.
16560 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16561 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16562 enable_shared_with_static_runtimes_GCJ=yes
16563 ;;
16564
16565 darwin* | rhapsody*)
16566 case $host_os in
16567 rhapsody* | darwin1.[012])
16568 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16569 ;;
16570 *) # Darwin 1.3 on
16571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16572 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16573 else
16574 case ${MACOSX_DEPLOYMENT_TARGET} in
16575 10.[012])
16576 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16577 ;;
16578 10.*)
16579 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16580 ;;
16581 esac
16582 fi
16583 ;;
16584 esac
16585 archive_cmds_need_lc_GCJ=no
16586 hardcode_direct_GCJ=no
16587 hardcode_automatic_GCJ=yes
16588 hardcode_shlibpath_var_GCJ=unsupported
16589 whole_archive_flag_spec_GCJ=''
16590 link_all_deplibs_GCJ=yes
16591 if test "$GCC" = yes ; then
16592 output_verbose_link_cmd='echo'
16593 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16594 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16596 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16597 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}'
16598 else
16599 case $cc_basename in
16600 xlc*)
16601 output_verbose_link_cmd='echo'
16602 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16603 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16605 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16606 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}'
16607 ;;
16608 *)
16609 ld_shlibs_GCJ=no
16610 ;;
16611 esac
16612 fi
16613 ;;
16614
16615 dgux*)
16616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16618 hardcode_shlibpath_var_GCJ=no
16619 ;;
16620
16621 freebsd1*)
16622 ld_shlibs_GCJ=no
16623 ;;
16624
16625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16626 # support. Future versions do this automatically, but an explicit c++rt0.o
16627 # does not break anything, and helps significantly (at the cost of a little
16628 # extra space).
16629 freebsd2.2*)
16630 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16631 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16632 hardcode_direct_GCJ=yes
16633 hardcode_shlibpath_var_GCJ=no
16634 ;;
16635
16636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16637 freebsd2*)
16638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_direct_GCJ=yes
16640 hardcode_minus_L_GCJ=yes
16641 hardcode_shlibpath_var_GCJ=no
16642 ;;
16643
16644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16645 freebsd* | kfreebsd*-gnu | dragonfly*)
16646 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16647 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16648 hardcode_direct_GCJ=yes
16649 hardcode_shlibpath_var_GCJ=no
16650 ;;
16651
16652 hpux9*)
16653 if test "$GCC" = yes; then
16654 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'
16655 else
16656 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'
16657 fi
16658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16659 hardcode_libdir_separator_GCJ=:
16660 hardcode_direct_GCJ=yes
16661
16662 # hardcode_minus_L: Not really in the search PATH,
16663 # but as the default location of the library.
16664 hardcode_minus_L_GCJ=yes
16665 export_dynamic_flag_spec_GCJ='${wl}-E'
16666 ;;
16667
16668 hpux10*)
16669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16670 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16671 else
16672 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16673 fi
16674 if test "$with_gnu_ld" = no; then
16675 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16676 hardcode_libdir_separator_GCJ=:
16677
16678 hardcode_direct_GCJ=yes
16679 export_dynamic_flag_spec_GCJ='${wl}-E'
16680
16681 # hardcode_minus_L: Not really in the search PATH,
16682 # but as the default location of the library.
16683 hardcode_minus_L_GCJ=yes
16684 fi
16685 ;;
16686
16687 hpux11*)
16688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16689 case $host_cpu in
16690 hppa*64*)
16691 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 ;;
16693 ia64*)
16694 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16695 ;;
16696 *)
16697 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16698 ;;
16699 esac
16700 else
16701 case $host_cpu in
16702 hppa*64*)
16703 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16704 ;;
16705 ia64*)
16706 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16707 ;;
16708 *)
16709 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16710 ;;
16711 esac
16712 fi
16713 if test "$with_gnu_ld" = no; then
16714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16715 hardcode_libdir_separator_GCJ=:
16716
16717 case $host_cpu in
16718 hppa*64*|ia64*)
16719 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16720 hardcode_direct_GCJ=no
16721 hardcode_shlibpath_var_GCJ=no
16722 ;;
16723 *)
16724 hardcode_direct_GCJ=yes
16725 export_dynamic_flag_spec_GCJ='${wl}-E'
16726
16727 # hardcode_minus_L: Not really in the search PATH,
16728 # but as the default location of the library.
16729 hardcode_minus_L_GCJ=yes
16730 ;;
16731 esac
16732 fi
16733 ;;
16734
16735 irix5* | irix6* | nonstopux*)
16736 if test "$GCC" = yes; then
16737 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'
16738 else
16739 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'
16740 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16741 fi
16742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16743 hardcode_libdir_separator_GCJ=:
16744 link_all_deplibs_GCJ=yes
16745 ;;
16746
16747 netbsd*)
16748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16749 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16750 else
16751 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16752 fi
16753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16754 hardcode_direct_GCJ=yes
16755 hardcode_shlibpath_var_GCJ=no
16756 ;;
16757
16758 newsos6)
16759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760 hardcode_direct_GCJ=yes
16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16762 hardcode_libdir_separator_GCJ=:
16763 hardcode_shlibpath_var_GCJ=no
16764 ;;
16765
16766 openbsd*)
16767 hardcode_direct_GCJ=yes
16768 hardcode_shlibpath_var_GCJ=no
16769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16770 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16773 export_dynamic_flag_spec_GCJ='${wl}-E'
16774 else
16775 case $host_os in
16776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16779 ;;
16780 *)
16781 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16783 ;;
16784 esac
16785 fi
16786 ;;
16787
16788 os2*)
16789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16790 hardcode_minus_L_GCJ=yes
16791 allow_undefined_flag_GCJ=unsupported
16792 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'
16793 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16794 ;;
16795
16796 osf3*)
16797 if test "$GCC" = yes; then
16798 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16799 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'
16800 else
16801 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16802 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'
16803 fi
16804 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16805 hardcode_libdir_separator_GCJ=:
16806 ;;
16807
16808 osf4* | osf5*) # as osf3* with the addition of -msym flag
16809 if test "$GCC" = yes; then
16810 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16811 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'
16812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16813 else
16814 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16815 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'
16816 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~
16817 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16818
16819 # Both c and cxx compiler support -rpath directly
16820 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16821 fi
16822 hardcode_libdir_separator_GCJ=:
16823 ;;
16824
16825 solaris*)
16826 no_undefined_flag_GCJ=' -z text'
16827 if test "$GCC" = yes; then
16828 wlarc='${wl}'
16829 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16830 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16831 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16832 else
16833 wlarc=''
16834 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16836 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16837 fi
16838 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16839 hardcode_shlibpath_var_GCJ=no
16840 case $host_os in
16841 solaris2.[0-5] | solaris2.[0-5].*) ;;
16842 *)
16843 # The compiler driver will combine linker options so we
16844 # cannot just pass the convience library names through
16845 # without $wl, iff we do not link with $LD.
16846 # Luckily, gcc supports the same syntax we need for Sun Studio.
16847 # Supported since Solaris 2.6 (maybe 2.5.1?)
16848 case $wlarc in
16849 '')
16850 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16851 *)
16852 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16853 esac ;;
16854 esac
16855 link_all_deplibs_GCJ=yes
16856 ;;
16857
16858 sunos4*)
16859 if test "x$host_vendor" = xsequent; then
16860 # Use $CC to link under sequent, because it throws in some extra .o
16861 # files that make .init and .fini sections work.
16862 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16863 else
16864 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16865 fi
16866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867 hardcode_direct_GCJ=yes
16868 hardcode_minus_L_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=no
16870 ;;
16871
16872 sysv4)
16873 case $host_vendor in
16874 sni)
16875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16876 hardcode_direct_GCJ=yes # is this really true???
16877 ;;
16878 siemens)
16879 ## LD is ld it makes a PLAMLIB
16880 ## CC just makes a GrossModule.
16881 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16882 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16883 hardcode_direct_GCJ=no
16884 ;;
16885 motorola)
16886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16887 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16888 ;;
16889 esac
16890 runpath_var='LD_RUN_PATH'
16891 hardcode_shlibpath_var_GCJ=no
16892 ;;
16893
16894 sysv4.3*)
16895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896 hardcode_shlibpath_var_GCJ=no
16897 export_dynamic_flag_spec_GCJ='-Bexport'
16898 ;;
16899
16900 sysv4*MP*)
16901 if test -d /usr/nec; then
16902 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16903 hardcode_shlibpath_var_GCJ=no
16904 runpath_var=LD_RUN_PATH
16905 hardcode_runpath_var=yes
16906 ld_shlibs_GCJ=yes
16907 fi
16908 ;;
16909
16910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16911 no_undefined_flag_GCJ='${wl}-z,text'
16912 archive_cmds_need_lc_GCJ=no
16913 hardcode_shlibpath_var_GCJ=no
16914 runpath_var='LD_RUN_PATH'
16915
16916 if test "$GCC" = yes; then
16917 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16918 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16919 else
16920 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16921 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16922 fi
16923 ;;
16924
16925 sysv5* | sco3.2v5* | sco5v6*)
16926 # Note: We can NOT use -z defs as we might desire, because we do not
16927 # link with -lc, and that would cause any symbols used from libc to
16928 # always be unresolved, which means just about no library would
16929 # ever link correctly. If we're not using GNU ld we use -z text
16930 # though, which does catch some bad symbols but isn't as heavy-handed
16931 # as -z defs.
16932 no_undefined_flag_GCJ='${wl}-z,text'
16933 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16934 archive_cmds_need_lc_GCJ=no
16935 hardcode_shlibpath_var_GCJ=no
16936 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16937 hardcode_libdir_separator_GCJ=':'
16938 link_all_deplibs_GCJ=yes
16939 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16940 runpath_var='LD_RUN_PATH'
16941
16942 if test "$GCC" = yes; then
16943 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16945 else
16946 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16947 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948 fi
16949 ;;
16950
16951 uts4*)
16952 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16954 hardcode_shlibpath_var_GCJ=no
16955 ;;
16956
16957 *)
16958 ld_shlibs_GCJ=no
16959 ;;
16960 esac
16961 fi
16962
16963 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16964 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16965 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16966
16967 #
16968 # Do we need to explicitly link libc?
16969 #
16970 case "x$archive_cmds_need_lc_GCJ" in
16971 x|xyes)
16972 # Assume -lc should be added
16973 archive_cmds_need_lc_GCJ=yes
16974
16975 if test "$enable_shared" = yes && test "$GCC" = yes; then
16976 case $archive_cmds_GCJ in
16977 *'~'*)
16978 # FIXME: we may have to deal with multi-command sequences.
16979 ;;
16980 '$CC '*)
16981 # Test whether the compiler implicitly links with -lc since on some
16982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16983 # to ld, don't add -lc before -lgcc.
16984 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16986 $rm conftest*
16987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16988
16989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990 (eval $ac_compile) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } 2>conftest.err; then
16994 soname=conftest
16995 lib=conftest
16996 libobjs=conftest.$ac_objext
16997 deplibs=
16998 wl=$lt_prog_compiler_wl_GCJ
16999 pic_flag=$lt_prog_compiler_pic_GCJ
17000 compiler_flags=-v
17001 linker_flags=-v
17002 verstring=
17003 output_objdir=.
17004 libname=conftest
17005 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17006 allow_undefined_flag_GCJ=
17007 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17008 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }
17012 then
17013 archive_cmds_need_lc_GCJ=no
17014 else
17015 archive_cmds_need_lc_GCJ=yes
17016 fi
17017 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17018 else
17019 cat conftest.err 1>&5
17020 fi
17021 $rm conftest*
17022 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17023 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17024 ;;
17025 esac
17026 fi
17027 ;;
17028 esac
17029
17030 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17032 library_names_spec=
17033 libname_spec='lib$name'
17034 soname_spec=
17035 shrext_cmds=".so"
17036 postinstall_cmds=
17037 postuninstall_cmds=
17038 finish_cmds=
17039 finish_eval=
17040 shlibpath_var=
17041 shlibpath_overrides_runpath=unknown
17042 version_type=none
17043 dynamic_linker="$host_os ld.so"
17044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17045 if test "$GCC" = yes; then
17046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17047 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17048 # if the path contains ";" then we assume it to be the separator
17049 # otherwise default to the standard path separator (i.e. ":") - it is
17050 # assumed that no part of a normal pathname contains ";" but that should
17051 # okay in the real world where ";" in dirpaths is itself problematic.
17052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17053 else
17054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17055 fi
17056 else
17057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17058 fi
17059 need_lib_prefix=unknown
17060 hardcode_into_libs=no
17061
17062 # when you set need_version to no, make sure it does not cause -set_version
17063 # flags to be left without arguments
17064 need_version=unknown
17065
17066 case $host_os in
17067 aix3*)
17068 version_type=linux
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17070 shlibpath_var=LIBPATH
17071
17072 # AIX 3 has no versioning support, so we append a major version to the name.
17073 soname_spec='${libname}${release}${shared_ext}$major'
17074 ;;
17075
17076 aix4* | aix5*)
17077 version_type=linux
17078 need_lib_prefix=no
17079 need_version=no
17080 hardcode_into_libs=yes
17081 if test "$host_cpu" = ia64; then
17082 # AIX 5 supports IA64
17083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17084 shlibpath_var=LD_LIBRARY_PATH
17085 else
17086 # With GCC up to 2.95.x, collect2 would create an import file
17087 # for dependence libraries. The import file would start with
17088 # the line `#! .'. This would cause the generated library to
17089 # depend on `.', always an invalid library. This was fixed in
17090 # development snapshots of GCC prior to 3.0.
17091 case $host_os in
17092 aix4 | aix4.[01] | aix4.[01].*)
17093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17094 echo ' yes '
17095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17096 :
17097 else
17098 can_build_shared=no
17099 fi
17100 ;;
17101 esac
17102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17103 # soname into executable. Probably we can add versioning support to
17104 # collect2, so additional links can be useful in future.
17105 if test "$aix_use_runtimelinking" = yes; then
17106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17107 # instead of lib<name>.a to let people know that these are not
17108 # typical AIX shared libraries.
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 else
17111 # We preserve .a as extension for shared libraries through AIX4.2
17112 # and later when we are not doing run time linking.
17113 library_names_spec='${libname}${release}.a $libname.a'
17114 soname_spec='${libname}${release}${shared_ext}$major'
17115 fi
17116 shlibpath_var=LIBPATH
17117 fi
17118 ;;
17119
17120 amigaos*)
17121 library_names_spec='$libname.ixlibrary $libname.a'
17122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17123 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'
17124 ;;
17125
17126 beos*)
17127 library_names_spec='${libname}${shared_ext}'
17128 dynamic_linker="$host_os ld.so"
17129 shlibpath_var=LIBRARY_PATH
17130 ;;
17131
17132 bsdi[45]*)
17133 version_type=linux
17134 need_version=no
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17140 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17141 # the default ld.so.conf also contains /usr/contrib/lib and
17142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17143 # libtool to hard-code these into programs
17144 ;;
17145
17146 cygwin* | mingw* | pw32*)
17147 version_type=windows
17148 shrext_cmds=".dll"
17149 need_version=no
17150 need_lib_prefix=no
17151
17152 case $GCC,$host_os in
17153 yes,cygwin* | yes,mingw* | yes,pw32*)
17154 library_names_spec='$libname.dll.a'
17155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17156 postinstall_cmds='base_file=`basename \${file}`~
17157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17158 dldir=$destdir/`dirname \$dlpath`~
17159 test -d \$dldir || mkdir -p \$dldir~
17160 $install_prog $dir/$dlname \$dldir/$dlname~
17161 chmod a+x \$dldir/$dlname'
17162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17163 dlpath=$dir/\$dldll~
17164 $rm \$dlpath'
17165 shlibpath_overrides_runpath=yes
17166
17167 case $host_os in
17168 cygwin*)
17169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17172 ;;
17173 mingw*)
17174 # MinGW DLLs use traditional 'lib' prefix
17175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17177 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17178 # It is most probably a Windows format PATH printed by
17179 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17180 # path with ; separators, and with drive letters. We can handle the
17181 # drive letters (cygwin fileutils understands them), so leave them,
17182 # especially as we might pass files found there to a mingw objdump,
17183 # which wouldn't understand a cygwinified path. Ahh.
17184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17185 else
17186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17187 fi
17188 ;;
17189 pw32*)
17190 # pw32 DLLs use 'pw' prefix rather than 'lib'
17191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192 ;;
17193 esac
17194 ;;
17195
17196 *)
17197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17198 ;;
17199 esac
17200 dynamic_linker='Win32 ld.exe'
17201 # FIXME: first we should search . and the directory the executable is in
17202 shlibpath_var=PATH
17203 ;;
17204
17205 darwin* | rhapsody*)
17206 dynamic_linker="$host_os dyld"
17207 version_type=darwin
17208 need_lib_prefix=no
17209 need_version=no
17210 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17211 soname_spec='${libname}${release}${major}$shared_ext'
17212 shlibpath_overrides_runpath=yes
17213 shlibpath_var=DYLD_LIBRARY_PATH
17214 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17215 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17216 if test "$GCC" = yes; then
17217 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"`
17218 else
17219 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17220 fi
17221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17222 ;;
17223
17224 dgux*)
17225 version_type=linux
17226 need_lib_prefix=no
17227 need_version=no
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 ;;
17232
17233 freebsd1*)
17234 dynamic_linker=no
17235 ;;
17236
17237 kfreebsd*-gnu)
17238 version_type=linux
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 shlibpath_overrides_runpath=no
17245 hardcode_into_libs=yes
17246 dynamic_linker='GNU ld.so'
17247 ;;
17248
17249 freebsd* | dragonfly*)
17250 # DragonFly does not have aout. When/if they implement a new
17251 # versioning mechanism, adjust this.
17252 if test -x /usr/bin/objformat; then
17253 objformat=`/usr/bin/objformat`
17254 else
17255 case $host_os in
17256 freebsd[123]*) objformat=aout ;;
17257 *) objformat=elf ;;
17258 esac
17259 fi
17260 version_type=freebsd-$objformat
17261 case $version_type in
17262 freebsd-elf*)
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17264 need_version=no
17265 need_lib_prefix=no
17266 ;;
17267 freebsd-*)
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17269 need_version=yes
17270 ;;
17271 esac
17272 shlibpath_var=LD_LIBRARY_PATH
17273 case $host_os in
17274 freebsd2*)
17275 shlibpath_overrides_runpath=yes
17276 ;;
17277 freebsd3.[01]* | freebsdelf3.[01]*)
17278 shlibpath_overrides_runpath=yes
17279 hardcode_into_libs=yes
17280 ;;
17281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17283 shlibpath_overrides_runpath=no
17284 hardcode_into_libs=yes
17285 ;;
17286 freebsd*) # from 4.6 on
17287 shlibpath_overrides_runpath=yes
17288 hardcode_into_libs=yes
17289 ;;
17290 esac
17291 ;;
17292
17293 gnu*)
17294 version_type=linux
17295 need_lib_prefix=no
17296 need_version=no
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 hardcode_into_libs=yes
17301 ;;
17302
17303 hpux9* | hpux10* | hpux11*)
17304 # Give a soname corresponding to the major version so that dld.sl refuses to
17305 # link against other versions.
17306 version_type=sunos
17307 need_lib_prefix=no
17308 need_version=no
17309 case $host_cpu in
17310 ia64*)
17311 shrext_cmds='.so'
17312 hardcode_into_libs=yes
17313 dynamic_linker="$host_os dld.so"
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 if test "X$HPUX_IA64_MODE" = X32; then
17319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17320 else
17321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17322 fi
17323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17324 ;;
17325 hppa*64*)
17326 shrext_cmds='.sl'
17327 hardcode_into_libs=yes
17328 dynamic_linker="$host_os dld.sl"
17329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17335 ;;
17336 *)
17337 shrext_cmds='.sl'
17338 dynamic_linker="$host_os dld.sl"
17339 shlibpath_var=SHLIB_PATH
17340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 ;;
17344 esac
17345 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17346 postinstall_cmds='chmod 555 $lib'
17347 ;;
17348
17349 interix3*)
17350 version_type=linux
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=no
17358 hardcode_into_libs=yes
17359 ;;
17360
17361 irix5* | irix6* | nonstopux*)
17362 case $host_os in
17363 nonstopux*) version_type=nonstopux ;;
17364 *)
17365 if test "$lt_cv_prog_gnu_ld" = yes; then
17366 version_type=linux
17367 else
17368 version_type=irix
17369 fi ;;
17370 esac
17371 need_lib_prefix=no
17372 need_version=no
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17375 case $host_os in
17376 irix5* | nonstopux*)
17377 libsuff= shlibsuff=
17378 ;;
17379 *)
17380 case $LD in # libtool.m4 will add one of these switches to LD
17381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17382 libsuff= shlibsuff= libmagic=32-bit;;
17383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17384 libsuff=32 shlibsuff=N32 libmagic=N32;;
17385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17387 *) libsuff= shlibsuff= libmagic=never-match;;
17388 esac
17389 ;;
17390 esac
17391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17392 shlibpath_overrides_runpath=no
17393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17395 hardcode_into_libs=yes
17396 ;;
17397
17398 # No shared lib support for Linux oldld, aout, or coff.
17399 linux*oldld* | linux*aout* | linux*coff*)
17400 dynamic_linker=no
17401 ;;
17402
17403 # This must be Linux ELF.
17404 linux*)
17405 version_type=linux
17406 need_lib_prefix=no
17407 need_version=no
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath=no
17413 # This implies no fast_install, which is unacceptable.
17414 # Some rework will be needed to allow for fast_install
17415 # before this can be enabled.
17416 hardcode_into_libs=yes
17417
17418 # Append ld.so.conf contents to the search path
17419 if test -f /etc/ld.so.conf; then
17420 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17422 fi
17423
17424 # We used to test for /lib/ld.so.1 and disable shared libraries on
17425 # powerpc, because MkLinux only supported shared libraries with the
17426 # GNU dynamic linker. Since this was broken with cross compilers,
17427 # most powerpc-linux boxes support dynamic linking these days and
17428 # people can always --disable-shared, the test was removed, and we
17429 # assume the GNU/Linux dynamic linker is in use.
17430 dynamic_linker='GNU/Linux ld.so'
17431 ;;
17432
17433 knetbsd*-gnu)
17434 version_type=linux
17435 need_lib_prefix=no
17436 need_version=no
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=no
17441 hardcode_into_libs=yes
17442 dynamic_linker='GNU ld.so'
17443 ;;
17444
17445 netbsd*)
17446 version_type=sunos
17447 need_lib_prefix=no
17448 need_version=no
17449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17452 dynamic_linker='NetBSD (a.out) ld.so'
17453 else
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 dynamic_linker='NetBSD ld.elf_so'
17457 fi
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes
17460 hardcode_into_libs=yes
17461 ;;
17462
17463 newsos6)
17464 version_type=linux
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=yes
17468 ;;
17469
17470 nto-qnx*)
17471 version_type=linux
17472 need_lib_prefix=no
17473 need_version=no
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=yes
17478 ;;
17479
17480 openbsd*)
17481 version_type=sunos
17482 sys_lib_dlsearch_path_spec="/usr/lib"
17483 need_lib_prefix=no
17484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17485 case $host_os in
17486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17487 *) need_version=no ;;
17488 esac
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17493 case $host_os in
17494 openbsd2.[89] | openbsd2.[89].*)
17495 shlibpath_overrides_runpath=no
17496 ;;
17497 *)
17498 shlibpath_overrides_runpath=yes
17499 ;;
17500 esac
17501 else
17502 shlibpath_overrides_runpath=yes
17503 fi
17504 ;;
17505
17506 os2*)
17507 libname_spec='$name'
17508 shrext_cmds=".dll"
17509 need_lib_prefix=no
17510 library_names_spec='$libname${shared_ext} $libname.a'
17511 dynamic_linker='OS/2 ld.exe'
17512 shlibpath_var=LIBPATH
17513 ;;
17514
17515 osf3* | osf4* | osf5*)
17516 version_type=osf
17517 need_lib_prefix=no
17518 need_version=no
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17524 ;;
17525
17526 solaris*)
17527 version_type=linux
17528 need_lib_prefix=no
17529 need_version=no
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=yes
17534 hardcode_into_libs=yes
17535 # ldd complains unless libraries are executable
17536 postinstall_cmds='chmod +x $lib'
17537 ;;
17538
17539 sunos4*)
17540 version_type=sunos
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17545 if test "$with_gnu_ld" = yes; then
17546 need_lib_prefix=no
17547 fi
17548 need_version=yes
17549 ;;
17550
17551 sysv4 | sysv4.3*)
17552 version_type=linux
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 case $host_vendor in
17557 sni)
17558 shlibpath_overrides_runpath=no
17559 need_lib_prefix=no
17560 export_dynamic_flag_spec='${wl}-Blargedynsym'
17561 runpath_var=LD_RUN_PATH
17562 ;;
17563 siemens)
17564 need_lib_prefix=no
17565 ;;
17566 motorola)
17567 need_lib_prefix=no
17568 need_version=no
17569 shlibpath_overrides_runpath=no
17570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17571 ;;
17572 esac
17573 ;;
17574
17575 sysv4*MP*)
17576 if test -d /usr/nec ;then
17577 version_type=linux
17578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17579 soname_spec='$libname${shared_ext}.$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 fi
17582 ;;
17583
17584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17585 version_type=freebsd-elf
17586 need_lib_prefix=no
17587 need_version=no
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 hardcode_into_libs=yes
17592 if test "$with_gnu_ld" = yes; then
17593 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17594 shlibpath_overrides_runpath=no
17595 else
17596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17597 shlibpath_overrides_runpath=yes
17598 case $host_os in
17599 sco3.2v5*)
17600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17601 ;;
17602 esac
17603 fi
17604 sys_lib_dlsearch_path_spec='/usr/lib'
17605 ;;
17606
17607 uts4*)
17608 version_type=linux
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 shlibpath_var=LD_LIBRARY_PATH
17612 ;;
17613
17614 *)
17615 dynamic_linker=no
17616 ;;
17617 esac
17618 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17619 echo "${ECHO_T}$dynamic_linker" >&6
17620 test "$dynamic_linker" = no && can_build_shared=no
17621
17622 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17623 if test "$GCC" = yes; then
17624 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17625 fi
17626
17627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17629 hardcode_action_GCJ=
17630 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17631 test -n "$runpath_var_GCJ" || \
17632 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17633
17634 # We can hardcode non-existant directories.
17635 if test "$hardcode_direct_GCJ" != no &&
17636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17637 # have to relink, otherwise we might link with an installed library
17638 # when we should be linking with a yet-to-be-installed one
17639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17640 test "$hardcode_minus_L_GCJ" != no; then
17641 # Linking always hardcodes the temporary library directory.
17642 hardcode_action_GCJ=relink
17643 else
17644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17645 hardcode_action_GCJ=immediate
17646 fi
17647 else
17648 # We cannot hardcode anything, or else we can only hardcode existing
17649 # directories.
17650 hardcode_action_GCJ=unsupported
17651 fi
17652 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17653 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17654
17655 if test "$hardcode_action_GCJ" = relink; then
17656 # Fast installation is not supported
17657 enable_fast_install=no
17658 elif test "$shlibpath_overrides_runpath" = yes ||
17659 test "$enable_shared" = no; then
17660 # Fast installation is not necessary
17661 enable_fast_install=needless
17662 fi
17663
17664
17665 # The else clause should only fire when bootstrapping the
17666 # libtool distribution, otherwise you forgot to ship ltmain.sh
17667 # with your package, and you will get complaints that there are
17668 # no rules to generate ltmain.sh.
17669 if test -f "$ltmain"; then
17670 # See if we are running on zsh, and set the options which allow our commands through
17671 # without removal of \ escapes.
17672 if test -n "${ZSH_VERSION+set}" ; then
17673 setopt NO_GLOB_SUBST
17674 fi
17675 # Now quote all the things that may contain metacharacters while being
17676 # careful not to overquote the AC_SUBSTed values. We take copies of the
17677 # variables and quote the copies for generation of the libtool script.
17678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17679 SED SHELL STRIP \
17680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17682 deplibs_check_method reload_flag reload_cmds need_locks \
17683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17684 lt_cv_sys_global_symbol_to_c_name_address \
17685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17686 old_postinstall_cmds old_postuninstall_cmds \
17687 compiler_GCJ \
17688 CC_GCJ \
17689 LD_GCJ \
17690 lt_prog_compiler_wl_GCJ \
17691 lt_prog_compiler_pic_GCJ \
17692 lt_prog_compiler_static_GCJ \
17693 lt_prog_compiler_no_builtin_flag_GCJ \
17694 export_dynamic_flag_spec_GCJ \
17695 thread_safe_flag_spec_GCJ \
17696 whole_archive_flag_spec_GCJ \
17697 enable_shared_with_static_runtimes_GCJ \
17698 old_archive_cmds_GCJ \
17699 old_archive_from_new_cmds_GCJ \
17700 predep_objects_GCJ \
17701 postdep_objects_GCJ \
17702 predeps_GCJ \
17703 postdeps_GCJ \
17704 compiler_lib_search_path_GCJ \
17705 archive_cmds_GCJ \
17706 archive_expsym_cmds_GCJ \
17707 postinstall_cmds_GCJ \
17708 postuninstall_cmds_GCJ \
17709 old_archive_from_expsyms_cmds_GCJ \
17710 allow_undefined_flag_GCJ \
17711 no_undefined_flag_GCJ \
17712 export_symbols_cmds_GCJ \
17713 hardcode_libdir_flag_spec_GCJ \
17714 hardcode_libdir_flag_spec_ld_GCJ \
17715 hardcode_libdir_separator_GCJ \
17716 hardcode_automatic_GCJ \
17717 module_cmds_GCJ \
17718 module_expsym_cmds_GCJ \
17719 lt_cv_prog_compiler_c_o_GCJ \
17720 exclude_expsyms_GCJ \
17721 include_expsyms_GCJ; do
17722
17723 case $var in
17724 old_archive_cmds_GCJ | \
17725 old_archive_from_new_cmds_GCJ | \
17726 archive_cmds_GCJ | \
17727 archive_expsym_cmds_GCJ | \
17728 module_cmds_GCJ | \
17729 module_expsym_cmds_GCJ | \
17730 old_archive_from_expsyms_cmds_GCJ | \
17731 export_symbols_cmds_GCJ | \
17732 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17733 postinstall_cmds | postuninstall_cmds | \
17734 old_postinstall_cmds | old_postuninstall_cmds | \
17735 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17736 # Double-quote double-evaled strings.
17737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17738 ;;
17739 *)
17740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17741 ;;
17742 esac
17743 done
17744
17745 case $lt_echo in
17746 *'\$0 --fallback-echo"')
17747 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17748 ;;
17749 esac
17750
17751 cfgfile="$ofile"
17752
17753 cat <<__EOF__ >> "$cfgfile"
17754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17755
17756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17757
17758 # Shell to use when invoking shell scripts.
17759 SHELL=$lt_SHELL
17760
17761 # Whether or not to build shared libraries.
17762 build_libtool_libs=$enable_shared
17763
17764 # Whether or not to build static libraries.
17765 build_old_libs=$enable_static
17766
17767 # Whether or not to add -lc for building shared libraries.
17768 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17769
17770 # Whether or not to disallow shared libs when runtime libs are static
17771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17772
17773 # Whether or not to optimize for fast installation.
17774 fast_install=$enable_fast_install
17775
17776 # The host system.
17777 host_alias=$host_alias
17778 host=$host
17779 host_os=$host_os
17780
17781 # The build system.
17782 build_alias=$build_alias
17783 build=$build
17784 build_os=$build_os
17785
17786 # An echo program that does not interpret backslashes.
17787 echo=$lt_echo
17788
17789 # The archiver.
17790 AR=$lt_AR
17791 AR_FLAGS=$lt_AR_FLAGS
17792
17793 # A C compiler.
17794 LTCC=$lt_LTCC
17795
17796 # LTCC compiler flags.
17797 LTCFLAGS=$lt_LTCFLAGS
17798
17799 # A language-specific compiler.
17800 CC=$lt_compiler_GCJ
17801
17802 # Is the compiler the GNU C compiler?
17803 with_gcc=$GCC_GCJ
17804
17805 # An ERE matcher.
17806 EGREP=$lt_EGREP
17807
17808 # The linker used to build libraries.
17809 LD=$lt_LD_GCJ
17810
17811 # Whether we need hard or soft links.
17812 LN_S=$lt_LN_S
17813
17814 # A BSD-compatible nm program.
17815 NM=$lt_NM
17816
17817 # A symbol stripping program
17818 STRIP=$lt_STRIP
17819
17820 # Used to examine libraries when file_magic_cmd begins "file"
17821 MAGIC_CMD=$MAGIC_CMD
17822
17823 # Used on cygwin: DLL creation program.
17824 DLLTOOL="$DLLTOOL"
17825
17826 # Used on cygwin: object dumper.
17827 OBJDUMP="$OBJDUMP"
17828
17829 # Used on cygwin: assembler.
17830 AS="$AS"
17831
17832 # The name of the directory that contains temporary libtool files.
17833 objdir=$objdir
17834
17835 # How to create reloadable object files.
17836 reload_flag=$lt_reload_flag
17837 reload_cmds=$lt_reload_cmds
17838
17839 # How to pass a linker flag through the compiler.
17840 wl=$lt_lt_prog_compiler_wl_GCJ
17841
17842 # Object file suffix (normally "o").
17843 objext="$ac_objext"
17844
17845 # Old archive suffix (normally "a").
17846 libext="$libext"
17847
17848 # Shared library suffix (normally ".so").
17849 shrext_cmds='$shrext_cmds'
17850
17851 # Executable file suffix (normally "").
17852 exeext="$exeext"
17853
17854 # Additional compiler flags for building library objects.
17855 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17856 pic_mode=$pic_mode
17857
17858 # What is the maximum length of a command?
17859 max_cmd_len=$lt_cv_sys_max_cmd_len
17860
17861 # Does compiler simultaneously support -c and -o options?
17862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17863
17864 # Must we lock files when doing compilation?
17865 need_locks=$lt_need_locks
17866
17867 # Do we need the lib prefix for modules?
17868 need_lib_prefix=$need_lib_prefix
17869
17870 # Do we need a version for libraries?
17871 need_version=$need_version
17872
17873 # Whether dlopen is supported.
17874 dlopen_support=$enable_dlopen
17875
17876 # Whether dlopen of programs is supported.
17877 dlopen_self=$enable_dlopen_self
17878
17879 # Whether dlopen of statically linked programs is supported.
17880 dlopen_self_static=$enable_dlopen_self_static
17881
17882 # Compiler flag to prevent dynamic linking.
17883 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17884
17885 # Compiler flag to turn off builtin functions.
17886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17887
17888 # Compiler flag to allow reflexive dlopens.
17889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17890
17891 # Compiler flag to generate shared objects directly from archives.
17892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17893
17894 # Compiler flag to generate thread-safe objects.
17895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17896
17897 # Library versioning type.
17898 version_type=$version_type
17899
17900 # Format of library name prefix.
17901 libname_spec=$lt_libname_spec
17902
17903 # List of archive names. First name is the real one, the rest are links.
17904 # The last name is the one that the linker finds with -lNAME.
17905 library_names_spec=$lt_library_names_spec
17906
17907 # The coded name of the library, if different from the real name.
17908 soname_spec=$lt_soname_spec
17909
17910 # Commands used to build and install an old-style archive.
17911 RANLIB=$lt_RANLIB
17912 old_archive_cmds=$lt_old_archive_cmds_GCJ
17913 old_postinstall_cmds=$lt_old_postinstall_cmds
17914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17915
17916 # Create an old-style archive from a shared archive.
17917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17918
17919 # Create a temporary old-style archive to link instead of a shared archive.
17920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17921
17922 # Commands used to build and install a shared archive.
17923 archive_cmds=$lt_archive_cmds_GCJ
17924 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17925 postinstall_cmds=$lt_postinstall_cmds
17926 postuninstall_cmds=$lt_postuninstall_cmds
17927
17928 # Commands used to build a loadable module (assumed same as above if empty)
17929 module_cmds=$lt_module_cmds_GCJ
17930 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17931
17932 # Commands to strip libraries.
17933 old_striplib=$lt_old_striplib
17934 striplib=$lt_striplib
17935
17936 # Dependencies to place before the objects being linked to create a
17937 # shared library.
17938 predep_objects=$lt_predep_objects_GCJ
17939
17940 # Dependencies to place after the objects being linked to create a
17941 # shared library.
17942 postdep_objects=$lt_postdep_objects_GCJ
17943
17944 # Dependencies to place before the objects being linked to create a
17945 # shared library.
17946 predeps=$lt_predeps_GCJ
17947
17948 # Dependencies to place after the objects being linked to create a
17949 # shared library.
17950 postdeps=$lt_postdeps_GCJ
17951
17952 # The library search path used internally by the compiler when linking
17953 # a shared library.
17954 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17955
17956 # Method to check whether dependent libraries are shared objects.
17957 deplibs_check_method=$lt_deplibs_check_method
17958
17959 # Command to use when deplibs_check_method == file_magic.
17960 file_magic_cmd=$lt_file_magic_cmd
17961
17962 # Flag that allows shared libraries with undefined symbols to be built.
17963 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17964
17965 # Flag that forces no undefined symbols.
17966 no_undefined_flag=$lt_no_undefined_flag_GCJ
17967
17968 # Commands used to finish a libtool library installation in a directory.
17969 finish_cmds=$lt_finish_cmds
17970
17971 # Same as above, but a single script fragment to be evaled but not shown.
17972 finish_eval=$lt_finish_eval
17973
17974 # Take the output of nm and produce a listing of raw symbols and C names.
17975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17976
17977 # Transform the output of nm in a proper C declaration
17978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17979
17980 # Transform the output of nm in a C name address pair
17981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17982
17983 # This is the shared library runtime path variable.
17984 runpath_var=$runpath_var
17985
17986 # This is the shared library path variable.
17987 shlibpath_var=$shlibpath_var
17988
17989 # Is shlibpath searched before the hard-coded library search path?
17990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17991
17992 # How to hardcode a shared library path into an executable.
17993 hardcode_action=$hardcode_action_GCJ
17994
17995 # Whether we should hardcode library paths into libraries.
17996 hardcode_into_libs=$hardcode_into_libs
17997
17998 # Flag to hardcode \$libdir into a binary during linking.
17999 # This must work even if \$libdir does not exist.
18000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18001
18002 # If ld is used when linking, flag to hardcode \$libdir into
18003 # a binary during linking. This must work even if \$libdir does
18004 # not exist.
18005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18006
18007 # Whether we need a single -rpath flag with a separated argument.
18008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18009
18010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18011 # resulting binary.
18012 hardcode_direct=$hardcode_direct_GCJ
18013
18014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18015 # resulting binary.
18016 hardcode_minus_L=$hardcode_minus_L_GCJ
18017
18018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18019 # the resulting binary.
18020 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18021
18022 # Set to yes if building a shared library automatically hardcodes DIR into the library
18023 # and all subsequent libraries and executables linked against it.
18024 hardcode_automatic=$hardcode_automatic_GCJ
18025
18026 # Variables whose values should be saved in libtool wrapper scripts and
18027 # restored at relink time.
18028 variables_saved_for_relink="$variables_saved_for_relink"
18029
18030 # Whether libtool must link a program against all its dependency libraries.
18031 link_all_deplibs=$link_all_deplibs_GCJ
18032
18033 # Compile-time system search path for libraries
18034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18035
18036 # Run-time system search path for libraries
18037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18038
18039 # Fix the shell variable \$srcfile for the compiler.
18040 fix_srcfile_path="$fix_srcfile_path_GCJ"
18041
18042 # Set to yes if exported symbols are required.
18043 always_export_symbols=$always_export_symbols_GCJ
18044
18045 # The commands to list exported symbols.
18046 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18047
18048 # The commands to extract the exported symbol list from a shared archive.
18049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18050
18051 # Symbols that should not be listed in the preloaded symbols.
18052 exclude_expsyms=$lt_exclude_expsyms_GCJ
18053
18054 # Symbols that must always be exported.
18055 include_expsyms=$lt_include_expsyms_GCJ
18056
18057 # ### END LIBTOOL TAG CONFIG: $tagname
18058
18059 __EOF__
18060
18061
18062 else
18063 # If there is no Makefile yet, we rely on a make rule to execute
18064 # `config.status --recheck' to rerun these tests and create the
18065 # libtool script then.
18066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18067 if test -f "$ltmain_in"; then
18068 test -f Makefile && make "$ltmain"
18069 fi
18070 fi
18071
18072
18073 ac_ext=c
18074 ac_cpp='$CPP $CPPFLAGS'
18075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18078
18079 CC="$lt_save_CC"
18080
18081 else
18082 tagname=""
18083 fi
18084 ;;
18085
18086 RC)
18087
18088
18089
18090 # Source file extension for RC test sources.
18091 ac_ext=rc
18092
18093 # Object file extension for compiled RC test sources.
18094 objext=o
18095 objext_RC=$objext
18096
18097 # Code to be used in simple compile tests
18098 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18099
18100 # Code to be used in simple link tests
18101 lt_simple_link_test_code="$lt_simple_compile_test_code"
18102
18103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18104
18105 # If no C compiler was specified, use CC.
18106 LTCC=${LTCC-"$CC"}
18107
18108 # If no C compiler flags were specified, use CFLAGS.
18109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18110
18111 # Allow CC to be a program name with arguments.
18112 compiler=$CC
18113
18114
18115 # save warnings/boilerplate of simple test code
18116 ac_outfile=conftest.$ac_objext
18117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18119 _lt_compiler_boilerplate=`cat conftest.err`
18120 $rm conftest*
18121
18122 ac_outfile=conftest.$ac_objext
18123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18125 _lt_linker_boilerplate=`cat conftest.err`
18126 $rm conftest*
18127
18128
18129 # Allow CC to be a program name with arguments.
18130 lt_save_CC="$CC"
18131 CC=${RC-"windres"}
18132 compiler=$CC
18133 compiler_RC=$CC
18134 for cc_temp in $compiler""; do
18135 case $cc_temp in
18136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18138 \-*) ;;
18139 *) break;;
18140 esac
18141 done
18142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18143
18144 lt_cv_prog_compiler_c_o_RC=yes
18145
18146 # The else clause should only fire when bootstrapping the
18147 # libtool distribution, otherwise you forgot to ship ltmain.sh
18148 # with your package, and you will get complaints that there are
18149 # no rules to generate ltmain.sh.
18150 if test -f "$ltmain"; then
18151 # See if we are running on zsh, and set the options which allow our commands through
18152 # without removal of \ escapes.
18153 if test -n "${ZSH_VERSION+set}" ; then
18154 setopt NO_GLOB_SUBST
18155 fi
18156 # Now quote all the things that may contain metacharacters while being
18157 # careful not to overquote the AC_SUBSTed values. We take copies of the
18158 # variables and quote the copies for generation of the libtool script.
18159 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18160 SED SHELL STRIP \
18161 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18162 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18163 deplibs_check_method reload_flag reload_cmds need_locks \
18164 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18165 lt_cv_sys_global_symbol_to_c_name_address \
18166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18167 old_postinstall_cmds old_postuninstall_cmds \
18168 compiler_RC \
18169 CC_RC \
18170 LD_RC \
18171 lt_prog_compiler_wl_RC \
18172 lt_prog_compiler_pic_RC \
18173 lt_prog_compiler_static_RC \
18174 lt_prog_compiler_no_builtin_flag_RC \
18175 export_dynamic_flag_spec_RC \
18176 thread_safe_flag_spec_RC \
18177 whole_archive_flag_spec_RC \
18178 enable_shared_with_static_runtimes_RC \
18179 old_archive_cmds_RC \
18180 old_archive_from_new_cmds_RC \
18181 predep_objects_RC \
18182 postdep_objects_RC \
18183 predeps_RC \
18184 postdeps_RC \
18185 compiler_lib_search_path_RC \
18186 archive_cmds_RC \
18187 archive_expsym_cmds_RC \
18188 postinstall_cmds_RC \
18189 postuninstall_cmds_RC \
18190 old_archive_from_expsyms_cmds_RC \
18191 allow_undefined_flag_RC \
18192 no_undefined_flag_RC \
18193 export_symbols_cmds_RC \
18194 hardcode_libdir_flag_spec_RC \
18195 hardcode_libdir_flag_spec_ld_RC \
18196 hardcode_libdir_separator_RC \
18197 hardcode_automatic_RC \
18198 module_cmds_RC \
18199 module_expsym_cmds_RC \
18200 lt_cv_prog_compiler_c_o_RC \
18201 exclude_expsyms_RC \
18202 include_expsyms_RC; do
18203
18204 case $var in
18205 old_archive_cmds_RC | \
18206 old_archive_from_new_cmds_RC | \
18207 archive_cmds_RC | \
18208 archive_expsym_cmds_RC | \
18209 module_cmds_RC | \
18210 module_expsym_cmds_RC | \
18211 old_archive_from_expsyms_cmds_RC | \
18212 export_symbols_cmds_RC | \
18213 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18214 postinstall_cmds | postuninstall_cmds | \
18215 old_postinstall_cmds | old_postuninstall_cmds | \
18216 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18217 # Double-quote double-evaled strings.
18218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18219 ;;
18220 *)
18221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18222 ;;
18223 esac
18224 done
18225
18226 case $lt_echo in
18227 *'\$0 --fallback-echo"')
18228 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18229 ;;
18230 esac
18231
18232 cfgfile="$ofile"
18233
18234 cat <<__EOF__ >> "$cfgfile"
18235 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18236
18237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18238
18239 # Shell to use when invoking shell scripts.
18240 SHELL=$lt_SHELL
18241
18242 # Whether or not to build shared libraries.
18243 build_libtool_libs=$enable_shared
18244
18245 # Whether or not to build static libraries.
18246 build_old_libs=$enable_static
18247
18248 # Whether or not to add -lc for building shared libraries.
18249 build_libtool_need_lc=$archive_cmds_need_lc_RC
18250
18251 # Whether or not to disallow shared libs when runtime libs are static
18252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18253
18254 # Whether or not to optimize for fast installation.
18255 fast_install=$enable_fast_install
18256
18257 # The host system.
18258 host_alias=$host_alias
18259 host=$host
18260 host_os=$host_os
18261
18262 # The build system.
18263 build_alias=$build_alias
18264 build=$build
18265 build_os=$build_os
18266
18267 # An echo program that does not interpret backslashes.
18268 echo=$lt_echo
18269
18270 # The archiver.
18271 AR=$lt_AR
18272 AR_FLAGS=$lt_AR_FLAGS
18273
18274 # A C compiler.
18275 LTCC=$lt_LTCC
18276
18277 # LTCC compiler flags.
18278 LTCFLAGS=$lt_LTCFLAGS
18279
18280 # A language-specific compiler.
18281 CC=$lt_compiler_RC
18282
18283 # Is the compiler the GNU C compiler?
18284 with_gcc=$GCC_RC
18285
18286 # An ERE matcher.
18287 EGREP=$lt_EGREP
18288
18289 # The linker used to build libraries.
18290 LD=$lt_LD_RC
18291
18292 # Whether we need hard or soft links.
18293 LN_S=$lt_LN_S
18294
18295 # A BSD-compatible nm program.
18296 NM=$lt_NM
18297
18298 # A symbol stripping program
18299 STRIP=$lt_STRIP
18300
18301 # Used to examine libraries when file_magic_cmd begins "file"
18302 MAGIC_CMD=$MAGIC_CMD
18303
18304 # Used on cygwin: DLL creation program.
18305 DLLTOOL="$DLLTOOL"
18306
18307 # Used on cygwin: object dumper.
18308 OBJDUMP="$OBJDUMP"
18309
18310 # Used on cygwin: assembler.
18311 AS="$AS"
18312
18313 # The name of the directory that contains temporary libtool files.
18314 objdir=$objdir
18315
18316 # How to create reloadable object files.
18317 reload_flag=$lt_reload_flag
18318 reload_cmds=$lt_reload_cmds
18319
18320 # How to pass a linker flag through the compiler.
18321 wl=$lt_lt_prog_compiler_wl_RC
18322
18323 # Object file suffix (normally "o").
18324 objext="$ac_objext"
18325
18326 # Old archive suffix (normally "a").
18327 libext="$libext"
18328
18329 # Shared library suffix (normally ".so").
18330 shrext_cmds='$shrext_cmds'
18331
18332 # Executable file suffix (normally "").
18333 exeext="$exeext"
18334
18335 # Additional compiler flags for building library objects.
18336 pic_flag=$lt_lt_prog_compiler_pic_RC
18337 pic_mode=$pic_mode
18338
18339 # What is the maximum length of a command?
18340 max_cmd_len=$lt_cv_sys_max_cmd_len
18341
18342 # Does compiler simultaneously support -c and -o options?
18343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18344
18345 # Must we lock files when doing compilation?
18346 need_locks=$lt_need_locks
18347
18348 # Do we need the lib prefix for modules?
18349 need_lib_prefix=$need_lib_prefix
18350
18351 # Do we need a version for libraries?
18352 need_version=$need_version
18353
18354 # Whether dlopen is supported.
18355 dlopen_support=$enable_dlopen
18356
18357 # Whether dlopen of programs is supported.
18358 dlopen_self=$enable_dlopen_self
18359
18360 # Whether dlopen of statically linked programs is supported.
18361 dlopen_self_static=$enable_dlopen_self_static
18362
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_RC
18365
18366 # Compiler flag to turn off builtin functions.
18367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18368
18369 # Compiler flag to allow reflexive dlopens.
18370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18371
18372 # Compiler flag to generate shared objects directly from archives.
18373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18374
18375 # Compiler flag to generate thread-safe objects.
18376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18377
18378 # Library versioning type.
18379 version_type=$version_type
18380
18381 # Format of library name prefix.
18382 libname_spec=$lt_libname_spec
18383
18384 # List of archive names. First name is the real one, the rest are links.
18385 # The last name is the one that the linker finds with -lNAME.
18386 library_names_spec=$lt_library_names_spec
18387
18388 # The coded name of the library, if different from the real name.
18389 soname_spec=$lt_soname_spec
18390
18391 # Commands used to build and install an old-style archive.
18392 RANLIB=$lt_RANLIB
18393 old_archive_cmds=$lt_old_archive_cmds_RC
18394 old_postinstall_cmds=$lt_old_postinstall_cmds
18395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18396
18397 # Create an old-style archive from a shared archive.
18398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18399
18400 # Create a temporary old-style archive to link instead of a shared archive.
18401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18402
18403 # Commands used to build and install a shared archive.
18404 archive_cmds=$lt_archive_cmds_RC
18405 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18406 postinstall_cmds=$lt_postinstall_cmds
18407 postuninstall_cmds=$lt_postuninstall_cmds
18408
18409 # Commands used to build a loadable module (assumed same as above if empty)
18410 module_cmds=$lt_module_cmds_RC
18411 module_expsym_cmds=$lt_module_expsym_cmds_RC
18412
18413 # Commands to strip libraries.
18414 old_striplib=$lt_old_striplib
18415 striplib=$lt_striplib
18416
18417 # Dependencies to place before the objects being linked to create a
18418 # shared library.
18419 predep_objects=$lt_predep_objects_RC
18420
18421 # Dependencies to place after the objects being linked to create a
18422 # shared library.
18423 postdep_objects=$lt_postdep_objects_RC
18424
18425 # Dependencies to place before the objects being linked to create a
18426 # shared library.
18427 predeps=$lt_predeps_RC
18428
18429 # Dependencies to place after the objects being linked to create a
18430 # shared library.
18431 postdeps=$lt_postdeps_RC
18432
18433 # The library search path used internally by the compiler when linking
18434 # a shared library.
18435 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18436
18437 # Method to check whether dependent libraries are shared objects.
18438 deplibs_check_method=$lt_deplibs_check_method
18439
18440 # Command to use when deplibs_check_method == file_magic.
18441 file_magic_cmd=$lt_file_magic_cmd
18442
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag_RC
18445
18446 # Flag that forces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag_RC
18448
18449 # Commands used to finish a libtool library installation in a directory.
18450 finish_cmds=$lt_finish_cmds
18451
18452 # Same as above, but a single script fragment to be evaled but not shown.
18453 finish_eval=$lt_finish_eval
18454
18455 # Take the output of nm and produce a listing of raw symbols and C names.
18456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18457
18458 # Transform the output of nm in a proper C declaration
18459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18460
18461 # Transform the output of nm in a C name address pair
18462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18463
18464 # This is the shared library runtime path variable.
18465 runpath_var=$runpath_var
18466
18467 # This is the shared library path variable.
18468 shlibpath_var=$shlibpath_var
18469
18470 # Is shlibpath searched before the hard-coded library search path?
18471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18472
18473 # How to hardcode a shared library path into an executable.
18474 hardcode_action=$hardcode_action_RC
18475
18476 # Whether we should hardcode library paths into libraries.
18477 hardcode_into_libs=$hardcode_into_libs
18478
18479 # Flag to hardcode \$libdir into a binary during linking.
18480 # This must work even if \$libdir does not exist.
18481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18482
18483 # If ld is used when linking, flag to hardcode \$libdir into
18484 # a binary during linking. This must work even if \$libdir does
18485 # not exist.
18486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18487
18488 # Whether we need a single -rpath flag with a separated argument.
18489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18490
18491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_direct=$hardcode_direct_RC
18494
18495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496 # resulting binary.
18497 hardcode_minus_L=$hardcode_minus_L_RC
18498
18499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500 # the resulting binary.
18501 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18502
18503 # Set to yes if building a shared library automatically hardcodes DIR into the library
18504 # and all subsequent libraries and executables linked against it.
18505 hardcode_automatic=$hardcode_automatic_RC
18506
18507 # Variables whose values should be saved in libtool wrapper scripts and
18508 # restored at relink time.
18509 variables_saved_for_relink="$variables_saved_for_relink"
18510
18511 # Whether libtool must link a program against all its dependency libraries.
18512 link_all_deplibs=$link_all_deplibs_RC
18513
18514 # Compile-time system search path for libraries
18515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18516
18517 # Run-time system search path for libraries
18518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18519
18520 # Fix the shell variable \$srcfile for the compiler.
18521 fix_srcfile_path="$fix_srcfile_path_RC"
18522
18523 # Set to yes if exported symbols are required.
18524 always_export_symbols=$always_export_symbols_RC
18525
18526 # The commands to list exported symbols.
18527 export_symbols_cmds=$lt_export_symbols_cmds_RC
18528
18529 # The commands to extract the exported symbol list from a shared archive.
18530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18531
18532 # Symbols that should not be listed in the preloaded symbols.
18533 exclude_expsyms=$lt_exclude_expsyms_RC
18534
18535 # Symbols that must always be exported.
18536 include_expsyms=$lt_include_expsyms_RC
18537
18538 # ### END LIBTOOL TAG CONFIG: $tagname
18539
18540 __EOF__
18541
18542
18543 else
18544 # If there is no Makefile yet, we rely on a make rule to execute
18545 # `config.status --recheck' to rerun these tests and create the
18546 # libtool script then.
18547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548 if test -f "$ltmain_in"; then
18549 test -f Makefile && make "$ltmain"
18550 fi
18551 fi
18552
18553
18554 ac_ext=c
18555 ac_cpp='$CPP $CPPFLAGS'
18556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18559
18560 CC="$lt_save_CC"
18561
18562 ;;
18563
18564 *)
18565 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18566 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18567 { (exit 1); exit 1; }; }
18568 ;;
18569 esac
18570
18571 # Append the new tag name to the list of available tags.
18572 if test -n "$tagname" ; then
18573 available_tags="$available_tags $tagname"
18574 fi
18575 fi
18576 done
18577 IFS="$lt_save_ifs"
18578
18579 # Now substitute the updated list of available tags.
18580 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18581 mv "${ofile}T" "$ofile"
18582 chmod +x "$ofile"
18583 else
18584 rm -f "${ofile}T"
18585 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18586 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18587 { (exit 1); exit 1; }; }
18588 fi
18589 fi
18590
18591
18592
18593 # This can be used to rebuild libtool when needed
18594 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18595
18596 # Always use our own libtool.
18597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18598
18599 # Prevent multiple expansion
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621 # Checks for header files.
18622 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18623 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18624 if test "${ac_cv_header_stdc+set}" = set; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 else
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 #include <stdlib.h>
18634 #include <stdarg.h>
18635 #include <string.h>
18636 #include <float.h>
18637
18638 int
18639 main ()
18640 {
18641
18642 ;
18643 return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_header_stdc=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ac_cv_header_stdc=no
18674 fi
18675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676
18677 if test $ac_cv_header_stdc = yes; then
18678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h. */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 #include <string.h>
18686
18687 _ACEOF
18688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18689 $EGREP "memchr" >/dev/null 2>&1; then
18690 :
18691 else
18692 ac_cv_header_stdc=no
18693 fi
18694 rm -f conftest*
18695
18696 fi
18697
18698 if test $ac_cv_header_stdc = yes; then
18699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 #include <stdlib.h>
18707
18708 _ACEOF
18709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18710 $EGREP "free" >/dev/null 2>&1; then
18711 :
18712 else
18713 ac_cv_header_stdc=no
18714 fi
18715 rm -f conftest*
18716
18717 fi
18718
18719 if test $ac_cv_header_stdc = yes; then
18720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18721 if test "$cross_compiling" = yes; then
18722 :
18723 else
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 #include <ctype.h>
18731 #if ((' ' & 0x0FF) == 0x020)
18732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18734 #else
18735 # define ISLOWER(c) \
18736 (('a' <= (c) && (c) <= 'i') \
18737 || ('j' <= (c) && (c) <= 'r') \
18738 || ('s' <= (c) && (c) <= 'z'))
18739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18740 #endif
18741
18742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18743 int
18744 main ()
18745 {
18746 int i;
18747 for (i = 0; i < 256; i++)
18748 if (XOR (islower (i), ISLOWER (i))
18749 || toupper (i) != TOUPPER (i))
18750 exit(2);
18751 exit (0);
18752 }
18753 _ACEOF
18754 rm -f conftest$ac_exeext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756 (eval $ac_link) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 :
18766 else
18767 echo "$as_me: program exited with status $ac_status" >&5
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ( exit $ac_status )
18772 ac_cv_header_stdc=no
18773 fi
18774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18775 fi
18776 fi
18777 fi
18778 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18779 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18780 if test $ac_cv_header_stdc = yes; then
18781
18782 cat >>confdefs.h <<\_ACEOF
18783 #define STDC_HEADERS 1
18784 _ACEOF
18785
18786 fi
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801 for ac_header in alloca.h ctype.h gmp.h langinfo.h limits.h locale.h math.h stddef.h stdlib.h string.h strings.h unistd.h wchar.h
18802 do
18803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18805 echo "$as_me:$LINENO: checking for $ac_header" >&5
18806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 fi
18810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18812 else
18813 # Is the header compilable?
18814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 $ac_includes_default
18823 #include <$ac_header>
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827 (eval $ac_compile) 2>conftest.er1
18828 ac_status=$?
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
18834 { ac_try='test -z "$ac_c_werror_flag"
18835 || test ! -s conftest.err'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest.$ac_objext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_header_compiler=yes
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851
18852 ac_header_compiler=no
18853 fi
18854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18856 echo "${ECHO_T}$ac_header_compiler" >&6
18857
18858 # Is the header present?
18859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18861 cat >conftest.$ac_ext <<_ACEOF
18862 /* confdefs.h. */
18863 _ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h. */
18867 #include <$ac_header>
18868 _ACEOF
18869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18871 ac_status=$?
18872 grep -v '^ *+' conftest.er1 >conftest.err
18873 rm -f conftest.er1
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } >/dev/null; then
18877 if test -s conftest.err; then
18878 ac_cpp_err=$ac_c_preproc_warn_flag
18879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18880 else
18881 ac_cpp_err=
18882 fi
18883 else
18884 ac_cpp_err=yes
18885 fi
18886 if test -z "$ac_cpp_err"; then
18887 ac_header_preproc=yes
18888 else
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892 ac_header_preproc=no
18893 fi
18894 rm -f conftest.err conftest.$ac_ext
18895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18896 echo "${ECHO_T}$ac_header_preproc" >&6
18897
18898 # So? What about this header?
18899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18900 yes:no: )
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18905 ac_header_preproc=yes
18906 ;;
18907 no:yes:* )
18908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18920 (
18921 cat <<\_ASBOX
18922 ## ------------------------------------- ##
18923 ## Report this to [email protected] ##
18924 ## ------------------------------------- ##
18925 _ASBOX
18926 ) |
18927 sed "s/^/$as_me: WARNING: /" >&2
18928 ;;
18929 esac
18930 echo "$as_me:$LINENO: checking for $ac_header" >&5
18931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935 eval "$as_ac_Header=\$ac_header_preproc"
18936 fi
18937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18939
18940 fi
18941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18942 cat >>confdefs.h <<_ACEOF
18943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18944 _ACEOF
18945
18946 fi
18947
18948 done
18949
18950
18951 # Checks for typedefs, structures, and compiler characteristics.
18952 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18953 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18954 if test "${ac_cv_c_const+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963
18964 int
18965 main ()
18966 {
18967 /* FIXME: Include the comments suggested by Paul. */
18968 #ifndef __cplusplus
18969 /* Ultrix mips cc rejects this. */
18970 typedef int charset[2];
18971 const charset x;
18972 /* SunOS 4.1.1 cc rejects this. */
18973 char const *const *ccp;
18974 char **p;
18975 /* NEC SVR4.0.2 mips cc rejects this. */
18976 struct point {int x, y;};
18977 static struct point const zero = {0,0};
18978 /* AIX XL C 1.02.0.0 rejects this.
18979 It does not let you subtract one const X* pointer from another in
18980 an arm of an if-expression whose if-part is not a constant
18981 expression */
18982 const char *g = "string";
18983 ccp = &g + (g ? g-g : 0);
18984 /* HPUX 7.0 cc rejects these. */
18985 ++ccp;
18986 p = (char**) ccp;
18987 ccp = (char const *const *) p;
18988 { /* SCO 3.2v4 cc rejects this. */
18989 char *t;
18990 char const *s = 0 ? (char *) 0 : (char const *) 0;
18991
18992 *t++ = 0;
18993 }
18994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18995 int x[] = {25, 17};
18996 const int *foo = &x[0];
18997 ++foo;
18998 }
18999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19000 typedef const int *iptr;
19001 iptr p = 0;
19002 ++p;
19003 }
19004 { /* AIX XL C 1.02.0.0 rejects this saying
19005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19006 struct s { int j; const int *ap[3]; };
19007 struct s *b; b->j = 5;
19008 }
19009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19010 const int foo = 10;
19011 }
19012 #endif
19013
19014 ;
19015 return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020 (eval $ac_compile) 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_c_const=yes
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_c_const=no
19046 fi
19047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19048 fi
19049 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19050 echo "${ECHO_T}$ac_cv_c_const" >&6
19051 if test $ac_cv_c_const = no; then
19052
19053 cat >>confdefs.h <<\_ACEOF
19054 #define const
19055 _ACEOF
19056
19057 fi
19058
19059 echo "$as_me:$LINENO: checking for inline" >&5
19060 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19061 if test "${ac_cv_c_inline+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064 ac_cv_c_inline=no
19065 for ac_kw in inline __inline__ __inline; do
19066 cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h. */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 #ifndef __cplusplus
19073 typedef int foo_t;
19074 static $ac_kw foo_t static_foo () {return 0; }
19075 $ac_kw foo_t foo () {return 0; }
19076 #endif
19077
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19081 (eval $ac_compile) 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest.$ac_objext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_c_inline=$ac_kw; break
19102 else
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 fi
19107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19108 done
19109
19110 fi
19111 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19112 echo "${ECHO_T}$ac_cv_c_inline" >&6
19113
19114
19115 case $ac_cv_c_inline in
19116 inline | yes) ;;
19117 *)
19118 case $ac_cv_c_inline in
19119 no) ac_val=;;
19120 *) ac_val=$ac_cv_c_inline;;
19121 esac
19122 cat >>confdefs.h <<_ACEOF
19123 #ifndef __cplusplus
19124 #define inline $ac_val
19125 #endif
19126 _ACEOF
19127 ;;
19128 esac
19129
19130 echo "$as_me:$LINENO: checking for size_t" >&5
19131 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19132 if test "${ac_cv_type_size_t+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 int
19143 main ()
19144 {
19145 if ((size_t *) 0)
19146 return 0;
19147 if (sizeof (size_t))
19148 return 0;
19149 ;
19150 return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19155 (eval $ac_compile) 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -z "$ac_c_werror_flag"
19163 || test ! -s conftest.err'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_type_size_t=yes
19176 else
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180 ac_cv_type_size_t=no
19181 fi
19182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19183 fi
19184 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19185 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19186 if test $ac_cv_type_size_t = yes; then
19187 :
19188 else
19189
19190 cat >>confdefs.h <<_ACEOF
19191 #define size_t unsigned
19192 _ACEOF
19193
19194 fi
19195
19196
19197 # Checks for library functions.
19198 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19199 # for constant arguments. Useless!
19200 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19201 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19202 if test "${ac_cv_working_alloca_h+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <alloca.h>
19212 int
19213 main ()
19214 {
19215 char *p = (char *) alloca (2 * sizeof (int));
19216 ;
19217 return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222 (eval $ac_link) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_working_alloca_h=yes
19243 else
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_cv_working_alloca_h=no
19248 fi
19249 rm -f conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19251 fi
19252 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19254 if test $ac_cv_working_alloca_h = yes; then
19255
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_ALLOCA_H 1
19258 _ACEOF
19259
19260 fi
19261
19262 echo "$as_me:$LINENO: checking for alloca" >&5
19263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19264 if test "${ac_cv_func_alloca_works+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #ifdef __GNUC__
19274 # define alloca __builtin_alloca
19275 #else
19276 # ifdef _MSC_VER
19277 # include <malloc.h>
19278 # define alloca _alloca
19279 # else
19280 # if HAVE_ALLOCA_H
19281 # include <alloca.h>
19282 # else
19283 # ifdef _AIX
19284 #pragma alloca
19285 # else
19286 # ifndef alloca /* predefined by HP cc +Olibcalls */
19287 char *alloca ();
19288 # endif
19289 # endif
19290 # endif
19291 # endif
19292 #endif
19293
19294 int
19295 main ()
19296 {
19297 char *p = (char *) alloca (1);
19298 ;
19299 return 0;
19300 }
19301 _ACEOF
19302 rm -f conftest.$ac_objext conftest$ac_exeext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304 (eval $ac_link) 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_func_alloca_works=yes
19325 else
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329 ac_cv_func_alloca_works=no
19330 fi
19331 rm -f conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19333 fi
19334 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19335 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19336
19337 if test $ac_cv_func_alloca_works = yes; then
19338
19339 cat >>confdefs.h <<\_ACEOF
19340 #define HAVE_ALLOCA 1
19341 _ACEOF
19342
19343 else
19344 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19345 # that cause trouble. Some versions do not even contain alloca or
19346 # contain a buggy version. If you still want to use their alloca,
19347 # use ar to extract alloca.o from them instead of compiling alloca.c.
19348
19349 ALLOCA=alloca.$ac_objext
19350
19351 cat >>confdefs.h <<\_ACEOF
19352 #define C_ALLOCA 1
19353 _ACEOF
19354
19355
19356 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19357 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19358 if test "${ac_cv_os_cray+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361 cat >conftest.$ac_ext <<_ACEOF
19362 /* confdefs.h. */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367 #if defined(CRAY) && ! defined(CRAY2)
19368 webecray
19369 #else
19370 wenotbecray
19371 #endif
19372
19373 _ACEOF
19374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19375 $EGREP "webecray" >/dev/null 2>&1; then
19376 ac_cv_os_cray=yes
19377 else
19378 ac_cv_os_cray=no
19379 fi
19380 rm -f conftest*
19381
19382 fi
19383 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19384 echo "${ECHO_T}$ac_cv_os_cray" >&6
19385 if test $ac_cv_os_cray = yes; then
19386 for ac_func in _getb67 GETB67 getb67; do
19387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19388 echo "$as_me:$LINENO: checking for $ac_func" >&5
19389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19390 if eval "test \"\${$as_ac_var+set}\" = set"; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19401 #define $ac_func innocuous_$ac_func
19402
19403 /* System header to define __stub macros and hopefully few prototypes,
19404 which can conflict with char $ac_func (); below.
19405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19406 <limits.h> exists even on freestanding compilers. */
19407
19408 #ifdef __STDC__
19409 # include <limits.h>
19410 #else
19411 # include <assert.h>
19412 #endif
19413
19414 #undef $ac_func
19415
19416 /* Override any gcc2 internal prototype to avoid an error. */
19417 #ifdef __cplusplus
19418 extern "C"
19419 {
19420 #endif
19421 /* We use char because int might match the return type of a gcc2
19422 builtin and then its argument prototype would still apply. */
19423 char $ac_func ();
19424 /* The GNU C library defines this for functions which it implements
19425 to always fail with ENOSYS. Some functions are actually named
19426 something starting with __ and the normal name is an alias. */
19427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19428 choke me
19429 #else
19430 char (*f) () = $ac_func;
19431 #endif
19432 #ifdef __cplusplus
19433 }
19434 #endif
19435
19436 int
19437 main ()
19438 {
19439 return f != $ac_func;
19440 ;
19441 return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446 (eval $ac_link) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest$ac_exeext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 eval "$as_ac_var=yes"
19467 else
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 eval "$as_ac_var=no"
19472 fi
19473 rm -f conftest.err conftest.$ac_objext \
19474 conftest$ac_exeext conftest.$ac_ext
19475 fi
19476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19478 if test `eval echo '${'$as_ac_var'}'` = yes; then
19479
19480 cat >>confdefs.h <<_ACEOF
19481 #define CRAY_STACKSEG_END $ac_func
19482 _ACEOF
19483
19484 break
19485 fi
19486
19487 done
19488 fi
19489
19490 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19491 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19492 if test "${ac_cv_c_stack_direction+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19494 else
19495 if test "$cross_compiling" = yes; then
19496 ac_cv_c_stack_direction=0
19497 else
19498 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h. */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 int
19505 find_stack_direction ()
19506 {
19507 static char *addr = 0;
19508 auto char dummy;
19509 if (addr == 0)
19510 {
19511 addr = &dummy;
19512 return find_stack_direction ();
19513 }
19514 else
19515 return (&dummy > addr) ? 1 : -1;
19516 }
19517
19518 int
19519 main ()
19520 {
19521 exit (find_stack_direction () < 0);
19522 }
19523 _ACEOF
19524 rm -f conftest$ac_exeext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526 (eval $ac_link) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_c_stack_direction=1
19536 else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541 ( exit $ac_status )
19542 ac_cv_c_stack_direction=-1
19543 fi
19544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19545 fi
19546 fi
19547 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19548 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19549
19550 cat >>confdefs.h <<_ACEOF
19551 #define STACK_DIRECTION $ac_cv_c_stack_direction
19552 _ACEOF
19553
19554
19555 fi
19556
19557
19558 for ac_header in stdlib.h
19559 do
19560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562 echo "$as_me:$LINENO: checking for $ac_header" >&5
19563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 fi
19567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19569 else
19570 # Is the header compilable?
19571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 $ac_includes_default
19580 #include <$ac_header>
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584 (eval $ac_compile) 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_c_werror_flag"
19592 || test ! -s conftest.err'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_header_compiler=yes
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_header_compiler=no
19610 fi
19611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19613 echo "${ECHO_T}$ac_header_compiler" >&6
19614
19615 # Is the header present?
19616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19618 cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h. */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19624 #include <$ac_header>
19625 _ACEOF
19626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } >/dev/null; then
19634 if test -s conftest.err; then
19635 ac_cpp_err=$ac_c_preproc_warn_flag
19636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19637 else
19638 ac_cpp_err=
19639 fi
19640 else
19641 ac_cpp_err=yes
19642 fi
19643 if test -z "$ac_cpp_err"; then
19644 ac_header_preproc=yes
19645 else
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_header_preproc=no
19650 fi
19651 rm -f conftest.err conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653 echo "${ECHO_T}$ac_header_preproc" >&6
19654
19655 # So? What about this header?
19656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19657 yes:no: )
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19662 ac_header_preproc=yes
19663 ;;
19664 no:yes:* )
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19677 (
19678 cat <<\_ASBOX
19679 ## ------------------------------------- ##
19680 ## Report this to [email protected] ##
19681 ## ------------------------------------- ##
19682 _ASBOX
19683 ) |
19684 sed "s/^/$as_me: WARNING: /" >&2
19685 ;;
19686 esac
19687 echo "$as_me:$LINENO: checking for $ac_header" >&5
19688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692 eval "$as_ac_Header=\$ac_header_preproc"
19693 fi
19694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19696
19697 fi
19698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19701 _ACEOF
19702
19703 fi
19704
19705 done
19706
19707 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19708 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19709 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712 if test "$cross_compiling" = yes; then
19713 ac_cv_func_malloc_0_nonnull=no
19714 else
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #if STDC_HEADERS || HAVE_STDLIB_H
19722 # include <stdlib.h>
19723 #else
19724 char *malloc ();
19725 #endif
19726
19727 int
19728 main ()
19729 {
19730 exit (malloc (0) ? 0 : 1);
19731 ;
19732 return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest$ac_exeext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19737 (eval $ac_link) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_cv_func_malloc_0_nonnull=yes
19747 else
19748 echo "$as_me: program exited with status $ac_status" >&5
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752 ( exit $ac_status )
19753 ac_cv_func_malloc_0_nonnull=no
19754 fi
19755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19756 fi
19757 fi
19758 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19759 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19760 if test $ac_cv_func_malloc_0_nonnull = yes; then
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_MALLOC 1
19764 _ACEOF
19765
19766 else
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_MALLOC 0
19769 _ACEOF
19770
19771 case $LIBOBJS in
19772 "malloc.$ac_objext" | \
19773 *" malloc.$ac_objext" | \
19774 "malloc.$ac_objext "* | \
19775 *" malloc.$ac_objext "* ) ;;
19776 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19777 esac
19778
19779
19780 cat >>confdefs.h <<\_ACEOF
19781 #define malloc rpl_malloc
19782 _ACEOF
19783
19784 fi
19785
19786
19787
19788
19789
19790
19791
19792
19793 for ac_func in getopt_long localeconv setlocale strrchr wcschr
19794 do
19795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 echo "$as_me:$LINENO: checking for $ac_func" >&5
19797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19798 if eval "test \"\${$as_ac_var+set}\" = set"; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19809 #define $ac_func innocuous_$ac_func
19810
19811 /* System header to define __stub macros and hopefully few prototypes,
19812 which can conflict with char $ac_func (); below.
19813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19814 <limits.h> exists even on freestanding compilers. */
19815
19816 #ifdef __STDC__
19817 # include <limits.h>
19818 #else
19819 # include <assert.h>
19820 #endif
19821
19822 #undef $ac_func
19823
19824 /* Override any gcc2 internal prototype to avoid an error. */
19825 #ifdef __cplusplus
19826 extern "C"
19827 {
19828 #endif
19829 /* We use char because int might match the return type of a gcc2
19830 builtin and then its argument prototype would still apply. */
19831 char $ac_func ();
19832 /* The GNU C library defines this for functions which it implements
19833 to always fail with ENOSYS. Some functions are actually named
19834 something starting with __ and the normal name is an alias. */
19835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19836 choke me
19837 #else
19838 char (*f) () = $ac_func;
19839 #endif
19840 #ifdef __cplusplus
19841 }
19842 #endif
19843
19844 int
19845 main ()
19846 {
19847 return f != $ac_func;
19848 ;
19849 return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854 (eval $ac_link) 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_c_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest$ac_exeext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 eval "$as_ac_var=yes"
19875 else
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 eval "$as_ac_var=no"
19880 fi
19881 rm -f conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 fi
19884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19886 if test `eval echo '${'$as_ac_var'}'` = yes; then
19887 cat >>confdefs.h <<_ACEOF
19888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19889 _ACEOF
19890
19891 fi
19892 done
19893
19894
19895 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
19896 echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
19897 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900 ac_check_lib_save_LIBS=$LIBS
19901 LIBS="-lgmp $LIBS"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908
19909 /* Override any gcc2 internal prototype to avoid an error. */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 /* We use char because int might match the return type of a gcc2
19914 builtin and then its argument prototype would still apply. */
19915 char __gmpz_init ();
19916 int
19917 main ()
19918 {
19919 __gmpz_init ();
19920 ;
19921 return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926 (eval $ac_link) 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest$ac_exeext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_lib_gmp___gmpz_init=yes
19947 else
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 ac_cv_lib_gmp___gmpz_init=no
19952 fi
19953 rm -f conftest.err conftest.$ac_objext \
19954 conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
19958 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
19959 if test $ac_cv_lib_gmp___gmpz_init = yes; then
19960 cat >>confdefs.h <<_ACEOF
19961 #define HAVE_LIBGMP 1
19962 _ACEOF
19963
19964 LIBS="-lgmp $LIBS"
19965
19966 else
19967 { { echo "$as_me:$LINENO: error: GNU MP not found, see http://swox.com/gmp/" >&5
19968 echo "$as_me: error: GNU MP not found, see http://swox.com/gmp/" >&2;}
19969 { (exit 1); exit 1; }; }
19970 fi
19971
19972
19973 ac_config_files="$ac_config_files Makefile"
19974
19975 cat >confcache <<\_ACEOF
19976 # This file is a shell script that caches the results of configure
19977 # tests run on this system so they can be shared between configure
19978 # scripts and configure runs, see configure's option --config-cache.
19979 # It is not useful on other systems. If it contains results you don't
19980 # want to keep, you may remove or edit it.
19981 #
19982 # config.status only pays attention to the cache file if you give it
19983 # the --recheck option to rerun configure.
19984 #
19985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19987 # following values.
19988
19989 _ACEOF
19990
19991 # The following way of writing the cache mishandles newlines in values,
19992 # but we know of no workaround that is simple, portable, and efficient.
19993 # So, don't put newlines in cache variables' values.
19994 # Ultrix sh set writes to stderr and can't be redirected directly,
19995 # and sets the high bit in the cache file unless we assign to the vars.
19996 {
19997 (set) 2>&1 |
19998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19999 *ac_space=\ *)
20000 # `set' does not quote correctly, so add quotes (double-quote
20001 # substitution turns \\\\ into \\, and sed turns \\ into \).
20002 sed -n \
20003 "s/'/'\\\\''/g;
20004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20005 ;;
20006 *)
20007 # `set' quotes correctly as required by POSIX, so do not add quotes.
20008 sed -n \
20009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20010 ;;
20011 esac;
20012 } |
20013 sed '
20014 t clear
20015 : clear
20016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20017 t end
20018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20019 : end' >>confcache
20020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20021 if test -w $cache_file; then
20022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20023 cat confcache >$cache_file
20024 else
20025 echo "not updating unwritable cache $cache_file"
20026 fi
20027 fi
20028 rm -f confcache
20029
20030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20031 # Let make expand exec_prefix.
20032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20033
20034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20036 # trailing colons and then remove the whole line if VPATH becomes empty
20037 # (actually we leave an empty line to preserve line numbers).
20038 if test "x$srcdir" = x.; then
20039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20040 s/:*\$(srcdir):*/:/;
20041 s/:*\${srcdir}:*/:/;
20042 s/:*@srcdir@:*/:/;
20043 s/^\([^=]*=[ ]*\):*/\1/;
20044 s/:*$//;
20045 s/^[^=]*=[ ]*$//;
20046 }'
20047 fi
20048
20049 DEFS=-DHAVE_CONFIG_H
20050
20051 ac_libobjs=
20052 ac_ltlibobjs=
20053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20054 # 1. Remove the extension, and $U if already installed.
20055 ac_i=`echo "$ac_i" |
20056 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20057 # 2. Add them.
20058 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20059 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20060 done
20061 LIBOBJS=$ac_libobjs
20062
20063 LTLIBOBJS=$ac_ltlibobjs
20064
20065
20066 if test -z "${ALLOCAOK_TRUE}" && test -z "${ALLOCAOK_FALSE}"; then
20067 { { echo "$as_me:$LINENO: error: conditional \"ALLOCAOK\" was never defined.
20068 Usually this means the macro was only invoked conditionally." >&5
20069 echo "$as_me: error: conditional \"ALLOCAOK\" was never defined.
20070 Usually this means the macro was only invoked conditionally." >&2;}
20071 { (exit 1); exit 1; }; }
20072 fi
20073 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20074 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20075 Usually this means the macro was only invoked conditionally." >&5
20076 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20077 Usually this means the macro was only invoked conditionally." >&2;}
20078 { (exit 1); exit 1; }; }
20079 fi
20080 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20081 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20082 Usually this means the macro was only invoked conditionally." >&5
20083 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20084 Usually this means the macro was only invoked conditionally." >&2;}
20085 { (exit 1); exit 1; }; }
20086 fi
20087 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20088 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20089 Usually this means the macro was only invoked conditionally." >&5
20090 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20091 Usually this means the macro was only invoked conditionally." >&2;}
20092 { (exit 1); exit 1; }; }
20093 fi
20094
20095 : ${CONFIG_STATUS=./config.status}
20096 ac_clean_files_save=$ac_clean_files
20097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20098 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20099 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20100 cat >$CONFIG_STATUS <<_ACEOF
20101 #! $SHELL
20102 # Generated by $as_me.
20103 # Run this file to recreate the current configuration.
20104 # Compiler output produced by configure, useful for debugging
20105 # configure, is in config.log if it exists.
20106
20107 debug=false
20108 ac_cs_recheck=false
20109 ac_cs_silent=false
20110 SHELL=\${CONFIG_SHELL-$SHELL}
20111 _ACEOF
20112
20113 cat >>$CONFIG_STATUS <<\_ACEOF
20114 ## --------------------- ##
20115 ## M4sh Initialization. ##
20116 ## --------------------- ##
20117
20118 # Be Bourne compatible
20119 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20120 emulate sh
20121 NULLCMD=:
20122 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20123 # is contrary to our usage. Disable this feature.
20124 alias -g '${1+"$@"}'='"$@"'
20125 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20126 set -o posix
20127 fi
20128 DUALCASE=1; export DUALCASE # for MKS sh
20129
20130 # Support unset when possible.
20131 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20132 as_unset=unset
20133 else
20134 as_unset=false
20135 fi
20136
20137
20138 # Work around bugs in pre-3.0 UWIN ksh.
20139 $as_unset ENV MAIL MAILPATH
20140 PS1='$ '
20141 PS2='> '
20142 PS4='+ '
20143
20144 # NLS nuisances.
20145 for as_var in \
20146 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20147 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20148 LC_TELEPHONE LC_TIME
20149 do
20150 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20151 eval $as_var=C; export $as_var
20152 else
20153 $as_unset $as_var
20154 fi
20155 done
20156
20157 # Required to use basename.
20158 if expr a : '\(a\)' >/dev/null 2>&1; then
20159 as_expr=expr
20160 else
20161 as_expr=false
20162 fi
20163
20164 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20165 as_basename=basename
20166 else
20167 as_basename=false
20168 fi
20169
20170
20171 # Name of the executable.
20172 as_me=`$as_basename "$0" ||
20173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20174 X"$0" : 'X\(//\)$' \| \
20175 X"$0" : 'X\(/\)$' \| \
20176 . : '\(.\)' 2>/dev/null ||
20177 echo X/"$0" |
20178 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20179 /^X\/\(\/\/\)$/{ s//\1/; q; }
20180 /^X\/\(\/\).*/{ s//\1/; q; }
20181 s/.*/./; q'`
20182
20183
20184 # PATH needs CR, and LINENO needs CR and PATH.
20185 # Avoid depending upon Character Ranges.
20186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20189 as_cr_digits='0123456789'
20190 as_cr_alnum=$as_cr_Letters$as_cr_digits
20191
20192 # The user is always right.
20193 if test "${PATH_SEPARATOR+set}" != set; then
20194 echo "#! /bin/sh" >conf$$.sh
20195 echo "exit 0" >>conf$$.sh
20196 chmod +x conf$$.sh
20197 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20198 PATH_SEPARATOR=';'
20199 else
20200 PATH_SEPARATOR=:
20201 fi
20202 rm -f conf$$.sh
20203 fi
20204
20205
20206 as_lineno_1=$LINENO
20207 as_lineno_2=$LINENO
20208 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20209 test "x$as_lineno_1" != "x$as_lineno_2" &&
20210 test "x$as_lineno_3" = "x$as_lineno_2" || {
20211 # Find who we are. Look in the path if we contain no path at all
20212 # relative or not.
20213 case $0 in
20214 *[\\/]* ) as_myself=$0 ;;
20215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216 for as_dir in $PATH
20217 do
20218 IFS=$as_save_IFS
20219 test -z "$as_dir" && as_dir=.
20220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20221 done
20222
20223 ;;
20224 esac
20225 # We did not find ourselves, most probably we were run as `sh COMMAND'
20226 # in which case we are not to be found in the path.
20227 if test "x$as_myself" = x; then
20228 as_myself=$0
20229 fi
20230 if test ! -f "$as_myself"; then
20231 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20232 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20233 { (exit 1); exit 1; }; }
20234 fi
20235 case $CONFIG_SHELL in
20236 '')
20237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20239 do
20240 IFS=$as_save_IFS
20241 test -z "$as_dir" && as_dir=.
20242 for as_base in sh bash ksh sh5; do
20243 case $as_dir in
20244 /*)
20245 if ("$as_dir/$as_base" -c '
20246 as_lineno_1=$LINENO
20247 as_lineno_2=$LINENO
20248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20249 test "x$as_lineno_1" != "x$as_lineno_2" &&
20250 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20251 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20252 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20253 CONFIG_SHELL=$as_dir/$as_base
20254 export CONFIG_SHELL
20255 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20256 fi;;
20257 esac
20258 done
20259 done
20260 ;;
20261 esac
20262
20263 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20264 # uniformly replaced by the line number. The first 'sed' inserts a
20265 # line-number line before each line; the second 'sed' does the real
20266 # work. The second script uses 'N' to pair each line-number line
20267 # with the numbered line, and appends trailing '-' during
20268 # substitution so that $LINENO is not a special case at line end.
20269 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20270 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20271 sed '=' <$as_myself |
20272 sed '
20273 N
20274 s,$,-,
20275 : loop
20276 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20277 t loop
20278 s,-$,,
20279 s,^['$as_cr_digits']*\n,,
20280 ' >$as_me.lineno &&
20281 chmod +x $as_me.lineno ||
20282 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20283 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20284 { (exit 1); exit 1; }; }
20285
20286 # Don't try to exec as it changes $[0], causing all sort of problems
20287 # (the dirname of $[0] is not the place where we might find the
20288 # original and so on. Autoconf is especially sensible to this).
20289 . ./$as_me.lineno
20290 # Exit status is that of the last command.
20291 exit
20292 }
20293
20294
20295 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20296 *c*,-n*) ECHO_N= ECHO_C='
20297 ' ECHO_T=' ' ;;
20298 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20299 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20300 esac
20301
20302 if expr a : '\(a\)' >/dev/null 2>&1; then
20303 as_expr=expr
20304 else
20305 as_expr=false
20306 fi
20307
20308 rm -f conf$$ conf$$.exe conf$$.file
20309 echo >conf$$.file
20310 if ln -s conf$$.file conf$$ 2>/dev/null; then
20311 # We could just check for DJGPP; but this test a) works b) is more generic
20312 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20313 if test -f conf$$.exe; then
20314 # Don't use ln at all; we don't have any links
20315 as_ln_s='cp -p'
20316 else
20317 as_ln_s='ln -s'
20318 fi
20319 elif ln conf$$.file conf$$ 2>/dev/null; then
20320 as_ln_s=ln
20321 else
20322 as_ln_s='cp -p'
20323 fi
20324 rm -f conf$$ conf$$.exe conf$$.file
20325
20326 if mkdir -p . 2>/dev/null; then
20327 as_mkdir_p=:
20328 else
20329 test -d ./-p && rmdir ./-p
20330 as_mkdir_p=false
20331 fi
20332
20333 as_executable_p="test -f"
20334
20335 # Sed expression to map a string onto a valid CPP name.
20336 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20337
20338 # Sed expression to map a string onto a valid variable name.
20339 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20340
20341
20342 # IFS
20343 # We need space, tab and new line, in precisely that order.
20344 as_nl='
20345 '
20346 IFS=" $as_nl"
20347
20348 # CDPATH.
20349 $as_unset CDPATH
20350
20351 exec 6>&1
20352
20353 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20354 # report actual input values of CONFIG_FILES etc. instead of their
20355 # values after options handling. Logging --version etc. is OK.
20356 exec 5>>config.log
20357 {
20358 echo
20359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20360 ## Running $as_me. ##
20361 _ASBOX
20362 } >&5
20363 cat >&5 <<_CSEOF
20364
20365 This file was extended by libuninum $as_me 2.7, which was
20366 generated by GNU Autoconf 2.59. Invocation command line was
20367
20368 CONFIG_FILES = $CONFIG_FILES
20369 CONFIG_HEADERS = $CONFIG_HEADERS
20370 CONFIG_LINKS = $CONFIG_LINKS
20371 CONFIG_COMMANDS = $CONFIG_COMMANDS
20372 $ $0 $@
20373
20374 _CSEOF
20375 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20376 echo >&5
20377 _ACEOF
20378
20379 # Files that config.status was made for.
20380 if test -n "$ac_config_files"; then
20381 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20382 fi
20383
20384 if test -n "$ac_config_headers"; then
20385 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20386 fi
20387
20388 if test -n "$ac_config_links"; then
20389 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20390 fi
20391
20392 if test -n "$ac_config_commands"; then
20393 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20394 fi
20395
20396 cat >>$CONFIG_STATUS <<\_ACEOF
20397
20398 ac_cs_usage="\
20399 \`$as_me' instantiates files from templates according to the
20400 current configuration.
20401
20402 Usage: $0 [OPTIONS] [FILE]...
20403
20404 -h, --help print this help, then exit
20405 -V, --version print version number, then exit
20406 -q, --quiet do not print progress messages
20407 -d, --debug don't remove temporary files
20408 --recheck update $as_me by reconfiguring in the same conditions
20409 --file=FILE[:TEMPLATE]
20410 instantiate the configuration file FILE
20411 --header=FILE[:TEMPLATE]
20412 instantiate the configuration header FILE
20413
20414 Configuration files:
20415 $config_files
20416
20417 Configuration headers:
20418 $config_headers
20419
20420 Configuration commands:
20421 $config_commands
20422
20423 Report bugs to <[email protected]>."
20424 _ACEOF
20425
20426 cat >>$CONFIG_STATUS <<_ACEOF
20427 ac_cs_version="\\
20428 libuninum config.status 2.7
20429 configured by $0, generated by GNU Autoconf 2.59,
20430 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20431
20432 Copyright (C) 2003 Free Software Foundation, Inc.
20433 This config.status script is free software; the Free Software Foundation
20434 gives unlimited permission to copy, distribute and modify it."
20435 srcdir=$srcdir
20436 INSTALL="$INSTALL"
20437 _ACEOF
20438
20439 cat >>$CONFIG_STATUS <<\_ACEOF
20440 # If no file are specified by the user, then we need to provide default
20441 # value. By we need to know if files were specified by the user.
20442 ac_need_defaults=:
20443 while test $# != 0
20444 do
20445 case $1 in
20446 --*=*)
20447 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20448 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20449 ac_shift=:
20450 ;;
20451 -*)
20452 ac_option=$1
20453 ac_optarg=$2
20454 ac_shift=shift
20455 ;;
20456 *) # This is not an option, so the user has probably given explicit
20457 # arguments.
20458 ac_option=$1
20459 ac_need_defaults=false;;
20460 esac
20461
20462 case $ac_option in
20463 # Handling of the options.
20464 _ACEOF
20465 cat >>$CONFIG_STATUS <<\_ACEOF
20466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20467 ac_cs_recheck=: ;;
20468 --version | --vers* | -V )
20469 echo "$ac_cs_version"; exit 0 ;;
20470 --he | --h)
20471 # Conflict between --help and --header
20472 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20473 Try \`$0 --help' for more information." >&5
20474 echo "$as_me: error: ambiguous option: $1
20475 Try \`$0 --help' for more information." >&2;}
20476 { (exit 1); exit 1; }; };;
20477 --help | --hel | -h )
20478 echo "$ac_cs_usage"; exit 0 ;;
20479 --debug | --d* | -d )
20480 debug=: ;;
20481 --file | --fil | --fi | --f )
20482 $ac_shift
20483 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20484 ac_need_defaults=false;;
20485 --header | --heade | --head | --hea )
20486 $ac_shift
20487 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20488 ac_need_defaults=false;;
20489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20491 ac_cs_silent=: ;;
20492
20493 # This is an error.
20494 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20495 Try \`$0 --help' for more information." >&5
20496 echo "$as_me: error: unrecognized option: $1
20497 Try \`$0 --help' for more information." >&2;}
20498 { (exit 1); exit 1; }; } ;;
20499
20500 *) ac_config_targets="$ac_config_targets $1" ;;
20501
20502 esac
20503 shift
20504 done
20505
20506 ac_configure_extra_args=
20507
20508 if $ac_cs_silent; then
20509 exec 6>/dev/null
20510 ac_configure_extra_args="$ac_configure_extra_args --silent"
20511 fi
20512
20513 _ACEOF
20514 cat >>$CONFIG_STATUS <<_ACEOF
20515 if \$ac_cs_recheck; then
20516 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20517 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20518 fi
20519
20520 _ACEOF
20521
20522 cat >>$CONFIG_STATUS <<_ACEOF
20523 #
20524 # INIT-COMMANDS section.
20525 #
20526
20527 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20528
20529 _ACEOF
20530
20531
20532
20533 cat >>$CONFIG_STATUS <<\_ACEOF
20534 for ac_config_target in $ac_config_targets
20535 do
20536 case "$ac_config_target" in
20537 # Handling of arguments.
20538 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20539 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20540 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20541 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20542 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20543 { (exit 1); exit 1; }; };;
20544 esac
20545 done
20546
20547 # If the user did not use the arguments to specify the items to instantiate,
20548 # then the envvar interface is used. Set only those that are not.
20549 # We use the long form for the default assignment because of an extremely
20550 # bizarre bug on SunOS 4.1.3.
20551 if $ac_need_defaults; then
20552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20555 fi
20556
20557 # Have a temporary directory for convenience. Make it in the build tree
20558 # simply because there is no reason to put it here, and in addition,
20559 # creating and moving files from /tmp can sometimes cause problems.
20560 # Create a temporary directory, and hook for its removal unless debugging.
20561 $debug ||
20562 {
20563 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20564 trap '{ (exit 1); exit 1; }' 1 2 13 15
20565 }
20566
20567 # Create a (secure) tmp directory for tmp files.
20568
20569 {
20570 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20571 test -n "$tmp" && test -d "$tmp"
20572 } ||
20573 {
20574 tmp=./confstat$$-$RANDOM
20575 (umask 077 && mkdir $tmp)
20576 } ||
20577 {
20578 echo "$me: cannot create a temporary directory in ." >&2
20579 { (exit 1); exit 1; }
20580 }
20581
20582 _ACEOF
20583
20584 cat >>$CONFIG_STATUS <<_ACEOF
20585
20586 #
20587 # CONFIG_FILES section.
20588 #
20589
20590 # No need to generate the scripts if there are no CONFIG_FILES.
20591 # This happens for instance when ./config.status config.h
20592 if test -n "\$CONFIG_FILES"; then
20593 # Protect against being on the right side of a sed subst in config.status.
20594 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20595 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20596 s,@SHELL@,$SHELL,;t t
20597 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20598 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20599 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20600 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20601 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20602 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20603 s,@exec_prefix@,$exec_prefix,;t t
20604 s,@prefix@,$prefix,;t t
20605 s,@program_transform_name@,$program_transform_name,;t t
20606 s,@bindir@,$bindir,;t t
20607 s,@sbindir@,$sbindir,;t t
20608 s,@libexecdir@,$libexecdir,;t t
20609 s,@datadir@,$datadir,;t t
20610 s,@sysconfdir@,$sysconfdir,;t t
20611 s,@sharedstatedir@,$sharedstatedir,;t t
20612 s,@localstatedir@,$localstatedir,;t t
20613 s,@libdir@,$libdir,;t t
20614 s,@includedir@,$includedir,;t t
20615 s,@oldincludedir@,$oldincludedir,;t t
20616 s,@infodir@,$infodir,;t t
20617 s,@mandir@,$mandir,;t t
20618 s,@build_alias@,$build_alias,;t t
20619 s,@host_alias@,$host_alias,;t t
20620 s,@target_alias@,$target_alias,;t t
20621 s,@DEFS@,$DEFS,;t t
20622 s,@ECHO_C@,$ECHO_C,;t t
20623 s,@ECHO_N@,$ECHO_N,;t t
20624 s,@ECHO_T@,$ECHO_T,;t t
20625 s,@LIBS@,$LIBS,;t t
20626 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20627 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20628 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20629 s,@CYGPATH_W@,$CYGPATH_W,;t t
20630 s,@PACKAGE@,$PACKAGE,;t t
20631 s,@VERSION@,$VERSION,;t t
20632 s,@ACLOCAL@,$ACLOCAL,;t t
20633 s,@AUTOCONF@,$AUTOCONF,;t t
20634 s,@AUTOMAKE@,$AUTOMAKE,;t t
20635 s,@AUTOHEADER@,$AUTOHEADER,;t t
20636 s,@MAKEINFO@,$MAKEINFO,;t t
20637 s,@install_sh@,$install_sh,;t t
20638 s,@STRIP@,$STRIP,;t t
20639 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20640 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20641 s,@mkdir_p@,$mkdir_p,;t t
20642 s,@AWK@,$AWK,;t t
20643 s,@SET_MAKE@,$SET_MAKE,;t t
20644 s,@am__leading_dot@,$am__leading_dot,;t t
20645 s,@AMTAR@,$AMTAR,;t t
20646 s,@am__tar@,$am__tar,;t t
20647 s,@am__untar@,$am__untar,;t t
20648 s,@ALLOCAOK_TRUE@,$ALLOCAOK_TRUE,;t t
20649 s,@ALLOCAOK_FALSE@,$ALLOCAOK_FALSE,;t t
20650 s,@CC@,$CC,;t t
20651 s,@CFLAGS@,$CFLAGS,;t t
20652 s,@LDFLAGS@,$LDFLAGS,;t t
20653 s,@CPPFLAGS@,$CPPFLAGS,;t t
20654 s,@ac_ct_CC@,$ac_ct_CC,;t t
20655 s,@EXEEXT@,$EXEEXT,;t t
20656 s,@OBJEXT@,$OBJEXT,;t t
20657 s,@DEPDIR@,$DEPDIR,;t t
20658 s,@am__include@,$am__include,;t t
20659 s,@am__quote@,$am__quote,;t t
20660 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20661 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20662 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20663 s,@CCDEPMODE@,$CCDEPMODE,;t t
20664 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20665 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20666 s,@build@,$build,;t t
20667 s,@build_cpu@,$build_cpu,;t t
20668 s,@build_vendor@,$build_vendor,;t t
20669 s,@build_os@,$build_os,;t t
20670 s,@host@,$host,;t t
20671 s,@host_cpu@,$host_cpu,;t t
20672 s,@host_vendor@,$host_vendor,;t t
20673 s,@host_os@,$host_os,;t t
20674 s,@EGREP@,$EGREP,;t t
20675 s,@LN_S@,$LN_S,;t t
20676 s,@ECHO@,$ECHO,;t t
20677 s,@AR@,$AR,;t t
20678 s,@ac_ct_AR@,$ac_ct_AR,;t t
20679 s,@RANLIB@,$RANLIB,;t t
20680 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20681 s,@CPP@,$CPP,;t t
20682 s,@CXX@,$CXX,;t t
20683 s,@CXXFLAGS@,$CXXFLAGS,;t t
20684 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20685 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20686 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20687 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20688 s,@CXXCPP@,$CXXCPP,;t t
20689 s,@F77@,$F77,;t t
20690 s,@FFLAGS@,$FFLAGS,;t t
20691 s,@ac_ct_F77@,$ac_ct_F77,;t t
20692 s,@LIBTOOL@,$LIBTOOL,;t t
20693 s,@ALLOCA@,$ALLOCA,;t t
20694 s,@LIBOBJS@,$LIBOBJS,;t t
20695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20696 CEOF
20697
20698 _ACEOF
20699
20700 cat >>$CONFIG_STATUS <<\_ACEOF
20701 # Split the substitutions into bite-sized pieces for seds with
20702 # small command number limits, like on Digital OSF/1 and HP-UX.
20703 ac_max_sed_lines=48
20704 ac_sed_frag=1 # Number of current file.
20705 ac_beg=1 # First line for current file.
20706 ac_end=$ac_max_sed_lines # Line after last line for current file.
20707 ac_more_lines=:
20708 ac_sed_cmds=
20709 while $ac_more_lines; do
20710 if test $ac_beg -gt 1; then
20711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20712 else
20713 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20714 fi
20715 if test ! -s $tmp/subs.frag; then
20716 ac_more_lines=false
20717 else
20718 # The purpose of the label and of the branching condition is to
20719 # speed up the sed processing (if there are no `@' at all, there
20720 # is no need to browse any of the substitutions).
20721 # These are the two extra sed commands mentioned above.
20722 (echo ':t
20723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20724 if test -z "$ac_sed_cmds"; then
20725 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20726 else
20727 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20728 fi
20729 ac_sed_frag=`expr $ac_sed_frag + 1`
20730 ac_beg=$ac_end
20731 ac_end=`expr $ac_end + $ac_max_sed_lines`
20732 fi
20733 done
20734 if test -z "$ac_sed_cmds"; then
20735 ac_sed_cmds=cat
20736 fi
20737 fi # test -n "$CONFIG_FILES"
20738
20739 _ACEOF
20740 cat >>$CONFIG_STATUS <<\_ACEOF
20741 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20743 case $ac_file in
20744 - | *:- | *:-:* ) # input from stdin
20745 cat >$tmp/stdin
20746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20750 * ) ac_file_in=$ac_file.in ;;
20751 esac
20752
20753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20756 X"$ac_file" : 'X\(//\)[^/]' \| \
20757 X"$ac_file" : 'X\(//\)$' \| \
20758 X"$ac_file" : 'X\(/\)' \| \
20759 . : '\(.\)' 2>/dev/null ||
20760 echo X"$ac_file" |
20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20763 /^X\(\/\/\)$/{ s//\1/; q; }
20764 /^X\(\/\).*/{ s//\1/; q; }
20765 s/.*/./; q'`
20766 { if $as_mkdir_p; then
20767 mkdir -p "$ac_dir"
20768 else
20769 as_dir="$ac_dir"
20770 as_dirs=
20771 while test ! -d "$as_dir"; do
20772 as_dirs="$as_dir $as_dirs"
20773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20775 X"$as_dir" : 'X\(//\)[^/]' \| \
20776 X"$as_dir" : 'X\(//\)$' \| \
20777 X"$as_dir" : 'X\(/\)' \| \
20778 . : '\(.\)' 2>/dev/null ||
20779 echo X"$as_dir" |
20780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20782 /^X\(\/\/\)$/{ s//\1/; q; }
20783 /^X\(\/\).*/{ s//\1/; q; }
20784 s/.*/./; q'`
20785 done
20786 test ! -n "$as_dirs" || mkdir $as_dirs
20787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20789 { (exit 1); exit 1; }; }; }
20790
20791 ac_builddir=.
20792
20793 if test "$ac_dir" != .; then
20794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20795 # A "../" for each directory in $ac_dir_suffix.
20796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20797 else
20798 ac_dir_suffix= ac_top_builddir=
20799 fi
20800
20801 case $srcdir in
20802 .) # No --srcdir option. We are building in place.
20803 ac_srcdir=.
20804 if test -z "$ac_top_builddir"; then
20805 ac_top_srcdir=.
20806 else
20807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20808 fi ;;
20809 [\\/]* | ?:[\\/]* ) # Absolute path.
20810 ac_srcdir=$srcdir$ac_dir_suffix;
20811 ac_top_srcdir=$srcdir ;;
20812 *) # Relative path.
20813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20815 esac
20816
20817 # Do not use `cd foo && pwd` to compute absolute paths, because
20818 # the directories may not exist.
20819 case `pwd` in
20820 .) ac_abs_builddir="$ac_dir";;
20821 *)
20822 case "$ac_dir" in
20823 .) ac_abs_builddir=`pwd`;;
20824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20825 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20826 esac;;
20827 esac
20828 case $ac_abs_builddir in
20829 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20830 *)
20831 case ${ac_top_builddir}. in
20832 .) ac_abs_top_builddir=$ac_abs_builddir;;
20833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20835 esac;;
20836 esac
20837 case $ac_abs_builddir in
20838 .) ac_abs_srcdir=$ac_srcdir;;
20839 *)
20840 case $ac_srcdir in
20841 .) ac_abs_srcdir=$ac_abs_builddir;;
20842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20844 esac;;
20845 esac
20846 case $ac_abs_builddir in
20847 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20848 *)
20849 case $ac_top_srcdir in
20850 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20853 esac;;
20854 esac
20855
20856
20857 case $INSTALL in
20858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20859 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20860 esac
20861
20862 if test x"$ac_file" != x-; then
20863 { echo "$as_me:$LINENO: creating $ac_file" >&5
20864 echo "$as_me: creating $ac_file" >&6;}
20865 rm -f "$ac_file"
20866 fi
20867 # Let's still pretend it is `configure' which instantiates (i.e., don't
20868 # use $as_me), people would be surprised to read:
20869 # /* config.h. Generated by config.status. */
20870 if test x"$ac_file" = x-; then
20871 configure_input=
20872 else
20873 configure_input="$ac_file. "
20874 fi
20875 configure_input=$configure_input"Generated from `echo $ac_file_in |
20876 sed 's,.*/,,'` by configure."
20877
20878 # First look for the input files in the build tree, otherwise in the
20879 # src tree.
20880 ac_file_inputs=`IFS=:
20881 for f in $ac_file_in; do
20882 case $f in
20883 -) echo $tmp/stdin ;;
20884 [\\/$]*)
20885 # Absolute (can't be DOS-style, as IFS=:)
20886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20887 echo "$as_me: error: cannot find input file: $f" >&2;}
20888 { (exit 1); exit 1; }; }
20889 echo "$f";;
20890 *) # Relative
20891 if test -f "$f"; then
20892 # Build tree
20893 echo "$f"
20894 elif test -f "$srcdir/$f"; then
20895 # Source tree
20896 echo "$srcdir/$f"
20897 else
20898 # /dev/null tree
20899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20900 echo "$as_me: error: cannot find input file: $f" >&2;}
20901 { (exit 1); exit 1; }; }
20902 fi;;
20903 esac
20904 done` || { (exit 1); exit 1; }
20905 _ACEOF
20906 cat >>$CONFIG_STATUS <<_ACEOF
20907 sed "$ac_vpsub
20908 $extrasub
20909 _ACEOF
20910 cat >>$CONFIG_STATUS <<\_ACEOF
20911 :t
20912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20913 s,@configure_input@,$configure_input,;t t
20914 s,@srcdir@,$ac_srcdir,;t t
20915 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20916 s,@top_srcdir@,$ac_top_srcdir,;t t
20917 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20918 s,@builddir@,$ac_builddir,;t t
20919 s,@abs_builddir@,$ac_abs_builddir,;t t
20920 s,@top_builddir@,$ac_top_builddir,;t t
20921 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20922 s,@INSTALL@,$ac_INSTALL,;t t
20923 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20924 rm -f $tmp/stdin
20925 if test x"$ac_file" != x-; then
20926 mv $tmp/out $ac_file
20927 else
20928 cat $tmp/out
20929 rm -f $tmp/out
20930 fi
20931
20932 done
20933 _ACEOF
20934 cat >>$CONFIG_STATUS <<\_ACEOF
20935
20936 #
20937 # CONFIG_HEADER section.
20938 #
20939
20940 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20941 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20942 #
20943 # ac_d sets the value in "#define NAME VALUE" lines.
20944 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20945 ac_dB='[ ].*$,\1#\2'
20946 ac_dC=' '
20947 ac_dD=',;t'
20948 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20949 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20950 ac_uB='$,\1#\2define\3'
20951 ac_uC=' '
20952 ac_uD=',;t'
20953
20954 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20956 case $ac_file in
20957 - | *:- | *:-:* ) # input from stdin
20958 cat >$tmp/stdin
20959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20963 * ) ac_file_in=$ac_file.in ;;
20964 esac
20965
20966 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20967 echo "$as_me: creating $ac_file" >&6;}
20968
20969 # First look for the input files in the build tree, otherwise in the
20970 # src tree.
20971 ac_file_inputs=`IFS=:
20972 for f in $ac_file_in; do
20973 case $f in
20974 -) echo $tmp/stdin ;;
20975 [\\/$]*)
20976 # Absolute (can't be DOS-style, as IFS=:)
20977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20978 echo "$as_me: error: cannot find input file: $f" >&2;}
20979 { (exit 1); exit 1; }; }
20980 # Do quote $f, to prevent DOS paths from being IFS'd.
20981 echo "$f";;
20982 *) # Relative
20983 if test -f "$f"; then
20984 # Build tree
20985 echo "$f"
20986 elif test -f "$srcdir/$f"; then
20987 # Source tree
20988 echo "$srcdir/$f"
20989 else
20990 # /dev/null tree
20991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20992 echo "$as_me: error: cannot find input file: $f" >&2;}
20993 { (exit 1); exit 1; }; }
20994 fi;;
20995 esac
20996 done` || { (exit 1); exit 1; }
20997 # Remove the trailing spaces.
20998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20999
21000 _ACEOF
21001
21002 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21003 # `conftest.undefs', that substitutes the proper values into
21004 # config.h.in to produce config.h. The first handles `#define'
21005 # templates, and the second `#undef' templates.
21006 # And first: Protect against being on the right side of a sed subst in
21007 # config.status. Protect against being in an unquoted here document
21008 # in config.status.
21009 rm -f conftest.defines conftest.undefs
21010 # Using a here document instead of a string reduces the quoting nightmare.
21011 # Putting comments in sed scripts is not portable.
21012 #
21013 # `end' is used to avoid that the second main sed command (meant for
21014 # 0-ary CPP macros) applies to n-ary macro definitions.
21015 # See the Autoconf documentation for `clear'.
21016 cat >confdef2sed.sed <<\_ACEOF
21017 s/[\\&,]/\\&/g
21018 s,[\\$`],\\&,g
21019 t clear
21020 : clear
21021 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21022 t end
21023 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21024 : end
21025 _ACEOF
21026 # If some macros were called several times there might be several times
21027 # the same #defines, which is useless. Nevertheless, we may not want to
21028 # sort them, since we want the *last* AC-DEFINE to be honored.
21029 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21030 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21031 rm -f confdef2sed.sed
21032
21033 # This sed command replaces #undef with comments. This is necessary, for
21034 # example, in the case of _POSIX_SOURCE, which is predefined and required
21035 # on some systems where configure will not decide to define it.
21036 cat >>conftest.undefs <<\_ACEOF
21037 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21038 _ACEOF
21039
21040 # Break up conftest.defines because some shells have a limit on the size
21041 # of here documents, and old seds have small limits too (100 cmds).
21042 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21043 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21044 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21045 echo ' :' >>$CONFIG_STATUS
21046 rm -f conftest.tail
21047 while grep . conftest.defines >/dev/null
21048 do
21049 # Write a limited-size here document to $tmp/defines.sed.
21050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21051 # Speed up: don't consider the non `#define' lines.
21052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21053 # Work around the forget-to-reset-the-flag bug.
21054 echo 't clr' >>$CONFIG_STATUS
21055 echo ': clr' >>$CONFIG_STATUS
21056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21057 echo 'CEOF
21058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21059 rm -f $tmp/in
21060 mv $tmp/out $tmp/in
21061 ' >>$CONFIG_STATUS
21062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21063 rm -f conftest.defines
21064 mv conftest.tail conftest.defines
21065 done
21066 rm -f conftest.defines
21067 echo ' fi # grep' >>$CONFIG_STATUS
21068 echo >>$CONFIG_STATUS
21069
21070 # Break up conftest.undefs because some shells have a limit on the size
21071 # of here documents, and old seds have small limits too (100 cmds).
21072 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21073 rm -f conftest.tail
21074 while grep . conftest.undefs >/dev/null
21075 do
21076 # Write a limited-size here document to $tmp/undefs.sed.
21077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21078 # Speed up: don't consider the non `#undef'
21079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21080 # Work around the forget-to-reset-the-flag bug.
21081 echo 't clr' >>$CONFIG_STATUS
21082 echo ': clr' >>$CONFIG_STATUS
21083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21084 echo 'CEOF
21085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21086 rm -f $tmp/in
21087 mv $tmp/out $tmp/in
21088 ' >>$CONFIG_STATUS
21089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21090 rm -f conftest.undefs
21091 mv conftest.tail conftest.undefs
21092 done
21093 rm -f conftest.undefs
21094
21095 cat >>$CONFIG_STATUS <<\_ACEOF
21096 # Let's still pretend it is `configure' which instantiates (i.e., don't
21097 # use $as_me), people would be surprised to read:
21098 # /* config.h. Generated by config.status. */
21099 if test x"$ac_file" = x-; then
21100 echo "/* Generated by configure. */" >$tmp/config.h
21101 else
21102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21103 fi
21104 cat $tmp/in >>$tmp/config.h
21105 rm -f $tmp/in
21106 if test x"$ac_file" != x-; then
21107 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21109 echo "$as_me: $ac_file is unchanged" >&6;}
21110 else
21111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21113 X"$ac_file" : 'X\(//\)[^/]' \| \
21114 X"$ac_file" : 'X\(//\)$' \| \
21115 X"$ac_file" : 'X\(/\)' \| \
21116 . : '\(.\)' 2>/dev/null ||
21117 echo X"$ac_file" |
21118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21120 /^X\(\/\/\)$/{ s//\1/; q; }
21121 /^X\(\/\).*/{ s//\1/; q; }
21122 s/.*/./; q'`
21123 { if $as_mkdir_p; then
21124 mkdir -p "$ac_dir"
21125 else
21126 as_dir="$ac_dir"
21127 as_dirs=
21128 while test ! -d "$as_dir"; do
21129 as_dirs="$as_dir $as_dirs"
21130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21132 X"$as_dir" : 'X\(//\)[^/]' \| \
21133 X"$as_dir" : 'X\(//\)$' \| \
21134 X"$as_dir" : 'X\(/\)' \| \
21135 . : '\(.\)' 2>/dev/null ||
21136 echo X"$as_dir" |
21137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21139 /^X\(\/\/\)$/{ s//\1/; q; }
21140 /^X\(\/\).*/{ s//\1/; q; }
21141 s/.*/./; q'`
21142 done
21143 test ! -n "$as_dirs" || mkdir $as_dirs
21144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21146 { (exit 1); exit 1; }; }; }
21147
21148 rm -f $ac_file
21149 mv $tmp/config.h $ac_file
21150 fi
21151 else
21152 cat $tmp/config.h
21153 rm -f $tmp/config.h
21154 fi
21155 # Compute $ac_file's index in $config_headers.
21156 _am_stamp_count=1
21157 for _am_header in $config_headers :; do
21158 case $_am_header in
21159 $ac_file | $ac_file:* )
21160 break ;;
21161 * )
21162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21163 esac
21164 done
21165 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21166 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21167 X$ac_file : 'X\(//\)[^/]' \| \
21168 X$ac_file : 'X\(//\)$' \| \
21169 X$ac_file : 'X\(/\)' \| \
21170 . : '\(.\)' 2>/dev/null ||
21171 echo X$ac_file |
21172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21174 /^X\(\/\/\)$/{ s//\1/; q; }
21175 /^X\(\/\).*/{ s//\1/; q; }
21176 s/.*/./; q'`/stamp-h$_am_stamp_count
21177 done
21178 _ACEOF
21179 cat >>$CONFIG_STATUS <<\_ACEOF
21180
21181 #
21182 # CONFIG_COMMANDS section.
21183 #
21184 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21185 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21186 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21187 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21188 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21189 X"$ac_dest" : 'X\(//\)[^/]' \| \
21190 X"$ac_dest" : 'X\(//\)$' \| \
21191 X"$ac_dest" : 'X\(/\)' \| \
21192 . : '\(.\)' 2>/dev/null ||
21193 echo X"$ac_dest" |
21194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21196 /^X\(\/\/\)$/{ s//\1/; q; }
21197 /^X\(\/\).*/{ s//\1/; q; }
21198 s/.*/./; q'`
21199 { if $as_mkdir_p; then
21200 mkdir -p "$ac_dir"
21201 else
21202 as_dir="$ac_dir"
21203 as_dirs=
21204 while test ! -d "$as_dir"; do
21205 as_dirs="$as_dir $as_dirs"
21206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21208 X"$as_dir" : 'X\(//\)[^/]' \| \
21209 X"$as_dir" : 'X\(//\)$' \| \
21210 X"$as_dir" : 'X\(/\)' \| \
21211 . : '\(.\)' 2>/dev/null ||
21212 echo X"$as_dir" |
21213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21215 /^X\(\/\/\)$/{ s//\1/; q; }
21216 /^X\(\/\).*/{ s//\1/; q; }
21217 s/.*/./; q'`
21218 done
21219 test ! -n "$as_dirs" || mkdir $as_dirs
21220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21222 { (exit 1); exit 1; }; }; }
21223
21224 ac_builddir=.
21225
21226 if test "$ac_dir" != .; then
21227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21228 # A "../" for each directory in $ac_dir_suffix.
21229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21230 else
21231 ac_dir_suffix= ac_top_builddir=
21232 fi
21233
21234 case $srcdir in
21235 .) # No --srcdir option. We are building in place.
21236 ac_srcdir=.
21237 if test -z "$ac_top_builddir"; then
21238 ac_top_srcdir=.
21239 else
21240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21241 fi ;;
21242 [\\/]* | ?:[\\/]* ) # Absolute path.
21243 ac_srcdir=$srcdir$ac_dir_suffix;
21244 ac_top_srcdir=$srcdir ;;
21245 *) # Relative path.
21246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21248 esac
21249
21250 # Do not use `cd foo && pwd` to compute absolute paths, because
21251 # the directories may not exist.
21252 case `pwd` in
21253 .) ac_abs_builddir="$ac_dir";;
21254 *)
21255 case "$ac_dir" in
21256 .) ac_abs_builddir=`pwd`;;
21257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21259 esac;;
21260 esac
21261 case $ac_abs_builddir in
21262 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21263 *)
21264 case ${ac_top_builddir}. in
21265 .) ac_abs_top_builddir=$ac_abs_builddir;;
21266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21268 esac;;
21269 esac
21270 case $ac_abs_builddir in
21271 .) ac_abs_srcdir=$ac_srcdir;;
21272 *)
21273 case $ac_srcdir in
21274 .) ac_abs_srcdir=$ac_abs_builddir;;
21275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21277 esac;;
21278 esac
21279 case $ac_abs_builddir in
21280 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21281 *)
21282 case $ac_top_srcdir in
21283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21286 esac;;
21287 esac
21288
21289
21290 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21291 echo "$as_me: executing $ac_dest commands" >&6;}
21292 case $ac_dest in
21293 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21294 # Strip MF so we end up with the name of the file.
21295 mf=`echo "$mf" | sed -e 's/:.*$//'`
21296 # Check whether this is an Automake generated Makefile or not.
21297 # We used to match only the files named `Makefile.in', but
21298 # some people rename them; so instead we look at the file content.
21299 # Grep'ing the first line is not enough: some people post-process
21300 # each Makefile.in and add a new line on top of each file to say so.
21301 # So let's grep whole file.
21302 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21303 dirpart=`(dirname "$mf") 2>/dev/null ||
21304 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21305 X"$mf" : 'X\(//\)[^/]' \| \
21306 X"$mf" : 'X\(//\)$' \| \
21307 X"$mf" : 'X\(/\)' \| \
21308 . : '\(.\)' 2>/dev/null ||
21309 echo X"$mf" |
21310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21312 /^X\(\/\/\)$/{ s//\1/; q; }
21313 /^X\(\/\).*/{ s//\1/; q; }
21314 s/.*/./; q'`
21315 else
21316 continue
21317 fi
21318 # Extract the definition of DEPDIR, am__include, and am__quote
21319 # from the Makefile without running `make'.
21320 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21321 test -z "$DEPDIR" && continue
21322 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21323 test -z "am__include" && continue
21324 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21325 # When using ansi2knr, U may be empty or an underscore; expand it
21326 U=`sed -n 's/^U = //p' < "$mf"`
21327 # Find all dependency output files, they are included files with
21328 # $(DEPDIR) in their names. We invoke sed twice because it is the
21329 # simplest approach to changing $(DEPDIR) to its actual value in the
21330 # expansion.
21331 for file in `sed -n "
21332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21334 # Make sure the directory exists.
21335 test -f "$dirpart/$file" && continue
21336 fdir=`(dirname "$file") 2>/dev/null ||
21337 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21338 X"$file" : 'X\(//\)[^/]' \| \
21339 X"$file" : 'X\(//\)$' \| \
21340 X"$file" : 'X\(/\)' \| \
21341 . : '\(.\)' 2>/dev/null ||
21342 echo X"$file" |
21343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21345 /^X\(\/\/\)$/{ s//\1/; q; }
21346 /^X\(\/\).*/{ s//\1/; q; }
21347 s/.*/./; q'`
21348 { if $as_mkdir_p; then
21349 mkdir -p $dirpart/$fdir
21350 else
21351 as_dir=$dirpart/$fdir
21352 as_dirs=
21353 while test ! -d "$as_dir"; do
21354 as_dirs="$as_dir $as_dirs"
21355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21357 X"$as_dir" : 'X\(//\)[^/]' \| \
21358 X"$as_dir" : 'X\(//\)$' \| \
21359 X"$as_dir" : 'X\(/\)' \| \
21360 . : '\(.\)' 2>/dev/null ||
21361 echo X"$as_dir" |
21362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21364 /^X\(\/\/\)$/{ s//\1/; q; }
21365 /^X\(\/\).*/{ s//\1/; q; }
21366 s/.*/./; q'`
21367 done
21368 test ! -n "$as_dirs" || mkdir $as_dirs
21369 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21370 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21371 { (exit 1); exit 1; }; }; }
21372
21373 # echo "creating $dirpart/$file"
21374 echo '# dummy' > "$dirpart/$file"
21375 done
21376 done
21377 ;;
21378 esac
21379 done
21380 _ACEOF
21381
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21383
21384 { (exit 0); exit 0; }
21385 _ACEOF
21386 chmod +x $CONFIG_STATUS
21387 ac_clean_files=$ac_clean_files_save
21388
21389
21390 # configure is writing to config.log, and then calls config.status.
21391 # config.status does its own redirection, appending to config.log.
21392 # Unfortunately, on DOS this fails, as config.log is still kept open
21393 # by configure, so config.status won't be able to write to it; its
21394 # output is simply discarded. So we exec the FD to /dev/null,
21395 # effectively closing config.log, so it can be properly (re)opened and
21396 # appended to by config.status. When coming back to configure, we
21397 # need to make the FD available again.
21398 if test "$no_create" != yes; then
21399 ac_cs_success=:
21400 ac_config_status_args=
21401 test "$silent" = yes &&
21402 ac_config_status_args="$ac_config_status_args --quiet"
21403 exec 5>/dev/null
21404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21405 exec 5>>config.log
21406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21407 # would make configure fail if this is the last instruction.
21408 $ac_cs_success || { (exit 1); exit 1; }
21409 fi
21410