comparison configure @ 0:bbc77ca4def5

initial import
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 13 Dec 2007 04:30:14 +0900
parents
children a3fdd8ad75dc
comparison
equal deleted inserted replaced
-1:000000000000 0:bbc77ca4def5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10
11 # Check that we are running under the correct shell.
12 SHELL=${CONFIG_SHELL-/bin/sh}
13
14 case X$ECHO in
15 X*--fallback-echo)
16 # Remove one level of quotation (which was required for Make).
17 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
18 ;;
19 esac
20
21 echo=${ECHO-echo}
22 if test "X$1" = X--no-reexec; then
23 # Discard the --no-reexec flag, and continue.
24 shift
25 elif test "X$1" = X--fallback-echo; then
26 # Avoid inline document here, it may be left over
27 :
28 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
29 # Yippee, $echo works!
30 :
31 else
32 # Restart under the correct shell.
33 exec $SHELL "$0" --no-reexec ${1+"$@"}
34 fi
35
36 if test "X$1" = X--fallback-echo; then
37 # used as fallback echo
38 shift
39 cat <<EOF
40 $*
41 EOF
42 exit 0
43 fi
44
45 # The HP-UX ksh and POSIX shell print the target directory to stdout
46 # if CDPATH is set.
47 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
48
49 if test -z "$ECHO"; then
50 if test "X${echo_test_string+set}" != Xset; then
51 # find a string as large as possible, as long as the shell can cope with it
52 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
53 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
54 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
55 echo_test_string="`eval $cmd`" &&
56 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
57 then
58 break
59 fi
60 done
61 fi
62
63 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
64 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
65 test "X$echo_testing_string" = "X$echo_test_string"; then
66 :
67 else
68 # The Solaris, AIX, and Digital Unix default echo programs unquote
69 # backslashes. This makes it impossible to quote backslashes using
70 # echo "$something" | sed 's/\\/\\\\/g'
71 #
72 # So, first we look for a working echo in the user's PATH.
73
74 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
75 for dir in $PATH /usr/ucb; do
76 IFS="$lt_save_ifs"
77 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
78 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
79 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
80 test "X$echo_testing_string" = "X$echo_test_string"; then
81 echo="$dir/echo"
82 break
83 fi
84 done
85 IFS="$lt_save_ifs"
86
87 if test "X$echo" = Xecho; then
88 # We didn't find a better echo, so look for alternatives.
89 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
90 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
91 test "X$echo_testing_string" = "X$echo_test_string"; then
92 # This shell has a builtin print -r that does the trick.
93 echo='print -r'
94 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
95 test "X$CONFIG_SHELL" != X/bin/ksh; then
96 # If we have ksh, try running configure again with it.
97 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
98 export ORIGINAL_CONFIG_SHELL
99 CONFIG_SHELL=/bin/ksh
100 export CONFIG_SHELL
101 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
102 else
103 # Try using printf.
104 echo='printf %s\n'
105 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
106 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
107 test "X$echo_testing_string" = "X$echo_test_string"; then
108 # Cool, printf works
109 :
110 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
111 test "X$echo_testing_string" = 'X\t' &&
112 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
115 export CONFIG_SHELL
116 SHELL="$CONFIG_SHELL"
117 export SHELL
118 echo="$CONFIG_SHELL $0 --fallback-echo"
119 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 echo="$CONFIG_SHELL $0 --fallback-echo"
124 else
125 # maybe with a smaller string...
126 prev=:
127
128 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
129 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
130 then
131 break
132 fi
133 prev="$cmd"
134 done
135
136 if test "$prev" != 'sed 50q "$0"'; then
137 echo_test_string=`eval $prev`
138 export echo_test_string
139 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
140 else
141 # Oops. We lost completely, so just stick with echo.
142 echo=echo
143 fi
144 fi
145 fi
146 fi
147 fi
148 fi
149
150 # Copy echo and quote the copy suitably for passing to libtool from
151 # the Makefile, instead of quoting the original, which is used later.
152 ECHO=$echo
153 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
154 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
155 fi
156
157
158
159
160 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
161
162 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
163
164 if expr a : '\(a\)' >/dev/null 2>&1; then
165 as_expr=expr
166 else
167 as_expr=false
168 fi
169
170
171 ## --------------------- ##
172 ## M4sh Initialization. ##
173 ## --------------------- ##
174
175 # Be Bourne compatible
176 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
177 emulate sh
178 NULLCMD=:
179 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
180 set -o posix
181 fi
182
183 # NLS nuisances.
184 # Support unset when possible.
185 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
186 as_unset=unset
187 else
188 as_unset=false
189 fi
190
191 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
192 { $as_unset LANG || test "${LANG+set}" != set; } ||
193 { LANG=C; export LANG; }
194 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
195 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
196 { LC_ALL=C; export LC_ALL; }
197 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
198 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
199 { LC_TIME=C; export LC_TIME; }
200 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
201 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
202 { LC_CTYPE=C; export LC_CTYPE; }
203 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
204 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
205 { LANGUAGE=C; export LANGUAGE; }
206 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
207 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
208 { LC_COLLATE=C; export LC_COLLATE; }
209 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
210 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
211 { LC_NUMERIC=C; export LC_NUMERIC; }
212 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
213 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
214 { LC_MESSAGES=C; export LC_MESSAGES; }
215
216
217 # Name of the executable.
218 as_me=`(basename "$0") 2>/dev/null ||
219 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
220 X"$0" : 'X\(//\)$' \| \
221 X"$0" : 'X\(/\)$' \| \
222 . : '\(.\)' 2>/dev/null ||
223 echo X/"$0" |
224 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
225 /^X\/\(\/\/\)$/{ s//\1/; q; }
226 /^X\/\(\/\).*/{ s//\1/; q; }
227 s/.*/./; q'`
228
229 # PATH needs CR, and LINENO needs CR and PATH.
230 # Avoid depending upon Character Ranges.
231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
234 as_cr_digits='0123456789'
235 as_cr_alnum=$as_cr_Letters$as_cr_digits
236
237 # The user is always right.
238 if test "${PATH_SEPARATOR+set}" != set; then
239 echo "#! /bin/sh" >conftest.sh
240 echo "exit 0" >>conftest.sh
241 chmod +x conftest.sh
242 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
243 PATH_SEPARATOR=';'
244 else
245 PATH_SEPARATOR=:
246 fi
247 rm -f conftest.sh
248 fi
249
250
251 as_lineno_1=$LINENO
252 as_lineno_2=$LINENO
253 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
254 test "x$as_lineno_1" != "x$as_lineno_2" &&
255 test "x$as_lineno_3" = "x$as_lineno_2" || {
256 # Find who we are. Look in the path if we contain no path at all
257 # relative or not.
258 case $0 in
259 *[\\/]* ) as_myself=$0 ;;
260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
261 for as_dir in $PATH
262 do
263 IFS=$as_save_IFS
264 test -z "$as_dir" && as_dir=.
265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
266 done
267
268 ;;
269 esac
270 # We did not find ourselves, most probably we were run as `sh COMMAND'
271 # in which case we are not to be found in the path.
272 if test "x$as_myself" = x; then
273 as_myself=$0
274 fi
275 if test ! -f "$as_myself"; then
276 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
277 { (exit 1); exit 1; }; }
278 fi
279 case $CONFIG_SHELL in
280 '')
281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
282 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
283 do
284 IFS=$as_save_IFS
285 test -z "$as_dir" && as_dir=.
286 for as_base in sh bash ksh sh5; do
287 case $as_dir in
288 /*)
289 if ("$as_dir/$as_base" -c '
290 as_lineno_1=$LINENO
291 as_lineno_2=$LINENO
292 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
293 test "x$as_lineno_1" != "x$as_lineno_2" &&
294 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
295 CONFIG_SHELL=$as_dir/$as_base
296 export CONFIG_SHELL
297 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
298 fi;;
299 esac
300 done
301 done
302 ;;
303 esac
304
305 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
306 # uniformly replaced by the line number. The first 'sed' inserts a
307 # line-number line before each line; the second 'sed' does the real
308 # work. The second script uses 'N' to pair each line-number line
309 # with the numbered line, and appends trailing '-' during
310 # substitution so that $LINENO is not a special case at line end.
311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
312 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
313 sed '=' <$as_myself |
314 sed '
315 N
316 s,$,-,
317 : loop
318 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
319 t loop
320 s,-$,,
321 s,^['$as_cr_digits']*\n,,
322 ' >$as_me.lineno &&
323 chmod +x $as_me.lineno ||
324 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
325 { (exit 1); exit 1; }; }
326
327 # Don't try to exec as it changes $[0], causing all sort of problems
328 # (the dirname of $[0] is not the place where we might find the
329 # original and so on. Autoconf is especially sensible to this).
330 . ./$as_me.lineno
331 # Exit status is that of the last command.
332 exit
333 }
334
335
336 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
337 *c*,-n*) ECHO_N= ECHO_C='
338 ' ECHO_T=' ' ;;
339 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
340 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
341 esac
342
343 if expr a : '\(a\)' >/dev/null 2>&1; then
344 as_expr=expr
345 else
346 as_expr=false
347 fi
348
349 rm -f conf$$ conf$$.exe conf$$.file
350 echo >conf$$.file
351 if ln -s conf$$.file conf$$ 2>/dev/null; then
352 # We could just check for DJGPP; but this test a) works b) is more generic
353 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
354 if test -f conf$$.exe; then
355 # Don't use ln at all; we don't have any links
356 as_ln_s='cp -p'
357 else
358 as_ln_s='ln -s'
359 fi
360 elif ln conf$$.file conf$$ 2>/dev/null; then
361 as_ln_s=ln
362 else
363 as_ln_s='cp -p'
364 fi
365 rm -f conf$$ conf$$.exe conf$$.file
366
367 as_executable_p="test -f"
368
369 # Sed expression to map a string onto a valid CPP name.
370 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
371
372 # Sed expression to map a string onto a valid variable name.
373 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
374
375
376 # IFS
377 # We need space, tab and new line, in precisely that order.
378 as_nl='
379 '
380 IFS=" $as_nl"
381
382 # CDPATH.
383 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
384
385
386 # Name of the host.
387 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
388 # so uname gets run too.
389 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
390
391 exec 6>&1
392
393 #
394 # Initializations.
395 #
396 ac_default_prefix=/usr/local
397 cross_compiling=no
398 subdirs=
399 MFLAGS=
400 MAKEFLAGS=
401 SHELL=${CONFIG_SHELL-/bin/sh}
402
403 # Maximum number of lines to put in a shell here document.
404 # This variable seems obsolete. It should probably be removed, and
405 # only ac_max_sed_lines should be used.
406 : ${ac_max_here_lines=38}
407
408 # Identity of this package.
409 PACKAGE_NAME=
410 PACKAGE_TARNAME=
411 PACKAGE_VERSION=
412 PACKAGE_STRING=
413 PACKAGE_BUGREPORT=
414
415 ac_unique_file="Wnn/conv/cvt_head.h"
416 # Factoring default headers for most tests.
417 ac_includes_default="\
418 #include <stdio.h>
419 #if HAVE_SYS_TYPES_H
420 # include <sys/types.h>
421 #endif
422 #if HAVE_SYS_STAT_H
423 # include <sys/stat.h>
424 #endif
425 #if STDC_HEADERS
426 # include <stdlib.h>
427 # include <stddef.h>
428 #else
429 # if HAVE_STDLIB_H
430 # include <stdlib.h>
431 # endif
432 #endif
433 #if HAVE_STRING_H
434 # if !STDC_HEADERS && HAVE_MEMORY_H
435 # include <memory.h>
436 # endif
437 # include <string.h>
438 #endif
439 #if HAVE_STRINGS_H
440 # include <strings.h>
441 #endif
442 #if HAVE_INTTYPES_H
443 # include <inttypes.h>
444 #else
445 # if HAVE_STDINT_H
446 # include <stdint.h>
447 # endif
448 #endif
449 #if HAVE_UNISTD_H
450 # include <unistd.h>
451 #endif"
452
453
454 # Initialize some variables set by options.
455 ac_init_help=
456 ac_init_version=false
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
459 cache_file=/dev/null
460 exec_prefix=NONE
461 no_create=
462 no_recursion=
463 prefix=NONE
464 program_prefix=NONE
465 program_suffix=NONE
466 program_transform_name=s,x,x,
467 silent=
468 site=
469 srcdir=
470 verbose=
471 x_includes=NONE
472 x_libraries=NONE
473
474 # Installation directory options.
475 # These are left unexpanded so users can "make install exec_prefix=/foo"
476 # and all the variables that are supposed to be based on exec_prefix
477 # by default will actually change.
478 # Use braces instead of parens because sh, perl, etc. also accept them.
479 bindir='${exec_prefix}/bin'
480 sbindir='${exec_prefix}/sbin'
481 libexecdir='${exec_prefix}/libexec'
482 datadir='${prefix}/share'
483 sysconfdir='${prefix}/etc'
484 sharedstatedir='${prefix}/com'
485 localstatedir='${prefix}/var'
486 libdir='${exec_prefix}/lib'
487 includedir='${prefix}/include'
488 oldincludedir='/usr/include'
489 infodir='${prefix}/info'
490 mandir='${prefix}/man'
491
492 ac_prev=
493 for ac_option
494 do
495 # If the previous option needs an argument, assign it.
496 if test -n "$ac_prev"; then
497 eval "$ac_prev=\$ac_option"
498 ac_prev=
499 continue
500 fi
501
502 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
503
504 # Accept the important Cygnus configure options, so we can diagnose typos.
505
506 case $ac_option in
507
508 -bindir | --bindir | --bindi | --bind | --bin | --bi)
509 ac_prev=bindir ;;
510 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
511 bindir=$ac_optarg ;;
512
513 -build | --build | --buil | --bui | --bu)
514 ac_prev=build_alias ;;
515 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
516 build_alias=$ac_optarg ;;
517
518 -cache-file | --cache-file | --cache-fil | --cache-fi \
519 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
520 ac_prev=cache_file ;;
521 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
522 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
523 cache_file=$ac_optarg ;;
524
525 --config-cache | -C)
526 cache_file=config.cache ;;
527
528 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
529 ac_prev=datadir ;;
530 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
531 | --da=*)
532 datadir=$ac_optarg ;;
533
534 -disable-* | --disable-*)
535 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
536 # Reject names that are not valid shell variable names.
537 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
538 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
539 { (exit 1); exit 1; }; }
540 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
541 eval "enable_$ac_feature=no" ;;
542
543 -enable-* | --enable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 case $ac_option in
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
552 *) ac_optarg=yes ;;
553 esac
554 eval "enable_$ac_feature='$ac_optarg'" ;;
555
556 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
557 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
558 | --exec | --exe | --ex)
559 ac_prev=exec_prefix ;;
560 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
561 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
562 | --exec=* | --exe=* | --ex=*)
563 exec_prefix=$ac_optarg ;;
564
565 -gas | --gas | --ga | --g)
566 # Obsolete; use --with-gas.
567 with_gas=yes ;;
568
569 -help | --help | --hel | --he | -h)
570 ac_init_help=long ;;
571 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
572 ac_init_help=recursive ;;
573 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
574 ac_init_help=short ;;
575
576 -host | --host | --hos | --ho)
577 ac_prev=host_alias ;;
578 -host=* | --host=* | --hos=* | --ho=*)
579 host_alias=$ac_optarg ;;
580
581 -includedir | --includedir | --includedi | --included | --include \
582 | --includ | --inclu | --incl | --inc)
583 ac_prev=includedir ;;
584 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
585 | --includ=* | --inclu=* | --incl=* | --inc=*)
586 includedir=$ac_optarg ;;
587
588 -infodir | --infodir | --infodi | --infod | --info | --inf)
589 ac_prev=infodir ;;
590 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
591 infodir=$ac_optarg ;;
592
593 -libdir | --libdir | --libdi | --libd)
594 ac_prev=libdir ;;
595 -libdir=* | --libdir=* | --libdi=* | --libd=*)
596 libdir=$ac_optarg ;;
597
598 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
599 | --libexe | --libex | --libe)
600 ac_prev=libexecdir ;;
601 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
602 | --libexe=* | --libex=* | --libe=*)
603 libexecdir=$ac_optarg ;;
604
605 -localstatedir | --localstatedir | --localstatedi | --localstated \
606 | --localstate | --localstat | --localsta | --localst \
607 | --locals | --local | --loca | --loc | --lo)
608 ac_prev=localstatedir ;;
609 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
610 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
611 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
612 localstatedir=$ac_optarg ;;
613
614 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
615 ac_prev=mandir ;;
616 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
617 mandir=$ac_optarg ;;
618
619 -nfp | --nfp | --nf)
620 # Obsolete; use --without-fp.
621 with_fp=no ;;
622
623 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
624 | --no-cr | --no-c | -n)
625 no_create=yes ;;
626
627 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
628 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
629 no_recursion=yes ;;
630
631 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
632 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
633 | --oldin | --oldi | --old | --ol | --o)
634 ac_prev=oldincludedir ;;
635 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
636 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
637 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
638 oldincludedir=$ac_optarg ;;
639
640 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
641 ac_prev=prefix ;;
642 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
643 prefix=$ac_optarg ;;
644
645 -program-prefix | --program-prefix | --program-prefi | --program-pref \
646 | --program-pre | --program-pr | --program-p)
647 ac_prev=program_prefix ;;
648 -program-prefix=* | --program-prefix=* | --program-prefi=* \
649 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
650 program_prefix=$ac_optarg ;;
651
652 -program-suffix | --program-suffix | --program-suffi | --program-suff \
653 | --program-suf | --program-su | --program-s)
654 ac_prev=program_suffix ;;
655 -program-suffix=* | --program-suffix=* | --program-suffi=* \
656 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
657 program_suffix=$ac_optarg ;;
658
659 -program-transform-name | --program-transform-name \
660 | --program-transform-nam | --program-transform-na \
661 | --program-transform-n | --program-transform- \
662 | --program-transform | --program-transfor \
663 | --program-transfo | --program-transf \
664 | --program-trans | --program-tran \
665 | --progr-tra | --program-tr | --program-t)
666 ac_prev=program_transform_name ;;
667 -program-transform-name=* | --program-transform-name=* \
668 | --program-transform-nam=* | --program-transform-na=* \
669 | --program-transform-n=* | --program-transform-=* \
670 | --program-transform=* | --program-transfor=* \
671 | --program-transfo=* | --program-transf=* \
672 | --program-trans=* | --program-tran=* \
673 | --progr-tra=* | --program-tr=* | --program-t=*)
674 program_transform_name=$ac_optarg ;;
675
676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
677 | -silent | --silent | --silen | --sile | --sil)
678 silent=yes ;;
679
680 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
681 ac_prev=sbindir ;;
682 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
683 | --sbi=* | --sb=*)
684 sbindir=$ac_optarg ;;
685
686 -sharedstatedir | --sharedstatedir | --sharedstatedi \
687 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
688 | --sharedst | --shareds | --shared | --share | --shar \
689 | --sha | --sh)
690 ac_prev=sharedstatedir ;;
691 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
692 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
693 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
694 | --sha=* | --sh=*)
695 sharedstatedir=$ac_optarg ;;
696
697 -site | --site | --sit)
698 ac_prev=site ;;
699 -site=* | --site=* | --sit=*)
700 site=$ac_optarg ;;
701
702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
703 ac_prev=srcdir ;;
704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
705 srcdir=$ac_optarg ;;
706
707 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
708 | --syscon | --sysco | --sysc | --sys | --sy)
709 ac_prev=sysconfdir ;;
710 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
711 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
712 sysconfdir=$ac_optarg ;;
713
714 -target | --target | --targe | --targ | --tar | --ta | --t)
715 ac_prev=target_alias ;;
716 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
717 target_alias=$ac_optarg ;;
718
719 -v | -verbose | --verbose | --verbos | --verbo | --verb)
720 verbose=yes ;;
721
722 -version | --version | --versio | --versi | --vers | -V)
723 ac_init_version=: ;;
724
725 -with-* | --with-*)
726 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
727 # Reject names that are not valid shell variable names.
728 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
729 { echo "$as_me: error: invalid package name: $ac_package" >&2
730 { (exit 1); exit 1; }; }
731 ac_package=`echo $ac_package| sed 's/-/_/g'`
732 case $ac_option in
733 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
734 *) ac_optarg=yes ;;
735 esac
736 eval "with_$ac_package='$ac_optarg'" ;;
737
738 -without-* | --without-*)
739 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package | sed 's/-/_/g'`
745 eval "with_$ac_package=no" ;;
746
747 --x)
748 # Obsolete; use --with-x.
749 with_x=yes ;;
750
751 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
752 | --x-incl | --x-inc | --x-in | --x-i)
753 ac_prev=x_includes ;;
754 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
755 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
756 x_includes=$ac_optarg ;;
757
758 -x-libraries | --x-libraries | --x-librarie | --x-librari \
759 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
760 ac_prev=x_libraries ;;
761 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
762 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
763 x_libraries=$ac_optarg ;;
764
765 -*) { echo "$as_me: error: unrecognized option: $ac_option
766 Try \`$0 --help' for more information." >&2
767 { (exit 1); exit 1; }; }
768 ;;
769
770 *=*)
771 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
772 # Reject names that are not valid shell variable names.
773 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
774 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
775 { (exit 1); exit 1; }; }
776 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
777 eval "$ac_envvar='$ac_optarg'"
778 export $ac_envvar ;;
779
780 *)
781 # FIXME: should be removed in autoconf 3.0.
782 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
783 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
785 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
786 ;;
787
788 esac
789 done
790
791 if test -n "$ac_prev"; then
792 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
793 { echo "$as_me: error: missing argument to $ac_option" >&2
794 { (exit 1); exit 1; }; }
795 fi
796
797 # Be sure to have absolute paths.
798 for ac_var in exec_prefix prefix
799 do
800 eval ac_val=$`echo $ac_var`
801 case $ac_val in
802 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
803 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
804 { (exit 1); exit 1; }; };;
805 esac
806 done
807
808 # Be sure to have absolute paths.
809 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
810 localstatedir libdir includedir oldincludedir infodir mandir
811 do
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818 done
819
820 # There might be people who depend on the old broken behavior: `$host'
821 # used to hold the argument of --host etc.
822 # FIXME: To remove some day.
823 build=$build_alias
824 host=$host_alias
825 target=$target_alias
826
827 # FIXME: To remove some day.
828 if test "x$host_alias" != x; then
829 if test "x$build_alias" = x; then
830 cross_compiling=maybe
831 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
832 If a cross compiler is detected then cross compile mode will be used." >&2
833 elif test "x$build_alias" != "x$host_alias"; then
834 cross_compiling=yes
835 fi
836 fi
837
838 ac_tool_prefix=
839 test -n "$host_alias" && ac_tool_prefix=$host_alias-
840
841 test "$silent" = yes && exec 6>/dev/null
842
843
844 # Find the source files, if location was not specified.
845 if test -z "$srcdir"; then
846 ac_srcdir_defaulted=yes
847 # Try the directory containing this script, then its parent.
848 ac_confdir=`(dirname "$0") 2>/dev/null ||
849 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
850 X"$0" : 'X\(//\)[^/]' \| \
851 X"$0" : 'X\(//\)$' \| \
852 X"$0" : 'X\(/\)' \| \
853 . : '\(.\)' 2>/dev/null ||
854 echo X"$0" |
855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
857 /^X\(\/\/\)$/{ s//\1/; q; }
858 /^X\(\/\).*/{ s//\1/; q; }
859 s/.*/./; q'`
860 srcdir=$ac_confdir
861 if test ! -r $srcdir/$ac_unique_file; then
862 srcdir=..
863 fi
864 else
865 ac_srcdir_defaulted=no
866 fi
867 if test ! -r $srcdir/$ac_unique_file; then
868 if test "$ac_srcdir_defaulted" = yes; then
869 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
870 { (exit 1); exit 1; }; }
871 else
872 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
873 { (exit 1); exit 1; }; }
874 fi
875 fi
876 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
877 ac_env_build_alias_set=${build_alias+set}
878 ac_env_build_alias_value=$build_alias
879 ac_cv_env_build_alias_set=${build_alias+set}
880 ac_cv_env_build_alias_value=$build_alias
881 ac_env_host_alias_set=${host_alias+set}
882 ac_env_host_alias_value=$host_alias
883 ac_cv_env_host_alias_set=${host_alias+set}
884 ac_cv_env_host_alias_value=$host_alias
885 ac_env_target_alias_set=${target_alias+set}
886 ac_env_target_alias_value=$target_alias
887 ac_cv_env_target_alias_set=${target_alias+set}
888 ac_cv_env_target_alias_value=$target_alias
889 ac_env_CC_set=${CC+set}
890 ac_env_CC_value=$CC
891 ac_cv_env_CC_set=${CC+set}
892 ac_cv_env_CC_value=$CC
893 ac_env_CFLAGS_set=${CFLAGS+set}
894 ac_env_CFLAGS_value=$CFLAGS
895 ac_cv_env_CFLAGS_set=${CFLAGS+set}
896 ac_cv_env_CFLAGS_value=$CFLAGS
897 ac_env_LDFLAGS_set=${LDFLAGS+set}
898 ac_env_LDFLAGS_value=$LDFLAGS
899 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
900 ac_cv_env_LDFLAGS_value=$LDFLAGS
901 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
902 ac_env_CPPFLAGS_value=$CPPFLAGS
903 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
904 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
905 ac_env_CPP_set=${CPP+set}
906 ac_env_CPP_value=$CPP
907 ac_cv_env_CPP_set=${CPP+set}
908 ac_cv_env_CPP_value=$CPP
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_CXXCPP_set=${CXXCPP+set}
918 ac_env_CXXCPP_value=$CXXCPP
919 ac_cv_env_CXXCPP_set=${CXXCPP+set}
920 ac_cv_env_CXXCPP_value=$CXXCPP
921 ac_env_F77_set=${F77+set}
922 ac_env_F77_value=$F77
923 ac_cv_env_F77_set=${F77+set}
924 ac_cv_env_F77_value=$F77
925 ac_env_FFLAGS_set=${FFLAGS+set}
926 ac_env_FFLAGS_value=$FFLAGS
927 ac_cv_env_FFLAGS_set=${FFLAGS+set}
928 ac_cv_env_FFLAGS_value=$FFLAGS
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
936 cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959 cat <<_ACEOF
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
962 [$ac_default_prefix]
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
964 [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
986 _ACEOF
987
988 cat <<\_ACEOF
989
990 X features:
991 --x-includes=DIR X include files are in DIR
992 --x-libraries=DIR X library files are in DIR
993
994 System types:
995 --build=BUILD configure for building on BUILD [guessed]
996 --host=HOST cross-compile to build programs to run on HOST [BUILD]
997 _ACEOF
998 fi
999
1000 if test -n "$ac_init_help"; then
1001
1002 cat <<\_ACEOF
1003
1004 Optional Features:
1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007 --enable-debug enable debug options [default=no]
1008 --enable-libraries build and install libraries [default=yes]
1009 --enable-server build and install server [default=yes]
1010 --enable-client build and install clients [default=no]
1011 --enable-client-utmp write utmp with client [default=yes if not modern BSD]
1012 --enable-Wnn build and install Wnn [default=yes]
1013 --enable-cWnn build and install cWnn [default=yes]
1014 --enable-kWnn build and install kWnn [default=yes]
1015 --enable-ipv6 build and install IPv6 [default=no]
1016 --enable-unsafe-path allow creating files in an arbitrary path [default=no]
1017 --enable-shared[=PKGS]
1018 build shared libraries [default=yes]
1019 --enable-static[=PKGS]
1020 build static libraries [default=yes]
1021 --enable-fast-install[=PKGS]
1022 optimize for fast installation [default=yes]
1023 --disable-libtool-lock avoid locking (might break parallel builds)
1024
1025 Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-libwnn use installed Wnn library [default=no]
1029 --with-wnn-includes=DIR WNN include files are in DIR
1030 --with-wnn-libraries=DIR Search for WNN libraries in DIR [default=/usr/local/lib]
1031 --with-libcwnn use installed cWnn library [default=no]
1032 --with-cwnn-includes=DIR CWNN include files are in DIR
1033 --with-cwnn-libraries=DIR Search for CWNN libraries in DIR [default=/usr/local/lib]
1034 --with-libkwnn use installed kWnn library [default=no]
1035 --with-kwnn-includes=DIR KWNN include files are in DIR
1036 --with-kwnn-libraries=DIR Search for KWNN libraries in DIR [default=/usr/local/lib]
1037 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1038 --with-pic try to use only PIC/non-PIC objects [default=use
1039 both]
1040 --with-tags[=TAGS]
1041 include additional configurations [automatic]
1042 --with-x use the X Window System
1043 --with-term-libs=-lLIB terminal library to be used
1044 --with-libwrap[=DIR] Compile in libwrap (tcp_wrappers) support [default=try to find libwrap]
1045
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1053 CPP C preprocessor
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1059
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1062
1063 _ACEOF
1064 fi
1065
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1068 ac_popdir=`pwd`
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1071 ac_builddir=.
1072
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 else
1078 ac_dir_suffix= ac_top_builddir=
1079 fi
1080
1081 case $srcdir in
1082 .) # No --srcdir option. We are building in place.
1083 ac_srcdir=.
1084 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=.
1086 else
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 fi ;;
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1092 *) # Relative path.
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095 esac
1096 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1097 # absolute.
1098 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1099 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1100 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1101 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1102
1103 cd $ac_dir
1104 # Check for guested configure; otherwise get Cygnus style configure.
1105 if test -f $ac_srcdir/configure.gnu; then
1106 echo
1107 $SHELL $ac_srcdir/configure.gnu --help=recursive
1108 elif test -f $ac_srcdir/configure; then
1109 echo
1110 $SHELL $ac_srcdir/configure --help=recursive
1111 elif test -f $ac_srcdir/configure.ac ||
1112 test -f $ac_srcdir/configure.in; then
1113 echo
1114 $ac_configure --help
1115 else
1116 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1117 fi
1118 cd $ac_popdir
1119 done
1120 fi
1121
1122 test -n "$ac_init_help" && exit 0
1123 if $ac_init_version; then
1124 cat <<\_ACEOF
1125
1126 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1127 Free Software Foundation, Inc.
1128 This configure script is free software; the Free Software Foundation
1129 gives unlimited permission to copy, distribute and modify it.
1130 _ACEOF
1131 exit 0
1132 fi
1133 exec 5>config.log
1134 cat >&5 <<_ACEOF
1135 This file contains any messages produced by compilers while
1136 running configure, to aid debugging if configure makes a mistake.
1137
1138 It was created by $as_me, which was
1139 generated by GNU Autoconf 2.53. Invocation command line was
1140
1141 $ $0 $@
1142
1143 _ACEOF
1144 {
1145 cat <<_ASUNAME
1146 ## --------- ##
1147 ## Platform. ##
1148 ## --------- ##
1149
1150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1155
1156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1158
1159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1162 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1166
1167 _ASUNAME
1168
1169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1170 for as_dir in $PATH
1171 do
1172 IFS=$as_save_IFS
1173 test -z "$as_dir" && as_dir=.
1174 echo "PATH: $as_dir"
1175 done
1176
1177 } >&5
1178
1179 cat >&5 <<_ACEOF
1180
1181
1182 ## ----------- ##
1183 ## Core tests. ##
1184 ## ----------- ##
1185
1186 _ACEOF
1187
1188
1189 # Keep a trace of the command line.
1190 # Strip out --no-create and --no-recursion so they do not pile up.
1191 # Also quote any args containing shell meta-characters.
1192 ac_configure_args=
1193 ac_sep=
1194 for ac_arg
1195 do
1196 case $ac_arg in
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n ) continue ;;
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 continue ;;
1202 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1203 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1204 esac
1205 case " $ac_configure_args " in
1206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1207 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1208 ac_sep=" " ;;
1209 esac
1210 # Get rid of the leading space.
1211 done
1212
1213 # When interrupted or exit'd, cleanup temporary files, and complete
1214 # config.log. We remove comments because anyway the quotes in there
1215 # would cause problems or look ugly.
1216 # WARNING: Be sure not to use single quotes in there, as some shells,
1217 # such as our DU 5.0 friend, will then `close' the trap.
1218 trap 'exit_status=$?
1219 # Save into config.log some information that might help in debugging.
1220 {
1221 echo
1222 cat <<\_ASBOX
1223 ## ---------------- ##
1224 ## Cache variables. ##
1225 ## ---------------- ##
1226 _ASBOX
1227 echo
1228 # The following way of writing the cache mishandles newlines in values,
1229 {
1230 (set) 2>&1 |
1231 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1232 *ac_space=\ *)
1233 sed -n \
1234 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1236 ;;
1237 *)
1238 sed -n \
1239 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1240 ;;
1241 esac;
1242 }
1243 echo
1244 if test -s confdefs.h; then
1245 cat <<\_ASBOX
1246 ## ----------- ##
1247 ## confdefs.h. ##
1248 ## ----------- ##
1249 _ASBOX
1250 echo
1251 sed "/^$/d" confdefs.h
1252 echo
1253 fi
1254 test "$ac_signal" != 0 &&
1255 echo "$as_me: caught signal $ac_signal"
1256 echo "$as_me: exit $exit_status"
1257 } >&5
1258 rm -f core core.* *.core &&
1259 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1260 exit $exit_status
1261 ' 0
1262 for ac_signal in 1 2 13 15; do
1263 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1264 done
1265 ac_signal=0
1266
1267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1268 rm -rf conftest* confdefs.h
1269 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1270 echo >confdefs.h
1271
1272 # Predefined preprocessor variables.
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_NAME "$PACKAGE_NAME"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_STRING "$PACKAGE_STRING"
1291 _ACEOF
1292
1293
1294 cat >>confdefs.h <<_ACEOF
1295 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1296 _ACEOF
1297
1298
1299 # Let the site file select an alternate cache file if it wants to.
1300 # Prefer explicitly selected file to automatically selected ones.
1301 if test -z "$CONFIG_SITE"; then
1302 if test "x$prefix" != xNONE; then
1303 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1304 else
1305 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1306 fi
1307 fi
1308 for ac_site_file in $CONFIG_SITE; do
1309 if test -r "$ac_site_file"; then
1310 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1311 echo "$as_me: loading site script $ac_site_file" >&6;}
1312 sed 's/^/| /' "$ac_site_file" >&5
1313 . "$ac_site_file"
1314 fi
1315 done
1316
1317 if test -r "$cache_file"; then
1318 # Some versions of bash will fail to source /dev/null (special
1319 # files actually), so we avoid doing that.
1320 if test -f "$cache_file"; then
1321 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1322 echo "$as_me: loading cache $cache_file" >&6;}
1323 case $cache_file in
1324 [\\/]* | ?:[\\/]* ) . $cache_file;;
1325 *) . ./$cache_file;;
1326 esac
1327 fi
1328 else
1329 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1330 echo "$as_me: creating cache $cache_file" >&6;}
1331 >$cache_file
1332 fi
1333
1334 # Check that the precious variables saved in the cache have kept the same
1335 # value.
1336 ac_cache_corrupted=false
1337 for ac_var in `(set) 2>&1 |
1338 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1339 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1340 eval ac_new_set=\$ac_env_${ac_var}_set
1341 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1342 eval ac_new_val="\$ac_env_${ac_var}_value"
1343 case $ac_old_set,$ac_new_set in
1344 set,)
1345 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1346 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1347 ac_cache_corrupted=: ;;
1348 ,set)
1349 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1350 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1351 ac_cache_corrupted=: ;;
1352 ,);;
1353 *)
1354 if test "x$ac_old_val" != "x$ac_new_val"; then
1355 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1356 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1357 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1358 echo "$as_me: former value: $ac_old_val" >&2;}
1359 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1360 echo "$as_me: current value: $ac_new_val" >&2;}
1361 ac_cache_corrupted=:
1362 fi;;
1363 esac
1364 # Pass precious variables to config.status.
1365 if test "$ac_new_set" = set; then
1366 case $ac_new_val in
1367 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1368 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1369 *) ac_arg=$ac_var=$ac_new_val ;;
1370 esac
1371 case " $ac_configure_args " in
1372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1373 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1374 esac
1375 fi
1376 done
1377 if $ac_cache_corrupted; then
1378 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1379 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1380 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1381 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1382 { (exit 1); exit 1; }; }
1383 fi
1384
1385 ac_ext=c
1386 ac_cpp='$CPP $CPPFLAGS'
1387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408 ac_config_headers="$ac_config_headers config.h"
1409
1410
1411
1412 # Quick and Dirty workaround for Autoconf-2.53 and Libtools-1.5 pair ...
1413 # not to use additional tagged configuration. (default: CXX F77)
1414 # NOTICE: Please remove next line if situation changes. (aono)
1415 tagnames=
1416
1417 ac_aux_dir=
1418 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1419 if test -f $ac_dir/install-sh; then
1420 ac_aux_dir=$ac_dir
1421 ac_install_sh="$ac_aux_dir/install-sh -c"
1422 break
1423 elif test -f $ac_dir/install.sh; then
1424 ac_aux_dir=$ac_dir
1425 ac_install_sh="$ac_aux_dir/install.sh -c"
1426 break
1427 elif test -f $ac_dir/shtool; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/shtool install -c"
1430 break
1431 fi
1432 done
1433 if test -z "$ac_aux_dir"; then
1434 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1435 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1436 { (exit 1); exit 1; }; }
1437 fi
1438 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1439 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1440 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1441
1442 # Make sure we can run config.sub.
1443 $ac_config_sub sun4 >/dev/null 2>&1 ||
1444 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1445 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448 echo "$as_me:$LINENO: checking build system type" >&5
1449 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1450 if test "${ac_cv_build+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453 ac_cv_build_alias=$build_alias
1454 test -z "$ac_cv_build_alias" &&
1455 ac_cv_build_alias=`$ac_config_guess`
1456 test -z "$ac_cv_build_alias" &&
1457 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1458 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1459 { (exit 1); exit 1; }; }
1460 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1463 { (exit 1); exit 1; }; }
1464
1465 fi
1466 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1467 echo "${ECHO_T}$ac_cv_build" >&6
1468 build=$ac_cv_build
1469 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472
1473
1474 echo "$as_me:$LINENO: checking host system type" >&5
1475 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1476 if test "${ac_cv_host+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 ac_cv_host_alias=$host_alias
1480 test -z "$ac_cv_host_alias" &&
1481 ac_cv_host_alias=$ac_cv_build_alias
1482 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1485 { (exit 1); exit 1; }; }
1486
1487 fi
1488 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1489 echo "${ECHO_T}$ac_cv_host" >&6
1490 host=$ac_cv_host
1491 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495
1496
1497
1498 # Check whether --enable-debug or --disable-debug was given.
1499 if test "${enable_debug+set}" = set; then
1500 enableval="$enable_debug"
1501 case "${enableval}" in
1502 yes) debug=true ;;
1503 no) debug=false ;;
1504 *) { { echo "$as_me:$LINENO: error: bad value for --enable-debug" >&5
1505 echo "$as_me: error: bad value for --enable-debug" >&2;}
1506 { (exit 1); exit 1; }; }
1507 esac
1508 else
1509 debug=false
1510 fi;
1511
1512 # Check whether --enable-libraries or --disable-libraries was given.
1513 if test "${enable_libraries+set}" = set; then
1514 enableval="$enable_libraries"
1515 case "${enableval}" in
1516 yes) libraries=true ;;
1517 no) libraries=false ;;
1518 *) { { echo "$as_me:$LINENO: error: bad value for --enable-libraries" >&5
1519 echo "$as_me: error: bad value for --enable-libraries" >&2;}
1520 { (exit 1); exit 1; }; } ;;
1521 esac
1522 else
1523 libraries=true
1524 fi;
1525
1526 # Check whether --enable-server or --disable-server was given.
1527 if test "${enable_server+set}" = set; then
1528 enableval="$enable_server"
1529 case "${enableval}" in
1530 yes) server=true ;;
1531 no) server=false ;;
1532 *) { { echo "$as_me:$LINENO: error: bad value for --enable-server" >&5
1533 echo "$as_me: error: bad value for --enable-server" >&2;}
1534 { (exit 1); exit 1; }; } ;;
1535 esac
1536 else
1537 server=true
1538 fi;
1539
1540 # Check whether --enable-client or --disable-client was given.
1541 if test "${enable_client+set}" = set; then
1542 enableval="$enable_client"
1543 case "${enableval}" in
1544 yes) client=true ;;
1545 no) client=false ;;
1546 *) { { echo "$as_me:$LINENO: error: bad value for --enable-client" >&5
1547 echo "$as_me: error: bad value for --enable-client" >&2;}
1548 { (exit 1); exit 1; }; } ;;
1549 esac
1550 else
1551 client=false
1552 fi;
1553
1554 # Check whether --enable-client-utmp or --disable-client-utmp was given.
1555 if test "${enable_client_utmp+set}" = set; then
1556 enableval="$enable_client_utmp"
1557 case "${enableval}" in
1558 yes) client_utmp=true ;;
1559 no) client_utmp=false ;;
1560 *) { { echo "$as_me:$LINENO: error: bad value for --enable-client-utmp" >&5
1561 echo "$as_me: error: bad value for --enable-client-utmp" >&2;}
1562 { (exit 1); exit 1; }; } ;;
1563 esac
1564 else
1565 client_utmp=auto
1566
1567 fi;
1568
1569 if test $libraries = true; then
1570 SUBDIRS="\$(LIB_SUBDIRS)"
1571 WNNMANDIR="\$(LIB_WNNMANDIR)"
1572 fi
1573 if test $server = true; then
1574 SUBDIRS="$SUBDIRS \$(SERVER_SUBDIRS)"
1575 WNNMANDIR="$WNNMANDIR \$(SERVER_WNNMANDIR)"
1576 fi
1577 if test $client = true; then
1578 SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)"
1579 fi
1580
1581
1582
1583
1584
1585 # Check whether --enable-Wnn or --disable-Wnn was given.
1586 if test "${enable_Wnn+set}" = set; then
1587 enableval="$enable_Wnn"
1588 case "${enableval}" in
1589 yes) Wnn="Wnn";;
1590 no) Wnn="" ;;
1591 *) { { echo "$as_me:$LINENO: error: bad value for --enable-Wnn" >&5
1592 echo "$as_me: error: bad value for --enable-Wnn" >&2;}
1593 { (exit 1); exit 1; }; } ;;
1594 esac
1595 else
1596 Wnn="Wnn"
1597 fi;
1598
1599
1600 if test "$server" = true -a "$Wnn" = Wnn; then
1601 # JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)"
1602 JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)"
1603 else
1604 # JSERVER_SUBDIRS1=""
1605 JSERVER_SUBDIRS2=""
1606 fi
1607
1608
1609 # Check whether --enable-cWnn or --disable-cWnn was given.
1610 if test "${enable_cWnn+set}" = set; then
1611 enableval="$enable_cWnn"
1612 case "${enableval}" in
1613 yes) cWnn="cWnn" ;;
1614 no) cWnn="" ;;
1615 *) { { echo "$as_me:$LINENO: error: bad value for --enable-cWnn" >&5
1616 echo "$as_me: error: bad value for --enable-cWnn" >&2;}
1617 { (exit 1); exit 1; }; } ;;
1618 esac
1619 else
1620 cWnn="cWnn"
1621 fi;
1622
1623
1624 # Check whether --enable-kWnn or --disable-kWnn was given.
1625 if test "${enable_kWnn+set}" = set; then
1626 enableval="$enable_kWnn"
1627 case "${enableval}" in
1628 yes) kWnn="kWnn" ;;
1629 no) kWnn="" ;;
1630 *) { { echo "$as_me:$LINENO: error: bad value for --enable-kWnn" >&5
1631 echo "$as_me: error: bad value for --enable-kWnn" >&2;}
1632 { (exit 1); exit 1; }; } ;;
1633 esac
1634 else
1635 kWnn="kWnn"
1636 fi;
1637
1638
1639
1640
1641
1642 # Check whether --with-libwnn or --without-libwnn was given.
1643 if test "${with_libwnn+set}" = set; then
1644 withval="$with_libwnn"
1645 with_libwnn="${withval}"
1646
1647 # Check whether --with-wnn-includes or --without-wnn-includes was given.
1648 if test "${with_wnn_includes+set}" = set; then
1649 withval="$with_wnn_includes"
1650 wnnincludedir="-I${withval}"
1651 else
1652 wnnincludedir=''
1653 fi;
1654
1655 # Check whether --with-wnn-libraries or --without-wnn-libraries was given.
1656 if test "${with_wnn_libraries+set}" = set; then
1657 withval="$with_wnn_libraries"
1658 wnnlibdir="${withval}"
1659 else
1660 wnnlibdir='/usr/local/lib'
1661 fi;
1662 if test "X${with_libwnn}" = X-lwnn; then
1663 WNNJLIB="-L${wnnlibdir} -lwnn"
1664 elif test X"`echo ${with_libwnn} | grep '^/.*'`" != X ; then
1665 WNNJLIB="${with_libwnn}"
1666 else
1667 WNNJLIB="${wnnlibdir}/libwnn.a"
1668 fi
1669 DEPWNNJLIB=""
1670 HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data"
1671
1672 else
1673 WNNJLIB="\$(top_builddir)/Wnn/jlib/libwnn.la"
1674 DEPWNNJLIB="\$(WNNJLIB)"
1675 HINSI_DATA="\$(top_builddir)/Wnn/jd/hinsi.data"
1676
1677 fi;
1678
1679
1680
1681
1682
1683 # Check whether --with-libcwnn or --without-libcwnn was given.
1684 if test "${with_libcwnn+set}" = set; then
1685 withval="$with_libcwnn"
1686
1687
1688 # Check whether --with-cwnn-includes or --without-cwnn-includes was given.
1689 if test "${with_cwnn_includes+set}" = set; then
1690 withval="$with_cwnn_includes"
1691 cwnnincludedir="-I${withval}"
1692 else
1693 cwnnincludedir=''
1694 fi;
1695
1696 # Check whether --with-cwnn-libraries or --without-cwnn-libraries was given.
1697 if test "${with_cwnn_libraries+set}" = set; then
1698 withval="$with_cwnn_libraries"
1699 cwnnlibdir="${withval}"
1700 else
1701 cwnnlibdir='/usr/local/lib'
1702 fi;
1703 if test "X${with_libcwnn}" = X-lcwnn; then
1704 CWNNJLIB="-L${cwnnlibdir} -lcwnn"
1705 elif test X"`echo ${with_libcwnn} | grep '^/.*'`" != X ; then
1706 CWNNJLIB="${with_libcwnn}"
1707 else
1708 CWNNJLIB="${cwnnlibdir}/libcwnn.a"
1709 fi
1710 DEPCWNNJLIB=""
1711 CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data"
1712 THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
1713
1714 else
1715 CWNNJLIB="\$(top_builddir)/cWnn/jlib/libcwnn.la"
1716 DEPCWNNJLIB="\$(CWNNJLIB)"
1717 CHINSI_DATA="\$(CWNNCDSRC)/cixing.data"
1718 THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
1719
1720 fi;
1721
1722
1723
1724
1725
1726
1727 # Check whether --with-libkwnn or --without-libkwnn was given.
1728 if test "${with_libkwnn+set}" = set; then
1729 withval="$with_libkwnn"
1730
1731
1732 # Check whether --with-kwnn-includes or --without-kwnn-includes was given.
1733 if test "${with_kwnn_includes+set}" = set; then
1734 withval="$with_kwnn_includes"
1735 kwnnincludedir="-I${withval}"
1736 else
1737 kwnnincludedir=''
1738 fi;
1739
1740 # Check whether --with-kwnn-libraries or --without-kwnn-libraries was given.
1741 if test "${with_kwnn_libraries+set}" = set; then
1742 withval="$with_kwnn_libraries"
1743 kwnnlibdir="${withval}"
1744 else
1745 kwnnlibdir='/usr/local/lib'
1746 fi;
1747 if test "X${with_libkwnn}" = X-lkwnn; then
1748 KWNNJLIB="-L${kwnnlibdir} -lkwnn"
1749 elif test X"`echo ${with_libkwnn} | grep '^/.*'`" != X ; then
1750 KWNNJLIB="${with_libkwnn}"
1751 else
1752 KWNNJLIB="${kwnnlibdir}/libkwnn.a"
1753 fi
1754 DEPKWNNJLIB=""
1755 KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data"
1756
1757 else
1758 KWNNJLIB="\$(top_builddir)/kWnn/jlib/libkwnn.la"
1759 DEPKWNNJLIB="\$(KWNNJLIB)"
1760 KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data"
1761
1762 fi;
1763
1764
1765
1766
1767
1768 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1769 if test "${enable_ipv6+set}" = set; then
1770 enableval="$enable_ipv6"
1771 case "${enableval}" in
1772 yes) ipv6="-DINET6";;
1773 no) ipv6="" ;;
1774 *) { { echo "$as_me:$LINENO: error: bad value for --enable-ipv6" >&5
1775 echo "$as_me: error: bad value for --enable-ipv6" >&2;}
1776 { (exit 1); exit 1; }; } ;;
1777 esac
1778 else
1779 ipv6=""
1780 fi;
1781
1782
1783 # Check whether --enable-unsafe-path or --disable-unsafe-path was given.
1784 if test "${enable_unsafe_path+set}" = set; then
1785 enableval="$enable_unsafe_path"
1786 case "${enableval}" in
1787 yes) unsafe_path=true;;
1788 no) unsafe_path=false;;
1789 *) { { echo "$as_me:$LINENO: error: bad value for --enable-unsafe-path" >&5
1790 echo "$as_me: error: bad value for --enable-unsafe-path" >&2;}
1791 { (exit 1); exit 1; }; } ;;
1792 esac
1793 else
1794 unsafe_path=false
1795 fi;
1796
1797
1798 if test ${unsafe_path} = true; then
1799
1800 cat >>confdefs.h <<\_ACEOF
1801 #define WNN_ALLOW_UNSAFE_PATH 1
1802 _ACEOF
1803
1804 fi
1805
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833 done
1834 done
1835
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$ac_cv_prog_CC"; then
1849 ac_ct_CC=$CC
1850 # Extract the first word of "gcc", so it can be a program name with args.
1851 set dummy gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 CC=$ac_ct_CC
1886 else
1887 CC="$ac_cv_prog_CC"
1888 fi
1889
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913 done
1914 done
1915
1916 fi
1917 fi
1918 CC=$ac_cv_prog_CC
1919 if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1925 fi
1926
1927 fi
1928 if test -z "$ac_cv_prog_CC"; then
1929 ac_ct_CC=$CC
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC="cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1950 fi
1951 done
1952 done
1953
1954 fi
1955 fi
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965 CC=$ac_ct_CC
1966 else
1967 CC="$ac_cv_prog_CC"
1968 fi
1969
1970 fi
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 ac_prog_rejected=no
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1992 continue
1993 fi
1994 ac_cv_prog_CC="cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998 done
1999 done
2000
2001 if test $ac_prog_rejected = yes; then
2002 # We found a bogon in the path, so make sure we never use it.
2003 set dummy $ac_cv_prog_CC
2004 shift
2005 if test $# != 0; then
2006 # We chose a different compiler from the bogus one.
2007 # However, it has the same basename, so the bogon will be chosen
2008 # first if we set CC to just the basename; use the full file name.
2009 shift
2010 set dummy "$as_dir/$ac_word" ${1+"$@"}
2011 shift
2012 ac_cv_prog_CC="$@"
2013 fi
2014 fi
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019 echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 fi
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 for ac_prog in cl
2030 do
2031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2051 fi
2052 done
2053 done
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059 echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066 test -n "$CC" && break
2067 done
2068 fi
2069 if test -z "$CC"; then
2070 ac_ct_CC=$CC
2071 for ac_prog in cl
2072 do
2073 # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_ac_ct_CC="$ac_prog"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094 done
2095 done
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108 test -n "$ac_ct_CC" && break
2109 done
2110
2111 CC=$ac_ct_CC
2112 fi
2113
2114 fi
2115
2116
2117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2118 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO:" \
2123 "checking for C compiler version" >&5
2124 ac_compiler=`set X $ac_compile; echo $2`
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126 (eval $ac_compiler --version </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131 (eval $ac_compiler -v </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136 (eval $ac_compiler -V </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line $LINENO "configure"
2143 #include "confdefs.h"
2144
2145 #ifdef F77_DUMMY_MAIN
2146 # ifdef __cplusplus
2147 extern "C"
2148 # endif
2149 int F77_DUMMY_MAIN() { return 1; }
2150 #endif
2151 int
2152 main ()
2153 {
2154
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2163 # of exeext.
2164 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2165 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168 (eval $ac_link_default) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Find the output, starting from the most likely. This scheme is
2173 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174 # resort.
2175
2176 # Be careful to initialize this variable, since it used to be cached.
2177 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178 ac_cv_exeext=
2179 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2180 ls a.out conftest 2>/dev/null;
2181 ls a.* conftest.* 2>/dev/null`; do
2182 case $ac_file in
2183 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2184 a.out ) # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2189 export ac_cv_exeext
2190 break;;
2191 * ) break;;
2192 esac
2193 done
2194 else
2195 echo "$as_me: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2198 echo "$as_me: error: C compiler cannot create executables" >&2;}
2199 { (exit 77); exit 77; }; }
2200 fi
2201
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2205
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 cross_compiling=no
2220 else
2221 if test "$cross_compiling" = maybe; then
2222 cross_compiling=yes
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'." >&5
2226 echo "$as_me: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'." >&2;}
2228 { (exit 1); exit 1; }; }
2229 fi
2230 fi
2231 fi
2232 echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6
2234
2235 rm -f a.out a.exe conftest$ac_cv_exeext
2236 ac_clean_files=$ac_clean_files_save
2237 # Check the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2241 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6
2243
2244 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2247 (eval $ac_link) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; then
2251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2253 # work properly (i.e., refer to `conftest.exe'), while it won't with
2254 # `rm'.
2255 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2256 case $ac_file in
2257 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 export ac_cv_exeext
2260 break;;
2261 * ) break;;
2262 esac
2263 done
2264 else
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2266 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2267 { (exit 1); exit 1; }; }
2268 fi
2269
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2273
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2276 ac_exeext=$EXEEXT
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 #include "confdefs.h"
2285
2286 #ifdef F77_DUMMY_MAIN
2287 # ifdef __cplusplus
2288 extern "C"
2289 # endif
2290 int F77_DUMMY_MAIN() { return 1; }
2291 #endif
2292 int
2293 main ()
2294 {
2295
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 rm -f conftest.o conftest.obj
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2307 case $ac_file in
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2310 break;;
2311 esac
2312 done
2313 else
2314 echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2317 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2318 { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322 fi
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2326 ac_objext=$OBJEXT
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 #include "confdefs.h"
2335
2336 #ifdef F77_DUMMY_MAIN
2337 # ifdef __cplusplus
2338 extern "C"
2339 # endif
2340 int F77_DUMMY_MAIN() { return 1; }
2341 #endif
2342 int
2343 main ()
2344 {
2345 #ifndef __GNUC__
2346 choke me
2347 #endif
2348
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_compiler_gnu=yes
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 ac_compiler_gnu=no
2370 fi
2371 rm -f conftest.$ac_objext conftest.$ac_ext
2372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373
2374 fi
2375 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2377 GCC=`test $ac_compiler_gnu = yes && echo yes`
2378 ac_test_CFLAGS=${CFLAGS+set}
2379 ac_save_CFLAGS=$CFLAGS
2380 CFLAGS="-g"
2381 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 cat >conftest.$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2388 #include "confdefs.h"
2389
2390 #ifdef F77_DUMMY_MAIN
2391 # ifdef __cplusplus
2392 extern "C"
2393 # endif
2394 int F77_DUMMY_MAIN() { return 1; }
2395 #endif
2396 int
2397 main ()
2398 {
2399
2400 ;
2401 return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_prog_cc_g=yes
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 ac_cv_prog_cc_g=no
2421 fi
2422 rm -f conftest.$ac_objext conftest.$ac_ext
2423 fi
2424 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2425 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2426 if test "$ac_test_CFLAGS" = set; then
2427 CFLAGS=$ac_save_CFLAGS
2428 elif test $ac_cv_prog_cc_g = yes; then
2429 if test "$GCC" = yes; then
2430 CFLAGS="-g -O2"
2431 else
2432 CFLAGS="-g"
2433 fi
2434 else
2435 if test "$GCC" = yes; then
2436 CFLAGS="-O2"
2437 else
2438 CFLAGS=
2439 fi
2440 fi
2441 # Some people use a C++ compiler to compile C. Since we use `exit',
2442 # in C++ we need to declare it. In case someone uses the same compiler
2443 # for both compiling C and C++ we need to have the C++ compiler decide
2444 # the declaration of exit, since it's the most demanding environment.
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #ifndef __cplusplus
2447 choke me
2448 #endif
2449 _ACEOF
2450 rm -f conftest.$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 for ac_declaration in \
2463 ''\
2464 '#include <stdlib.h>' \
2465 'extern "C" void std::exit (int) throw (); using std::exit;' \
2466 'extern "C" void std::exit (int); using std::exit;' \
2467 'extern "C" void exit (int) throw ();' \
2468 'extern "C" void exit (int);' \
2469 'void exit (int);'
2470 do
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #line $LINENO "configure"
2473 #include "confdefs.h"
2474 #include <stdlib.h>
2475 $ac_declaration
2476 #ifdef F77_DUMMY_MAIN
2477 # ifdef __cplusplus
2478 extern "C"
2479 # endif
2480 int F77_DUMMY_MAIN() { return 1; }
2481 #endif
2482 int
2483 main ()
2484 {
2485 exit (42);
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2502 :
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2506 continue
2507 fi
2508 rm -f conftest.$ac_objext conftest.$ac_ext
2509 cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 #include "confdefs.h"
2512 $ac_declaration
2513 #ifdef F77_DUMMY_MAIN
2514 # ifdef __cplusplus
2515 extern "C"
2516 # endif
2517 int F77_DUMMY_MAIN() { return 1; }
2518 #endif
2519 int
2520 main ()
2521 {
2522 exit (42);
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 break
2540 else
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 fi
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2545 done
2546 rm -f conftest*
2547 if test -n "$ac_declaration"; then
2548 echo '#ifdef __cplusplus' >>confdefs.h
2549 echo $ac_declaration >>confdefs.h
2550 echo '#endif' >>confdefs.h
2551 fi
2552
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 fi
2557 rm -f conftest.$ac_objext conftest.$ac_ext
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564
2565 case $host in
2566 *-*-linux*)
2567 CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE"
2568 ;;
2569 *-*-darwin*)
2570 if test $GCC = yes; then
2571 # Unfortunately, autoconf (at least 2.57) does not recognize
2572 # proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does
2573 # not work with pubdic+ processing.) So define here ....
2574 # Note: It seems gcc-3.3 (or (probably) later) does not need this.
2575 CPP=${CPP:-"$CC -E -no-cpp-precomp"}
2576 fi
2577 # Don't care other CC-s.
2578 ;;
2579 *-*-sunos*)
2580 if test $GCC = yes; then
2581 CCOPTIONS="-Dsun -Dsparc"
2582 else
2583 CCOPTIONS=""
2584 fi
2585 ;;
2586 *-*-solaris2.*)
2587 # Will 'solaris*' be OK?
2588 if test $GCC = yes; then
2589 CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
2590 else
2591 CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
2592 fi
2593 ;;
2594 *-*-hpux*)
2595 if test $GCC = yes; then
2596 CCOPTIONS="-Dhpux -DSYSV"
2597 else
2598 CCOPTIONS="-Ae -Dhpux -DSYSV"
2599 fi
2600 ;;
2601 i[34567]86-pc-beos*)
2602 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
2603 ;;
2604 powerpc-*-beos*)
2605 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
2606 ;;
2607 *-*-aix*)
2608 CCOPTIONS="-DSYSV"
2609 ;;
2610 esac
2611
2612 if test $debug = true; then
2613 if test $GCC = yes; then
2614 # FIXME: gcc -fstack-check doesn't work well on Linux/i386 ...
2615 CDEBUGFLAGS=${CDEBUGFLAGS:-"-g2 -O2 -Wall"}
2616 else
2617 CDEBUGFLAGS=${CDEBUGFLAGS:-""}
2618 fi
2619 INSTPGMFLAGS=
2620 else
2621 CDEBUGFLAGS=${CDEBUGFLAGS:-""}
2622 INSTPGMFLAGS="-s"
2623 fi
2624
2625
2626
2627
2628 echo "Set CDEBUGFLAGS and CCOPTIONS to following:"
2629 echo ' CDEBUGFLAGS="'"$CDEBUGFLAGS"'"'
2630 echo ' CCOPTIONS="'"$CCOPTIONS"'"'
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2638 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2639 # On Suns, sometimes $CPP names a directory.
2640 if test -n "$CPP" && test -d "$CPP"; then
2641 CPP=
2642 fi
2643 if test -z "$CPP"; then
2644 if test "${ac_cv_prog_CPP+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 # Double quotes because CPP needs to be expanded
2648 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2649 do
2650 ac_preproc_ok=false
2651 for ac_c_preproc_warn_flag in '' yes
2652 do
2653 # Use a header file that comes with gcc, so configuring glibc
2654 # with a fresh cross-compiler works.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 #include "confdefs.h"
2660 #include <assert.h>
2661 Syntax error
2662 _ACEOF
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665 ac_status=$?
2666 egrep -v '^ *\+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } >/dev/null; then
2671 if test -s conftest.err; then
2672 ac_cpp_err=$ac_c_preproc_warn_flag
2673 else
2674 ac_cpp_err=
2675 fi
2676 else
2677 ac_cpp_err=yes
2678 fi
2679 if test -z "$ac_cpp_err"; then
2680 :
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 # Broken: fails on valid input.
2685 continue
2686 fi
2687 rm -f conftest.err conftest.$ac_ext
2688
2689 # OK, works on sane cases. Now check whether non-existent headers
2690 # can be detected and how.
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2694 #include <ac_nonexistent.h>
2695 _ACEOF
2696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2698 ac_status=$?
2699 egrep -v '^ *\+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } >/dev/null; then
2704 if test -s conftest.err; then
2705 ac_cpp_err=$ac_c_preproc_warn_flag
2706 else
2707 ac_cpp_err=
2708 fi
2709 else
2710 ac_cpp_err=yes
2711 fi
2712 if test -z "$ac_cpp_err"; then
2713 # Broken: success on invalid input.
2714 continue
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 # Passes both tests.
2719 ac_preproc_ok=:
2720 break
2721 fi
2722 rm -f conftest.err conftest.$ac_ext
2723
2724 done
2725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2726 rm -f conftest.err conftest.$ac_ext
2727 if $ac_preproc_ok; then
2728 break
2729 fi
2730
2731 done
2732 ac_cv_prog_CPP=$CPP
2733
2734 fi
2735 CPP=$ac_cv_prog_CPP
2736 else
2737 ac_cv_prog_CPP=$CPP
2738 fi
2739 echo "$as_me:$LINENO: result: $CPP" >&5
2740 echo "${ECHO_T}$CPP" >&6
2741 ac_preproc_ok=false
2742 for ac_c_preproc_warn_flag in '' yes
2743 do
2744 # Use a header file that comes with gcc, so configuring glibc
2745 # with a fresh cross-compiler works.
2746 # On the NeXT, cc -E runs the code through the compiler's parser,
2747 # not just through cpp. "Syntax error" is here to catch this case.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 #include "confdefs.h"
2751 #include <assert.h>
2752 Syntax error
2753 _ACEOF
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 ac_status=$?
2757 egrep -v '^ *\+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2764 else
2765 ac_cpp_err=
2766 fi
2767 else
2768 ac_cpp_err=yes
2769 fi
2770 if test -z "$ac_cpp_err"; then
2771 :
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 # Broken: fails on valid input.
2776 continue
2777 fi
2778 rm -f conftest.err conftest.$ac_ext
2779
2780 # OK, works on sane cases. Now check whether non-existent headers
2781 # can be detected and how.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 #include "confdefs.h"
2785 #include <ac_nonexistent.h>
2786 _ACEOF
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789 ac_status=$?
2790 egrep -v '^ *\+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2797 else
2798 ac_cpp_err=
2799 fi
2800 else
2801 ac_cpp_err=yes
2802 fi
2803 if test -z "$ac_cpp_err"; then
2804 # Broken: success on invalid input.
2805 continue
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 # Passes both tests.
2810 ac_preproc_ok=:
2811 break
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815 done
2816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2817 rm -f conftest.err conftest.$ac_ext
2818 if $ac_preproc_ok; then
2819 :
2820 else
2821 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2822 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826 ac_ext=c
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832
2833 # Find a good install program. We prefer a C program (faster),
2834 # so one script is as good as another. But avoid the broken or
2835 # incompatible versions:
2836 # SysV /etc/install, /usr/sbin/install
2837 # SunOS /usr/etc/install
2838 # IRIX /sbin/install
2839 # AIX /bin/install
2840 # AmigaOS /C/install, which installs bootblocks on floppy discs
2841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844 # ./install, which can be erroneously created by make from ./install.sh.
2845 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2846 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2847 if test -z "$INSTALL"; then
2848 if test "${ac_cv_path_install+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 # Account for people who put trailing slashes in PATH elements.
2857 case $as_dir/ in
2858 ./ | .// | /cC/* | \
2859 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2860 /usr/ucb/* ) ;;
2861 *)
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2864 # by default.
2865 for ac_prog in ginstall scoinst install; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2868 if test $ac_prog = install &&
2869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2871 :
2872 elif test $ac_prog = install &&
2873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2875 :
2876 else
2877 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2878 break 3
2879 fi
2880 fi
2881 done
2882 done
2883 ;;
2884 esac
2885 done
2886
2887
2888 fi
2889 if test "${ac_cv_path_install+set}" = set; then
2890 INSTALL=$ac_cv_path_install
2891 else
2892 # As a last resort, use the slow shell script. We don't cache a
2893 # path for INSTALL within a source directory, because that will
2894 # break other packages using the cache if that directory is
2895 # removed, or if the path is relative.
2896 INSTALL=$ac_install_sh
2897 fi
2898 fi
2899 echo "$as_me:$LINENO: result: $INSTALL" >&5
2900 echo "${ECHO_T}$INSTALL" >&6
2901
2902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2903 # It thinks the first close brace ends the variable substitution.
2904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2905
2906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2907
2908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2909
2910 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2911 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2912 LN_S=$as_ln_s
2913 if test "$LN_S" = "ln -s"; then
2914 echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6
2916 else
2917 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2918 echo "${ECHO_T}no, using $LN_S" >&6
2919 fi
2920
2921 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2922 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2923 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2924 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 cat >conftest.make <<\_ACEOF
2928 all:
2929 @echo 'ac_maketemp="${MAKE}"'
2930 _ACEOF
2931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2932 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2933 if test -n "$ac_maketemp"; then
2934 eval ac_cv_prog_make_${ac_make}_set=yes
2935 else
2936 eval ac_cv_prog_make_${ac_make}_set=no
2937 fi
2938 rm -f conftest.make
2939 fi
2940 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2941 echo "$as_me:$LINENO: result: yes" >&5
2942 echo "${ECHO_T}yes" >&6
2943 SET_MAKE=
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2947 SET_MAKE="MAKE=${MAKE-make}"
2948 fi
2949
2950 # Check whether --enable-shared or --disable-shared was given.
2951 if test "${enable_shared+set}" = set; then
2952 enableval="$enable_shared"
2953 p=${PACKAGE-default}
2954 case $enableval in
2955 yes) enable_shared=yes ;;
2956 no) enable_shared=no ;;
2957 *)
2958 enable_shared=no
2959 # Look at the argument we got. We use all the common list separators.
2960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2961 for pkg in $enableval; do
2962 IFS="$lt_save_ifs"
2963 if test "X$pkg" = "X$p"; then
2964 enable_shared=yes
2965 fi
2966 done
2967 IFS="$lt_save_ifs"
2968 ;;
2969 esac
2970 else
2971 enable_shared=yes
2972 fi;
2973
2974 # Check whether --enable-static or --disable-static was given.
2975 if test "${enable_static+set}" = set; then
2976 enableval="$enable_static"
2977 p=${PACKAGE-default}
2978 case $enableval in
2979 yes) enable_static=yes ;;
2980 no) enable_static=no ;;
2981 *)
2982 enable_static=no
2983 # Look at the argument we got. We use all the common list separators.
2984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2985 for pkg in $enableval; do
2986 IFS="$lt_save_ifs"
2987 if test "X$pkg" = "X$p"; then
2988 enable_static=yes
2989 fi
2990 done
2991 IFS="$lt_save_ifs"
2992 ;;
2993 esac
2994 else
2995 enable_static=yes
2996 fi;
2997
2998 # Check whether --enable-fast-install or --disable-fast-install was given.
2999 if test "${enable_fast_install+set}" = set; then
3000 enableval="$enable_fast_install"
3001 p=${PACKAGE-default}
3002 case $enableval in
3003 yes) enable_fast_install=yes ;;
3004 no) enable_fast_install=no ;;
3005 *)
3006 enable_fast_install=no
3007 # Look at the argument we got. We use all the common list separators.
3008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3009 for pkg in $enableval; do
3010 IFS="$lt_save_ifs"
3011 if test "X$pkg" = "X$p"; then
3012 enable_fast_install=yes
3013 fi
3014 done
3015 IFS="$lt_save_ifs"
3016 ;;
3017 esac
3018 else
3019 enable_fast_install=yes
3020 fi;
3021
3022 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3023 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3024 if test "${lt_cv_path_SED+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 # Loop through the user's path and test for sed and gsed.
3028 # Then use that list of sed's as ones to test for truncation.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for lt_ac_prog in sed gsed; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3037 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3038 fi
3039 done
3040 done
3041 done
3042 lt_ac_max=0
3043 lt_ac_count=0
3044 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3045 # along with /bin/sed that truncates output.
3046 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3047 test ! -f $lt_ac_sed && break
3048 cat /dev/null > conftest.in
3049 lt_ac_count=0
3050 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3051 # Check for GNU sed and select it if it is found.
3052 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3053 lt_cv_path_SED=$lt_ac_sed
3054 break
3055 fi
3056 while true; do
3057 cat conftest.in conftest.in >conftest.tmp
3058 mv conftest.tmp conftest.in
3059 cp conftest.in conftest.nl
3060 echo >>conftest.nl
3061 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3062 cmp -s conftest.out conftest.nl || break
3063 # 10000 chars as input seems more than enough
3064 test $lt_ac_count -gt 10 && break
3065 lt_ac_count=`expr $lt_ac_count + 1`
3066 if test $lt_ac_count -gt $lt_ac_max; then
3067 lt_ac_max=$lt_ac_count
3068 lt_cv_path_SED=$lt_ac_sed
3069 fi
3070 done
3071 done
3072 SED=$lt_cv_path_SED
3073
3074 fi
3075
3076 echo "$as_me:$LINENO: result: $SED" >&5
3077 echo "${ECHO_T}$SED" >&6
3078
3079 echo "$as_me:$LINENO: checking for egrep" >&5
3080 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3081 if test "${ac_cv_prog_egrep+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3085 then ac_cv_prog_egrep='grep -E'
3086 else ac_cv_prog_egrep='egrep'
3087 fi
3088 fi
3089 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3090 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3091 EGREP=$ac_cv_prog_egrep
3092
3093
3094
3095 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3096 if test "${with_gnu_ld+set}" = set; then
3097 withval="$with_gnu_ld"
3098 test "$withval" = no || with_gnu_ld=yes
3099 else
3100 with_gnu_ld=no
3101 fi;
3102 ac_prog=ld
3103 if test "$GCC" = yes; then
3104 # Check if gcc -print-prog-name=ld gives a path.
3105 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3106 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3107 case $host in
3108 *-*-mingw*)
3109 # gcc leaves a trailing carriage return which upsets mingw
3110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3111 *)
3112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3113 esac
3114 case $ac_prog in
3115 # Accept absolute paths.
3116 [\\/]* | ?:[\\/]*)
3117 re_direlt='/[^/][^/]*/\.\./'
3118 # Canonicalize the path of ld
3119 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3121 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3122 done
3123 test -z "$LD" && LD="$ac_prog"
3124 ;;
3125 "")
3126 # If it fails, then pretend we aren't using GCC.
3127 ac_prog=ld
3128 ;;
3129 *)
3130 # If it is relative, then search for the first ld in PATH.
3131 with_gnu_ld=unknown
3132 ;;
3133 esac
3134 elif test "$with_gnu_ld" = yes; then
3135 echo "$as_me:$LINENO: checking for GNU ld" >&5
3136 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3137 else
3138 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3139 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3140 fi
3141 if test "${lt_cv_path_LD+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 if test -z "$LD"; then
3145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3146 for ac_dir in $PATH; do
3147 IFS="$lt_save_ifs"
3148 test -z "$ac_dir" && ac_dir=.
3149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3150 lt_cv_path_LD="$ac_dir/$ac_prog"
3151 # Check to see if the program is GNU ld. I'd rather use --version,
3152 # but apparently some GNU ld's only accept -v.
3153 # Break only if it was the GNU/non-GNU ld that we prefer.
3154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3155 *GNU* | *'with BFD'*)
3156 test "$with_gnu_ld" != no && break
3157 ;;
3158 *)
3159 test "$with_gnu_ld" != yes && break
3160 ;;
3161 esac
3162 fi
3163 done
3164 IFS="$lt_save_ifs"
3165 else
3166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3167 fi
3168 fi
3169
3170 LD="$lt_cv_path_LD"
3171 if test -n "$LD"; then
3172 echo "$as_me:$LINENO: result: $LD" >&5
3173 echo "${ECHO_T}$LD" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi
3178 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3179 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3180 { (exit 1); exit 1; }; }
3181 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3182 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3183 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3187 case `"$LD" -v 2>&1 </dev/null` in
3188 *GNU* | *'with BFD'*)
3189 lt_cv_prog_gnu_ld=yes
3190 ;;
3191 *)
3192 lt_cv_prog_gnu_ld=no
3193 ;;
3194 esac
3195 fi
3196 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3197 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3198 with_gnu_ld=$lt_cv_prog_gnu_ld
3199
3200
3201 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3202 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3203 if test "${lt_cv_ld_reload_flag+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 lt_cv_ld_reload_flag='-r'
3207 fi
3208 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3209 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3210 reload_flag=$lt_cv_ld_reload_flag
3211 case $reload_flag in
3212 "" | " "*) ;;
3213 *) reload_flag=" $reload_flag" ;;
3214 esac
3215 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3216
3217 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3218 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3219 if test "${lt_cv_path_NM+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 if test -n "$NM"; then
3223 # Let the user override the test.
3224 lt_cv_path_NM="$NM"
3225 else
3226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3227 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3228 IFS="$lt_save_ifs"
3229 test -z "$ac_dir" && ac_dir=.
3230 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3231 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3232 # Check to see if the nm accepts a BSD-compat flag.
3233 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3234 # nm: unknown option "B" ignored
3235 # Tru64's nm complains that /dev/null is an invalid object file
3236 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3237 */dev/null* | *'Invalid file or object type'*)
3238 lt_cv_path_NM="$tmp_nm -B"
3239 break
3240 ;;
3241 *)
3242 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3243 */dev/null*)
3244 lt_cv_path_NM="$tmp_nm -p"
3245 break
3246 ;;
3247 *)
3248 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3249 continue # so that we can try to find one that supports BSD flags
3250 ;;
3251 esac
3252 esac
3253 fi
3254 done
3255 IFS="$lt_save_ifs"
3256 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3257 fi
3258 fi
3259 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3260 echo "${ECHO_T}$lt_cv_path_NM" >&6
3261 NM="$lt_cv_path_NM"
3262
3263 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3264 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3265 if test "${lt_cv_deplibs_check_method+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 lt_cv_file_magic_cmd='$MAGIC_CMD'
3269 lt_cv_file_magic_test_file=
3270 lt_cv_deplibs_check_method='unknown'
3271 # Need to set the preceding variable on all platforms that support
3272 # interlibrary dependencies.
3273 # 'none' -- dependencies not supported.
3274 # `unknown' -- same as none, but documents that we really don't know.
3275 # 'pass_all' -- all dependencies passed with no checks.
3276 # 'test_compile' -- check by making test program.
3277 # 'file_magic [[regex]]' -- check by looking for files in library path
3278 # which responds to the $file_magic_cmd with a given extended regex.
3279 # If you have `file' or equivalent on your system and you're not sure
3280 # whether `pass_all' will *always* work, you probably want this one.
3281
3282 case $host_os in
3283 aix4* | aix5*)
3284 lt_cv_deplibs_check_method=pass_all
3285 ;;
3286
3287 beos*)
3288 lt_cv_deplibs_check_method=pass_all
3289 ;;
3290
3291 bsdi4*)
3292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3293 lt_cv_file_magic_cmd='/usr/bin/file -L'
3294 lt_cv_file_magic_test_file=/shlib/libc.so
3295 ;;
3296
3297 cygwin* | mingw* | pw32*)
3298 # win32_libid is a shell function defined in ltmain.sh
3299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3300 lt_cv_file_magic_cmd='win32_libid'
3301 ;;
3302
3303 darwin* | rhapsody*)
3304 # this will be overwritten by pass_all, but leave it in just in case
3305 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3306 lt_cv_file_magic_cmd='/usr/bin/file -L'
3307 case "$host_os" in
3308 rhapsody* | darwin1.[012])
3309 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3310 ;;
3311 *) # Darwin 1.3 on
3312 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3313 ;;
3314 esac
3315 lt_cv_deplibs_check_method=pass_all
3316 ;;
3317
3318 freebsd*)
3319 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3320 case $host_cpu in
3321 i*86 )
3322 # Not sure whether the presence of OpenBSD here was a mistake.
3323 # Let's accept both of them until this is cleared up.
3324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3325 lt_cv_file_magic_cmd=/usr/bin/file
3326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3327 ;;
3328 esac
3329 else
3330 lt_cv_deplibs_check_method=pass_all
3331 fi
3332 ;;
3333
3334 gnu*)
3335 lt_cv_deplibs_check_method=pass_all
3336 ;;
3337
3338 hpux10.20* | hpux11*)
3339 lt_cv_file_magic_cmd=/usr/bin/file
3340 case "$host_cpu" in
3341 ia64*)
3342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3344 ;;
3345 hppa*64*)
3346 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]'
3347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3348 ;;
3349 *)
3350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3351 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3352 ;;
3353 esac
3354 ;;
3355
3356 irix5* | irix6* | nonstopux*)
3357 case $host_os in
3358 irix5* | nonstopux*)
3359 # this will be overridden with pass_all, but let us keep it just in case
3360 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3361 ;;
3362 *)
3363 case $LD in
3364 *-32|*"-32 ") libmagic=32-bit;;
3365 *-n32|*"-n32 ") libmagic=N32;;
3366 *-64|*"-64 ") libmagic=64-bit;;
3367 *) libmagic=never-match;;
3368 esac
3369 # this will be overridden with pass_all, but let us keep it just in case
3370 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3371 ;;
3372 esac
3373 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376
3377 # This must be Linux ELF.
3378 linux*)
3379 case $host_cpu in
3380 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3381 lt_cv_deplibs_check_method=pass_all ;;
3382 *)
3383 # glibc up to 2.1.1 does not perform some relocations on ARM
3384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3385 esac
3386 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3387 ;;
3388
3389 netbsd*)
3390 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3392 else
3393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3394 fi
3395 ;;
3396
3397 newos6*)
3398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3399 lt_cv_file_magic_cmd=/usr/bin/file
3400 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3401 ;;
3402
3403 nto-qnx)
3404 lt_cv_deplibs_check_method=unknown
3405 ;;
3406
3407 openbsd*)
3408 lt_cv_file_magic_cmd=/usr/bin/file
3409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3412 else
3413 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3414 fi
3415 ;;
3416
3417 osf3* | osf4* | osf5*)
3418 # this will be overridden with pass_all, but let us keep it just in case
3419 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3420 lt_cv_file_magic_test_file=/shlib/libc.so
3421 lt_cv_deplibs_check_method=pass_all
3422 ;;
3423
3424 sco3.2v5*)
3425 lt_cv_deplibs_check_method=pass_all
3426 ;;
3427
3428 solaris*)
3429 lt_cv_deplibs_check_method=pass_all
3430 lt_cv_file_magic_test_file=/lib/libc.so
3431 ;;
3432
3433 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3434 case $host_vendor in
3435 motorola)
3436 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]'
3437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3438 ;;
3439 ncr)
3440 lt_cv_deplibs_check_method=pass_all
3441 ;;
3442 sequent)
3443 lt_cv_file_magic_cmd='/bin/file'
3444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3445 ;;
3446 sni)
3447 lt_cv_file_magic_cmd='/bin/file'
3448 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3449 lt_cv_file_magic_test_file=/lib/libc.so
3450 ;;
3451 siemens)
3452 lt_cv_deplibs_check_method=pass_all
3453 ;;
3454 esac
3455 ;;
3456
3457 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3458 lt_cv_deplibs_check_method=pass_all
3459 ;;
3460 esac
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3467 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3468
3469
3470
3471
3472 # If no C compiler was specified, use CC.
3473 LTCC=${LTCC-"$CC"}
3474
3475 # Allow CC to be a program name with arguments.
3476 compiler=$CC
3477
3478
3479 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3480 if test "${enable_libtool_lock+set}" = set; then
3481 enableval="$enable_libtool_lock"
3482
3483 fi;
3484 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3485
3486 # Some flags need to be propagated to the compiler or linker for good
3487 # libtool support.
3488 case $host in
3489 ia64-*-hpux*)
3490 # Find out which ABI we are using.
3491 echo 'int i;' > conftest.$ac_ext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; then
3497 case `/usr/bin/file conftest.$ac_objext` in
3498 *ELF-32*)
3499 HPUX_IA64_MODE="32"
3500 ;;
3501 *ELF-64*)
3502 HPUX_IA64_MODE="64"
3503 ;;
3504 esac
3505 fi
3506 rm -rf conftest*
3507 ;;
3508 *-*-irix6*)
3509 # Find out which ABI we are using.
3510 echo '#line 3510 "configure"' > conftest.$ac_ext
3511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; then
3516 if test "$lt_cv_prog_gnu_ld" = yes; then
3517 case `/usr/bin/file conftest.$ac_objext` in
3518 *32-bit*)
3519 LD="${LD-ld} -melf32bsmip"
3520 ;;
3521 *N32*)
3522 LD="${LD-ld} -melf32bmipn32"
3523 ;;
3524 *64-bit*)
3525 LD="${LD-ld} -melf64bmip"
3526 ;;
3527 esac
3528 else
3529 case `/usr/bin/file conftest.$ac_objext` in
3530 *32-bit*)
3531 LD="${LD-ld} -32"
3532 ;;
3533 *N32*)
3534 LD="${LD-ld} -n32"
3535 ;;
3536 *64-bit*)
3537 LD="${LD-ld} -64"
3538 ;;
3539 esac
3540 fi
3541 fi
3542 rm -rf conftest*
3543 ;;
3544
3545 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3546 # Find out which ABI we are using.
3547 echo 'int i;' > conftest.$ac_ext
3548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3549 (eval $ac_compile) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; then
3553 case "`/usr/bin/file conftest.o`" in
3554 *32-bit*)
3555 case $host in
3556 x86_64-*linux*)
3557 LD="${LD-ld} -m elf_i386"
3558 ;;
3559 ppc64-*linux*)
3560 LD="${LD-ld} -m elf32ppclinux"
3561 ;;
3562 s390x-*linux*)
3563 LD="${LD-ld} -m elf_s390"
3564 ;;
3565 sparc64-*linux*)
3566 LD="${LD-ld} -m elf32_sparc"
3567 ;;
3568 esac
3569 ;;
3570 *64-bit*)
3571 case $host in
3572 x86_64-*linux*)
3573 LD="${LD-ld} -m elf_x86_64"
3574 ;;
3575 ppc*-*linux*|powerpc*-*linux*)
3576 LD="${LD-ld} -m elf64ppc"
3577 ;;
3578 s390*-*linux*)
3579 LD="${LD-ld} -m elf64_s390"
3580 ;;
3581 sparc*-*linux*)
3582 LD="${LD-ld} -m elf64_sparc"
3583 ;;
3584 esac
3585 ;;
3586 esac
3587 fi
3588 rm -rf conftest*
3589 ;;
3590
3591 *-*-sco3.2v5*)
3592 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3593 SAVE_CFLAGS="$CFLAGS"
3594 CFLAGS="$CFLAGS -belf"
3595 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3596 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3597 if test "${lt_cv_cc_needs_belf+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606 cat >conftest.$ac_ext <<_ACEOF
3607 #line $LINENO "configure"
3608 #include "confdefs.h"
3609
3610 #ifdef F77_DUMMY_MAIN
3611 # ifdef __cplusplus
3612 extern "C"
3613 # endif
3614 int F77_DUMMY_MAIN() { return 1; }
3615 #endif
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.$ac_objext conftest$ac_exeext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626 (eval $ac_link) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -s conftest$ac_exeext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 lt_cv_cc_needs_belf=yes
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 lt_cv_cc_needs_belf=no
3641 fi
3642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649 fi
3650 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3651 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3652 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3653 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3654 CFLAGS="$SAVE_CFLAGS"
3655 fi
3656 ;;
3657
3658 esac
3659
3660 need_locks="$enable_libtool_lock"
3661
3662
3663
3664 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3665 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3666 if test "${ac_cv_header_stdc+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 cat >conftest.$ac_ext <<_ACEOF
3670 #line $LINENO "configure"
3671 #include "confdefs.h"
3672 #include <stdlib.h>
3673 #include <stdarg.h>
3674 #include <string.h>
3675 #include <float.h>
3676
3677 _ACEOF
3678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3680 ac_status=$?
3681 egrep -v '^ *\+' conftest.er1 >conftest.err
3682 rm -f conftest.er1
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } >/dev/null; then
3686 if test -s conftest.err; then
3687 ac_cpp_err=$ac_c_preproc_warn_flag
3688 else
3689 ac_cpp_err=
3690 fi
3691 else
3692 ac_cpp_err=yes
3693 fi
3694 if test -z "$ac_cpp_err"; then
3695 ac_cv_header_stdc=yes
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 ac_cv_header_stdc=no
3700 fi
3701 rm -f conftest.err conftest.$ac_ext
3702
3703 if test $ac_cv_header_stdc = yes; then
3704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line $LINENO "configure"
3707 #include "confdefs.h"
3708 #include <string.h>
3709
3710 _ACEOF
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 egrep "memchr" >/dev/null 2>&1; then
3713 :
3714 else
3715 ac_cv_header_stdc=no
3716 fi
3717 rm -f conftest*
3718
3719 fi
3720
3721 if test $ac_cv_header_stdc = yes; then
3722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3723 cat >conftest.$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3725 #include "confdefs.h"
3726 #include <stdlib.h>
3727
3728 _ACEOF
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 egrep "free" >/dev/null 2>&1; then
3731 :
3732 else
3733 ac_cv_header_stdc=no
3734 fi
3735 rm -f conftest*
3736
3737 fi
3738
3739 if test $ac_cv_header_stdc = yes; then
3740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3741 if test "$cross_compiling" = yes; then
3742 :
3743 else
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line $LINENO "configure"
3746 #include "confdefs.h"
3747 #include <ctype.h>
3748 #if ((' ' & 0x0FF) == 0x020)
3749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 #else
3752 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3753 || ('j' <= (c) && (c) <= 'r') \
3754 || ('s' <= (c) && (c) <= 'z'))
3755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3756 #endif
3757
3758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3759 int
3760 main ()
3761 {
3762 int i;
3763 for (i = 0; i < 256; i++)
3764 if (XOR (islower (i), ISLOWER (i))
3765 || toupper (i) != TOUPPER (i))
3766 exit(2);
3767 exit (0);
3768 }
3769 _ACEOF
3770 rm -f conftest$ac_exeext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772 (eval $ac_link) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 :
3782 else
3783 echo "$as_me: program exited with status $ac_status" >&5
3784 echo "$as_me: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3786 ( exit $ac_status )
3787 ac_cv_header_stdc=no
3788 fi
3789 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3790 fi
3791 fi
3792 fi
3793 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3794 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3795 if test $ac_cv_header_stdc = yes; then
3796
3797 cat >>confdefs.h <<\_ACEOF
3798 #define STDC_HEADERS 1
3799 _ACEOF
3800
3801 fi
3802
3803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3814 inttypes.h stdint.h unistd.h
3815 do
3816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817 echo "$as_me:$LINENO: checking for $ac_header" >&5
3818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 cat >conftest.$ac_ext <<_ACEOF
3823 #line $LINENO "configure"
3824 #include "confdefs.h"
3825 $ac_includes_default
3826
3827 #include <$ac_header>
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 eval "$as_ac_Header=yes"
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3845 eval "$as_ac_Header=no"
3846 fi
3847 rm -f conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852 cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3854 _ACEOF
3855
3856 fi
3857
3858 done
3859
3860
3861
3862 for ac_header in dlfcn.h
3863 do
3864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3866 echo "$as_me:$LINENO: checking for $ac_header" >&5
3867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 fi
3871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3873 else
3874 # Is the header compilable?
3875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3877 cat >conftest.$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3879 #include "confdefs.h"
3880 $ac_includes_default
3881 #include <$ac_header>
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 (eval $ac_try) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 ac_header_compiler=yes
3896 else
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3899 ac_header_compiler=no
3900 fi
3901 rm -f conftest.$ac_objext conftest.$ac_ext
3902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3903 echo "${ECHO_T}$ac_header_compiler" >&6
3904
3905 # Is the header present?
3906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3910 #include "confdefs.h"
3911 #include <$ac_header>
3912 _ACEOF
3913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3915 ac_status=$?
3916 egrep -v '^ *\+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null; then
3921 if test -s conftest.err; then
3922 ac_cpp_err=$ac_c_preproc_warn_flag
3923 else
3924 ac_cpp_err=
3925 fi
3926 else
3927 ac_cpp_err=yes
3928 fi
3929 if test -z "$ac_cpp_err"; then
3930 ac_header_preproc=yes
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 ac_header_preproc=no
3935 fi
3936 rm -f conftest.err conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3938 echo "${ECHO_T}$ac_header_preproc" >&6
3939
3940 # So? What about this header?
3941 case $ac_header_compiler:$ac_header_preproc in
3942 yes:no )
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3947 no:yes )
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3954 esac
3955 echo "$as_me:$LINENO: checking for $ac_header" >&5
3956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 eval "$as_ac_Header=$ac_header_preproc"
3961 fi
3962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3964
3965 fi
3966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3967 cat >>confdefs.h <<_ACEOF
3968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3969 _ACEOF
3970
3971 fi
3972
3973 done
3974
3975 ac_ext=cc
3976 ac_cpp='$CXXCPP $CPPFLAGS'
3977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3980 if test -n "$ac_tool_prefix"; then
3981 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3982 do
3983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3985 echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987 if test "${ac_cv_prog_CXX+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 if test -n "$CXX"; then
3991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006
4007 fi
4008 fi
4009 CXX=$ac_cv_prog_CXX
4010 if test -n "$CXX"; then
4011 echo "$as_me:$LINENO: result: $CXX" >&5
4012 echo "${ECHO_T}$CXX" >&6
4013 else
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017
4018 test -n "$CXX" && break
4019 done
4020 fi
4021 if test -z "$CXX"; then
4022 ac_ct_CXX=$CXX
4023 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4024 do
4025 # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy $ac_prog; ac_word=$2
4027 echo "$as_me:$LINENO: checking for $ac_word" >&5
4028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 if test -n "$ac_ct_CXX"; then
4033 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_CXX="$ac_prog"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048
4049 fi
4050 fi
4051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4052 if test -n "$ac_ct_CXX"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4054 echo "${ECHO_T}$ac_ct_CXX" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060 test -n "$ac_ct_CXX" && break
4061 done
4062 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4063
4064 CXX=$ac_ct_CXX
4065 fi
4066
4067
4068 # Provide some information about the compiler.
4069 echo "$as_me:$LINENO:" \
4070 "checking for C++ compiler version" >&5
4071 ac_compiler=`set X $ac_compile; echo $2`
4072 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4073 (eval $ac_compiler --version </dev/null >&5) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }
4077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4078 (eval $ac_compiler -v </dev/null >&5) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }
4082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4083 (eval $ac_compiler -V </dev/null >&5) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }
4087
4088 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4089 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4090 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4095 #include "confdefs.h"
4096
4097 #ifdef F77_DUMMY_MAIN
4098 # ifdef __cplusplus
4099 extern "C"
4100 # endif
4101 int F77_DUMMY_MAIN() { return 1; }
4102 #endif
4103 int
4104 main ()
4105 {
4106 #ifndef __GNUC__
4107 choke me
4108 #endif
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_compiler_gnu=yes
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 ac_compiler_gnu=no
4131 fi
4132 rm -f conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4134
4135 fi
4136 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4137 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4138 GXX=`test $ac_compiler_gnu = yes && echo yes`
4139 ac_test_CXXFLAGS=${CXXFLAGS+set}
4140 ac_save_CXXFLAGS=$CXXFLAGS
4141 CXXFLAGS="-g"
4142 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4143 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4144 if test "${ac_cv_prog_cxx_g+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 cat >conftest.$ac_ext <<_ACEOF
4148 #line $LINENO "configure"
4149 #include "confdefs.h"
4150
4151 #ifdef F77_DUMMY_MAIN
4152 # ifdef __cplusplus
4153 extern "C"
4154 # endif
4155 int F77_DUMMY_MAIN() { return 1; }
4156 #endif
4157 int
4158 main ()
4159 {
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_prog_cxx_g=yes
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4181 ac_cv_prog_cxx_g=no
4182 fi
4183 rm -f conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4186 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4187 if test "$ac_test_CXXFLAGS" = set; then
4188 CXXFLAGS=$ac_save_CXXFLAGS
4189 elif test $ac_cv_prog_cxx_g = yes; then
4190 if test "$GXX" = yes; then
4191 CXXFLAGS="-g -O2"
4192 else
4193 CXXFLAGS="-g"
4194 fi
4195 else
4196 if test "$GXX" = yes; then
4197 CXXFLAGS="-O2"
4198 else
4199 CXXFLAGS=
4200 fi
4201 fi
4202 for ac_declaration in \
4203 ''\
4204 '#include <stdlib.h>' \
4205 'extern "C" void std::exit (int) throw (); using std::exit;' \
4206 'extern "C" void std::exit (int); using std::exit;' \
4207 'extern "C" void exit (int) throw ();' \
4208 'extern "C" void exit (int);' \
4209 'void exit (int);'
4210 do
4211 cat >conftest.$ac_ext <<_ACEOF
4212 #line $LINENO "configure"
4213 #include "confdefs.h"
4214 #include <stdlib.h>
4215 $ac_declaration
4216 #ifdef F77_DUMMY_MAIN
4217 # ifdef __cplusplus
4218 extern "C"
4219 # endif
4220 int F77_DUMMY_MAIN() { return 1; }
4221 #endif
4222 int
4223 main ()
4224 {
4225 exit (42);
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 :
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 continue
4247 fi
4248 rm -f conftest.$ac_objext conftest.$ac_ext
4249 cat >conftest.$ac_ext <<_ACEOF
4250 #line $LINENO "configure"
4251 #include "confdefs.h"
4252 $ac_declaration
4253 #ifdef F77_DUMMY_MAIN
4254 # ifdef __cplusplus
4255 extern "C"
4256 # endif
4257 int F77_DUMMY_MAIN() { return 1; }
4258 #endif
4259 int
4260 main ()
4261 {
4262 exit (42);
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269 (eval $ac_compile) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 break
4280 else
4281 echo "$as_me: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4283 fi
4284 rm -f conftest.$ac_objext conftest.$ac_ext
4285 done
4286 rm -f conftest*
4287 if test -n "$ac_declaration"; then
4288 echo '#ifdef __cplusplus' >>confdefs.h
4289 echo $ac_declaration >>confdefs.h
4290 echo '#endif' >>confdefs.h
4291 fi
4292
4293 ac_ext=cc
4294 ac_cpp='$CXXCPP $CPPFLAGS'
4295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4298
4299 ac_ext=cc
4300 ac_cpp='$CXXCPP $CPPFLAGS'
4301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4304 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4305 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4306 if test -z "$CXXCPP"; then
4307 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 # Double quotes because CXXCPP needs to be expanded
4311 for CXXCPP in "$CXX -E" "/lib/cpp"
4312 do
4313 ac_preproc_ok=false
4314 for ac_cxx_preproc_warn_flag in '' yes
4315 do
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat >conftest.$ac_ext <<_ACEOF
4321 #line $LINENO "configure"
4322 #include "confdefs.h"
4323 #include <assert.h>
4324 Syntax error
4325 _ACEOF
4326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4328 ac_status=$?
4329 egrep -v '^ *\+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } >/dev/null; then
4334 if test -s conftest.err; then
4335 ac_cpp_err=$ac_cxx_preproc_warn_flag
4336 else
4337 ac_cpp_err=
4338 fi
4339 else
4340 ac_cpp_err=yes
4341 fi
4342 if test -z "$ac_cpp_err"; then
4343 :
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4347 # Broken: fails on valid input.
4348 continue
4349 fi
4350 rm -f conftest.err conftest.$ac_ext
4351
4352 # OK, works on sane cases. Now check whether non-existent headers
4353 # can be detected and how.
4354 cat >conftest.$ac_ext <<_ACEOF
4355 #line $LINENO "configure"
4356 #include "confdefs.h"
4357 #include <ac_nonexistent.h>
4358 _ACEOF
4359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4361 ac_status=$?
4362 egrep -v '^ *\+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } >/dev/null; then
4367 if test -s conftest.err; then
4368 ac_cpp_err=$ac_cxx_preproc_warn_flag
4369 else
4370 ac_cpp_err=
4371 fi
4372 else
4373 ac_cpp_err=yes
4374 fi
4375 if test -z "$ac_cpp_err"; then
4376 # Broken: success on invalid input.
4377 continue
4378 else
4379 echo "$as_me: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4381 # Passes both tests.
4382 ac_preproc_ok=:
4383 break
4384 fi
4385 rm -f conftest.err conftest.$ac_ext
4386
4387 done
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then
4391 break
4392 fi
4393
4394 done
4395 ac_cv_prog_CXXCPP=$CXXCPP
4396
4397 fi
4398 CXXCPP=$ac_cv_prog_CXXCPP
4399 else
4400 ac_cv_prog_CXXCPP=$CXXCPP
4401 fi
4402 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4403 echo "${ECHO_T}$CXXCPP" >&6
4404 ac_preproc_ok=false
4405 for ac_cxx_preproc_warn_flag in '' yes
4406 do
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # On the NeXT, cc -E runs the code through the compiler's parser,
4410 # not just through cpp. "Syntax error" is here to catch this case.
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 #include "confdefs.h"
4414 #include <assert.h>
4415 Syntax error
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419 ac_status=$?
4420 egrep -v '^ *\+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_cxx_preproc_warn_flag
4427 else
4428 ac_cpp_err=
4429 fi
4430 else
4431 ac_cpp_err=yes
4432 fi
4433 if test -z "$ac_cpp_err"; then
4434 :
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 # Broken: fails on valid input.
4439 continue
4440 fi
4441 rm -f conftest.err conftest.$ac_ext
4442
4443 # OK, works on sane cases. Now check whether non-existent headers
4444 # can be detected and how.
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4447 #include "confdefs.h"
4448 #include <ac_nonexistent.h>
4449 _ACEOF
4450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452 ac_status=$?
4453 egrep -v '^ *\+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } >/dev/null; then
4458 if test -s conftest.err; then
4459 ac_cpp_err=$ac_cxx_preproc_warn_flag
4460 else
4461 ac_cpp_err=
4462 fi
4463 else
4464 ac_cpp_err=yes
4465 fi
4466 if test -z "$ac_cpp_err"; then
4467 # Broken: success on invalid input.
4468 continue
4469 else
4470 echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 # Passes both tests.
4473 ac_preproc_ok=:
4474 break
4475 fi
4476 rm -f conftest.err conftest.$ac_ext
4477
4478 done
4479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4480 rm -f conftest.err conftest.$ac_ext
4481 if $ac_preproc_ok; then
4482 :
4483 else
4484 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4485 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4486 { (exit 1); exit 1; }; }
4487 fi
4488
4489 ac_ext=cc
4490 ac_cpp='$CXXCPP $CPPFLAGS'
4491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4494
4495
4496 ac_ext=f
4497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4500 if test -n "$ac_tool_prefix"; then
4501 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4502 do
4503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_prog_F77+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if test -n "$F77"; then
4511 ac_cv_prog_F77="$F77" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524 done
4525 done
4526
4527 fi
4528 fi
4529 F77=$ac_cv_prog_F77
4530 if test -n "$F77"; then
4531 echo "$as_me:$LINENO: result: $F77" >&5
4532 echo "${ECHO_T}$F77" >&6
4533 else
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536 fi
4537
4538 test -n "$F77" && break
4539 done
4540 fi
4541 if test -z "$F77"; then
4542 ac_ct_F77=$F77
4543 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4544 do
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 if test -n "$ac_ct_F77"; then
4553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_ac_ct_F77="$ac_prog"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566 done
4567 done
4568
4569 fi
4570 fi
4571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4572 if test -n "$ac_ct_F77"; then
4573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4574 echo "${ECHO_T}$ac_ct_F77" >&6
4575 else
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578 fi
4579
4580 test -n "$ac_ct_F77" && break
4581 done
4582
4583 F77=$ac_ct_F77
4584 fi
4585
4586
4587 # Provide some information about the compiler.
4588 echo "$as_me:4588:" \
4589 "checking for Fortran 77 compiler version" >&5
4590 ac_compiler=`set X $ac_compile; echo $2`
4591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4592 (eval $ac_compiler --version </dev/null >&5) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }
4596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4597 (eval $ac_compiler -v </dev/null >&5) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }
4601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4602 (eval $ac_compiler -V </dev/null >&5) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }
4606
4607 # If we don't use `.F' as extension, the preprocessor is not run on the
4608 # input file.
4609 ac_save_ext=$ac_ext
4610 ac_ext=F
4611 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4613 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 cat >conftest.$ac_ext <<_ACEOF
4617 program main
4618 #ifndef __GNUC__
4619 choke me
4620 #endif
4621
4622 end
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_compiler_gnu=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_compiler_gnu=no
4641 fi
4642 rm -f conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4644
4645 fi
4646 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4647 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4648 ac_ext=$ac_save_ext
4649 G77=`test $ac_compiler_gnu = yes && echo yes`
4650 ac_test_FFLAGS=${FFLAGS+set}
4651 ac_save_FFLAGS=$FFLAGS
4652 FFLAGS=
4653 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4654 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4655 if test "${ac_cv_prog_f77_g+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 FFLAGS=-g
4659 cat >conftest.$ac_ext <<_ACEOF
4660 program main
4661
4662 end
4663 _ACEOF
4664 rm -f conftest.$ac_objext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_cv_prog_f77_g=yes
4677 else
4678 echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_cv_prog_f77_g=no
4681 fi
4682 rm -f conftest.$ac_objext conftest.$ac_ext
4683
4684 fi
4685 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4686 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4687 if test "$ac_test_FFLAGS" = set; then
4688 FFLAGS=$ac_save_FFLAGS
4689 elif test $ac_cv_prog_f77_g = yes; then
4690 if test "$G77" = yes; then
4691 FFLAGS="-g -O2"
4692 else
4693 FFLAGS="-g"
4694 fi
4695 else
4696 if test "$G77" = yes; then
4697 FFLAGS="-O2"
4698 else
4699 FFLAGS=
4700 fi
4701 fi
4702 ac_ext=c
4703 ac_cpp='$CPP $CPPFLAGS'
4704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707
4708
4709
4710 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4711
4712 # find the maximum length of command line arguments
4713 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4714 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4715 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 i=0
4719 testring="ABCD"
4720
4721 case $build_os in
4722 msdosdjgpp*)
4723 # On DJGPP, this test can blow up pretty badly due to problems in libc
4724 # (any single argument exceeding 2000 bytes causes a buffer overrun
4725 # during glob expansion). Even if it were fixed, the result of this
4726 # check would be larger than it should be.
4727 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4728 ;;
4729
4730 gnu*)
4731 # Under GNU Hurd, this test is not required because there is
4732 # no limit to the length of command line arguments.
4733 # Libtool will interpret -1 as no limit whatsoever
4734 lt_cv_sys_max_cmd_len=-1;
4735 ;;
4736
4737 cygwin* | mingw*)
4738 # On Win9x/ME, this test blows up -- it succeeds, but takes
4739 # about 5 minutes as the teststring grows exponentially.
4740 # Worse, since 9x/ME are not pre-emptively multitasking,
4741 # you end up with a "frozen" computer, even though with patience
4742 # the test eventually succeeds (with a max line length of 256k).
4743 # Instead, let's just punt: use the minimum linelength reported by
4744 # all of the supported platforms: 8192 (on NT/2K/XP).
4745 lt_cv_sys_max_cmd_len=8192;
4746 ;;
4747
4748 *)
4749 # If test is not a shell built-in, we'll probably end up computing a
4750 # maximum length that is only half of the actual maximum length, but
4751 # we can't tell.
4752 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4753 = "XX$testring") >/dev/null 2>&1 &&
4754 new_result=`expr "X$testring" : ".*" 2>&1` &&
4755 lt_cv_sys_max_cmd_len=$new_result &&
4756 test $i != 17 # 1/2 MB should be enough
4757 do
4758 i=`expr $i + 1`
4759 testring=$testring$testring
4760 done
4761 testring=
4762 # Add a significant safety factor because C++ compilers can tack on massive
4763 # amounts of additional arguments before passing them to the linker.
4764 # It appears as though 1/2 is a usable value.
4765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4766 ;;
4767 esac
4768
4769 fi
4770
4771 if test -n $lt_cv_sys_max_cmd_len ; then
4772 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4773 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4774 else
4775 echo "$as_me:$LINENO: result: none" >&5
4776 echo "${ECHO_T}none" >&6
4777 fi
4778
4779
4780
4781
4782 # Check for command to grab the raw symbol name followed by C symbol from nm.
4783 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4784 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4785 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788
4789 # These are sane defaults that work on at least a few old systems.
4790 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4791
4792 # Character class describing NM global symbol codes.
4793 symcode='[BCDEGRST]'
4794
4795 # Regexp to match symbols that can be accessed directly from C.
4796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4797
4798 # Transform the above into a raw symbol and a C symbol.
4799 symxfrm='\1 \2\3 \3'
4800
4801 # Transform an extracted symbol line into a proper C declaration
4802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4803
4804 # Transform an extracted symbol line into symbol name and symbol address
4805 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'"
4806
4807 # Define system-specific variables.
4808 case $host_os in
4809 aix*)
4810 symcode='[BCDT]'
4811 ;;
4812 cygwin* | mingw* | pw32*)
4813 symcode='[ABCDGISTW]'
4814 ;;
4815 hpux*) # Its linker distinguishes data from code symbols
4816 if test "$host_cpu" = ia64; then
4817 symcode='[ABCDEGRST]'
4818 fi
4819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4820 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'"
4821 ;;
4822 irix* | nonstopux*)
4823 symcode='[BCDEGRST]'
4824 ;;
4825 osf*)
4826 symcode='[BCDEGQRST]'
4827 ;;
4828 solaris* | sysv5*)
4829 symcode='[BDT]'
4830 ;;
4831 sysv4)
4832 symcode='[DFNSTU]'
4833 ;;
4834 esac
4835
4836 # Handle CRLF in mingw tool chain
4837 opt_cr=
4838 case $build_os in
4839 mingw*)
4840 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4841 ;;
4842 esac
4843
4844 # If we're using GNU nm, then use its standard symbol codes.
4845 case `$NM -V 2>&1` in
4846 *GNU* | *'with BFD'*)
4847 symcode='[ABCDGISTW]' ;;
4848 esac
4849
4850 # Try without a prefix undercore, then with it.
4851 for ac_symprfx in "" "_"; do
4852
4853 # Write the raw and C identifiers.
4854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4855
4856 # Check to see that the pipe works correctly.
4857 pipe_works=no
4858
4859 rm -f conftest*
4860 cat > conftest.$ac_ext <<EOF
4861 #ifdef __cplusplus
4862 extern "C" {
4863 #endif
4864 char nm_test_var;
4865 void nm_test_func(){}
4866 #ifdef __cplusplus
4867 }
4868 #endif
4869 int main(){nm_test_var='a';nm_test_func();return(0);}
4870 EOF
4871
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; then
4877 # Now try to grab the symbols.
4878 nlist=conftest.nm
4879 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4880 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && test -s "$nlist"; then
4884 # Try sorting and uniquifying the output.
4885 if sort "$nlist" | uniq > "$nlist"T; then
4886 mv -f "$nlist"T "$nlist"
4887 else
4888 rm -f "$nlist"T
4889 fi
4890
4891 # Make sure that we snagged all the symbols we need.
4892 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4893 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4894 cat <<EOF > conftest.$ac_ext
4895 #ifdef __cplusplus
4896 extern "C" {
4897 #endif
4898
4899 EOF
4900 # Now generate the symbol file.
4901 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4902
4903 cat <<EOF >> conftest.$ac_ext
4904 #if defined (__STDC__) && __STDC__
4905 # define lt_ptr_t void *
4906 #else
4907 # define lt_ptr_t char *
4908 # define const
4909 #endif
4910
4911 /* The mapping between symbol names and symbols. */
4912 const struct {
4913 const char *name;
4914 lt_ptr_t address;
4915 }
4916 lt_preloaded_symbols[] =
4917 {
4918 EOF
4919 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4920 cat <<\EOF >> conftest.$ac_ext
4921 {0, (lt_ptr_t) 0}
4922 };
4923
4924 #ifdef __cplusplus
4925 }
4926 #endif
4927 EOF
4928 # Now try linking the two files.
4929 mv conftest.$ac_objext conftstm.$ac_objext
4930 lt_save_LIBS="$LIBS"
4931 lt_save_CFLAGS="$CFLAGS"
4932 LIBS="conftstm.$ac_objext"
4933 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4939 pipe_works=yes
4940 fi
4941 LIBS="$lt_save_LIBS"
4942 CFLAGS="$lt_save_CFLAGS"
4943 else
4944 echo "cannot find nm_test_func in $nlist" >&5
4945 fi
4946 else
4947 echo "cannot find nm_test_var in $nlist" >&5
4948 fi
4949 else
4950 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4951 fi
4952 else
4953 echo "$progname: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955 fi
4956 rm -f conftest* conftst*
4957
4958 # Do not use the global_symbol_pipe unless it works.
4959 if test "$pipe_works" = yes; then
4960 break
4961 else
4962 lt_cv_sys_global_symbol_pipe=
4963 fi
4964 done
4965
4966 fi
4967
4968 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4969 lt_cv_sys_global_symbol_to_cdecl=
4970 fi
4971 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4972 echo "$as_me:$LINENO: result: failed" >&5
4973 echo "${ECHO_T}failed" >&6
4974 else
4975 echo "$as_me:$LINENO: result: ok" >&5
4976 echo "${ECHO_T}ok" >&6
4977 fi
4978
4979 echo "$as_me:$LINENO: checking for objdir" >&5
4980 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4981 if test "${lt_cv_objdir+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 rm -f .libs 2>/dev/null
4985 mkdir .libs 2>/dev/null
4986 if test -d .libs; then
4987 lt_cv_objdir=.libs
4988 else
4989 # MS-DOS does not allow filenames that begin with a dot.
4990 lt_cv_objdir=_libs
4991 fi
4992 rmdir .libs 2>/dev/null
4993 fi
4994 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4995 echo "${ECHO_T}$lt_cv_objdir" >&6
4996 objdir=$lt_cv_objdir
4997
4998
4999
5000
5001
5002 case $host_os in
5003 aix3*)
5004 # AIX sometimes has problems with the GCC collect2 program. For some
5005 # reason, if we set the COLLECT_NAMES environment variable, the problems
5006 # vanish in a puff of smoke.
5007 if test "X${COLLECT_NAMES+set}" != Xset; then
5008 COLLECT_NAMES=
5009 export COLLECT_NAMES
5010 fi
5011 ;;
5012 esac
5013
5014 # Sed substitution that helps us do robust quoting. It backslashifies
5015 # metacharacters that are still active within double-quoted strings.
5016 Xsed='sed -e s/^X//'
5017 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5018
5019 # Same as above, but do not quote variable references.
5020 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5021
5022 # Sed substitution to delay expansion of an escaped shell variable in a
5023 # double_quote_subst'ed string.
5024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5025
5026 # Sed substitution to avoid accidental globbing in evaled expressions
5027 no_glob_subst='s/\*/\\\*/g'
5028
5029 # Constants:
5030 rm="rm -f"
5031
5032 # Global variables:
5033 default_ofile=libtool
5034 can_build_shared=yes
5035
5036 # All known linkers require a `.a' archive for static linking (except M$VC,
5037 # which needs '.lib').
5038 libext=a
5039 ltmain="$ac_aux_dir/ltmain.sh"
5040 ofile="$default_ofile"
5041 with_gnu_ld="$lt_cv_prog_gnu_ld"
5042
5043 if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5045 set dummy ${ac_tool_prefix}ar; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_prog_AR+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$AR"; then
5052 ac_cv_prog_AR="$AR" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_AR="${ac_tool_prefix}ar"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067
5068 fi
5069 fi
5070 AR=$ac_cv_prog_AR
5071 if test -n "$AR"; then
5072 echo "$as_me:$LINENO: result: $AR" >&5
5073 echo "${ECHO_T}$AR" >&6
5074 else
5075 echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6
5077 fi
5078
5079 fi
5080 if test -z "$ac_cv_prog_AR"; then
5081 ac_ct_AR=$AR
5082 # Extract the first word of "ar", so it can be a program name with args.
5083 set dummy ar; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 if test -n "$ac_ct_AR"; then
5090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_AR="ar"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105
5106 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5107 fi
5108 fi
5109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5110 if test -n "$ac_ct_AR"; then
5111 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5112 echo "${ECHO_T}$ac_ct_AR" >&6
5113 else
5114 echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6
5116 fi
5117
5118 AR=$ac_ct_AR
5119 else
5120 AR="$ac_cv_prog_AR"
5121 fi
5122
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5126 echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128 if test "${ac_cv_prog_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 if test -n "$RANLIB"; then
5132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145 done
5146 done
5147
5148 fi
5149 fi
5150 RANLIB=$ac_cv_prog_RANLIB
5151 if test -n "$RANLIB"; then
5152 echo "$as_me:$LINENO: result: $RANLIB" >&5
5153 echo "${ECHO_T}$RANLIB" >&6
5154 else
5155 echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5157 fi
5158
5159 fi
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_RANLIB="ranlib"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185
5186 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5187 fi
5188 fi
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 fi
5197
5198 RANLIB=$ac_ct_RANLIB
5199 else
5200 RANLIB="$ac_cv_prog_RANLIB"
5201 fi
5202
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}strip; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225 done
5226 done
5227
5228 fi
5229 fi
5230 STRIP=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5237 fi
5238
5239 fi
5240 if test -z "$ac_cv_prog_STRIP"; then
5241 ac_ct_STRIP=$STRIP
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265
5266 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5267 fi
5268 fi
5269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5270 if test -n "$ac_ct_STRIP"; then
5271 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5272 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 fi
5277
5278 STRIP=$ac_ct_STRIP
5279 else
5280 STRIP="$ac_cv_prog_STRIP"
5281 fi
5282
5283
5284 old_CC="$CC"
5285 old_CFLAGS="$CFLAGS"
5286
5287 # Set sane defaults for various variables
5288 test -z "$AR" && AR=ar
5289 test -z "$AR_FLAGS" && AR_FLAGS=cru
5290 test -z "$AS" && AS=as
5291 test -z "$CC" && CC=cc
5292 test -z "$LTCC" && LTCC=$CC
5293 test -z "$DLLTOOL" && DLLTOOL=dlltool
5294 test -z "$LD" && LD=ld
5295 test -z "$LN_S" && LN_S="ln -s"
5296 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5297 test -z "$NM" && NM=nm
5298 test -z "$SED" && SED=sed
5299 test -z "$OBJDUMP" && OBJDUMP=objdump
5300 test -z "$RANLIB" && RANLIB=:
5301 test -z "$STRIP" && STRIP=:
5302 test -z "$ac_objext" && ac_objext=o
5303
5304 # Determine commands to create old-style static archives.
5305 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5306 old_postinstall_cmds='chmod 644 $oldlib'
5307 old_postuninstall_cmds=
5308
5309 if test -n "$RANLIB"; then
5310 case $host_os in
5311 openbsd*)
5312 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5313 ;;
5314 *)
5315 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5316 ;;
5317 esac
5318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5319 fi
5320
5321 # Only perform the check for file, if the check method requires it
5322 case $deplibs_check_method in
5323 file_magic*)
5324 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5325 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5326 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5327 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 case $MAGIC_CMD in
5331 [\\/*] | ?:[\\/]*)
5332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5333 ;;
5334 *)
5335 lt_save_MAGIC_CMD="$MAGIC_CMD"
5336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5338 for ac_dir in $ac_dummy; do
5339 IFS="$lt_save_ifs"
5340 test -z "$ac_dir" && ac_dir=.
5341 if test -f $ac_dir/${ac_tool_prefix}file; then
5342 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5343 if test -n "$file_magic_test_file"; then
5344 case $deplibs_check_method in
5345 "file_magic "*)
5346 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5349 $EGREP "$file_magic_regex" > /dev/null; then
5350 :
5351 else
5352 cat <<EOF 1>&2
5353
5354 *** Warning: the command libtool uses to detect shared libraries,
5355 *** $file_magic_cmd, produces output that libtool cannot recognize.
5356 *** The result is that libtool may fail to recognize shared libraries
5357 *** as such. This will affect the creation of libtool libraries that
5358 *** depend on shared libraries, but programs linked with such libtool
5359 *** libraries will work regardless of this problem. Nevertheless, you
5360 *** may want to report the problem to your system manager and/or to
5361 *** bug-libtool@gnu.org
5362
5363 EOF
5364 fi ;;
5365 esac
5366 fi
5367 break
5368 fi
5369 done
5370 IFS="$lt_save_ifs"
5371 MAGIC_CMD="$lt_save_MAGIC_CMD"
5372 ;;
5373 esac
5374 fi
5375
5376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5377 if test -n "$MAGIC_CMD"; then
5378 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5379 echo "${ECHO_T}$MAGIC_CMD" >&6
5380 else
5381 echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5383 fi
5384
5385 if test -z "$lt_cv_path_MAGIC_CMD"; then
5386 if test -n "$ac_tool_prefix"; then
5387 echo "$as_me:$LINENO: checking for file" >&5
5388 echo $ECHO_N "checking for file... $ECHO_C" >&6
5389 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 case $MAGIC_CMD in
5393 [\\/*] | ?:[\\/]*)
5394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5395 ;;
5396 *)
5397 lt_save_MAGIC_CMD="$MAGIC_CMD"
5398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5399 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5400 for ac_dir in $ac_dummy; do
5401 IFS="$lt_save_ifs"
5402 test -z "$ac_dir" && ac_dir=.
5403 if test -f $ac_dir/file; then
5404 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5405 if test -n "$file_magic_test_file"; then
5406 case $deplibs_check_method in
5407 "file_magic "*)
5408 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5411 $EGREP "$file_magic_regex" > /dev/null; then
5412 :
5413 else
5414 cat <<EOF 1>&2
5415
5416 *** Warning: the command libtool uses to detect shared libraries,
5417 *** $file_magic_cmd, produces output that libtool cannot recognize.
5418 *** The result is that libtool may fail to recognize shared libraries
5419 *** as such. This will affect the creation of libtool libraries that
5420 *** depend on shared libraries, but programs linked with such libtool
5421 *** libraries will work regardless of this problem. Nevertheless, you
5422 *** may want to report the problem to your system manager and/or to
5423 *** bug-libtool@gnu.org
5424
5425 EOF
5426 fi ;;
5427 esac
5428 fi
5429 break
5430 fi
5431 done
5432 IFS="$lt_save_ifs"
5433 MAGIC_CMD="$lt_save_MAGIC_CMD"
5434 ;;
5435 esac
5436 fi
5437
5438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5439 if test -n "$MAGIC_CMD"; then
5440 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5441 echo "${ECHO_T}$MAGIC_CMD" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6
5445 fi
5446
5447 else
5448 MAGIC_CMD=:
5449 fi
5450 fi
5451
5452 fi
5453 ;;
5454 esac
5455
5456 enable_dlopen=no
5457 enable_win32_dll=no
5458
5459 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5460 if test "${enable_libtool_lock+set}" = set; then
5461 enableval="$enable_libtool_lock"
5462
5463 fi;
5464 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5465
5466
5467 # Check whether --with-pic or --without-pic was given.
5468 if test "${with_pic+set}" = set; then
5469 withval="$with_pic"
5470 pic_mode="$withval"
5471 else
5472 pic_mode=default
5473 fi;
5474 test -z "$pic_mode" && pic_mode=default
5475
5476 # Use C for the default configuration in the libtool script
5477 tagname=
5478 lt_save_CC="$CC"
5479 ac_ext=c
5480 ac_cpp='$CPP $CPPFLAGS'
5481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
5485
5486 # Source file extension for C test sources.
5487 ac_ext=c
5488
5489 # Object file extension for compiled C test sources.
5490 objext=o
5491 objext=$objext
5492
5493 # Code to be used in simple compile tests
5494 lt_simple_compile_test_code="int some_variable = 0;\n"
5495
5496 # Code to be used in simple link tests
5497 lt_simple_link_test_code='int main(){return(0);}\n'
5498
5499
5500 # If no C compiler was specified, use CC.
5501 LTCC=${LTCC-"$CC"}
5502
5503 # Allow CC to be a program name with arguments.
5504 compiler=$CC
5505
5506
5507 #
5508 # Check for any special shared library compilation flags.
5509 #
5510 lt_prog_cc_shlib=
5511 if test "$GCC" = no; then
5512 case $host_os in
5513 sco3.2v5*)
5514 lt_prog_cc_shlib='-belf'
5515 ;;
5516 esac
5517 fi
5518 if test -n "$lt_prog_cc_shlib"; then
5519 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5520 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5521 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5522 else
5523 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5524 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5525 lt_cv_prog_cc_can_build_shared=no
5526 fi
5527 fi
5528
5529
5530 #
5531 # Check to make sure the static flag actually works.
5532 #
5533 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5534 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5535 if test "${lt_prog_compiler_static_works+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 lt_prog_compiler_static_works=no
5539 save_LDFLAGS="$LDFLAGS"
5540 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5541 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5543 # The compiler can only warn and ignore the option if not recognized
5544 # So say no if there are warnings
5545 if test -s conftest.err; then
5546 # Append any errors to the config.log.
5547 cat conftest.err 1>&5
5548 else
5549 lt_prog_compiler_static_works=yes
5550 fi
5551 fi
5552 $rm conftest*
5553 LDFLAGS="$save_LDFLAGS"
5554
5555 fi
5556 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5557 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5558
5559 if test x"$lt_prog_compiler_static_works" = xyes; then
5560 :
5561 else
5562 lt_prog_compiler_static=
5563 fi
5564
5565
5566
5567
5568 lt_prog_compiler_no_builtin_flag=
5569
5570 if test "$GCC" = yes; then
5571 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5572
5573 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5574 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 lt_cv_prog_compiler_rtti_exceptions=no
5579 ac_outfile=conftest.$ac_objext
5580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5581 lt_compiler_flag="-fno-rtti -fno-exceptions"
5582 # Insert the option either (1) after the last *FLAGS variable, or
5583 # (2) before a word containing "conftest.", or (3) at the end.
5584 # Note that $ac_compile itself does not contain backslashes and begins
5585 # with a dollar sign (not a hyphen), so the echo should work correctly.
5586 # The option is referenced via a variable to avoid confusing sed.
5587 lt_compile=`echo "$ac_compile" | $SED \
5588 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5590 -e 's:$: $lt_compiler_flag:'`
5591 (eval echo "\"\$as_me:5591: $lt_compile\"" >&5)
5592 (eval "$lt_compile" 2>conftest.err)
5593 ac_status=$?
5594 cat conftest.err >&5
5595 echo "$as_me:5595: \$? = $ac_status" >&5
5596 if (exit $ac_status) && test -s "$ac_outfile"; then
5597 # The compiler can only warn and ignore the option if not recognized
5598 # So say no if there are warnings
5599 if test ! -s conftest.err; then
5600 lt_cv_prog_compiler_rtti_exceptions=yes
5601 fi
5602 fi
5603 $rm conftest*
5604
5605 fi
5606 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5607 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5608
5609 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5610 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5611 else
5612 :
5613 fi
5614
5615 fi
5616
5617 lt_prog_compiler_wl=
5618 lt_prog_compiler_pic=
5619 lt_prog_compiler_static=
5620
5621 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5622 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5623
5624 if test "$GCC" = yes; then
5625 lt_prog_compiler_wl='-Wl,'
5626 lt_prog_compiler_static='-static'
5627
5628 case $host_os in
5629 aix*)
5630 # All AIX code is PIC.
5631 if test "$host_cpu" = ia64; then
5632 # AIX 5 now supports IA64 processor
5633 lt_prog_compiler_static='-Bstatic'
5634 fi
5635 ;;
5636
5637 amigaos*)
5638 # FIXME: we need at least 68020 code to build shared libraries, but
5639 # adding the `-m68020' flag to GCC prevents building anything better,
5640 # like `-m68040'.
5641 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5642 ;;
5643
5644 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5645 # PIC is the default for these OSes.
5646 ;;
5647
5648 mingw* | pw32* | os2*)
5649 # This hack is so that the source file can tell whether it is being
5650 # built for inclusion in a dll (and should export symbols for example).
5651 lt_prog_compiler_pic='-DDLL_EXPORT'
5652 ;;
5653
5654 darwin* | rhapsody*)
5655 # PIC is the default on this platform
5656 # Common symbols not allowed in MH_DYLIB files
5657 lt_prog_compiler_pic='-fno-common'
5658 ;;
5659
5660 msdosdjgpp*)
5661 # Just because we use GCC doesn't mean we suddenly get shared libraries
5662 # on systems that don't support them.
5663 lt_prog_compiler_can_build_shared=no
5664 enable_shared=no
5665 ;;
5666
5667 sysv4*MP*)
5668 if test -d /usr/nec; then
5669 lt_prog_compiler_pic=-Kconform_pic
5670 fi
5671 ;;
5672
5673 hpux*)
5674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5675 # not for PA HP-UX.
5676 case "$host_cpu" in
5677 hppa*64*|ia64*)
5678 # +Z the default
5679 ;;
5680 *)
5681 lt_prog_compiler_pic='-fPIC'
5682 ;;
5683 esac
5684 ;;
5685
5686 *)
5687 lt_prog_compiler_pic='-fPIC'
5688 ;;
5689 esac
5690 else
5691 # PORTME Check for flag to pass linker flags through the system compiler.
5692 case $host_os in
5693 aix*)
5694 lt_prog_compiler_wl='-Wl,'
5695 if test "$host_cpu" = ia64; then
5696 # AIX 5 now supports IA64 processor
5697 lt_prog_compiler_static='-Bstatic'
5698 else
5699 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5700 fi
5701 ;;
5702
5703 mingw* | pw32* | os2*)
5704 # This hack is so that the source file can tell whether it is being
5705 # built for inclusion in a dll (and should export symbols for example).
5706 lt_prog_compiler_pic='-DDLL_EXPORT'
5707 ;;
5708
5709 hpux9* | hpux10* | hpux11*)
5710 lt_prog_compiler_wl='-Wl,'
5711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5712 # not for PA HP-UX.
5713 case "$host_cpu" in
5714 hppa*64*|ia64*)
5715 # +Z the default
5716 ;;
5717 *)
5718 lt_prog_compiler_pic='+Z'
5719 ;;
5720 esac
5721 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5722 lt_prog_compiler_static='${wl}-a ${wl}archive'
5723 ;;
5724
5725 irix5* | irix6* | nonstopux*)
5726 lt_prog_compiler_wl='-Wl,'
5727 # PIC (with -KPIC) is the default.
5728 lt_prog_compiler_static='-non_shared'
5729 ;;
5730
5731 newsos6)
5732 lt_prog_compiler_pic='-KPIC'
5733 lt_prog_compiler_static='-Bstatic'
5734 ;;
5735
5736 linux*)
5737 case $CC in
5738 icc|ecc)
5739 lt_prog_compiler_wl='-Wl,'
5740 lt_prog_compiler_pic='-KPIC'
5741 lt_prog_compiler_static='-static'
5742 ;;
5743 ccc)
5744 lt_prog_compiler_wl='-Wl,'
5745 # All Alpha code is PIC.
5746 lt_prog_compiler_static='-non_shared'
5747 ;;
5748 esac
5749 ;;
5750
5751 osf3* | osf4* | osf5*)
5752 lt_prog_compiler_wl='-Wl,'
5753 # All OSF/1 code is PIC.
5754 lt_prog_compiler_static='-non_shared'
5755 ;;
5756
5757 sco3.2v5*)
5758 lt_prog_compiler_pic='-Kpic'
5759 lt_prog_compiler_static='-dn'
5760 ;;
5761
5762 solaris*)
5763 lt_prog_compiler_wl='-Wl,'
5764 lt_prog_compiler_pic='-KPIC'
5765 lt_prog_compiler_static='-Bstatic'
5766 ;;
5767
5768 sunos4*)
5769 lt_prog_compiler_wl='-Qoption ld '
5770 lt_prog_compiler_pic='-PIC'
5771 lt_prog_compiler_static='-Bstatic'
5772 ;;
5773
5774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5775 lt_prog_compiler_wl='-Wl,'
5776 lt_prog_compiler_pic='-KPIC'
5777 lt_prog_compiler_static='-Bstatic'
5778 ;;
5779
5780 sysv4*MP*)
5781 if test -d /usr/nec ;then
5782 lt_prog_compiler_pic='-Kconform_pic'
5783 lt_prog_compiler_static='-Bstatic'
5784 fi
5785 ;;
5786
5787 uts4*)
5788 lt_prog_compiler_pic='-pic'
5789 lt_prog_compiler_static='-Bstatic'
5790 ;;
5791
5792 *)
5793 lt_prog_compiler_can_build_shared=no
5794 ;;
5795 esac
5796 fi
5797
5798 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5799 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5800
5801 #
5802 # Check to make sure the PIC flag actually works.
5803 #
5804 if test -n "$lt_prog_compiler_pic"; then
5805 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5806 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5807 if test "${lt_prog_compiler_pic_works+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 lt_prog_compiler_pic_works=no
5811 ac_outfile=conftest.$ac_objext
5812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5813 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5814 # Insert the option either (1) after the last *FLAGS variable, or
5815 # (2) before a word containing "conftest.", or (3) at the end.
5816 # Note that $ac_compile itself does not contain backslashes and begins
5817 # with a dollar sign (not a hyphen), so the echo should work correctly.
5818 # The option is referenced via a variable to avoid confusing sed.
5819 lt_compile=`echo "$ac_compile" | $SED \
5820 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5822 -e 's:$: $lt_compiler_flag:'`
5823 (eval echo "\"\$as_me:5823: $lt_compile\"" >&5)
5824 (eval "$lt_compile" 2>conftest.err)
5825 ac_status=$?
5826 cat conftest.err >&5
5827 echo "$as_me:5827: \$? = $ac_status" >&5
5828 if (exit $ac_status) && test -s "$ac_outfile"; then
5829 # The compiler can only warn and ignore the option if not recognized
5830 # So say no if there are warnings
5831 if test ! -s conftest.err; then
5832 lt_prog_compiler_pic_works=yes
5833 fi
5834 fi
5835 $rm conftest*
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5839 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5840
5841 if test x"$lt_prog_compiler_pic_works" = xyes; then
5842 case $lt_prog_compiler_pic in
5843 "" | " "*) ;;
5844 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5845 esac
5846 else
5847 lt_prog_compiler_pic=
5848 lt_prog_compiler_can_build_shared=no
5849 fi
5850
5851 fi
5852 case "$host_os" in
5853 # For platforms which do not support PIC, -DPIC is meaningless:
5854 *djgpp*)
5855 lt_prog_compiler_pic=
5856 ;;
5857 *)
5858 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5859 ;;
5860 esac
5861
5862 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 lt_cv_prog_compiler_c_o=no
5868 $rm -r conftest 2>/dev/null
5869 mkdir conftest
5870 cd conftest
5871 mkdir out
5872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5873
5874 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5875 # that will create temporary files in the current directory regardless of
5876 # the output directory. Thus, making CWD read-only will cause this test
5877 # to fail, enabling locking or at least warning the user not to do parallel
5878 # builds.
5879 chmod -w .
5880
5881 lt_compiler_flag="-o out/conftest2.$ac_objext"
5882 # Insert the option either (1) after the last *FLAGS variable, or
5883 # (2) before a word containing "conftest.", or (3) at the end.
5884 # Note that $ac_compile itself does not contain backslashes and begins
5885 # with a dollar sign (not a hyphen), so the echo should work correctly.
5886 lt_compile=`echo "$ac_compile" | $SED \
5887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5889 -e 's:$: $lt_compiler_flag:'`
5890 (eval echo "\"\$as_me:5890: $lt_compile\"" >&5)
5891 (eval "$lt_compile" 2>out/conftest.err)
5892 ac_status=$?
5893 cat out/conftest.err >&5
5894 echo "$as_me:5894: \$? = $ac_status" >&5
5895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5896 then
5897 # The compiler can only warn and ignore the option if not recognized
5898 # So say no if there are warnings
5899 if test ! -s out/conftest.err; then
5900 lt_cv_prog_compiler_c_o=yes
5901 fi
5902 fi
5903 chmod u+w .
5904 $rm conftest* out/*
5905 rmdir out
5906 cd ..
5907 rmdir conftest
5908 $rm conftest*
5909
5910 fi
5911 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5913
5914
5915 hard_links="nottested"
5916 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5917 # do not overwrite the value of need_locks provided by the user
5918 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5920 hard_links=yes
5921 $rm conftest*
5922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5923 touch conftest.a
5924 ln conftest.a conftest.b 2>&5 || hard_links=no
5925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5926 echo "$as_me:$LINENO: result: $hard_links" >&5
5927 echo "${ECHO_T}$hard_links" >&6
5928 if test "$hard_links" = no; then
5929 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5931 need_locks=warn
5932 fi
5933 else
5934 need_locks=no
5935 fi
5936
5937 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5939
5940 runpath_var=
5941 allow_undefined_flag=
5942 enable_shared_with_static_runtimes=no
5943 archive_cmds=
5944 archive_expsym_cmds=
5945 old_archive_From_new_cmds=
5946 old_archive_from_expsyms_cmds=
5947 export_dynamic_flag_spec=
5948 whole_archive_flag_spec=
5949 thread_safe_flag_spec=
5950 hardcode_libdir_flag_spec=
5951 hardcode_libdir_flag_spec_ld=
5952 hardcode_libdir_separator=
5953 hardcode_direct=no
5954 hardcode_minus_L=no
5955 hardcode_shlibpath_var=unsupported
5956 link_all_deplibs=unknown
5957 hardcode_automatic=no
5958 module_cmds=
5959 module_expsym_cmds=
5960 always_export_symbols=no
5961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5962 # include_expsyms should be a list of space-separated symbols to be *always*
5963 # included in the symbol list
5964 include_expsyms=
5965 # exclude_expsyms can be an extended regexp of symbols to exclude
5966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5968 # as well as any symbol that contains `d'.
5969 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5971 # platforms (ab)use it in PIC code, but their linkers get confused if
5972 # the symbol is explicitly referenced. Since portable code cannot
5973 # rely on this symbol name, it's probably fine to never include it in
5974 # preloaded symbol tables.
5975 extract_expsyms_cmds=
5976
5977 case $host_os in
5978 cygwin* | mingw* | pw32*)
5979 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5980 # When not using gcc, we currently assume that we are using
5981 # Microsoft Visual C++.
5982 if test "$GCC" != yes; then
5983 with_gnu_ld=no
5984 fi
5985 ;;
5986 openbsd*)
5987 with_gnu_ld=no
5988 ;;
5989 esac
5990
5991 ld_shlibs=yes
5992 if test "$with_gnu_ld" = yes; then
5993 # If archive_cmds runs LD, not CC, wlarc should be empty
5994 wlarc='${wl}'
5995
5996 # See if GNU ld supports shared libraries.
5997 case $host_os in
5998 aix3* | aix4* | aix5*)
5999 # On AIX/PPC, the GNU linker is very broken
6000 if test "$host_cpu" != ia64; then
6001 ld_shlibs=no
6002 cat <<EOF 1>&2
6003
6004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6005 *** to be unable to reliably create shared libraries on AIX.
6006 *** Therefore, libtool is disabling shared libraries support. If you
6007 *** really care for shared libraries, you may want to modify your PATH
6008 *** so that a non-GNU linker is found, and then restart.
6009
6010 EOF
6011 fi
6012 ;;
6013
6014 amigaos*)
6015 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)'
6016 hardcode_libdir_flag_spec='-L$libdir'
6017 hardcode_minus_L=yes
6018
6019 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6020 # that the semantics of dynamic libraries on AmigaOS, at least up
6021 # to version 4, is to share data among multiple programs linked
6022 # with the same dynamic library. Since this doesn't match the
6023 # behavior of shared libraries on other platforms, we can't use
6024 # them.
6025 ld_shlibs=no
6026 ;;
6027
6028 beos*)
6029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6030 allow_undefined_flag=unsupported
6031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6032 # support --undefined. This deserves some investigation. FIXME
6033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6034 else
6035 ld_shlibs=no
6036 fi
6037 ;;
6038
6039 cygwin* | mingw* | pw32*)
6040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6041 # as there is no search path for DLLs.
6042 hardcode_libdir_flag_spec='-L$libdir'
6043 allow_undefined_flag=unsupported
6044 always_export_symbols=no
6045 enable_shared_with_static_runtimes=yes
6046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6047
6048 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6050 # If the export-symbols file already is a .def file (1st line
6051 # is EXPORTS), use it as is; otherwise, prepend...
6052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6053 cp $export_symbols $output_objdir/$soname.def;
6054 else
6055 echo EXPORTS > $output_objdir/$soname.def;
6056 cat $export_symbols >> $output_objdir/$soname.def;
6057 fi~
6058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6059 else
6060 ld_shlibs=no
6061 fi
6062 ;;
6063
6064 netbsd*)
6065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6066 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6067 wlarc=
6068 else
6069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6071 fi
6072 ;;
6073
6074 solaris* | sysv5*)
6075 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6076 ld_shlibs=no
6077 cat <<EOF 1>&2
6078
6079 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6080 *** create shared libraries on Solaris systems. Therefore, libtool
6081 *** is disabling shared libraries support. We urge you to upgrade GNU
6082 *** binutils to release 2.9.1 or newer. Another option is to modify
6083 *** your PATH or compiler configuration so that the native linker is
6084 *** used, and then restart.
6085
6086 EOF
6087 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6090 else
6091 ld_shlibs=no
6092 fi
6093 ;;
6094
6095 sunos4*)
6096 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6097 wlarc=
6098 hardcode_direct=yes
6099 hardcode_shlibpath_var=no
6100 ;;
6101
6102 *)
6103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6106 else
6107 ld_shlibs=no
6108 fi
6109 ;;
6110 esac
6111
6112 if test "$ld_shlibs" = yes; then
6113 runpath_var=LD_RUN_PATH
6114 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6115 export_dynamic_flag_spec='${wl}--export-dynamic'
6116 # ancient GNU ld didn't support --whole-archive et. al.
6117 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6118 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6119 else
6120 whole_archive_flag_spec=
6121 fi
6122 fi
6123 else
6124 # PORTME fill in a description of your system's linker (not GNU ld)
6125 case $host_os in
6126 aix3*)
6127 allow_undefined_flag=unsupported
6128 always_export_symbols=yes
6129 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'
6130 # Note: this linker hardcodes the directories in LIBPATH if there
6131 # are no directories specified by -L.
6132 hardcode_minus_L=yes
6133 if test "$GCC" = yes && test -z "$link_static_flag"; then
6134 # Neither direct hardcoding nor static linking is supported with a
6135 # broken collect2.
6136 hardcode_direct=unsupported
6137 fi
6138 ;;
6139
6140 aix4* | aix5*)
6141 if test "$host_cpu" = ia64; then
6142 # On IA64, the linker does run time linking by default, so we don't
6143 # have to do anything special.
6144 aix_use_runtimelinking=no
6145 exp_sym_flag='-Bexport'
6146 no_entry_flag=""
6147 else
6148 # If we're using GNU nm, then we don't want the "-C" option.
6149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6151 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'
6152 else
6153 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'
6154 fi
6155 aix_use_runtimelinking=no
6156
6157 # Test if we are trying to use run time linking or normal
6158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6159 # need to do runtime linking.
6160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6161 for ld_flag in $LDFLAGS; do
6162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6163 aix_use_runtimelinking=yes
6164 break
6165 fi
6166 done
6167 esac
6168
6169 exp_sym_flag='-bexport'
6170 no_entry_flag='-bnoentry'
6171 fi
6172
6173 # When large executables or shared objects are built, AIX ld can
6174 # have problems creating the table of contents. If linking a library
6175 # or program results in "error TOC overflow" add -mminimal-toc to
6176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6178
6179 archive_cmds=''
6180 hardcode_direct=yes
6181 hardcode_libdir_separator=':'
6182 link_all_deplibs=yes
6183
6184 if test "$GCC" = yes; then
6185 case $host_os in aix4.012|aix4.012.*)
6186 # We only want to do this on AIX 4.2 and lower, the check
6187 # below for broken collect2 doesn't work under 4.3+
6188 collect2name=`${CC} -print-prog-name=collect2`
6189 if test -f "$collect2name" && \
6190 strings "$collect2name" | grep resolve_lib_name >/dev/null
6191 then
6192 # We have reworked collect2
6193 hardcode_direct=yes
6194 else
6195 # We have old collect2
6196 hardcode_direct=unsupported
6197 # It fails to find uninstalled libraries when the uninstalled
6198 # path is not listed in the libpath. Setting hardcode_minus_L
6199 # to unsupported forces relinking
6200 hardcode_minus_L=yes
6201 hardcode_libdir_flag_spec='-L$libdir'
6202 hardcode_libdir_separator=
6203 fi
6204 esac
6205 shared_flag='-shared'
6206 else
6207 # not using gcc
6208 if test "$host_cpu" = ia64; then
6209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6210 # chokes on -Wl,-G. The following line is correct:
6211 shared_flag='-G'
6212 else
6213 if test "$aix_use_runtimelinking" = yes; then
6214 shared_flag='${wl}-G'
6215 else
6216 shared_flag='${wl}-bM:SRE'
6217 fi
6218 fi
6219 fi
6220
6221 # It seems that -bexpall does not export symbols beginning with
6222 # underscore (_), so it is better to generate a list of symbols to export.
6223 always_export_symbols=yes
6224 if test "$aix_use_runtimelinking" = yes; then
6225 # Warning - without using the other runtime loading flags (-brtl),
6226 # -berok will link without error, but may produce a broken library.
6227 allow_undefined_flag='-berok'
6228 # Determine the default libpath from the value encoded in an empty executable.
6229 cat >conftest.$ac_ext <<_ACEOF
6230 #line $LINENO "configure"
6231 #include "confdefs.h"
6232
6233 #ifdef F77_DUMMY_MAIN
6234 # ifdef __cplusplus
6235 extern "C"
6236 # endif
6237 int F77_DUMMY_MAIN() { return 1; }
6238 #endif
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -s conftest$ac_exeext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259
6260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6261 }'`
6262 # Check for a 64-bit object if we didn't find anything.
6263 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; }
6264 }'`; fi
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6268 fi
6269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6271
6272 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6273 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6274 else
6275 if test "$host_cpu" = ia64; then
6276 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6277 allow_undefined_flag="-z nodefs"
6278 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6279 else
6280 # Determine the default libpath from the value encoded in an empty executable.
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6283 #include "confdefs.h"
6284
6285 #ifdef F77_DUMMY_MAIN
6286 # ifdef __cplusplus
6287 extern "C"
6288 # endif
6289 int F77_DUMMY_MAIN() { return 1; }
6290 #endif
6291 int
6292 main ()
6293 {
6294
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311
6312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6313 }'`
6314 # Check for a 64-bit object if we didn't find anything.
6315 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; }
6316 }'`; fi
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 fi
6321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6323
6324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6325 # Warning - without using the other run time loading flags,
6326 # -berok will link without error, but may produce a broken library.
6327 no_undefined_flag=' ${wl}-bernotok'
6328 allow_undefined_flag=' ${wl}-berok'
6329 # -bexpall does not export symbols beginning with underscore (_)
6330 always_export_symbols=yes
6331 # Exported symbols can be pulled into shared objects from archives
6332 whole_archive_flag_spec=' '
6333 archive_cmds_need_lc=yes
6334 # This is similar to how AIX traditionally builds it's shared libraries.
6335 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6336 fi
6337 fi
6338 ;;
6339
6340 amigaos*)
6341 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)'
6342 hardcode_libdir_flag_spec='-L$libdir'
6343 hardcode_minus_L=yes
6344 # see comment about different semantics on the GNU ld section
6345 ld_shlibs=no
6346 ;;
6347
6348 bsdi4*)
6349 export_dynamic_flag_spec=-rdynamic
6350 ;;
6351
6352 cygwin* | mingw* | pw32*)
6353 # When not using gcc, we currently assume that we are using
6354 # Microsoft Visual C++.
6355 # hardcode_libdir_flag_spec is actually meaningless, as there is
6356 # no search path for DLLs.
6357 hardcode_libdir_flag_spec=' '
6358 allow_undefined_flag=unsupported
6359 # Tell ltmain to make .lib files, not .a files.
6360 libext=lib
6361 # Tell ltmain to make .dll files, not .so files.
6362 shrext=".dll"
6363 # FIXME: Setting linknames here is a bad hack.
6364 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6365 # The linker will automatically build a .lib file if we build a DLL.
6366 old_archive_From_new_cmds='true'
6367 # FIXME: Should let the user specify the lib program.
6368 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6369 fix_srcfile_path='`cygpath -w "$srcfile"`'
6370 enable_shared_with_static_runtimes=yes
6371 ;;
6372
6373 darwin* | rhapsody*)
6374 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6375 archive_cmds_need_lc=no
6376 case "$host_os" in
6377 rhapsody* | darwin1.[012])
6378 allow_undefined_flag='-undefined suppress'
6379 ;;
6380 *) # Darwin 1.3 on
6381 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6382 ;;
6383 esac
6384 # FIXME: Relying on posixy $() will cause problems for
6385 # cross-compilation, but unfortunately the echo tests do not
6386 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6387 # `"' quotes if we put them in here... so don't!
6388 lt_int_apple_cc_single_mod=no
6389 output_verbose_link_cmd='echo'
6390 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6391 lt_int_apple_cc_single_mod=yes
6392 fi
6393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6394 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6395 else
6396 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6397 fi
6398 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6400 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6401 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6402 else
6403 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6404 fi
6405 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6406 hardcode_direct=no
6407 hardcode_automatic=yes
6408 hardcode_shlibpath_var=unsupported
6409 whole_archive_flag_spec='-all_load $convenience'
6410 link_all_deplibs=yes
6411 fi
6412 ;;
6413
6414 dgux*)
6415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6416 hardcode_libdir_flag_spec='-L$libdir'
6417 hardcode_shlibpath_var=no
6418 ;;
6419
6420 freebsd1*)
6421 ld_shlibs=no
6422 ;;
6423
6424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6425 # support. Future versions do this automatically, but an explicit c++rt0.o
6426 # does not break anything, and helps significantly (at the cost of a little
6427 # extra space).
6428 freebsd2.2*)
6429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6430 hardcode_libdir_flag_spec='-R$libdir'
6431 hardcode_direct=yes
6432 hardcode_shlibpath_var=no
6433 ;;
6434
6435 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6436 freebsd2*)
6437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6438 hardcode_direct=yes
6439 hardcode_minus_L=yes
6440 hardcode_shlibpath_var=no
6441 ;;
6442
6443 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6444 freebsd*)
6445 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6446 hardcode_libdir_flag_spec='-R$libdir'
6447 hardcode_direct=yes
6448 hardcode_shlibpath_var=no
6449 ;;
6450
6451 hpux9*)
6452 if test "$GCC" = yes; then
6453 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'
6454 else
6455 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'
6456 fi
6457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6458 hardcode_libdir_separator=:
6459 hardcode_direct=yes
6460
6461 # hardcode_minus_L: Not really in the search PATH,
6462 # but as the default location of the library.
6463 hardcode_minus_L=yes
6464 export_dynamic_flag_spec='${wl}-E'
6465 ;;
6466
6467 hpux10* | hpux11*)
6468 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6469 case "$host_cpu" in
6470 hppa*64*|ia64*)
6471 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6472 ;;
6473 *)
6474 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6475 ;;
6476 esac
6477 else
6478 case "$host_cpu" in
6479 hppa*64*|ia64*)
6480 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6481 ;;
6482 *)
6483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6484 ;;
6485 esac
6486 fi
6487 if test "$with_gnu_ld" = no; then
6488 case "$host_cpu" in
6489 hppa*64*)
6490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6491 hardcode_libdir_flag_spec_ld='+b $libdir'
6492 hardcode_libdir_separator=:
6493 hardcode_direct=no
6494 hardcode_shlibpath_var=no
6495 ;;
6496 ia64*)
6497 hardcode_libdir_flag_spec='-L$libdir'
6498 hardcode_direct=no
6499 hardcode_shlibpath_var=no
6500
6501 # hardcode_minus_L: Not really in the search PATH,
6502 # but as the default location of the library.
6503 hardcode_minus_L=yes
6504 ;;
6505 *)
6506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6507 hardcode_libdir_separator=:
6508 hardcode_direct=yes
6509 export_dynamic_flag_spec='${wl}-E'
6510
6511 # hardcode_minus_L: Not really in the search PATH,
6512 # but as the default location of the library.
6513 hardcode_minus_L=yes
6514 ;;
6515 esac
6516 fi
6517 ;;
6518
6519 irix5* | irix6* | nonstopux*)
6520 if test "$GCC" = yes; then
6521 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'
6522 else
6523 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'
6524 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6525 fi
6526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6527 hardcode_libdir_separator=:
6528 link_all_deplibs=yes
6529 ;;
6530
6531 netbsd*)
6532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6534 else
6535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6536 fi
6537 hardcode_libdir_flag_spec='-R$libdir'
6538 hardcode_direct=yes
6539 hardcode_shlibpath_var=no
6540 ;;
6541
6542 newsos6)
6543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544 hardcode_direct=yes
6545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6546 hardcode_libdir_separator=:
6547 hardcode_shlibpath_var=no
6548 ;;
6549
6550 openbsd*)
6551 hardcode_direct=yes
6552 hardcode_shlibpath_var=no
6553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6556 export_dynamic_flag_spec='${wl}-E'
6557 else
6558 case $host_os in
6559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6561 hardcode_libdir_flag_spec='-R$libdir'
6562 ;;
6563 *)
6564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6566 ;;
6567 esac
6568 fi
6569 ;;
6570
6571 os2*)
6572 hardcode_libdir_flag_spec='-L$libdir'
6573 hardcode_minus_L=yes
6574 allow_undefined_flag=unsupported
6575 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'
6576 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6577 ;;
6578
6579 osf3*)
6580 if test "$GCC" = yes; then
6581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6582 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'
6583 else
6584 allow_undefined_flag=' -expect_unresolved \*'
6585 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'
6586 fi
6587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6588 hardcode_libdir_separator=:
6589 ;;
6590
6591 osf4* | osf5*) # as osf3* with the addition of -msym flag
6592 if test "$GCC" = yes; then
6593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6594 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'
6595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6596 else
6597 allow_undefined_flag=' -expect_unresolved \*'
6598 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'
6599 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6600 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6601
6602 # Both c and cxx compiler support -rpath directly
6603 hardcode_libdir_flag_spec='-rpath $libdir'
6604 fi
6605 hardcode_libdir_separator=:
6606 ;;
6607
6608 sco3.2v5*)
6609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6610 hardcode_shlibpath_var=no
6611 export_dynamic_flag_spec='${wl}-Bexport'
6612 runpath_var=LD_RUN_PATH
6613 hardcode_runpath_var=yes
6614 ;;
6615
6616 solaris*)
6617 no_undefined_flag=' -z text'
6618 if test "$GCC" = yes; then
6619 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6620 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6621 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6622 else
6623 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6624 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6626 fi
6627 hardcode_libdir_flag_spec='-R$libdir'
6628 hardcode_shlibpath_var=no
6629 case $host_os in
6630 solaris2.[0-5] | solaris2.[0-5].*) ;;
6631 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6633 esac
6634 link_all_deplibs=yes
6635 ;;
6636
6637 sunos4*)
6638 if test "x$host_vendor" = xsequent; then
6639 # Use $CC to link under sequent, because it throws in some extra .o
6640 # files that make .init and .fini sections work.
6641 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6642 else
6643 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6644 fi
6645 hardcode_libdir_flag_spec='-L$libdir'
6646 hardcode_direct=yes
6647 hardcode_minus_L=yes
6648 hardcode_shlibpath_var=no
6649 ;;
6650
6651 sysv4)
6652 case $host_vendor in
6653 sni)
6654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6655 hardcode_direct=yes # is this really true???
6656 ;;
6657 siemens)
6658 ## LD is ld it makes a PLAMLIB
6659 ## CC just makes a GrossModule.
6660 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6661 reload_cmds='$CC -r -o $output$reload_objs'
6662 hardcode_direct=no
6663 ;;
6664 motorola)
6665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6666 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6667 ;;
6668 esac
6669 runpath_var='LD_RUN_PATH'
6670 hardcode_shlibpath_var=no
6671 ;;
6672
6673 sysv4.3*)
6674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6675 hardcode_shlibpath_var=no
6676 export_dynamic_flag_spec='-Bexport'
6677 ;;
6678
6679 sysv4*MP*)
6680 if test -d /usr/nec; then
6681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6682 hardcode_shlibpath_var=no
6683 runpath_var=LD_RUN_PATH
6684 hardcode_runpath_var=yes
6685 ld_shlibs=yes
6686 fi
6687 ;;
6688
6689 sysv4.2uw2*)
6690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6691 hardcode_direct=yes
6692 hardcode_minus_L=no
6693 hardcode_shlibpath_var=no
6694 hardcode_runpath_var=yes
6695 runpath_var=LD_RUN_PATH
6696 ;;
6697
6698 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6699 no_undefined_flag='${wl}-z ${wl}text'
6700 if test "$GCC" = yes; then
6701 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6702 else
6703 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6704 fi
6705 runpath_var='LD_RUN_PATH'
6706 hardcode_shlibpath_var=no
6707 ;;
6708
6709 sysv5*)
6710 no_undefined_flag=' -z text'
6711 # $CC -shared without GNU ld will not create a library from C++
6712 # object files and a static libstdc++, better avoid it by now
6713 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6716 hardcode_libdir_flag_spec=
6717 hardcode_shlibpath_var=no
6718 runpath_var='LD_RUN_PATH'
6719 ;;
6720
6721 uts4*)
6722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6723 hardcode_libdir_flag_spec='-L$libdir'
6724 hardcode_shlibpath_var=no
6725 ;;
6726
6727 *)
6728 ld_shlibs=no
6729 ;;
6730 esac
6731 fi
6732
6733 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6734 echo "${ECHO_T}$ld_shlibs" >&6
6735 test "$ld_shlibs" = no && can_build_shared=no
6736
6737 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6738 if test "$GCC" = yes; then
6739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6740 fi
6741
6742 #
6743 # Do we need to explicitly link libc?
6744 #
6745 case "x$archive_cmds_need_lc" in
6746 x|xyes)
6747 # Assume -lc should be added
6748 archive_cmds_need_lc=yes
6749
6750 if test "$enable_shared" = yes && test "$GCC" = yes; then
6751 case $archive_cmds in
6752 *'~'*)
6753 # FIXME: we may have to deal with multi-command sequences.
6754 ;;
6755 '$CC '*)
6756 # Test whether the compiler implicitly links with -lc since on some
6757 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6758 # to ld, don't add -lc before -lgcc.
6759 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6760 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6761 $rm conftest*
6762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6763
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } 2>conftest.err; then
6769 soname=conftest
6770 lib=conftest
6771 libobjs=conftest.$ac_objext
6772 deplibs=
6773 wl=$lt_prog_compiler_wl
6774 compiler_flags=-v
6775 linker_flags=-v
6776 verstring=
6777 output_objdir=.
6778 libname=conftest
6779 lt_save_allow_undefined_flag=$allow_undefined_flag
6780 allow_undefined_flag=
6781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6782 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }
6786 then
6787 archive_cmds_need_lc=no
6788 else
6789 archive_cmds_need_lc=yes
6790 fi
6791 allow_undefined_flag=$lt_save_allow_undefined_flag
6792 else
6793 cat conftest.err 1>&5
6794 fi
6795 $rm conftest*
6796 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6797 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6798 ;;
6799 esac
6800 fi
6801 ;;
6802 esac
6803
6804 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6806 hardcode_action=
6807 if test -n "$hardcode_libdir_flag_spec" || \
6808 test -n "$runpath_var " || \
6809 test "X$hardcode_automatic"="Xyes" ; then
6810
6811 # We can hardcode non-existant directories.
6812 if test "$hardcode_direct" != no &&
6813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6814 # have to relink, otherwise we might link with an installed library
6815 # when we should be linking with a yet-to-be-installed one
6816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6817 test "$hardcode_minus_L" != no; then
6818 # Linking always hardcodes the temporary library directory.
6819 hardcode_action=relink
6820 else
6821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6822 hardcode_action=immediate
6823 fi
6824 else
6825 # We cannot hardcode anything, or else we can only hardcode existing
6826 # directories.
6827 hardcode_action=unsupported
6828 fi
6829 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6830 echo "${ECHO_T}$hardcode_action" >&6
6831
6832 if test "$hardcode_action" = relink; then
6833 # Fast installation is not supported
6834 enable_fast_install=no
6835 elif test "$shlibpath_overrides_runpath" = yes ||
6836 test "$enable_shared" = no; then
6837 # Fast installation is not necessary
6838 enable_fast_install=needless
6839 fi
6840
6841 striplib=
6842 old_striplib=
6843 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6848 echo "$as_me:$LINENO: result: yes" >&5
6849 echo "${ECHO_T}yes" >&6
6850 else
6851 # FIXME - insert some real tests, host_os isn't really good enough
6852 case $host_os in
6853 darwin*)
6854 if test -n "$STRIP" ; then
6855 striplib="$STRIP -x"
6856 echo "$as_me:$LINENO: result: yes" >&5
6857 echo "${ECHO_T}yes" >&6
6858 else
6859 echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6
6861 fi
6862 ;;
6863 *)
6864 echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6
6866 ;;
6867 esac
6868 fi
6869
6870 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6872 library_names_spec=
6873 libname_spec='lib$name'
6874 soname_spec=
6875 shrext=".so"
6876 postinstall_cmds=
6877 postuninstall_cmds=
6878 finish_cmds=
6879 finish_eval=
6880 shlibpath_var=
6881 shlibpath_overrides_runpath=unknown
6882 version_type=none
6883 dynamic_linker="$host_os ld.so"
6884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6885 if test "$GCC" = yes; then
6886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6887 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6888 # if the path contains ";" then we assume it to be the separator
6889 # otherwise default to the standard path separator (i.e. ":") - it is
6890 # assumed that no part of a normal pathname contains ";" but that should
6891 # okay in the real world where ";" in dirpaths is itself problematic.
6892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6893 else
6894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6895 fi
6896 else
6897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6898 fi
6899 need_lib_prefix=unknown
6900 hardcode_into_libs=no
6901
6902 # when you set need_version to no, make sure it does not cause -set_version
6903 # flags to be left without arguments
6904 need_version=unknown
6905
6906 case $host_os in
6907 aix3*)
6908 version_type=linux
6909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6910 shlibpath_var=LIBPATH
6911
6912 # AIX 3 has no versioning support, so we append a major version to the name.
6913 soname_spec='${libname}${release}${shared_ext}$major'
6914 ;;
6915
6916 aix4* | aix5*)
6917 version_type=linux
6918 need_lib_prefix=no
6919 need_version=no
6920 hardcode_into_libs=yes
6921 if test "$host_cpu" = ia64; then
6922 # AIX 5 supports IA64
6923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6924 shlibpath_var=LD_LIBRARY_PATH
6925 else
6926 # With GCC up to 2.95.x, collect2 would create an import file
6927 # for dependence libraries. The import file would start with
6928 # the line `#! .'. This would cause the generated library to
6929 # depend on `.', always an invalid library. This was fixed in
6930 # development snapshots of GCC prior to 3.0.
6931 case $host_os in
6932 aix4 | aix4.[01] | aix4.[01].*)
6933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6934 echo ' yes '
6935 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6936 :
6937 else
6938 can_build_shared=no
6939 fi
6940 ;;
6941 esac
6942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6943 # soname into executable. Probably we can add versioning support to
6944 # collect2, so additional links can be useful in future.
6945 if test "$aix_use_runtimelinking" = yes; then
6946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6947 # instead of lib<name>.a to let people know that these are not
6948 # typical AIX shared libraries.
6949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6950 else
6951 # We preserve .a as extension for shared libraries through AIX4.2
6952 # and later when we are not doing run time linking.
6953 library_names_spec='${libname}${release}.a $libname.a'
6954 soname_spec='${libname}${release}${shared_ext}$major'
6955 fi
6956 shlibpath_var=LIBPATH
6957 fi
6958 ;;
6959
6960 amigaos*)
6961 library_names_spec='$libname.ixlibrary $libname.a'
6962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6963 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'
6964 ;;
6965
6966 beos*)
6967 library_names_spec='${libname}${shared_ext}'
6968 dynamic_linker="$host_os ld.so"
6969 shlibpath_var=LIBRARY_PATH
6970 ;;
6971
6972 bsdi4*)
6973 version_type=linux
6974 need_version=no
6975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976 soname_spec='${libname}${release}${shared_ext}$major'
6977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6978 shlibpath_var=LD_LIBRARY_PATH
6979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6981 # the default ld.so.conf also contains /usr/contrib/lib and
6982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6983 # libtool to hard-code these into programs
6984 ;;
6985
6986 cygwin* | mingw* | pw32*)
6987 version_type=windows
6988 shrext=".dll"
6989 need_version=no
6990 need_lib_prefix=no
6991
6992 case $GCC,$host_os in
6993 yes,cygwin* | yes,mingw* | yes,pw32*)
6994 library_names_spec='$libname.dll.a'
6995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6996 postinstall_cmds='base_file=`basename \${file}`~
6997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6998 dldir=$destdir/`dirname \$dlpath`~
6999 test -d \$dldir || mkdir -p \$dldir~
7000 $install_prog $dir/$dlname \$dldir/$dlname'
7001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7002 dlpath=$dir/\$dldll~
7003 $rm \$dlpath'
7004 shlibpath_overrides_runpath=yes
7005
7006 case $host_os in
7007 cygwin*)
7008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7010 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7011 ;;
7012 mingw*)
7013 # MinGW DLLs use traditional 'lib' prefix
7014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7017 # It is most probably a Windows format PATH printed by
7018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7019 # path with ; separators, and with drive letters. We can handle the
7020 # drive letters (cygwin fileutils understands them), so leave them,
7021 # especially as we might pass files found there to a mingw objdump,
7022 # which wouldn't understand a cygwinified path. Ahh.
7023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7024 else
7025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7026 fi
7027 ;;
7028 pw32*)
7029 # pw32 DLLs use 'pw' prefix rather than 'lib'
7030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7031 ;;
7032 esac
7033 ;;
7034
7035 *)
7036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7037 ;;
7038 esac
7039 dynamic_linker='Win32 ld.exe'
7040 # FIXME: first we should search . and the directory the executable is in
7041 shlibpath_var=PATH
7042 ;;
7043
7044 darwin* | rhapsody*)
7045 dynamic_linker="$host_os dyld"
7046 version_type=darwin
7047 need_lib_prefix=no
7048 need_version=no
7049 # FIXME: Relying on posixy $() will cause problems for
7050 # cross-compilation, but unfortunately the echo tests do not
7051 # yet detect zsh echo's removal of \ escapes.
7052 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7053 soname_spec='${libname}${release}${major}$shared_ext'
7054 shlibpath_overrides_runpath=yes
7055 shlibpath_var=DYLD_LIBRARY_PATH
7056 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7057 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7058 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7059 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"`
7060 fi
7061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7062 ;;
7063
7064 dgux*)
7065 version_type=linux
7066 need_lib_prefix=no
7067 need_version=no
7068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7069 soname_spec='${libname}${release}${shared_ext}$major'
7070 shlibpath_var=LD_LIBRARY_PATH
7071 ;;
7072
7073 freebsd1*)
7074 dynamic_linker=no
7075 ;;
7076
7077 freebsd*)
7078 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7079 version_type=freebsd-$objformat
7080 case $version_type in
7081 freebsd-elf*)
7082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7083 need_version=no
7084 need_lib_prefix=no
7085 ;;
7086 freebsd-*)
7087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7088 need_version=yes
7089 ;;
7090 esac
7091 shlibpath_var=LD_LIBRARY_PATH
7092 case $host_os in
7093 freebsd2*)
7094 shlibpath_overrides_runpath=yes
7095 ;;
7096 freebsd3.01* | freebsdelf3.01*)
7097 shlibpath_overrides_runpath=yes
7098 hardcode_into_libs=yes
7099 ;;
7100 *) # from 3.2 on
7101 shlibpath_overrides_runpath=no
7102 hardcode_into_libs=yes
7103 ;;
7104 esac
7105 ;;
7106
7107 gnu*)
7108 version_type=linux
7109 need_lib_prefix=no
7110 need_version=no
7111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7112 soname_spec='${libname}${release}${shared_ext}$major'
7113 shlibpath_var=LD_LIBRARY_PATH
7114 hardcode_into_libs=yes
7115 ;;
7116
7117 hpux9* | hpux10* | hpux11*)
7118 # Give a soname corresponding to the major version so that dld.sl refuses to
7119 # link against other versions.
7120 version_type=sunos
7121 need_lib_prefix=no
7122 need_version=no
7123 case "$host_cpu" in
7124 ia64*)
7125 shrext='.so'
7126 hardcode_into_libs=yes
7127 dynamic_linker="$host_os dld.so"
7128 shlibpath_var=LD_LIBRARY_PATH
7129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7131 soname_spec='${libname}${release}${shared_ext}$major'
7132 if test "X$HPUX_IA64_MODE" = X32; then
7133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7134 else
7135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7136 fi
7137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7138 ;;
7139 hppa*64*)
7140 shrext='.sl'
7141 hardcode_into_libs=yes
7142 dynamic_linker="$host_os dld.sl"
7143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7146 soname_spec='${libname}${release}${shared_ext}$major'
7147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7149 ;;
7150 *)
7151 shrext='.sl'
7152 dynamic_linker="$host_os dld.sl"
7153 shlibpath_var=SHLIB_PATH
7154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7156 soname_spec='${libname}${release}${shared_ext}$major'
7157 ;;
7158 esac
7159 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7160 postinstall_cmds='chmod 555 $lib'
7161 ;;
7162
7163 irix5* | irix6* | nonstopux*)
7164 case $host_os in
7165 nonstopux*) version_type=nonstopux ;;
7166 *)
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 version_type=linux
7169 else
7170 version_type=irix
7171 fi ;;
7172 esac
7173 need_lib_prefix=no
7174 need_version=no
7175 soname_spec='${libname}${release}${shared_ext}$major'
7176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7177 case $host_os in
7178 irix5* | nonstopux*)
7179 libsuff= shlibsuff=
7180 ;;
7181 *)
7182 case $LD in # libtool.m4 will add one of these switches to LD
7183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7184 libsuff= shlibsuff= libmagic=32-bit;;
7185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7186 libsuff=32 shlibsuff=N32 libmagic=N32;;
7187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7189 *) libsuff= shlibsuff= libmagic=never-match;;
7190 esac
7191 ;;
7192 esac
7193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7194 shlibpath_overrides_runpath=no
7195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7197 hardcode_into_libs=yes
7198 ;;
7199
7200 # No shared lib support for Linux oldld, aout, or coff.
7201 linux*oldld* | linux*aout* | linux*coff*)
7202 dynamic_linker=no
7203 ;;
7204
7205 # This must be Linux ELF.
7206 linux*)
7207 version_type=linux
7208 need_lib_prefix=no
7209 need_version=no
7210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7211 soname_spec='${libname}${release}${shared_ext}$major'
7212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7213 shlibpath_var=LD_LIBRARY_PATH
7214 shlibpath_overrides_runpath=no
7215 # This implies no fast_install, which is unacceptable.
7216 # Some rework will be needed to allow for fast_install
7217 # before this can be enabled.
7218 hardcode_into_libs=yes
7219
7220 # We used to test for /lib/ld.so.1 and disable shared libraries on
7221 # powerpc, because MkLinux only supported shared libraries with the
7222 # GNU dynamic linker. Since this was broken with cross compilers,
7223 # most powerpc-linux boxes support dynamic linking these days and
7224 # people can always --disable-shared, the test was removed, and we
7225 # assume the GNU/Linux dynamic linker is in use.
7226 dynamic_linker='GNU/Linux ld.so'
7227 ;;
7228
7229 netbsd*)
7230 version_type=sunos
7231 need_lib_prefix=no
7232 need_version=no
7233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7236 dynamic_linker='NetBSD (a.out) ld.so'
7237 else
7238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7239 soname_spec='${libname}${release}${shared_ext}$major'
7240 dynamic_linker='NetBSD ld.elf_so'
7241 fi
7242 shlibpath_var=LD_LIBRARY_PATH
7243 shlibpath_overrides_runpath=yes
7244 hardcode_into_libs=yes
7245 ;;
7246
7247 newsos6)
7248 version_type=linux
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250 shlibpath_var=LD_LIBRARY_PATH
7251 shlibpath_overrides_runpath=yes
7252 ;;
7253
7254 nto-qnx)
7255 version_type=linux
7256 need_lib_prefix=no
7257 need_version=no
7258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7259 soname_spec='${libname}${release}${shared_ext}$major'
7260 shlibpath_var=LD_LIBRARY_PATH
7261 shlibpath_overrides_runpath=yes
7262 ;;
7263
7264 openbsd*)
7265 version_type=sunos
7266 need_lib_prefix=no
7267 need_version=no
7268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7270 shlibpath_var=LD_LIBRARY_PATH
7271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7272 case $host_os in
7273 openbsd2.[89] | openbsd2.[89].*)
7274 shlibpath_overrides_runpath=no
7275 ;;
7276 *)
7277 shlibpath_overrides_runpath=yes
7278 ;;
7279 esac
7280 else
7281 shlibpath_overrides_runpath=yes
7282 fi
7283 ;;
7284
7285 os2*)
7286 libname_spec='$name'
7287 shrext=".dll"
7288 need_lib_prefix=no
7289 library_names_spec='$libname${shared_ext} $libname.a'
7290 dynamic_linker='OS/2 ld.exe'
7291 shlibpath_var=LIBPATH
7292 ;;
7293
7294 osf3* | osf4* | osf5*)
7295 version_type=osf
7296 need_lib_prefix=no
7297 need_version=no
7298 soname_spec='${libname}${release}${shared_ext}$major'
7299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7300 shlibpath_var=LD_LIBRARY_PATH
7301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7303 ;;
7304
7305 sco3.2v5*)
7306 version_type=osf
7307 soname_spec='${libname}${release}${shared_ext}$major'
7308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7309 shlibpath_var=LD_LIBRARY_PATH
7310 ;;
7311
7312 solaris*)
7313 version_type=linux
7314 need_lib_prefix=no
7315 need_version=no
7316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7317 soname_spec='${libname}${release}${shared_ext}$major'
7318 shlibpath_var=LD_LIBRARY_PATH
7319 shlibpath_overrides_runpath=yes
7320 hardcode_into_libs=yes
7321 # ldd complains unless libraries are executable
7322 postinstall_cmds='chmod +x $lib'
7323 ;;
7324
7325 sunos4*)
7326 version_type=sunos
7327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7329 shlibpath_var=LD_LIBRARY_PATH
7330 shlibpath_overrides_runpath=yes
7331 if test "$with_gnu_ld" = yes; then
7332 need_lib_prefix=no
7333 fi
7334 need_version=yes
7335 ;;
7336
7337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7338 version_type=linux
7339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7340 soname_spec='${libname}${release}${shared_ext}$major'
7341 shlibpath_var=LD_LIBRARY_PATH
7342 case $host_vendor in
7343 sni)
7344 shlibpath_overrides_runpath=no
7345 need_lib_prefix=no
7346 export_dynamic_flag_spec='${wl}-Blargedynsym'
7347 runpath_var=LD_RUN_PATH
7348 ;;
7349 siemens)
7350 need_lib_prefix=no
7351 ;;
7352 motorola)
7353 need_lib_prefix=no
7354 need_version=no
7355 shlibpath_overrides_runpath=no
7356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7357 ;;
7358 esac
7359 ;;
7360
7361 sysv4*MP*)
7362 if test -d /usr/nec ;then
7363 version_type=linux
7364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7365 soname_spec='$libname${shared_ext}.$major'
7366 shlibpath_var=LD_LIBRARY_PATH
7367 fi
7368 ;;
7369
7370 uts4*)
7371 version_type=linux
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
7375 ;;
7376
7377 *)
7378 dynamic_linker=no
7379 ;;
7380 esac
7381 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7382 echo "${ECHO_T}$dynamic_linker" >&6
7383 test "$dynamic_linker" = no && can_build_shared=no
7384
7385 if test "x$enable_dlopen" != xyes; then
7386 enable_dlopen=unknown
7387 enable_dlopen_self=unknown
7388 enable_dlopen_self_static=unknown
7389 else
7390 lt_cv_dlopen=no
7391 lt_cv_dlopen_libs=
7392
7393 case $host_os in
7394 beos*)
7395 lt_cv_dlopen="load_add_on"
7396 lt_cv_dlopen_libs=
7397 lt_cv_dlopen_self=yes
7398 ;;
7399
7400 mingw* | pw32*)
7401 lt_cv_dlopen="LoadLibrary"
7402 lt_cv_dlopen_libs=
7403 ;;
7404
7405 cygwin*)
7406 lt_cv_dlopen="dlopen"
7407 lt_cv_dlopen_libs=
7408 ;;
7409
7410 darwin*)
7411 # if libdl is installed we need to link against it
7412 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7413 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7414 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 ac_check_lib_save_LIBS=$LIBS
7418 LIBS="-ldl $LIBS"
7419 cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7422
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 #ifdef __cplusplus
7425 extern "C"
7426 #endif
7427 /* We use char because int might match the return type of a gcc2
7428 builtin and then its argument prototype would still apply. */
7429 char dlopen ();
7430 #ifdef F77_DUMMY_MAIN
7431 # ifdef __cplusplus
7432 extern "C"
7433 # endif
7434 int F77_DUMMY_MAIN() { return 1; }
7435 #endif
7436 int
7437 main ()
7438 {
7439 dlopen ();
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_lib_dl_dlopen=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 ac_cv_lib_dl_dlopen=no
7461 fi
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7464 fi
7465 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7467 if test $ac_cv_lib_dl_dlopen = yes; then
7468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7469 else
7470
7471 lt_cv_dlopen="dyld"
7472 lt_cv_dlopen_libs=
7473 lt_cv_dlopen_self=yes
7474
7475 fi
7476
7477 ;;
7478
7479 *)
7480 echo "$as_me:$LINENO: checking for shl_load" >&5
7481 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7482 if test "${ac_cv_func_shl_load+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 cat >conftest.$ac_ext <<_ACEOF
7486 #line $LINENO "configure"
7487 #include "confdefs.h"
7488 /* System header to define __stub macros and hopefully few prototypes,
7489 which can conflict with char shl_load (); below. */
7490 #include <assert.h>
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497 char shl_load ();
7498 char (*f) ();
7499
7500 #ifdef F77_DUMMY_MAIN
7501 # ifdef __cplusplus
7502 extern "C"
7503 # endif
7504 int F77_DUMMY_MAIN() { return 1; }
7505 #endif
7506 int
7507 main ()
7508 {
7509 /* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7513 choke me
7514 #else
7515 f = shl_load;
7516 #endif
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -s conftest$ac_exeext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_func_shl_load=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 ac_cv_func_shl_load=no
7539 fi
7540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7541 fi
7542 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7543 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7544 if test $ac_cv_func_shl_load = yes; then
7545 lt_cv_dlopen="shl_load"
7546 else
7547 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7548 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7549 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 ac_check_lib_save_LIBS=$LIBS
7553 LIBS="-ldld $LIBS"
7554 cat >conftest.$ac_ext <<_ACEOF
7555 #line $LINENO "configure"
7556 #include "confdefs.h"
7557
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 #ifdef __cplusplus
7560 extern "C"
7561 #endif
7562 /* We use char because int might match the return type of a gcc2
7563 builtin and then its argument prototype would still apply. */
7564 char shl_load ();
7565 #ifdef F77_DUMMY_MAIN
7566 # ifdef __cplusplus
7567 extern "C"
7568 # endif
7569 int F77_DUMMY_MAIN() { return 1; }
7570 #endif
7571 int
7572 main ()
7573 {
7574 shl_load ();
7575 ;
7576 return 0;
7577 }
7578 _ACEOF
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_cv_lib_dld_shl_load=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7595 ac_cv_lib_dld_shl_load=no
7596 fi
7597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7599 fi
7600 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7601 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7602 if test $ac_cv_lib_dld_shl_load = yes; then
7603 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7604 else
7605 echo "$as_me:$LINENO: checking for dlopen" >&5
7606 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7607 if test "${ac_cv_func_dlopen+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 /* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char dlopen (); below. */
7615 #include <assert.h>
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 #ifdef __cplusplus
7618 extern "C"
7619 #endif
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char dlopen ();
7623 char (*f) ();
7624
7625 #ifdef F77_DUMMY_MAIN
7626 # ifdef __cplusplus
7627 extern "C"
7628 # endif
7629 int F77_DUMMY_MAIN() { return 1; }
7630 #endif
7631 int
7632 main ()
7633 {
7634 /* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7638 choke me
7639 #else
7640 f = dlopen;
7641 #endif
7642
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 rm -f conftest.$ac_objext conftest$ac_exeext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7649 (eval $ac_link) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -s conftest$ac_exeext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 ac_cv_func_dlopen=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 ac_cv_func_dlopen=no
7664 fi
7665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7666 fi
7667 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7668 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7669 if test $ac_cv_func_dlopen = yes; then
7670 lt_cv_dlopen="dlopen"
7671 else
7672 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 ac_check_lib_save_LIBS=$LIBS
7678 LIBS="-ldl $LIBS"
7679 cat >conftest.$ac_ext <<_ACEOF
7680 #line $LINENO "configure"
7681 #include "confdefs.h"
7682
7683 /* Override any gcc2 internal prototype to avoid an error. */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689 char dlopen ();
7690 #ifdef F77_DUMMY_MAIN
7691 # ifdef __cplusplus
7692 extern "C"
7693 # endif
7694 int F77_DUMMY_MAIN() { return 1; }
7695 #endif
7696 int
7697 main ()
7698 {
7699 dlopen ();
7700 ;
7701 return 0;
7702 }
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -s conftest$ac_exeext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_lib_dl_dlopen=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 ac_cv_lib_dl_dlopen=no
7721 fi
7722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7723 LIBS=$ac_check_lib_save_LIBS
7724 fi
7725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7727 if test $ac_cv_lib_dl_dlopen = yes; then
7728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7729 else
7730 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7731 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7732 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 ac_check_lib_save_LIBS=$LIBS
7736 LIBS="-lsvld $LIBS"
7737 cat >conftest.$ac_ext <<_ACEOF
7738 #line $LINENO "configure"
7739 #include "confdefs.h"
7740
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 #ifdef __cplusplus
7743 extern "C"
7744 #endif
7745 /* We use char because int might match the return type of a gcc2
7746 builtin and then its argument prototype would still apply. */
7747 char dlopen ();
7748 #ifdef F77_DUMMY_MAIN
7749 # ifdef __cplusplus
7750 extern "C"
7751 # endif
7752 int F77_DUMMY_MAIN() { return 1; }
7753 #endif
7754 int
7755 main ()
7756 {
7757 dlopen ();
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 rm -f conftest.$ac_objext conftest$ac_exeext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764 (eval $ac_link) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -s conftest$ac_exeext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_cv_lib_svld_dlopen=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7778 ac_cv_lib_svld_dlopen=no
7779 fi
7780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_lib_save_LIBS
7782 fi
7783 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7784 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7785 if test $ac_cv_lib_svld_dlopen = yes; then
7786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7787 else
7788 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7789 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-ldld $LIBS"
7795 cat >conftest.$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7797 #include "confdefs.h"
7798
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 #ifdef __cplusplus
7801 extern "C"
7802 #endif
7803 /* We use char because int might match the return type of a gcc2
7804 builtin and then its argument prototype would still apply. */
7805 char dld_link ();
7806 #ifdef F77_DUMMY_MAIN
7807 # ifdef __cplusplus
7808 extern "C"
7809 # endif
7810 int F77_DUMMY_MAIN() { return 1; }
7811 #endif
7812 int
7813 main ()
7814 {
7815 dld_link ();
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_dld_dld_link=yes
7833 else
7834 echo "$as_me: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7836 ac_cv_lib_dld_dld_link=no
7837 fi
7838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7840 fi
7841 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7842 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7843 if test $ac_cv_lib_dld_dld_link = yes; then
7844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7845 fi
7846
7847
7848 fi
7849
7850
7851 fi
7852
7853
7854 fi
7855
7856
7857 fi
7858
7859
7860 fi
7861
7862 ;;
7863 esac
7864
7865 if test "x$lt_cv_dlopen" != xno; then
7866 enable_dlopen=yes
7867 else
7868 enable_dlopen=no
7869 fi
7870
7871 case $lt_cv_dlopen in
7872 dlopen)
7873 save_CPPFLAGS="$CPPFLAGS"
7874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7875
7876 save_LDFLAGS="$LDFLAGS"
7877 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7878
7879 save_LIBS="$LIBS"
7880 LIBS="$lt_cv_dlopen_libs $LIBS"
7881
7882 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7883 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7884 if test "${lt_cv_dlopen_self+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 if test "$cross_compiling" = yes; then :
7888 lt_cv_dlopen_self=cross
7889 else
7890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7891 lt_status=$lt_dlunknown
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7893 "configure"
7894 #include "confdefs.h"
7895
7896 #if HAVE_DLFCN_H
7897 #include <dlfcn.h>
7898 #endif
7899
7900 #include <stdio.h>
7901
7902 #ifdef RTLD_GLOBAL
7903 # define LT_DLGLOBAL RTLD_GLOBAL
7904 #else
7905 # ifdef DL_GLOBAL
7906 # define LT_DLGLOBAL DL_GLOBAL
7907 # else
7908 # define LT_DLGLOBAL 0
7909 # endif
7910 #endif
7911
7912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7913 find out it does not work in some platform. */
7914 #ifndef LT_DLLAZY_OR_NOW
7915 # ifdef RTLD_LAZY
7916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7917 # else
7918 # ifdef DL_LAZY
7919 # define LT_DLLAZY_OR_NOW DL_LAZY
7920 # else
7921 # ifdef RTLD_NOW
7922 # define LT_DLLAZY_OR_NOW RTLD_NOW
7923 # else
7924 # ifdef DL_NOW
7925 # define LT_DLLAZY_OR_NOW DL_NOW
7926 # else
7927 # define LT_DLLAZY_OR_NOW 0
7928 # endif
7929 # endif
7930 # endif
7931 # endif
7932 #endif
7933
7934 #ifdef __cplusplus
7935 extern "C" void exit (int);
7936 #endif
7937
7938 void fnord() { int i=42;}
7939 int main ()
7940 {
7941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7942 int status = $lt_dlunknown;
7943
7944 if (self)
7945 {
7946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7948 /* dlclose (self); */
7949 }
7950
7951 exit (status);
7952 }
7953 EOF
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7959 (./conftest; exit; ) 2>/dev/null
7960 lt_status=$?
7961 case x$lt_status in
7962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7964 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7965 esac
7966 else :
7967 # compilation failed
7968 lt_cv_dlopen_self=no
7969 fi
7970 fi
7971 rm -fr conftest*
7972
7973
7974 fi
7975 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7976 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7977
7978 if test "x$lt_cv_dlopen_self" = xyes; then
7979 LDFLAGS="$LDFLAGS $link_static_flag"
7980 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7981 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7982 if test "${lt_cv_dlopen_self_static+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 if test "$cross_compiling" = yes; then :
7986 lt_cv_dlopen_self_static=cross
7987 else
7988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7989 lt_status=$lt_dlunknown
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7991 "configure"
7992 #include "confdefs.h"
7993
7994 #if HAVE_DLFCN_H
7995 #include <dlfcn.h>
7996 #endif
7997
7998 #include <stdio.h>
7999
8000 #ifdef RTLD_GLOBAL
8001 # define LT_DLGLOBAL RTLD_GLOBAL
8002 #else
8003 # ifdef DL_GLOBAL
8004 # define LT_DLGLOBAL DL_GLOBAL
8005 # else
8006 # define LT_DLGLOBAL 0
8007 # endif
8008 #endif
8009
8010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8011 find out it does not work in some platform. */
8012 #ifndef LT_DLLAZY_OR_NOW
8013 # ifdef RTLD_LAZY
8014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8015 # else
8016 # ifdef DL_LAZY
8017 # define LT_DLLAZY_OR_NOW DL_LAZY
8018 # else
8019 # ifdef RTLD_NOW
8020 # define LT_DLLAZY_OR_NOW RTLD_NOW
8021 # else
8022 # ifdef DL_NOW
8023 # define LT_DLLAZY_OR_NOW DL_NOW
8024 # else
8025 # define LT_DLLAZY_OR_NOW 0
8026 # endif
8027 # endif
8028 # endif
8029 # endif
8030 #endif
8031
8032 #ifdef __cplusplus
8033 extern "C" void exit (int);
8034 #endif
8035
8036 void fnord() { int i=42;}
8037 int main ()
8038 {
8039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8040 int status = $lt_dlunknown;
8041
8042 if (self)
8043 {
8044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8046 /* dlclose (self); */
8047 }
8048
8049 exit (status);
8050 }
8051 EOF
8052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053 (eval $ac_link) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8057 (./conftest; exit; ) 2>/dev/null
8058 lt_status=$?
8059 case x$lt_status in
8060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8062 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8063 esac
8064 else :
8065 # compilation failed
8066 lt_cv_dlopen_self_static=no
8067 fi
8068 fi
8069 rm -fr conftest*
8070
8071
8072 fi
8073 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8074 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8075 fi
8076
8077 CPPFLAGS="$save_CPPFLAGS"
8078 LDFLAGS="$save_LDFLAGS"
8079 LIBS="$save_LIBS"
8080 ;;
8081 esac
8082
8083 case $lt_cv_dlopen_self in
8084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8085 *) enable_dlopen_self=unknown ;;
8086 esac
8087
8088 case $lt_cv_dlopen_self_static in
8089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8090 *) enable_dlopen_self_static=unknown ;;
8091 esac
8092 fi
8093
8094
8095 # Report which librarie types wil actually be built
8096 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8098 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8099 echo "${ECHO_T}$can_build_shared" >&6
8100
8101 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8103 test "$can_build_shared" = "no" && enable_shared=no
8104
8105 # On AIX, shared libraries and static libraries use the same namespace, and
8106 # are all built from PIC.
8107 case "$host_os" in
8108 aix3*)
8109 test "$enable_shared" = yes && enable_static=no
8110 if test -n "$RANLIB"; then
8111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8112 postinstall_cmds='$RANLIB $lib'
8113 fi
8114 ;;
8115
8116 aix4*)
8117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8118 test "$enable_shared" = yes && enable_static=no
8119 fi
8120 ;;
8121 darwin* | rhapsody*)
8122 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8123 archive_cmds_need_lc=no
8124 case "$host_os" in
8125 rhapsody* | darwin1.[012])
8126 allow_undefined_flag='-undefined suppress'
8127 ;;
8128 *) # Darwin 1.3 on
8129 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8130 ;;
8131 esac
8132 # FIXME: Relying on posixy $() will cause problems for
8133 # cross-compilation, but unfortunately the echo tests do not
8134 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8135 # `"' quotes if we put them in here... so don't!
8136 output_verbose_link_cmd='echo'
8137 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8138 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8140 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}'
8141 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8142 hardcode_direct=no
8143 hardcode_automatic=yes
8144 hardcode_shlibpath_var=unsupported
8145 whole_archive_flag_spec='-all_load $convenience'
8146 link_all_deplibs=yes
8147 fi
8148 ;;
8149 esac
8150 echo "$as_me:$LINENO: result: $enable_shared" >&5
8151 echo "${ECHO_T}$enable_shared" >&6
8152
8153 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8154 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8155 # Make sure either enable_shared or enable_static is yes.
8156 test "$enable_shared" = yes || enable_static=yes
8157 echo "$as_me:$LINENO: result: $enable_static" >&5
8158 echo "${ECHO_T}$enable_static" >&6
8159
8160 # The else clause should only fire when bootstrapping the
8161 # libtool distribution, otherwise you forgot to ship ltmain.sh
8162 # with your package, and you will get complaints that there are
8163 # no rules to generate ltmain.sh.
8164 if test -f "$ltmain"; then
8165 # See if we are running on zsh, and set the options which allow our commands through
8166 # without removal of \ escapes.
8167 if test -n "${ZSH_VERSION+set}" ; then
8168 setopt NO_GLOB_SUBST
8169 fi
8170 # Now quote all the things that may contain metacharacters while being
8171 # careful not to overquote the AC_SUBSTed values. We take copies of the
8172 # variables and quote the copies for generation of the libtool script.
8173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8176 deplibs_check_method reload_flag reload_cmds need_locks \
8177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8178 lt_cv_sys_global_symbol_to_c_name_address \
8179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8180 old_postinstall_cmds old_postuninstall_cmds \
8181 compiler \
8182 CC \
8183 LD \
8184 lt_prog_compiler_wl \
8185 lt_prog_compiler_pic \
8186 lt_prog_compiler_static \
8187 lt_prog_compiler_no_builtin_flag \
8188 export_dynamic_flag_spec \
8189 thread_safe_flag_spec \
8190 whole_archive_flag_spec \
8191 enable_shared_with_static_runtimes \
8192 old_archive_cmds \
8193 old_archive_from_new_cmds \
8194 predep_objects \
8195 postdep_objects \
8196 predeps \
8197 postdeps \
8198 compiler_lib_search_path \
8199 archive_cmds \
8200 archive_expsym_cmds \
8201 postinstall_cmds \
8202 postuninstall_cmds \
8203 old_archive_from_expsyms_cmds \
8204 allow_undefined_flag \
8205 no_undefined_flag \
8206 export_symbols_cmds \
8207 hardcode_libdir_flag_spec \
8208 hardcode_libdir_flag_spec_ld \
8209 hardcode_libdir_separator \
8210 hardcode_automatic \
8211 module_cmds \
8212 module_expsym_cmds \
8213 lt_cv_prog_compiler_c_o \
8214 exclude_expsyms \
8215 include_expsyms; do
8216
8217 case $var in
8218 old_archive_cmds | \
8219 old_archive_from_new_cmds | \
8220 archive_cmds | \
8221 archive_expsym_cmds | \
8222 module_cmds | \
8223 module_expsym_cmds | \
8224 old_archive_from_expsyms_cmds | \
8225 export_symbols_cmds | \
8226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8227 postinstall_cmds | postuninstall_cmds | \
8228 old_postinstall_cmds | old_postuninstall_cmds | \
8229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8230 # Double-quote double-evaled strings.
8231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8232 ;;
8233 *)
8234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8235 ;;
8236 esac
8237 done
8238
8239 case $lt_echo in
8240 *'\$0 --fallback-echo"')
8241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8242 ;;
8243 esac
8244
8245 cfgfile="${ofile}T"
8246 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8247 $rm -f "$cfgfile"
8248 { echo "$as_me:$LINENO: creating $ofile" >&5
8249 echo "$as_me: creating $ofile" >&6;}
8250
8251 cat <<__EOF__ >> "$cfgfile"
8252 #! $SHELL
8253
8254 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8255 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8257 #
8258 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8259 # Free Software Foundation, Inc.
8260 #
8261 # This file is part of GNU Libtool:
8262 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8263 #
8264 # This program is free software; you can redistribute it and/or modify
8265 # it under the terms of the GNU General Public License as published by
8266 # the Free Software Foundation; either version 2 of the License, or
8267 # (at your option) any later version.
8268 #
8269 # This program is distributed in the hope that it will be useful, but
8270 # WITHOUT ANY WARRANTY; without even the implied warranty of
8271 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8272 # General Public License for more details.
8273 #
8274 # You should have received a copy of the GNU General Public License
8275 # along with this program; if not, write to the Free Software
8276 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8277 #
8278 # As a special exception to the GNU General Public License, if you
8279 # distribute this file as part of a program that contains a
8280 # configuration script generated by Autoconf, you may include it under
8281 # the same distribution terms that you use for the rest of that program.
8282
8283 # A sed program that does not truncate output.
8284 SED=$lt_SED
8285
8286 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8287 Xsed="$SED -e s/^X//"
8288
8289 # The HP-UX ksh and POSIX shell print the target directory to stdout
8290 # if CDPATH is set.
8291 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8292
8293 # The names of the tagged configurations supported by this script.
8294 available_tags=
8295
8296 # ### BEGIN LIBTOOL CONFIG
8297
8298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8299
8300 # Shell to use when invoking shell scripts.
8301 SHELL=$lt_SHELL
8302
8303 # Whether or not to build shared libraries.
8304 build_libtool_libs=$enable_shared
8305
8306 # Whether or not to build static libraries.
8307 build_old_libs=$enable_static
8308
8309 # Whether or not to add -lc for building shared libraries.
8310 build_libtool_need_lc=$archive_cmds_need_lc
8311
8312 # Whether or not to disallow shared libs when runtime libs are static
8313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8314
8315 # Whether or not to optimize for fast installation.
8316 fast_install=$enable_fast_install
8317
8318 # The host system.
8319 host_alias=$host_alias
8320 host=$host
8321
8322 # An echo program that does not interpret backslashes.
8323 echo=$lt_echo
8324
8325 # The archiver.
8326 AR=$lt_AR
8327 AR_FLAGS=$lt_AR_FLAGS
8328
8329 # A C compiler.
8330 LTCC=$lt_LTCC
8331
8332 # A language-specific compiler.
8333 CC=$lt_compiler
8334
8335 # Is the compiler the GNU C compiler?
8336 with_gcc=$GCC
8337
8338 # An ERE matcher.
8339 EGREP=$lt_EGREP
8340
8341 # The linker used to build libraries.
8342 LD=$lt_LD
8343
8344 # Whether we need hard or soft links.
8345 LN_S=$lt_LN_S
8346
8347 # A BSD-compatible nm program.
8348 NM=$lt_NM
8349
8350 # A symbol stripping program
8351 STRIP=$STRIP
8352
8353 # Used to examine libraries when file_magic_cmd begins "file"
8354 MAGIC_CMD=$MAGIC_CMD
8355
8356 # Used on cygwin: DLL creation program.
8357 DLLTOOL="$DLLTOOL"
8358
8359 # Used on cygwin: object dumper.
8360 OBJDUMP="$OBJDUMP"
8361
8362 # Used on cygwin: assembler.
8363 AS="$AS"
8364
8365 # The name of the directory that contains temporary libtool files.
8366 objdir=$objdir
8367
8368 # How to create reloadable object files.
8369 reload_flag=$lt_reload_flag
8370 reload_cmds=$lt_reload_cmds
8371
8372 # How to pass a linker flag through the compiler.
8373 wl=$lt_lt_prog_compiler_wl
8374
8375 # Object file suffix (normally "o").
8376 objext="$ac_objext"
8377
8378 # Old archive suffix (normally "a").
8379 libext="$libext"
8380
8381 # Shared library suffix (normally ".so").
8382 shrext='$shrext'
8383
8384 # Executable file suffix (normally "").
8385 exeext="$exeext"
8386
8387 # Additional compiler flags for building library objects.
8388 pic_flag=$lt_lt_prog_compiler_pic
8389 pic_mode=$pic_mode
8390
8391 # What is the maximum length of a command?
8392 max_cmd_len=$lt_cv_sys_max_cmd_len
8393
8394 # Does compiler simultaneously support -c and -o options?
8395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8396
8397 # Must we lock files when doing compilation ?
8398 need_locks=$lt_need_locks
8399
8400 # Do we need the lib prefix for modules?
8401 need_lib_prefix=$need_lib_prefix
8402
8403 # Do we need a version for libraries?
8404 need_version=$need_version
8405
8406 # Whether dlopen is supported.
8407 dlopen_support=$enable_dlopen
8408
8409 # Whether dlopen of programs is supported.
8410 dlopen_self=$enable_dlopen_self
8411
8412 # Whether dlopen of statically linked programs is supported.
8413 dlopen_self_static=$enable_dlopen_self_static
8414
8415 # Compiler flag to prevent dynamic linking.
8416 link_static_flag=$lt_lt_prog_compiler_static
8417
8418 # Compiler flag to turn off builtin functions.
8419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8420
8421 # Compiler flag to allow reflexive dlopens.
8422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8423
8424 # Compiler flag to generate shared objects directly from archives.
8425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8426
8427 # Compiler flag to generate thread-safe objects.
8428 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8429
8430 # Library versioning type.
8431 version_type=$version_type
8432
8433 # Format of library name prefix.
8434 libname_spec=$lt_libname_spec
8435
8436 # List of archive names. First name is the real one, the rest are links.
8437 # The last name is the one that the linker finds with -lNAME.
8438 library_names_spec=$lt_library_names_spec
8439
8440 # The coded name of the library, if different from the real name.
8441 soname_spec=$lt_soname_spec
8442
8443 # Commands used to build and install an old-style archive.
8444 RANLIB=$lt_RANLIB
8445 old_archive_cmds=$lt_old_archive_cmds
8446 old_postinstall_cmds=$lt_old_postinstall_cmds
8447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8448
8449 # Create an old-style archive from a shared archive.
8450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8451
8452 # Create a temporary old-style archive to link instead of a shared archive.
8453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8454
8455 # Commands used to build and install a shared archive.
8456 archive_cmds=$lt_archive_cmds
8457 archive_expsym_cmds=$lt_archive_expsym_cmds
8458 postinstall_cmds=$lt_postinstall_cmds
8459 postuninstall_cmds=$lt_postuninstall_cmds
8460
8461 # Commands used to build a loadable module (assumed same as above if empty)
8462 module_cmds=$lt_module_cmds
8463 module_expsym_cmds=$lt_module_expsym_cmds
8464
8465 # Commands to strip libraries.
8466 old_striplib=$lt_old_striplib
8467 striplib=$lt_striplib
8468
8469 # Dependencies to place before the objects being linked to create a
8470 # shared library.
8471 predep_objects=$lt_predep_objects
8472
8473 # Dependencies to place after the objects being linked to create a
8474 # shared library.
8475 postdep_objects=$lt_postdep_objects
8476
8477 # Dependencies to place before the objects being linked to create a
8478 # shared library.
8479 predeps=$lt_predeps
8480
8481 # Dependencies to place after the objects being linked to create a
8482 # shared library.
8483 postdeps=$lt_postdeps
8484
8485 # The library search path used internally by the compiler when linking
8486 # a shared library.
8487 compiler_lib_search_path=$lt_compiler_lib_search_path
8488
8489 # Method to check whether dependent libraries are shared objects.
8490 deplibs_check_method=$lt_deplibs_check_method
8491
8492 # Command to use when deplibs_check_method == file_magic.
8493 file_magic_cmd=$lt_file_magic_cmd
8494
8495 # Flag that allows shared libraries with undefined symbols to be built.
8496 allow_undefined_flag=$lt_allow_undefined_flag
8497
8498 # Flag that forces no undefined symbols.
8499 no_undefined_flag=$lt_no_undefined_flag
8500
8501 # Commands used to finish a libtool library installation in a directory.
8502 finish_cmds=$lt_finish_cmds
8503
8504 # Same as above, but a single script fragment to be evaled but not shown.
8505 finish_eval=$lt_finish_eval
8506
8507 # Take the output of nm and produce a listing of raw symbols and C names.
8508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8509
8510 # Transform the output of nm in a proper C declaration
8511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8512
8513 # Transform the output of nm in a C name address pair
8514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8515
8516 # This is the shared library runtime path variable.
8517 runpath_var=$runpath_var
8518
8519 # This is the shared library path variable.
8520 shlibpath_var=$shlibpath_var
8521
8522 # Is shlibpath searched before the hard-coded library search path?
8523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8524
8525 # How to hardcode a shared library path into an executable.
8526 hardcode_action=$hardcode_action
8527
8528 # Whether we should hardcode library paths into libraries.
8529 hardcode_into_libs=$hardcode_into_libs
8530
8531 # Flag to hardcode \$libdir into a binary during linking.
8532 # This must work even if \$libdir does not exist.
8533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8534
8535 # If ld is used when linking, flag to hardcode \$libdir into
8536 # a binary during linking. This must work even if \$libdir does
8537 # not exist.
8538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8539
8540 # Whether we need a single -rpath flag with a separated argument.
8541 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8542
8543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8544 # resulting binary.
8545 hardcode_direct=$hardcode_direct
8546
8547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8548 # resulting binary.
8549 hardcode_minus_L=$hardcode_minus_L
8550
8551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8552 # the resulting binary.
8553 hardcode_shlibpath_var=$hardcode_shlibpath_var
8554
8555 # Set to yes if building a shared library automatically hardcodes DIR into the library
8556 # and all subsequent libraries and executables linked against it.
8557 hardcode_automatic=$hardcode_automatic
8558
8559 # Variables whose values should be saved in libtool wrapper scripts and
8560 # restored at relink time.
8561 variables_saved_for_relink="$variables_saved_for_relink"
8562
8563 # Whether libtool must link a program against all its dependency libraries.
8564 link_all_deplibs=$link_all_deplibs
8565
8566 # Compile-time system search path for libraries
8567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8568
8569 # Run-time system search path for libraries
8570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8571
8572 # Fix the shell variable \$srcfile for the compiler.
8573 fix_srcfile_path="$fix_srcfile_path"
8574
8575 # Set to yes if exported symbols are required.
8576 always_export_symbols=$always_export_symbols
8577
8578 # The commands to list exported symbols.
8579 export_symbols_cmds=$lt_export_symbols_cmds
8580
8581 # The commands to extract the exported symbol list from a shared archive.
8582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8583
8584 # Symbols that should not be listed in the preloaded symbols.
8585 exclude_expsyms=$lt_exclude_expsyms
8586
8587 # Symbols that must always be exported.
8588 include_expsyms=$lt_include_expsyms
8589
8590 # ### END LIBTOOL CONFIG
8591
8592 __EOF__
8593
8594
8595 case $host_os in
8596 aix3*)
8597 cat <<\EOF >> "$cfgfile"
8598
8599 # AIX sometimes has problems with the GCC collect2 program. For some
8600 # reason, if we set the COLLECT_NAMES environment variable, the problems
8601 # vanish in a puff of smoke.
8602 if test "X${COLLECT_NAMES+set}" != Xset; then
8603 COLLECT_NAMES=
8604 export COLLECT_NAMES
8605 fi
8606 EOF
8607 ;;
8608 esac
8609
8610 # We use sed instead of cat because bash on DJGPP gets confused if
8611 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8612 # text mode, it properly converts lines to CR/LF. This bash problem
8613 # is reportedly fixed, but why not run on old versions too?
8614 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8615
8616 mv -f "$cfgfile" "$ofile" || \
8617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8618 chmod +x "$ofile"
8619
8620 else
8621 # If there is no Makefile yet, we rely on a make rule to execute
8622 # `config.status --recheck' to rerun these tests and create the
8623 # libtool script then.
8624 test -f Makefile && make "$ltmain"
8625 fi
8626
8627
8628 ac_ext=c
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633
8634 CC="$lt_save_CC"
8635
8636
8637 # Check whether --with-tags or --without-tags was given.
8638 if test "${with_tags+set}" = set; then
8639 withval="$with_tags"
8640 tagnames="$withval"
8641 fi;
8642
8643 if test -f "$ltmain" && test -n "$tagnames"; then
8644 if test ! -f "${ofile}"; then
8645 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8646 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8647 fi
8648
8649 if test -z "$LTCC"; then
8650 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8651 if test -z "$LTCC"; then
8652 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8653 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8654 else
8655 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8656 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8657 fi
8658 fi
8659
8660 # Extract list of available tagged configurations in $ofile.
8661 # Note that this assumes the entire list is on one line.
8662 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8663
8664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8665 for tagname in $tagnames; do
8666 IFS="$lt_save_ifs"
8667 # Check whether tagname contains only valid characters
8668 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8669 "") ;;
8670 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8671 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8672 { (exit 1); exit 1; }; }
8673 ;;
8674 esac
8675
8676 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8677 then
8678 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8679 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8680 { (exit 1); exit 1; }; }
8681 fi
8682
8683 # Update the list of available tags.
8684 if test -n "$tagname"; then
8685 echo appending configuration tag \"$tagname\" to $ofile
8686
8687 case $tagname in
8688 CXX)
8689 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8690 ac_ext=cc
8691 ac_cpp='$CXXCPP $CPPFLAGS'
8692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8695
8696
8697
8698
8699 archive_cmds_need_lc_CXX=no
8700 allow_undefined_flag_CXX=
8701 always_export_symbols_CXX=no
8702 archive_expsym_cmds_CXX=
8703 export_dynamic_flag_spec_CXX=
8704 hardcode_direct_CXX=no
8705 hardcode_libdir_flag_spec_CXX=
8706 hardcode_libdir_flag_spec_ld_CXX=
8707 hardcode_libdir_separator_CXX=
8708 hardcode_minus_L_CXX=no
8709 hardcode_automatic_CXX=no
8710 module_cmds_CXX=
8711 module_expsym_cmds_CXX=
8712 link_all_deplibs_CXX=unknown
8713 old_archive_cmds_CXX=$old_archive_cmds
8714 no_undefined_flag_CXX=
8715 whole_archive_flag_spec_CXX=
8716 enable_shared_with_static_runtimes_CXX=no
8717
8718 # Dependencies to place before and after the object being linked:
8719 predep_objects_CXX=
8720 postdep_objects_CXX=
8721 predeps_CXX=
8722 postdeps_CXX=
8723 compiler_lib_search_path_CXX=
8724
8725 # Source file extension for C++ test sources.
8726 ac_ext=cc
8727
8728 # Object file extension for compiled C++ test sources.
8729 objext=o
8730 objext_CXX=$objext
8731
8732 # Code to be used in simple compile tests
8733 lt_simple_compile_test_code="int some_variable = 0;\n"
8734
8735 # Code to be used in simple link tests
8736 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8737
8738 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8739
8740 # If no C compiler was specified, use CC.
8741 LTCC=${LTCC-"$CC"}
8742
8743 # Allow CC to be a program name with arguments.
8744 compiler=$CC
8745
8746
8747 # Allow CC to be a program name with arguments.
8748 lt_save_CC=$CC
8749 lt_save_LD=$LD
8750 lt_save_GCC=$GCC
8751 GCC=$GXX
8752 lt_save_with_gnu_ld=$with_gnu_ld
8753 lt_save_path_LD=$lt_cv_path_LD
8754 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8755 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8756 else
8757 unset lt_cv_prog_gnu_ld
8758 fi
8759 if test -n "${lt_cv_path_LDCXX+set}"; then
8760 lt_cv_path_LD=$lt_cv_path_LDCXX
8761 else
8762 unset lt_cv_path_LD
8763 fi
8764 test -z "${LDCXX+set}" || LD=$LDCXX
8765 CC=${CXX-"c++"}
8766 compiler=$CC
8767 compiler_CXX=$CC
8768 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8769
8770 # We don't want -fno-exception wen compiling C++ code, so set the
8771 # no_builtin_flag separately
8772 if test "$GXX" = yes; then
8773 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8774 else
8775 lt_prog_compiler_no_builtin_flag_CXX=
8776 fi
8777
8778 if test "$GXX" = yes; then
8779 # Set up default GNU C++ configuration
8780
8781
8782 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8783 if test "${with_gnu_ld+set}" = set; then
8784 withval="$with_gnu_ld"
8785 test "$withval" = no || with_gnu_ld=yes
8786 else
8787 with_gnu_ld=no
8788 fi;
8789 ac_prog=ld
8790 if test "$GCC" = yes; then
8791 # Check if gcc -print-prog-name=ld gives a path.
8792 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8793 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8794 case $host in
8795 *-*-mingw*)
8796 # gcc leaves a trailing carriage return which upsets mingw
8797 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8798 *)
8799 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8800 esac
8801 case $ac_prog in
8802 # Accept absolute paths.
8803 [\\/]* | ?:[\\/]*)
8804 re_direlt='/[^/][^/]*/\.\./'
8805 # Canonicalize the path of ld
8806 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8807 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8808 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8809 done
8810 test -z "$LD" && LD="$ac_prog"
8811 ;;
8812 "")
8813 # If it fails, then pretend we aren't using GCC.
8814 ac_prog=ld
8815 ;;
8816 *)
8817 # If it is relative, then search for the first ld in PATH.
8818 with_gnu_ld=unknown
8819 ;;
8820 esac
8821 elif test "$with_gnu_ld" = yes; then
8822 echo "$as_me:$LINENO: checking for GNU ld" >&5
8823 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8824 else
8825 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8826 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8827 fi
8828 if test "${lt_cv_path_LD+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831 if test -z "$LD"; then
8832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8833 for ac_dir in $PATH; do
8834 IFS="$lt_save_ifs"
8835 test -z "$ac_dir" && ac_dir=.
8836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8837 lt_cv_path_LD="$ac_dir/$ac_prog"
8838 # Check to see if the program is GNU ld. I'd rather use --version,
8839 # but apparently some GNU ld's only accept -v.
8840 # Break only if it was the GNU/non-GNU ld that we prefer.
8841 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8842 *GNU* | *'with BFD'*)
8843 test "$with_gnu_ld" != no && break
8844 ;;
8845 *)
8846 test "$with_gnu_ld" != yes && break
8847 ;;
8848 esac
8849 fi
8850 done
8851 IFS="$lt_save_ifs"
8852 else
8853 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8854 fi
8855 fi
8856
8857 LD="$lt_cv_path_LD"
8858 if test -n "$LD"; then
8859 echo "$as_me:$LINENO: result: $LD" >&5
8860 echo "${ECHO_T}$LD" >&6
8861 else
8862 echo "$as_me:$LINENO: result: no" >&5
8863 echo "${ECHO_T}no" >&6
8864 fi
8865 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8866 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8867 { (exit 1); exit 1; }; }
8868 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8869 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8870 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8874 case `"$LD" -v 2>&1 </dev/null` in
8875 *GNU* | *'with BFD'*)
8876 lt_cv_prog_gnu_ld=yes
8877 ;;
8878 *)
8879 lt_cv_prog_gnu_ld=no
8880 ;;
8881 esac
8882 fi
8883 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8884 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8885 with_gnu_ld=$lt_cv_prog_gnu_ld
8886
8887
8888
8889 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8890 # archiving commands below assume that GNU ld is being used.
8891 if test "$with_gnu_ld" = yes; then
8892 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 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'
8894
8895 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8897
8898 # If archive_cmds runs LD, not CC, wlarc should be empty
8899 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8900 # investigate it a little bit more. (MM)
8901 wlarc='${wl}'
8902
8903 # ancient GNU ld didn't support --whole-archive et. al.
8904 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8905 grep 'no-whole-archive' > /dev/null; then
8906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8907 else
8908 whole_archive_flag_spec_CXX=
8909 fi
8910 else
8911 with_gnu_ld=no
8912 wlarc=
8913
8914 # A generic and very simple default shared library creation
8915 # command for GNU C++ for the case where it uses the native
8916 # linker, instead of GNU ld. If possible, this setting should
8917 # overridden to take advantage of the native linker features on
8918 # the platform it is being used on.
8919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8920 fi
8921
8922 # Commands to make compiler produce verbose output that lists
8923 # what "hidden" libraries, object files and flags are used when
8924 # linking a shared library.
8925 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8926
8927 else
8928 GXX=no
8929 with_gnu_ld=no
8930 wlarc=
8931 fi
8932
8933 # PORTME: fill in a description of your system's C++ link characteristics
8934 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8936 ld_shlibs_CXX=yes
8937 case $host_os in
8938 aix3*)
8939 # FIXME: insert proper C++ library support
8940 ld_shlibs_CXX=no
8941 ;;
8942 aix4* | aix5*)
8943 if test "$host_cpu" = ia64; then
8944 # On IA64, the linker does run time linking by default, so we don't
8945 # have to do anything special.
8946 aix_use_runtimelinking=no
8947 exp_sym_flag='-Bexport'
8948 no_entry_flag=""
8949 else
8950 aix_use_runtimelinking=no
8951
8952 # Test if we are trying to use run time linking or normal
8953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8954 # need to do runtime linking.
8955 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8956 for ld_flag in $LDFLAGS; do
8957 case $ld_flag in
8958 *-brtl*)
8959 aix_use_runtimelinking=yes
8960 break
8961 ;;
8962 esac
8963 done
8964 esac
8965
8966 exp_sym_flag='-bexport'
8967 no_entry_flag='-bnoentry'
8968 fi
8969
8970 # When large executables or shared objects are built, AIX ld can
8971 # have problems creating the table of contents. If linking a library
8972 # or program results in "error TOC overflow" add -mminimal-toc to
8973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8975
8976 archive_cmds_CXX=''
8977 hardcode_direct_CXX=yes
8978 hardcode_libdir_separator_CXX=':'
8979 link_all_deplibs_CXX=yes
8980
8981 if test "$GXX" = yes; then
8982 case $host_os in aix4.012|aix4.012.*)
8983 # We only want to do this on AIX 4.2 and lower, the check
8984 # below for broken collect2 doesn't work under 4.3+
8985 collect2name=`${CC} -print-prog-name=collect2`
8986 if test -f "$collect2name" && \
8987 strings "$collect2name" | grep resolve_lib_name >/dev/null
8988 then
8989 # We have reworked collect2
8990 hardcode_direct_CXX=yes
8991 else
8992 # We have old collect2
8993 hardcode_direct_CXX=unsupported
8994 # It fails to find uninstalled libraries when the uninstalled
8995 # path is not listed in the libpath. Setting hardcode_minus_L
8996 # to unsupported forces relinking
8997 hardcode_minus_L_CXX=yes
8998 hardcode_libdir_flag_spec_CXX='-L$libdir'
8999 hardcode_libdir_separator_CXX=
9000 fi
9001 esac
9002 shared_flag='-shared'
9003 else
9004 # not using gcc
9005 if test "$host_cpu" = ia64; then
9006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9007 # chokes on -Wl,-G. The following line is correct:
9008 shared_flag='-G'
9009 else
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag='${wl}-G'
9012 else
9013 shared_flag='${wl}-bM:SRE'
9014 fi
9015 fi
9016 fi
9017
9018 # It seems that -bexpall does not export symbols beginning with
9019 # underscore (_), so it is better to generate a list of symbols to export.
9020 always_export_symbols_CXX=yes
9021 if test "$aix_use_runtimelinking" = yes; then
9022 # Warning - without using the other runtime loading flags (-brtl),
9023 # -berok will link without error, but may produce a broken library.
9024 allow_undefined_flag_CXX='-berok'
9025 # Determine the default libpath from the value encoded in an empty executable.
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 #include "confdefs.h"
9029
9030 #ifdef F77_DUMMY_MAIN
9031 # ifdef __cplusplus
9032 extern "C"
9033 # endif
9034 int F77_DUMMY_MAIN() { return 1; }
9035 #endif
9036 int
9037 main ()
9038 {
9039
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest$ac_exeext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056
9057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9058 }'`
9059 # Check for a 64-bit object if we didn't find anything.
9060 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; }
9061 }'`; fi
9062 else
9063 echo "$as_me: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9065 fi
9066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9067 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9068
9069 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9070
9071 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9072 else
9073 if test "$host_cpu" = ia64; then
9074 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9075 allow_undefined_flag_CXX="-z nodefs"
9076 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9077 else
9078 # Determine the default libpath from the value encoded in an empty executable.
9079 cat >conftest.$ac_ext <<_ACEOF
9080 #line $LINENO "configure"
9081 #include "confdefs.h"
9082
9083 #ifdef F77_DUMMY_MAIN
9084 # ifdef __cplusplus
9085 extern "C"
9086 # endif
9087 int F77_DUMMY_MAIN() { return 1; }
9088 #endif
9089 int
9090 main ()
9091 {
9092
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109
9110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9111 }'`
9112 # Check for a 64-bit object if we didn't find anything.
9113 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; }
9114 }'`; fi
9115 else
9116 echo "$as_me: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 fi
9119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9121
9122 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9123 # Warning - without using the other run time loading flags,
9124 # -berok will link without error, but may produce a broken library.
9125 no_undefined_flag_CXX=' ${wl}-bernotok'
9126 allow_undefined_flag_CXX=' ${wl}-berok'
9127 # -bexpall does not export symbols beginning with underscore (_)
9128 always_export_symbols_CXX=yes
9129 # Exported symbols can be pulled into shared objects from archives
9130 whole_archive_flag_spec_CXX=' '
9131 archive_cmds_need_lc_CXX=yes
9132 # This is similar to how AIX traditionally builds it's shared libraries.
9133 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9134 fi
9135 fi
9136 ;;
9137 chorus*)
9138 case $cc_basename in
9139 *)
9140 # FIXME: insert proper C++ library support
9141 ld_shlibs_CXX=no
9142 ;;
9143 esac
9144 ;;
9145
9146 cygwin* | mingw* | pw32*)
9147 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9148 # as there is no search path for DLLs.
9149 hardcode_libdir_flag_spec_CXX='-L$libdir'
9150 allow_undefined_flag_CXX=unsupported
9151 always_export_symbols_CXX=no
9152 enable_shared_with_static_runtimes_CXX=yes
9153
9154 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9155 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9156 # If the export-symbols file already is a .def file (1st line
9157 # is EXPORTS), use it as is; otherwise, prepend...
9158 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9159 cp $export_symbols $output_objdir/$soname.def;
9160 else
9161 echo EXPORTS > $output_objdir/$soname.def;
9162 cat $export_symbols >> $output_objdir/$soname.def;
9163 fi~
9164 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9165 else
9166 ld_shlibs_CXX=no
9167 fi
9168 ;;
9169
9170 darwin* | rhapsody*)
9171 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9172 archive_cmds_need_lc_CXX=no
9173 case "$host_os" in
9174 rhapsody* | darwin1.[012])
9175 allow_undefined_flag_CXX='-undefined suppress'
9176 ;;
9177 *) # Darwin 1.3 on
9178 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9179 ;;
9180 esac
9181 lt_int_apple_cc_single_mod=no
9182 output_verbose_link_cmd='echo'
9183 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9184 lt_int_apple_cc_single_mod=yes
9185 fi
9186 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9187 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9188 else
9189 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9190 fi
9191 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9192
9193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9194 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9195 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}'
9196 else
9197 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9198 fi
9199 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9200 hardcode_direct_CXX=no
9201 hardcode_automatic_CXX=yes
9202 hardcode_shlibpath_var_CXX=unsupported
9203 whole_archive_flag_spec_CXX='-all_load $convenience'
9204 link_all_deplibs_CXX=yes
9205 fi
9206 ;;
9207
9208 dgux*)
9209 case $cc_basename in
9210 ec++)
9211 # FIXME: insert proper C++ library support
9212 ld_shlibs_CXX=no
9213 ;;
9214 ghcx)
9215 # Green Hills C++ Compiler
9216 # FIXME: insert proper C++ library support
9217 ld_shlibs_CXX=no
9218 ;;
9219 *)
9220 # FIXME: insert proper C++ library support
9221 ld_shlibs_CXX=no
9222 ;;
9223 esac
9224 ;;
9225 freebsd12*)
9226 # C++ shared libraries reported to be fairly broken before switch to ELF
9227 ld_shlibs_CXX=no
9228 ;;
9229 freebsd-elf*)
9230 archive_cmds_need_lc_CXX=no
9231 ;;
9232 freebsd*)
9233 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9234 # conventions
9235 ld_shlibs_CXX=yes
9236 ;;
9237 gnu*)
9238 ;;
9239 hpux9*)
9240 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9241 hardcode_libdir_separator_CXX=:
9242 export_dynamic_flag_spec_CXX='${wl}-E'
9243 hardcode_direct_CXX=yes
9244 hardcode_minus_L_CXX=yes # Not in the search PATH,
9245 # but as the default
9246 # location of the library.
9247
9248 case $cc_basename in
9249 CC)
9250 # FIXME: insert proper C++ library support
9251 ld_shlibs_CXX=no
9252 ;;
9253 aCC)
9254 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'
9255 # Commands to make compiler produce verbose output that lists
9256 # what "hidden" libraries, object files and flags are used when
9257 # linking a shared library.
9258 #
9259 # There doesn't appear to be a way to prevent this compiler from
9260 # explicitly linking system object files so we need to strip them
9261 # from the output so that they don't get included in the library
9262 # dependencies.
9263 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9264 ;;
9265 *)
9266 if test "$GXX" = yes; then
9267 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'
9268 else
9269 # FIXME: insert proper C++ library support
9270 ld_shlibs_CXX=no
9271 fi
9272 ;;
9273 esac
9274 ;;
9275 hpux10*|hpux11*)
9276 if test $with_gnu_ld = no; then
9277 case "$host_cpu" in
9278 hppa*64*)
9279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9280 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9281 hardcode_libdir_separator_CXX=:
9282 ;;
9283 ia64*)
9284 hardcode_libdir_flag_spec_CXX='-L$libdir'
9285 ;;
9286 *)
9287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9288 hardcode_libdir_separator_CXX=:
9289 export_dynamic_flag_spec_CXX='${wl}-E'
9290 ;;
9291 esac
9292 fi
9293 case "$host_cpu" in
9294 hppa*64*)
9295 hardcode_direct_CXX=no
9296 hardcode_shlibpath_var_CXX=no
9297 ;;
9298 ia64*)
9299 hardcode_direct_CXX=no
9300 hardcode_shlibpath_var_CXX=no
9301 hardcode_minus_L_CXX=yes # Not in the search PATH,
9302 # but as the default
9303 # location of the library.
9304 ;;
9305 *)
9306 hardcode_direct_CXX=yes
9307 hardcode_minus_L_CXX=yes # Not in the search PATH,
9308 # but as the default
9309 # location of the library.
9310 ;;
9311 esac
9312
9313 case $cc_basename in
9314 CC)
9315 # FIXME: insert proper C++ library support
9316 ld_shlibs_CXX=no
9317 ;;
9318 aCC)
9319 case "$host_cpu" in
9320 hppa*64*|ia64*)
9321 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9322 ;;
9323 *)
9324 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9325 ;;
9326 esac
9327 # Commands to make compiler produce verbose output that lists
9328 # what "hidden" libraries, object files and flags are used when
9329 # linking a shared library.
9330 #
9331 # There doesn't appear to be a way to prevent this compiler from
9332 # explicitly linking system object files so we need to strip them
9333 # from the output so that they don't get included in the library
9334 # dependencies.
9335 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'
9336 ;;
9337 *)
9338 if test "$GXX" = yes; then
9339 if test $with_gnu_ld = no; then
9340 case "$host_cpu" in
9341 ia64*|hppa*64*)
9342 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9343 ;;
9344 *)
9345 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'
9346 ;;
9347 esac
9348 fi
9349 else
9350 # FIXME: insert proper C++ library support
9351 ld_shlibs_CXX=no
9352 fi
9353 ;;
9354 esac
9355 ;;
9356 irix5* | irix6*)
9357 case $cc_basename in
9358 CC)
9359 # SGI C++
9360 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9361
9362 # Archives containing C++ object files must be created using
9363 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9364 # necessary to make sure instantiated templates are included
9365 # in the archive.
9366 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9367 ;;
9368 *)
9369 if test "$GXX" = yes; then
9370 if test "$with_gnu_ld" = no; then
9371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9372 else
9373 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'
9374 fi
9375 fi
9376 link_all_deplibs_CXX=yes
9377 ;;
9378 esac
9379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9380 hardcode_libdir_separator_CXX=:
9381 ;;
9382 linux*)
9383 case $cc_basename in
9384 KCC)
9385 # Kuck and Associates, Inc. (KAI) C++ Compiler
9386
9387 # KCC will only create a shared library if the output file
9388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9389 # to its proper name (with version) after linking.
9390 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'
9391 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'
9392 # Commands to make compiler produce verbose output that lists
9393 # what "hidden" libraries, object files and flags are used when
9394 # linking a shared library.
9395 #
9396 # There doesn't appear to be a way to prevent this compiler from
9397 # explicitly linking system object files so we need to strip them
9398 # from the output so that they don't get included in the library
9399 # dependencies.
9400 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'
9401
9402 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9404
9405 # Archives containing C++ object files must be created using
9406 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9407 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9408 ;;
9409 icpc)
9410 # Intel C++
9411 with_gnu_ld=yes
9412 archive_cmds_need_lc_CXX=no
9413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414 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'
9415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9417 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9418 ;;
9419 cxx)
9420 # Compaq C++
9421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 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'
9423
9424 runpath_var=LD_RUN_PATH
9425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9426 hardcode_libdir_separator_CXX=:
9427
9428 # Commands to make compiler produce verbose output that lists
9429 # what "hidden" libraries, object files and flags are used when
9430 # linking a shared library.
9431 #
9432 # There doesn't appear to be a way to prevent this compiler from
9433 # explicitly linking system object files so we need to strip them
9434 # from the output so that they don't get included in the library
9435 # dependencies.
9436 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'
9437 ;;
9438 esac
9439 ;;
9440 lynxos*)
9441 # FIXME: insert proper C++ library support
9442 ld_shlibs_CXX=no
9443 ;;
9444 m88k*)
9445 # FIXME: insert proper C++ library support
9446 ld_shlibs_CXX=no
9447 ;;
9448 mvs*)
9449 case $cc_basename in
9450 cxx)
9451 # FIXME: insert proper C++ library support
9452 ld_shlibs_CXX=no
9453 ;;
9454 *)
9455 # FIXME: insert proper C++ library support
9456 ld_shlibs_CXX=no
9457 ;;
9458 esac
9459 ;;
9460 netbsd*)
9461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9462 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9463 wlarc=
9464 hardcode_libdir_flag_spec_CXX='-R$libdir'
9465 hardcode_direct_CXX=yes
9466 hardcode_shlibpath_var_CXX=no
9467 fi
9468 # Workaround some broken pre-1.5 toolchains
9469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9470 ;;
9471 osf3*)
9472 case $cc_basename in
9473 KCC)
9474 # Kuck and Associates, Inc. (KAI) C++ Compiler
9475
9476 # KCC will only create a shared library if the output file
9477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9478 # to its proper name (with version) after linking.
9479 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'
9480
9481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9482 hardcode_libdir_separator_CXX=:
9483
9484 # Archives containing C++ object files must be created using
9485 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9487
9488 ;;
9489 RCC)
9490 # Rational C++ 2.4.1
9491 # FIXME: insert proper C++ library support
9492 ld_shlibs_CXX=no
9493 ;;
9494 cxx)
9495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9496 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9497
9498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator_CXX=:
9500
9501 # Commands to make compiler produce verbose output that lists
9502 # what "hidden" libraries, object files and flags are used when
9503 # linking a shared library.
9504 #
9505 # There doesn't appear to be a way to prevent this compiler from
9506 # explicitly linking system object files so we need to strip them
9507 # from the output so that they don't get included in the library
9508 # dependencies.
9509 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'
9510 ;;
9511 *)
9512 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9513 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9514 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9515
9516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator_CXX=:
9518
9519 # Commands to make compiler produce verbose output that lists
9520 # what "hidden" libraries, object files and flags are used when
9521 # linking a shared library.
9522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9523
9524 else
9525 # FIXME: insert proper C++ library support
9526 ld_shlibs_CXX=no
9527 fi
9528 ;;
9529 esac
9530 ;;
9531 osf4* | osf5*)
9532 case $cc_basename in
9533 KCC)
9534 # Kuck and Associates, Inc. (KAI) C++ Compiler
9535
9536 # KCC will only create a shared library if the output file
9537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9538 # to its proper name (with version) after linking.
9539 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'
9540
9541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9542 hardcode_libdir_separator_CXX=:
9543
9544 # Archives containing C++ object files must be created using
9545 # the KAI C++ compiler.
9546 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9547 ;;
9548 RCC)
9549 # Rational C++ 2.4.1
9550 # FIXME: insert proper C++ library support
9551 ld_shlibs_CXX=no
9552 ;;
9553 cxx)
9554 allow_undefined_flag_CXX=' -expect_unresolved \*'
9555 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9556 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9557 echo "-hidden">> $lib.exp~
9558 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9559 $rm $lib.exp'
9560
9561 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9562 hardcode_libdir_separator_CXX=:
9563
9564 # Commands to make compiler produce verbose output that lists
9565 # what "hidden" libraries, object files and flags are used when
9566 # linking a shared library.
9567 #
9568 # There doesn't appear to be a way to prevent this compiler from
9569 # explicitly linking system object files so we need to strip them
9570 # from the output so that they don't get included in the library
9571 # dependencies.
9572 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'
9573 ;;
9574 *)
9575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9577 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9578
9579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9580 hardcode_libdir_separator_CXX=:
9581
9582 # Commands to make compiler produce verbose output that lists
9583 # what "hidden" libraries, object files and flags are used when
9584 # linking a shared library.
9585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9586
9587 else
9588 # FIXME: insert proper C++ library support
9589 ld_shlibs_CXX=no
9590 fi
9591 ;;
9592 esac
9593 ;;
9594 psos*)
9595 # FIXME: insert proper C++ library support
9596 ld_shlibs_CXX=no
9597 ;;
9598 sco*)
9599 archive_cmds_need_lc_CXX=no
9600 case $cc_basename in
9601 CC)
9602 # FIXME: insert proper C++ library support
9603 ld_shlibs_CXX=no
9604 ;;
9605 *)
9606 # FIXME: insert proper C++ library support
9607 ld_shlibs_CXX=no
9608 ;;
9609 esac
9610 ;;
9611 sunos4*)
9612 case $cc_basename in
9613 CC)
9614 # Sun C++ 4.x
9615 # FIXME: insert proper C++ library support
9616 ld_shlibs_CXX=no
9617 ;;
9618 lcc)
9619 # Lucid
9620 # FIXME: insert proper C++ library support
9621 ld_shlibs_CXX=no
9622 ;;
9623 *)
9624 # FIXME: insert proper C++ library support
9625 ld_shlibs_CXX=no
9626 ;;
9627 esac
9628 ;;
9629 solaris*)
9630 case $cc_basename in
9631 CC)
9632 # Sun C++ 4.2, 5.x and Centerline C++
9633 no_undefined_flag_CXX=' -zdefs'
9634 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9635 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9636 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9637
9638 hardcode_libdir_flag_spec_CXX='-R$libdir'
9639 hardcode_shlibpath_var_CXX=no
9640 case $host_os in
9641 solaris2.0-5 | solaris2.0-5.*) ;;
9642 *)
9643 # The C++ compiler is used as linker so we must use $wl
9644 # flag to pass the commands to the underlying system
9645 # linker.
9646 # Supported since Solaris 2.6 (maybe 2.5.1?)
9647 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9648 ;;
9649 esac
9650 link_all_deplibs_CXX=yes
9651
9652 # Commands to make compiler produce verbose output that lists
9653 # what "hidden" libraries, object files and flags are used when
9654 # linking a shared library.
9655 #
9656 # There doesn't appear to be a way to prevent this compiler from
9657 # explicitly linking system object files so we need to strip them
9658 # from the output so that they don't get included in the library
9659 # dependencies.
9660 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9661
9662 # Archives containing C++ object files must be created using
9663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9664 # necessary to make sure instantiated templates are included
9665 # in the archive.
9666 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9667 ;;
9668 gcx)
9669 # Green Hills C++ Compiler
9670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9671
9672 # The C++ compiler must be used to create the archive.
9673 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9674 ;;
9675 *)
9676 # GNU C++ compiler with Solaris linker
9677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9678 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9679 if $CC --version | grep -v '^2\.7' > /dev/null; then
9680 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9681 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9682 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9683
9684 # Commands to make compiler produce verbose output that lists
9685 # what "hidden" libraries, object files and flags are used when
9686 # linking a shared library.
9687 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9688 else
9689 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9690 # platform.
9691 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9692 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9693 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9694
9695 # Commands to make compiler produce verbose output that lists
9696 # what "hidden" libraries, object files and flags are used when
9697 # linking a shared library.
9698 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9699 fi
9700
9701 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9702 fi
9703 ;;
9704 esac
9705 ;;
9706 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9707 archive_cmds_need_lc_CXX=no
9708 ;;
9709 tandem*)
9710 case $cc_basename in
9711 NCC)
9712 # NonStop-UX NCC 3.20
9713 # FIXME: insert proper C++ library support
9714 ld_shlibs_CXX=no
9715 ;;
9716 *)
9717 # FIXME: insert proper C++ library support
9718 ld_shlibs_CXX=no
9719 ;;
9720 esac
9721 ;;
9722 vxworks*)
9723 # FIXME: insert proper C++ library support
9724 ld_shlibs_CXX=no
9725 ;;
9726 *)
9727 # FIXME: insert proper C++ library support
9728 ld_shlibs_CXX=no
9729 ;;
9730 esac
9731 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9732 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9733 test "$ld_shlibs_CXX" = no && can_build_shared=no
9734
9735 GCC_CXX="$GXX"
9736 LD_CXX="$LD"
9737
9738
9739 cat > conftest.$ac_ext <<EOF
9740 class Foo
9741 {
9742 public:
9743 Foo (void) { a = 0; }
9744 private:
9745 int a;
9746 };
9747 EOF
9748
9749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9750 (eval $ac_compile) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; then
9754 # Parse the compiler output and extract the necessary
9755 # objects, libraries and library flags.
9756
9757 # Sentinel used to keep track of whether or not we are before
9758 # the conftest object file.
9759 pre_test_object_deps_done=no
9760
9761 # The `*' in the case matches for architectures that use `case' in
9762 # $output_verbose_cmd can trigger glob expansion during the loop
9763 # eval without this substitution.
9764 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9765
9766 for p in `eval $output_verbose_link_cmd`; do
9767 case $p in
9768
9769 -L* | -R* | -l*)
9770 # Some compilers place space between "-{L,R}" and the path.
9771 # Remove the space.
9772 if test $p = "-L" \
9773 || test $p = "-R"; then
9774 prev=$p
9775 continue
9776 else
9777 prev=
9778 fi
9779
9780 if test "$pre_test_object_deps_done" = no; then
9781 case $p in
9782 -L* | -R*)
9783 # Internal compiler library paths should come after those
9784 # provided the user. The postdeps already come after the
9785 # user supplied libs so there is no need to process them.
9786 if test -z "$compiler_lib_search_path_CXX"; then
9787 compiler_lib_search_path_CXX="${prev}${p}"
9788 else
9789 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9790 fi
9791 ;;
9792 # The "-l" case would never come before the object being
9793 # linked, so don't bother handling this case.
9794 esac
9795 else
9796 if test -z "$postdeps_CXX"; then
9797 postdeps_CXX="${prev}${p}"
9798 else
9799 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9800 fi
9801 fi
9802 ;;
9803
9804 *.$objext)
9805 # This assumes that the test object file only shows up
9806 # once in the compiler output.
9807 if test "$p" = "conftest.$objext"; then
9808 pre_test_object_deps_done=yes
9809 continue
9810 fi
9811
9812 if test "$pre_test_object_deps_done" = no; then
9813 if test -z "$predep_objects_CXX"; then
9814 predep_objects_CXX="$p"
9815 else
9816 predep_objects_CXX="$predep_objects_CXX $p"
9817 fi
9818 else
9819 if test -z "$postdep_objects_CXX"; then
9820 postdep_objects_CXX="$p"
9821 else
9822 postdep_objects_CXX="$postdep_objects_CXX $p"
9823 fi
9824 fi
9825 ;;
9826
9827 *) ;; # Ignore the rest.
9828
9829 esac
9830 done
9831
9832 # Clean up.
9833 rm -f a.out a.exe
9834 else
9835 echo "libtool.m4: error: problem compiling CXX test program"
9836 fi
9837
9838 $rm -f confest.$objext
9839
9840 case " $postdeps_CXX " in
9841 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9842 esac
9843
9844 lt_prog_compiler_wl_CXX=
9845 lt_prog_compiler_pic_CXX=
9846 lt_prog_compiler_static_CXX=
9847
9848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9850
9851 # C++ specific cases for pic, static, wl, etc.
9852 if test "$GXX" = yes; then
9853 lt_prog_compiler_wl_CXX='-Wl,'
9854 lt_prog_compiler_static_CXX='-static'
9855
9856 case $host_os in
9857 aix*)
9858 # All AIX code is PIC.
9859 if test "$host_cpu" = ia64; then
9860 # AIX 5 now supports IA64 processor
9861 lt_prog_compiler_static_CXX='-Bstatic'
9862 fi
9863 ;;
9864 amigaos*)
9865 # FIXME: we need at least 68020 code to build shared libraries, but
9866 # adding the `-m68020' flag to GCC prevents building anything better,
9867 # like `-m68040'.
9868 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9869 ;;
9870 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9871 # PIC is the default for these OSes.
9872 ;;
9873 mingw* | os2* | pw32*)
9874 # This hack is so that the source file can tell whether it is being
9875 # built for inclusion in a dll (and should export symbols for example).
9876 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9877 ;;
9878 darwin* | rhapsody*)
9879 # PIC is the default on this platform
9880 # Common symbols not allowed in MH_DYLIB files
9881 lt_prog_compiler_pic_CXX='-fno-common'
9882 ;;
9883 *djgpp*)
9884 # DJGPP does not support shared libraries at all
9885 lt_prog_compiler_pic_CXX=
9886 ;;
9887 sysv4*MP*)
9888 if test -d /usr/nec; then
9889 lt_prog_compiler_pic_CXX=-Kconform_pic
9890 fi
9891 ;;
9892 hpux*)
9893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9894 # not for PA HP-UX.
9895 case "$host_cpu" in
9896 hppa*64*|ia64*)
9897 ;;
9898 *)
9899 lt_prog_compiler_pic_CXX='-fPIC'
9900 ;;
9901 esac
9902 ;;
9903 *)
9904 lt_prog_compiler_pic_CXX='-fPIC'
9905 ;;
9906 esac
9907 else
9908 case $host_os in
9909 aix4* | aix5*)
9910 # All AIX code is PIC.
9911 if test "$host_cpu" = ia64; then
9912 # AIX 5 now supports IA64 processor
9913 lt_prog_compiler_static_CXX='-Bstatic'
9914 else
9915 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9916 fi
9917 ;;
9918 chorus*)
9919 case $cc_basename in
9920 cxch68)
9921 # Green Hills C++ Compiler
9922 # _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"
9923 ;;
9924 esac
9925 ;;
9926 dgux*)
9927 case $cc_basename in
9928 ec++)
9929 lt_prog_compiler_pic_CXX='-KPIC'
9930 ;;
9931 ghcx)
9932 # Green Hills C++ Compiler
9933 lt_prog_compiler_pic_CXX='-pic'
9934 ;;
9935 *)
9936 ;;
9937 esac
9938 ;;
9939 freebsd*)
9940 # FreeBSD uses GNU C++
9941 ;;
9942 hpux9* | hpux10* | hpux11*)
9943 case $cc_basename in
9944 CC)
9945 lt_prog_compiler_wl_CXX='-Wl,'
9946 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9947 if test "$host_cpu" != ia64; then
9948 lt_prog_compiler_pic_CXX='+Z'
9949 fi
9950 ;;
9951 aCC)
9952 lt_prog_compiler_wl_CXX='-Wl,'
9953 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9954 case "$host_cpu" in
9955 hppa*64*|ia64*)
9956 # +Z the default
9957 ;;
9958 *)
9959 lt_prog_compiler_pic_CXX='+Z'
9960 ;;
9961 esac
9962 ;;
9963 *)
9964 ;;
9965 esac
9966 ;;
9967 irix5* | irix6* | nonstopux*)
9968 case $cc_basename in
9969 CC)
9970 lt_prog_compiler_wl_CXX='-Wl,'
9971 lt_prog_compiler_static_CXX='-non_shared'
9972 # CC pic flag -KPIC is the default.
9973 ;;
9974 *)
9975 ;;
9976 esac
9977 ;;
9978 linux*)
9979 case $cc_basename in
9980 KCC)
9981 # KAI C++ Compiler
9982 lt_prog_compiler_wl_CXX='--backend -Wl,'
9983 lt_prog_compiler_pic_CXX='-fPIC'
9984 ;;
9985 icpc)
9986 # Intel C++
9987 lt_prog_compiler_wl_CXX='-Wl,'
9988 lt_prog_compiler_pic_CXX='-KPIC'
9989 lt_prog_compiler_static_CXX='-static'
9990 ;;
9991 cxx)
9992 # Compaq C++
9993 # Make sure the PIC flag is empty. It appears that all Alpha
9994 # Linux and Compaq Tru64 Unix objects are PIC.
9995 lt_prog_compiler_pic_CXX=
9996 lt_prog_compiler_static_CXX='-non_shared'
9997 ;;
9998 *)
9999 ;;
10000 esac
10001 ;;
10002 lynxos*)
10003 ;;
10004 m88k*)
10005 ;;
10006 mvs*)
10007 case $cc_basename in
10008 cxx)
10009 lt_prog_compiler_pic_CXX='-W c,exportall'
10010 ;;
10011 *)
10012 ;;
10013 esac
10014 ;;
10015 netbsd*)
10016 ;;
10017 osf3* | osf4* | osf5*)
10018 case $cc_basename in
10019 KCC)
10020 lt_prog_compiler_wl_CXX='--backend -Wl,'
10021 ;;
10022 RCC)
10023 # Rational C++ 2.4.1
10024 lt_prog_compiler_pic_CXX='-pic'
10025 ;;
10026 cxx)
10027 # Digital/Compaq C++
10028 lt_prog_compiler_wl_CXX='-Wl,'
10029 # Make sure the PIC flag is empty. It appears that all Alpha
10030 # Linux and Compaq Tru64 Unix objects are PIC.
10031 lt_prog_compiler_pic_CXX=
10032 lt_prog_compiler_static_CXX='-non_shared'
10033 ;;
10034 *)
10035 ;;
10036 esac
10037 ;;
10038 psos*)
10039 ;;
10040 sco*)
10041 case $cc_basename in
10042 CC)
10043 lt_prog_compiler_pic_CXX='-fPIC'
10044 ;;
10045 *)
10046 ;;
10047 esac
10048 ;;
10049 solaris*)
10050 case $cc_basename in
10051 CC)
10052 # Sun C++ 4.2, 5.x and Centerline C++
10053 lt_prog_compiler_pic_CXX='-KPIC'
10054 lt_prog_compiler_static_CXX='-Bstatic'
10055 lt_prog_compiler_wl_CXX='-Qoption ld '
10056 ;;
10057 gcx)
10058 # Green Hills C++ Compiler
10059 lt_prog_compiler_pic_CXX='-PIC'
10060 ;;
10061 *)
10062 ;;
10063 esac
10064 ;;
10065 sunos4*)
10066 case $cc_basename in
10067 CC)
10068 # Sun C++ 4.x
10069 lt_prog_compiler_pic_CXX='-pic'
10070 lt_prog_compiler_static_CXX='-Bstatic'
10071 ;;
10072 lcc)
10073 # Lucid
10074 lt_prog_compiler_pic_CXX='-pic'
10075 ;;
10076 *)
10077 ;;
10078 esac
10079 ;;
10080 tandem*)
10081 case $cc_basename in
10082 NCC)
10083 # NonStop-UX NCC 3.20
10084 lt_prog_compiler_pic_CXX='-KPIC'
10085 ;;
10086 *)
10087 ;;
10088 esac
10089 ;;
10090 unixware*)
10091 ;;
10092 vxworks*)
10093 ;;
10094 *)
10095 lt_prog_compiler_can_build_shared_CXX=no
10096 ;;
10097 esac
10098 fi
10099
10100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10101 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10102
10103 #
10104 # Check to make sure the PIC flag actually works.
10105 #
10106 if test -n "$lt_prog_compiler_pic_CXX"; then
10107 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10109 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 lt_prog_compiler_pic_works_CXX=no
10113 ac_outfile=conftest.$ac_objext
10114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10115 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10116 # Insert the option either (1) after the last *FLAGS variable, or
10117 # (2) before a word containing "conftest.", or (3) at the end.
10118 # Note that $ac_compile itself does not contain backslashes and begins
10119 # with a dollar sign (not a hyphen), so the echo should work correctly.
10120 # The option is referenced via a variable to avoid confusing sed.
10121 lt_compile=`echo "$ac_compile" | $SED \
10122 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10124 -e 's:$: $lt_compiler_flag:'`
10125 (eval echo "\"\$as_me:10125: $lt_compile\"" >&5)
10126 (eval "$lt_compile" 2>conftest.err)
10127 ac_status=$?
10128 cat conftest.err >&5
10129 echo "$as_me:10129: \$? = $ac_status" >&5
10130 if (exit $ac_status) && test -s "$ac_outfile"; then
10131 # The compiler can only warn and ignore the option if not recognized
10132 # So say no if there are warnings
10133 if test ! -s conftest.err; then
10134 lt_prog_compiler_pic_works_CXX=yes
10135 fi
10136 fi
10137 $rm conftest*
10138
10139 fi
10140 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10141 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10142
10143 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10144 case $lt_prog_compiler_pic_CXX in
10145 "" | " "*) ;;
10146 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10147 esac
10148 else
10149 lt_prog_compiler_pic_CXX=
10150 lt_prog_compiler_can_build_shared_CXX=no
10151 fi
10152
10153 fi
10154 case "$host_os" in
10155 # For platforms which do not support PIC, -DPIC is meaningless:
10156 *djgpp*)
10157 lt_prog_compiler_pic_CXX=
10158 ;;
10159 *)
10160 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10161 ;;
10162 esac
10163
10164 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10166 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 lt_cv_prog_compiler_c_o_CXX=no
10170 $rm -r conftest 2>/dev/null
10171 mkdir conftest
10172 cd conftest
10173 mkdir out
10174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10175
10176 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10177 # that will create temporary files in the current directory regardless of
10178 # the output directory. Thus, making CWD read-only will cause this test
10179 # to fail, enabling locking or at least warning the user not to do parallel
10180 # builds.
10181 chmod -w .
10182
10183 lt_compiler_flag="-o out/conftest2.$ac_objext"
10184 # Insert the option either (1) after the last *FLAGS variable, or
10185 # (2) before a word containing "conftest.", or (3) at the end.
10186 # Note that $ac_compile itself does not contain backslashes and begins
10187 # with a dollar sign (not a hyphen), so the echo should work correctly.
10188 lt_compile=`echo "$ac_compile" | $SED \
10189 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10191 -e 's:$: $lt_compiler_flag:'`
10192 (eval echo "\"\$as_me:10192: $lt_compile\"" >&5)
10193 (eval "$lt_compile" 2>out/conftest.err)
10194 ac_status=$?
10195 cat out/conftest.err >&5
10196 echo "$as_me:10196: \$? = $ac_status" >&5
10197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10198 then
10199 # The compiler can only warn and ignore the option if not recognized
10200 # So say no if there are warnings
10201 if test ! -s out/conftest.err; then
10202 lt_cv_prog_compiler_c_o_CXX=yes
10203 fi
10204 fi
10205 chmod u+w .
10206 $rm conftest* out/*
10207 rmdir out
10208 cd ..
10209 rmdir conftest
10210 $rm conftest*
10211
10212 fi
10213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10215
10216
10217 hard_links="nottested"
10218 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10219 # do not overwrite the value of need_locks provided by the user
10220 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10222 hard_links=yes
10223 $rm conftest*
10224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10225 touch conftest.a
10226 ln conftest.a conftest.b 2>&5 || hard_links=no
10227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10228 echo "$as_me:$LINENO: result: $hard_links" >&5
10229 echo "${ECHO_T}$hard_links" >&6
10230 if test "$hard_links" = no; then
10231 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10233 need_locks=warn
10234 fi
10235 else
10236 need_locks=no
10237 fi
10238
10239 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10241
10242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10243 case $host_os in
10244 aix4* | aix5*)
10245 # If we're using GNU nm, then we don't want the "-C" option.
10246 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10247 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10248 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'
10249 else
10250 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'
10251 fi
10252 ;;
10253 pw32*)
10254 export_symbols_cmds_CXX="$ltdll_cmds"
10255 ;;
10256 cygwin* | mingw*)
10257 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10258 ;;
10259 *)
10260 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10261 ;;
10262 esac
10263
10264 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10265 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10266 test "$ld_shlibs_CXX" = no && can_build_shared=no
10267
10268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10269 if test "$GCC" = yes; then
10270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10271 fi
10272
10273 #
10274 # Do we need to explicitly link libc?
10275 #
10276 case "x$archive_cmds_need_lc_CXX" in
10277 x|xyes)
10278 # Assume -lc should be added
10279 archive_cmds_need_lc_CXX=yes
10280
10281 if test "$enable_shared" = yes && test "$GCC" = yes; then
10282 case $archive_cmds_CXX in
10283 *'~'*)
10284 # FIXME: we may have to deal with multi-command sequences.
10285 ;;
10286 '$CC '*)
10287 # Test whether the compiler implicitly links with -lc since on some
10288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10289 # to ld, don't add -lc before -lgcc.
10290 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10291 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10292 $rm conftest*
10293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10294
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } 2>conftest.err; then
10300 soname=conftest
10301 lib=conftest
10302 libobjs=conftest.$ac_objext
10303 deplibs=
10304 wl=$lt_prog_compiler_wl_CXX
10305 compiler_flags=-v
10306 linker_flags=-v
10307 verstring=
10308 output_objdir=.
10309 libname=conftest
10310 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10311 allow_undefined_flag_CXX=
10312 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10313 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }
10317 then
10318 archive_cmds_need_lc_CXX=no
10319 else
10320 archive_cmds_need_lc_CXX=yes
10321 fi
10322 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10323 else
10324 cat conftest.err 1>&5
10325 fi
10326 $rm conftest*
10327 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10328 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10329 ;;
10330 esac
10331 fi
10332 ;;
10333 esac
10334
10335 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10336 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10337 hardcode_action_CXX=
10338 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10339 test -n "$runpath_var CXX" || \
10340 test "X$hardcode_automatic_CXX"="Xyes" ; then
10341
10342 # We can hardcode non-existant directories.
10343 if test "$hardcode_direct_CXX" != no &&
10344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10345 # have to relink, otherwise we might link with an installed library
10346 # when we should be linking with a yet-to-be-installed one
10347 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10348 test "$hardcode_minus_L_CXX" != no; then
10349 # Linking always hardcodes the temporary library directory.
10350 hardcode_action_CXX=relink
10351 else
10352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10353 hardcode_action_CXX=immediate
10354 fi
10355 else
10356 # We cannot hardcode anything, or else we can only hardcode existing
10357 # directories.
10358 hardcode_action_CXX=unsupported
10359 fi
10360 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10361 echo "${ECHO_T}$hardcode_action_CXX" >&6
10362
10363 if test "$hardcode_action_CXX" = relink; then
10364 # Fast installation is not supported
10365 enable_fast_install=no
10366 elif test "$shlibpath_overrides_runpath" = yes ||
10367 test "$enable_shared" = no; then
10368 # Fast installation is not necessary
10369 enable_fast_install=needless
10370 fi
10371
10372 striplib=
10373 old_striplib=
10374 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10375 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10376 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10379 echo "$as_me:$LINENO: result: yes" >&5
10380 echo "${ECHO_T}yes" >&6
10381 else
10382 # FIXME - insert some real tests, host_os isn't really good enough
10383 case $host_os in
10384 darwin*)
10385 if test -n "$STRIP" ; then
10386 striplib="$STRIP -x"
10387 echo "$as_me:$LINENO: result: yes" >&5
10388 echo "${ECHO_T}yes" >&6
10389 else
10390 echo "$as_me:$LINENO: result: no" >&5
10391 echo "${ECHO_T}no" >&6
10392 fi
10393 ;;
10394 *)
10395 echo "$as_me:$LINENO: result: no" >&5
10396 echo "${ECHO_T}no" >&6
10397 ;;
10398 esac
10399 fi
10400
10401 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10402 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10403 library_names_spec=
10404 libname_spec='lib$name'
10405 soname_spec=
10406 shrext=".so"
10407 postinstall_cmds=
10408 postuninstall_cmds=
10409 finish_cmds=
10410 finish_eval=
10411 shlibpath_var=
10412 shlibpath_overrides_runpath=unknown
10413 version_type=none
10414 dynamic_linker="$host_os ld.so"
10415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10416 if test "$GCC" = yes; then
10417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10418 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10419 # if the path contains ";" then we assume it to be the separator
10420 # otherwise default to the standard path separator (i.e. ":") - it is
10421 # assumed that no part of a normal pathname contains ";" but that should
10422 # okay in the real world where ";" in dirpaths is itself problematic.
10423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10424 else
10425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10426 fi
10427 else
10428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10429 fi
10430 need_lib_prefix=unknown
10431 hardcode_into_libs=no
10432
10433 # when you set need_version to no, make sure it does not cause -set_version
10434 # flags to be left without arguments
10435 need_version=unknown
10436
10437 case $host_os in
10438 aix3*)
10439 version_type=linux
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10441 shlibpath_var=LIBPATH
10442
10443 # AIX 3 has no versioning support, so we append a major version to the name.
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 ;;
10446
10447 aix4* | aix5*)
10448 version_type=linux
10449 need_lib_prefix=no
10450 need_version=no
10451 hardcode_into_libs=yes
10452 if test "$host_cpu" = ia64; then
10453 # AIX 5 supports IA64
10454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 else
10457 # With GCC up to 2.95.x, collect2 would create an import file
10458 # for dependence libraries. The import file would start with
10459 # the line `#! .'. This would cause the generated library to
10460 # depend on `.', always an invalid library. This was fixed in
10461 # development snapshots of GCC prior to 3.0.
10462 case $host_os in
10463 aix4 | aix4.[01] | aix4.[01].*)
10464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10465 echo ' yes '
10466 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10467 :
10468 else
10469 can_build_shared=no
10470 fi
10471 ;;
10472 esac
10473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10474 # soname into executable. Probably we can add versioning support to
10475 # collect2, so additional links can be useful in future.
10476 if test "$aix_use_runtimelinking" = yes; then
10477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10478 # instead of lib<name>.a to let people know that these are not
10479 # typical AIX shared libraries.
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 else
10482 # We preserve .a as extension for shared libraries through AIX4.2
10483 # and later when we are not doing run time linking.
10484 library_names_spec='${libname}${release}.a $libname.a'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 fi
10487 shlibpath_var=LIBPATH
10488 fi
10489 ;;
10490
10491 amigaos*)
10492 library_names_spec='$libname.ixlibrary $libname.a'
10493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10494 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'
10495 ;;
10496
10497 beos*)
10498 library_names_spec='${libname}${shared_ext}'
10499 dynamic_linker="$host_os ld.so"
10500 shlibpath_var=LIBRARY_PATH
10501 ;;
10502
10503 bsdi4*)
10504 version_type=linux
10505 need_version=no
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10512 # the default ld.so.conf also contains /usr/contrib/lib and
10513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10514 # libtool to hard-code these into programs
10515 ;;
10516
10517 cygwin* | mingw* | pw32*)
10518 version_type=windows
10519 shrext=".dll"
10520 need_version=no
10521 need_lib_prefix=no
10522
10523 case $GCC,$host_os in
10524 yes,cygwin* | yes,mingw* | yes,pw32*)
10525 library_names_spec='$libname.dll.a'
10526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10527 postinstall_cmds='base_file=`basename \${file}`~
10528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10529 dldir=$destdir/`dirname \$dlpath`~
10530 test -d \$dldir || mkdir -p \$dldir~
10531 $install_prog $dir/$dlname \$dldir/$dlname'
10532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10533 dlpath=$dir/\$dldll~
10534 $rm \$dlpath'
10535 shlibpath_overrides_runpath=yes
10536
10537 case $host_os in
10538 cygwin*)
10539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10541 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10542 ;;
10543 mingw*)
10544 # MinGW DLLs use traditional 'lib' prefix
10545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10548 # It is most probably a Windows format PATH printed by
10549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10550 # path with ; separators, and with drive letters. We can handle the
10551 # drive letters (cygwin fileutils understands them), so leave them,
10552 # especially as we might pass files found there to a mingw objdump,
10553 # which wouldn't understand a cygwinified path. Ahh.
10554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10555 else
10556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10557 fi
10558 ;;
10559 pw32*)
10560 # pw32 DLLs use 'pw' prefix rather than 'lib'
10561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10562 ;;
10563 esac
10564 ;;
10565
10566 *)
10567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10568 ;;
10569 esac
10570 dynamic_linker='Win32 ld.exe'
10571 # FIXME: first we should search . and the directory the executable is in
10572 shlibpath_var=PATH
10573 ;;
10574
10575 darwin* | rhapsody*)
10576 dynamic_linker="$host_os dyld"
10577 version_type=darwin
10578 need_lib_prefix=no
10579 need_version=no
10580 # FIXME: Relying on posixy $() will cause problems for
10581 # cross-compilation, but unfortunately the echo tests do not
10582 # yet detect zsh echo's removal of \ escapes.
10583 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10584 soname_spec='${libname}${release}${major}$shared_ext'
10585 shlibpath_overrides_runpath=yes
10586 shlibpath_var=DYLD_LIBRARY_PATH
10587 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10588 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10589 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10590 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"`
10591 fi
10592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10593 ;;
10594
10595 dgux*)
10596 version_type=linux
10597 need_lib_prefix=no
10598 need_version=no
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 ;;
10603
10604 freebsd1*)
10605 dynamic_linker=no
10606 ;;
10607
10608 freebsd*)
10609 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10610 version_type=freebsd-$objformat
10611 case $version_type in
10612 freebsd-elf*)
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10614 need_version=no
10615 need_lib_prefix=no
10616 ;;
10617 freebsd-*)
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10619 need_version=yes
10620 ;;
10621 esac
10622 shlibpath_var=LD_LIBRARY_PATH
10623 case $host_os in
10624 freebsd2*)
10625 shlibpath_overrides_runpath=yes
10626 ;;
10627 freebsd3.01* | freebsdelf3.01*)
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 ;;
10631 *) # from 3.2 on
10632 shlibpath_overrides_runpath=no
10633 hardcode_into_libs=yes
10634 ;;
10635 esac
10636 ;;
10637
10638 gnu*)
10639 version_type=linux
10640 need_lib_prefix=no
10641 need_version=no
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 hardcode_into_libs=yes
10646 ;;
10647
10648 hpux9* | hpux10* | hpux11*)
10649 # Give a soname corresponding to the major version so that dld.sl refuses to
10650 # link against other versions.
10651 version_type=sunos
10652 need_lib_prefix=no
10653 need_version=no
10654 case "$host_cpu" in
10655 ia64*)
10656 shrext='.so'
10657 hardcode_into_libs=yes
10658 dynamic_linker="$host_os dld.so"
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 if test "X$HPUX_IA64_MODE" = X32; then
10664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10665 else
10666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10667 fi
10668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10669 ;;
10670 hppa*64*)
10671 shrext='.sl'
10672 hardcode_into_libs=yes
10673 dynamic_linker="$host_os dld.sl"
10674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10680 ;;
10681 *)
10682 shrext='.sl'
10683 dynamic_linker="$host_os dld.sl"
10684 shlibpath_var=SHLIB_PATH
10685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 ;;
10689 esac
10690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10691 postinstall_cmds='chmod 555 $lib'
10692 ;;
10693
10694 irix5* | irix6* | nonstopux*)
10695 case $host_os in
10696 nonstopux*) version_type=nonstopux ;;
10697 *)
10698 if test "$lt_cv_prog_gnu_ld" = yes; then
10699 version_type=linux
10700 else
10701 version_type=irix
10702 fi ;;
10703 esac
10704 need_lib_prefix=no
10705 need_version=no
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10708 case $host_os in
10709 irix5* | nonstopux*)
10710 libsuff= shlibsuff=
10711 ;;
10712 *)
10713 case $LD in # libtool.m4 will add one of these switches to LD
10714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10715 libsuff= shlibsuff= libmagic=32-bit;;
10716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10717 libsuff=32 shlibsuff=N32 libmagic=N32;;
10718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10720 *) libsuff= shlibsuff= libmagic=never-match;;
10721 esac
10722 ;;
10723 esac
10724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10725 shlibpath_overrides_runpath=no
10726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10728 hardcode_into_libs=yes
10729 ;;
10730
10731 # No shared lib support for Linux oldld, aout, or coff.
10732 linux*oldld* | linux*aout* | linux*coff*)
10733 dynamic_linker=no
10734 ;;
10735
10736 # This must be Linux ELF.
10737 linux*)
10738 version_type=linux
10739 need_lib_prefix=no
10740 need_version=no
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=no
10746 # This implies no fast_install, which is unacceptable.
10747 # Some rework will be needed to allow for fast_install
10748 # before this can be enabled.
10749 hardcode_into_libs=yes
10750
10751 # We used to test for /lib/ld.so.1 and disable shared libraries on
10752 # powerpc, because MkLinux only supported shared libraries with the
10753 # GNU dynamic linker. Since this was broken with cross compilers,
10754 # most powerpc-linux boxes support dynamic linking these days and
10755 # people can always --disable-shared, the test was removed, and we
10756 # assume the GNU/Linux dynamic linker is in use.
10757 dynamic_linker='GNU/Linux ld.so'
10758 ;;
10759
10760 netbsd*)
10761 version_type=sunos
10762 need_lib_prefix=no
10763 need_version=no
10764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10767 dynamic_linker='NetBSD (a.out) ld.so'
10768 else
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 dynamic_linker='NetBSD ld.elf_so'
10772 fi
10773 shlibpath_var=LD_LIBRARY_PATH
10774 shlibpath_overrides_runpath=yes
10775 hardcode_into_libs=yes
10776 ;;
10777
10778 newsos6)
10779 version_type=linux
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes
10783 ;;
10784
10785 nto-qnx)
10786 version_type=linux
10787 need_lib_prefix=no
10788 need_version=no
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=yes
10793 ;;
10794
10795 openbsd*)
10796 version_type=sunos
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10803 case $host_os in
10804 openbsd2.[89] | openbsd2.[89].*)
10805 shlibpath_overrides_runpath=no
10806 ;;
10807 *)
10808 shlibpath_overrides_runpath=yes
10809 ;;
10810 esac
10811 else
10812 shlibpath_overrides_runpath=yes
10813 fi
10814 ;;
10815
10816 os2*)
10817 libname_spec='$name'
10818 shrext=".dll"
10819 need_lib_prefix=no
10820 library_names_spec='$libname${shared_ext} $libname.a'
10821 dynamic_linker='OS/2 ld.exe'
10822 shlibpath_var=LIBPATH
10823 ;;
10824
10825 osf3* | osf4* | osf5*)
10826 version_type=osf
10827 need_lib_prefix=no
10828 need_version=no
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10834 ;;
10835
10836 sco3.2v5*)
10837 version_type=osf
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 ;;
10842
10843 solaris*)
10844 version_type=linux
10845 need_lib_prefix=no
10846 need_version=no
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851 hardcode_into_libs=yes
10852 # ldd complains unless libraries are executable
10853 postinstall_cmds='chmod +x $lib'
10854 ;;
10855
10856 sunos4*)
10857 version_type=sunos
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10862 if test "$with_gnu_ld" = yes; then
10863 need_lib_prefix=no
10864 fi
10865 need_version=yes
10866 ;;
10867
10868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10869 version_type=linux
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 case $host_vendor in
10874 sni)
10875 shlibpath_overrides_runpath=no
10876 need_lib_prefix=no
10877 export_dynamic_flag_spec='${wl}-Blargedynsym'
10878 runpath_var=LD_RUN_PATH
10879 ;;
10880 siemens)
10881 need_lib_prefix=no
10882 ;;
10883 motorola)
10884 need_lib_prefix=no
10885 need_version=no
10886 shlibpath_overrides_runpath=no
10887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10888 ;;
10889 esac
10890 ;;
10891
10892 sysv4*MP*)
10893 if test -d /usr/nec ;then
10894 version_type=linux
10895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10896 soname_spec='$libname${shared_ext}.$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 fi
10899 ;;
10900
10901 uts4*)
10902 version_type=linux
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 ;;
10907
10908 *)
10909 dynamic_linker=no
10910 ;;
10911 esac
10912 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10913 echo "${ECHO_T}$dynamic_linker" >&6
10914 test "$dynamic_linker" = no && can_build_shared=no
10915
10916 if test "x$enable_dlopen" != xyes; then
10917 enable_dlopen=unknown
10918 enable_dlopen_self=unknown
10919 enable_dlopen_self_static=unknown
10920 else
10921 lt_cv_dlopen=no
10922 lt_cv_dlopen_libs=
10923
10924 case $host_os in
10925 beos*)
10926 lt_cv_dlopen="load_add_on"
10927 lt_cv_dlopen_libs=
10928 lt_cv_dlopen_self=yes
10929 ;;
10930
10931 mingw* | pw32*)
10932 lt_cv_dlopen="LoadLibrary"
10933 lt_cv_dlopen_libs=
10934 ;;
10935
10936 cygwin*)
10937 lt_cv_dlopen="dlopen"
10938 lt_cv_dlopen_libs=
10939 ;;
10940
10941 darwin*)
10942 # if libdl is installed we need to link against it
10943 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10944 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat >conftest.$ac_ext <<_ACEOF
10951 #line $LINENO "configure"
10952 #include "confdefs.h"
10953
10954 /* Override any gcc2 internal prototype to avoid an error. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 /* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960 char dlopen ();
10961 #ifdef F77_DUMMY_MAIN
10962 # ifdef __cplusplus
10963 extern "C"
10964 # endif
10965 int F77_DUMMY_MAIN() { return 1; }
10966 #endif
10967 int
10968 main ()
10969 {
10970 dlopen ();
10971 ;
10972 return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977 (eval $ac_link) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -s conftest$ac_exeext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_cv_lib_dl_dlopen=yes
10988 else
10989 echo "$as_me: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 ac_cv_lib_dl_dlopen=no
10992 fi
10993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10997 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10998 if test $ac_cv_lib_dl_dlopen = yes; then
10999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11000 else
11001
11002 lt_cv_dlopen="dyld"
11003 lt_cv_dlopen_libs=
11004 lt_cv_dlopen_self=yes
11005
11006 fi
11007
11008 ;;
11009
11010 *)
11011 echo "$as_me:$LINENO: checking for shl_load" >&5
11012 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11013 if test "${ac_cv_func_shl_load+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 cat >conftest.$ac_ext <<_ACEOF
11017 #line $LINENO "configure"
11018 #include "confdefs.h"
11019 /* System header to define __stub macros and hopefully few prototypes,
11020 which can conflict with char shl_load (); below. */
11021 #include <assert.h>
11022 /* Override any gcc2 internal prototype to avoid an error. */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 /* We use char because int might match the return type of a gcc2
11027 builtin and then its argument prototype would still apply. */
11028 char shl_load ();
11029 char (*f) ();
11030
11031 #ifdef F77_DUMMY_MAIN
11032 # ifdef __cplusplus
11033 extern "C"
11034 # endif
11035 int F77_DUMMY_MAIN() { return 1; }
11036 #endif
11037 int
11038 main ()
11039 {
11040 /* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11044 choke me
11045 #else
11046 f = shl_load;
11047 #endif
11048
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_func_shl_load=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 ac_cv_func_shl_load=no
11070 fi
11071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11072 fi
11073 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11074 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11075 if test $ac_cv_func_shl_load = yes; then
11076 lt_cv_dlopen="shl_load"
11077 else
11078 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11079 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11080 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-ldld $LIBS"
11085 cat >conftest.$ac_ext <<_ACEOF
11086 #line $LINENO "configure"
11087 #include "confdefs.h"
11088
11089 /* Override any gcc2 internal prototype to avoid an error. */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 /* We use char because int might match the return type of a gcc2
11094 builtin and then its argument prototype would still apply. */
11095 char shl_load ();
11096 #ifdef F77_DUMMY_MAIN
11097 # ifdef __cplusplus
11098 extern "C"
11099 # endif
11100 int F77_DUMMY_MAIN() { return 1; }
11101 #endif
11102 int
11103 main ()
11104 {
11105 shl_load ();
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } &&
11116 { ac_try='test -s conftest$ac_exeext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_lib_dld_shl_load=yes
11123 else
11124 echo "$as_me: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 ac_cv_lib_dld_shl_load=no
11127 fi
11128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11130 fi
11131 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11132 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11133 if test $ac_cv_lib_dld_shl_load = yes; then
11134 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11135 else
11136 echo "$as_me:$LINENO: checking for dlopen" >&5
11137 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11138 if test "${ac_cv_func_dlopen+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char dlopen (); below. */
11146 #include <assert.h>
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11153 char dlopen ();
11154 char (*f) ();
11155
11156 #ifdef F77_DUMMY_MAIN
11157 # ifdef __cplusplus
11158 extern "C"
11159 # endif
11160 int F77_DUMMY_MAIN() { return 1; }
11161 #endif
11162 int
11163 main ()
11164 {
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11169 choke me
11170 #else
11171 f = dlopen;
11172 #endif
11173
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
11184 { ac_try='test -s conftest$ac_exeext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_cv_func_dlopen=yes
11191 else
11192 echo "$as_me: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 ac_cv_func_dlopen=no
11195 fi
11196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11197 fi
11198 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11199 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11200 if test $ac_cv_func_dlopen = yes; then
11201 lt_cv_dlopen="dlopen"
11202 else
11203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208 ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-ldl $LIBS"
11210 cat >conftest.$ac_ext <<_ACEOF
11211 #line $LINENO "configure"
11212 #include "confdefs.h"
11213
11214 /* Override any gcc2 internal prototype to avoid an error. */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 /* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */
11220 char dlopen ();
11221 #ifdef F77_DUMMY_MAIN
11222 # ifdef __cplusplus
11223 extern "C"
11224 # endif
11225 int F77_DUMMY_MAIN() { return 1; }
11226 #endif
11227 int
11228 main ()
11229 {
11230 dlopen ();
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 rm -f conftest.$ac_objext conftest$ac_exeext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -s conftest$ac_exeext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_cv_lib_dl_dlopen=yes
11248 else
11249 echo "$as_me: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 ac_cv_lib_dl_dlopen=no
11252 fi
11253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11255 fi
11256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11258 if test $ac_cv_lib_dl_dlopen = yes; then
11259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11260 else
11261 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11262 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-lsvld $LIBS"
11268 cat >conftest.$ac_ext <<_ACEOF
11269 #line $LINENO "configure"
11270 #include "confdefs.h"
11271
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char dlopen ();
11279 #ifdef F77_DUMMY_MAIN
11280 # ifdef __cplusplus
11281 extern "C"
11282 # endif
11283 int F77_DUMMY_MAIN() { return 1; }
11284 #endif
11285 int
11286 main ()
11287 {
11288 dlopen ();
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 rm -f conftest.$ac_objext conftest$ac_exeext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295 (eval $ac_link) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -s conftest$ac_exeext'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_lib_svld_dlopen=yes
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 ac_cv_lib_svld_dlopen=no
11310 fi
11311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11313 fi
11314 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11315 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11316 if test $ac_cv_lib_svld_dlopen = yes; then
11317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11318 else
11319 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11320 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11321 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-ldld $LIBS"
11326 cat >conftest.$ac_ext <<_ACEOF
11327 #line $LINENO "configure"
11328 #include "confdefs.h"
11329
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11336 char dld_link ();
11337 #ifdef F77_DUMMY_MAIN
11338 # ifdef __cplusplus
11339 extern "C"
11340 # endif
11341 int F77_DUMMY_MAIN() { return 1; }
11342 #endif
11343 int
11344 main ()
11345 {
11346 dld_link ();
11347 ;
11348 return 0;
11349 }
11350 _ACEOF
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_lib_dld_dld_link=yes
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 ac_cv_lib_dld_dld_link=no
11368 fi
11369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11371 fi
11372 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11373 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11374 if test $ac_cv_lib_dld_dld_link = yes; then
11375 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11376 fi
11377
11378
11379 fi
11380
11381
11382 fi
11383
11384
11385 fi
11386
11387
11388 fi
11389
11390
11391 fi
11392
11393 ;;
11394 esac
11395
11396 if test "x$lt_cv_dlopen" != xno; then
11397 enable_dlopen=yes
11398 else
11399 enable_dlopen=no
11400 fi
11401
11402 case $lt_cv_dlopen in
11403 dlopen)
11404 save_CPPFLAGS="$CPPFLAGS"
11405 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11406
11407 save_LDFLAGS="$LDFLAGS"
11408 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11409
11410 save_LIBS="$LIBS"
11411 LIBS="$lt_cv_dlopen_libs $LIBS"
11412
11413 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11414 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11415 if test "${lt_cv_dlopen_self+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418 if test "$cross_compiling" = yes; then :
11419 lt_cv_dlopen_self=cross
11420 else
11421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11422 lt_status=$lt_dlunknown
11423 cat > conftest.$ac_ext <<EOF
11424 #line 11424 "configure"
11425 #include "confdefs.h"
11426
11427 #if HAVE_DLFCN_H
11428 #include <dlfcn.h>
11429 #endif
11430
11431 #include <stdio.h>
11432
11433 #ifdef RTLD_GLOBAL
11434 # define LT_DLGLOBAL RTLD_GLOBAL
11435 #else
11436 # ifdef DL_GLOBAL
11437 # define LT_DLGLOBAL DL_GLOBAL
11438 # else
11439 # define LT_DLGLOBAL 0
11440 # endif
11441 #endif
11442
11443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11444 find out it does not work in some platform. */
11445 #ifndef LT_DLLAZY_OR_NOW
11446 # ifdef RTLD_LAZY
11447 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11448 # else
11449 # ifdef DL_LAZY
11450 # define LT_DLLAZY_OR_NOW DL_LAZY
11451 # else
11452 # ifdef RTLD_NOW
11453 # define LT_DLLAZY_OR_NOW RTLD_NOW
11454 # else
11455 # ifdef DL_NOW
11456 # define LT_DLLAZY_OR_NOW DL_NOW
11457 # else
11458 # define LT_DLLAZY_OR_NOW 0
11459 # endif
11460 # endif
11461 # endif
11462 # endif
11463 #endif
11464
11465 #ifdef __cplusplus
11466 extern "C" void exit (int);
11467 #endif
11468
11469 void fnord() { int i=42;}
11470 int main ()
11471 {
11472 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11473 int status = $lt_dlunknown;
11474
11475 if (self)
11476 {
11477 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11478 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11479 /* dlclose (self); */
11480 }
11481
11482 exit (status);
11483 }
11484 EOF
11485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11490 (./conftest; exit; ) 2>/dev/null
11491 lt_status=$?
11492 case x$lt_status in
11493 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11494 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11495 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11496 esac
11497 else :
11498 # compilation failed
11499 lt_cv_dlopen_self=no
11500 fi
11501 fi
11502 rm -fr conftest*
11503
11504
11505 fi
11506 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11507 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11508
11509 if test "x$lt_cv_dlopen_self" = xyes; then
11510 LDFLAGS="$LDFLAGS $link_static_flag"
11511 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11512 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11513 if test "${lt_cv_dlopen_self_static+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516 if test "$cross_compiling" = yes; then :
11517 lt_cv_dlopen_self_static=cross
11518 else
11519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11520 lt_status=$lt_dlunknown
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11522 "configure"
11523 #include "confdefs.h"
11524
11525 #if HAVE_DLFCN_H
11526 #include <dlfcn.h>
11527 #endif
11528
11529 #include <stdio.h>
11530
11531 #ifdef RTLD_GLOBAL
11532 # define LT_DLGLOBAL RTLD_GLOBAL
11533 #else
11534 # ifdef DL_GLOBAL
11535 # define LT_DLGLOBAL DL_GLOBAL
11536 # else
11537 # define LT_DLGLOBAL 0
11538 # endif
11539 #endif
11540
11541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11542 find out it does not work in some platform. */
11543 #ifndef LT_DLLAZY_OR_NOW
11544 # ifdef RTLD_LAZY
11545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11546 # else
11547 # ifdef DL_LAZY
11548 # define LT_DLLAZY_OR_NOW DL_LAZY
11549 # else
11550 # ifdef RTLD_NOW
11551 # define LT_DLLAZY_OR_NOW RTLD_NOW
11552 # else
11553 # ifdef DL_NOW
11554 # define LT_DLLAZY_OR_NOW DL_NOW
11555 # else
11556 # define LT_DLLAZY_OR_NOW 0
11557 # endif
11558 # endif
11559 # endif
11560 # endif
11561 #endif
11562
11563 #ifdef __cplusplus
11564 extern "C" void exit (int);
11565 #endif
11566
11567 void fnord() { int i=42;}
11568 int main ()
11569 {
11570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11571 int status = $lt_dlunknown;
11572
11573 if (self)
11574 {
11575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11576 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11577 /* dlclose (self); */
11578 }
11579
11580 exit (status);
11581 }
11582 EOF
11583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11584 (eval $ac_link) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11588 (./conftest; exit; ) 2>/dev/null
11589 lt_status=$?
11590 case x$lt_status in
11591 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11592 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11593 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11594 esac
11595 else :
11596 # compilation failed
11597 lt_cv_dlopen_self_static=no
11598 fi
11599 fi
11600 rm -fr conftest*
11601
11602
11603 fi
11604 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11605 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11606 fi
11607
11608 CPPFLAGS="$save_CPPFLAGS"
11609 LDFLAGS="$save_LDFLAGS"
11610 LIBS="$save_LIBS"
11611 ;;
11612 esac
11613
11614 case $lt_cv_dlopen_self in
11615 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11616 *) enable_dlopen_self=unknown ;;
11617 esac
11618
11619 case $lt_cv_dlopen_self_static in
11620 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11621 *) enable_dlopen_self_static=unknown ;;
11622 esac
11623 fi
11624
11625
11626 # The else clause should only fire when bootstrapping the
11627 # libtool distribution, otherwise you forgot to ship ltmain.sh
11628 # with your package, and you will get complaints that there are
11629 # no rules to generate ltmain.sh.
11630 if test -f "$ltmain"; then
11631 # See if we are running on zsh, and set the options which allow our commands through
11632 # without removal of \ escapes.
11633 if test -n "${ZSH_VERSION+set}" ; then
11634 setopt NO_GLOB_SUBST
11635 fi
11636 # Now quote all the things that may contain metacharacters while being
11637 # careful not to overquote the AC_SUBSTed values. We take copies of the
11638 # variables and quote the copies for generation of the libtool script.
11639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11640 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11641 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11642 deplibs_check_method reload_flag reload_cmds need_locks \
11643 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11644 lt_cv_sys_global_symbol_to_c_name_address \
11645 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11646 old_postinstall_cmds old_postuninstall_cmds \
11647 compiler_CXX \
11648 CC_CXX \
11649 LD_CXX \
11650 lt_prog_compiler_wl_CXX \
11651 lt_prog_compiler_pic_CXX \
11652 lt_prog_compiler_static_CXX \
11653 lt_prog_compiler_no_builtin_flag_CXX \
11654 export_dynamic_flag_spec_CXX \
11655 thread_safe_flag_spec_CXX \
11656 whole_archive_flag_spec_CXX \
11657 enable_shared_with_static_runtimes_CXX \
11658 old_archive_cmds_CXX \
11659 old_archive_from_new_cmds_CXX \
11660 predep_objects_CXX \
11661 postdep_objects_CXX \
11662 predeps_CXX \
11663 postdeps_CXX \
11664 compiler_lib_search_path_CXX \
11665 archive_cmds_CXX \
11666 archive_expsym_cmds_CXX \
11667 postinstall_cmds_CXX \
11668 postuninstall_cmds_CXX \
11669 old_archive_from_expsyms_cmds_CXX \
11670 allow_undefined_flag_CXX \
11671 no_undefined_flag_CXX \
11672 export_symbols_cmds_CXX \
11673 hardcode_libdir_flag_spec_CXX \
11674 hardcode_libdir_flag_spec_ld_CXX \
11675 hardcode_libdir_separator_CXX \
11676 hardcode_automatic_CXX \
11677 module_cmds_CXX \
11678 module_expsym_cmds_CXX \
11679 lt_cv_prog_compiler_c_o_CXX \
11680 exclude_expsyms_CXX \
11681 include_expsyms_CXX; do
11682
11683 case $var in
11684 old_archive_cmds_CXX | \
11685 old_archive_from_new_cmds_CXX | \
11686 archive_cmds_CXX | \
11687 archive_expsym_cmds_CXX | \
11688 module_cmds_CXX | \
11689 module_expsym_cmds_CXX | \
11690 old_archive_from_expsyms_cmds_CXX | \
11691 export_symbols_cmds_CXX | \
11692 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11693 postinstall_cmds | postuninstall_cmds | \
11694 old_postinstall_cmds | old_postuninstall_cmds | \
11695 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11696 # Double-quote double-evaled strings.
11697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11698 ;;
11699 *)
11700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11701 ;;
11702 esac
11703 done
11704
11705 case $lt_echo in
11706 *'\$0 --fallback-echo"')
11707 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11708 ;;
11709 esac
11710
11711 cfgfile="$ofile"
11712
11713 cat <<__EOF__ >> "$cfgfile"
11714 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11715
11716 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11717
11718 # Shell to use when invoking shell scripts.
11719 SHELL=$lt_SHELL
11720
11721 # Whether or not to build shared libraries.
11722 build_libtool_libs=$enable_shared
11723
11724 # Whether or not to build static libraries.
11725 build_old_libs=$enable_static
11726
11727 # Whether or not to add -lc for building shared libraries.
11728 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11729
11730 # Whether or not to disallow shared libs when runtime libs are static
11731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11732
11733 # Whether or not to optimize for fast installation.
11734 fast_install=$enable_fast_install
11735
11736 # The host system.
11737 host_alias=$host_alias
11738 host=$host
11739
11740 # An echo program that does not interpret backslashes.
11741 echo=$lt_echo
11742
11743 # The archiver.
11744 AR=$lt_AR
11745 AR_FLAGS=$lt_AR_FLAGS
11746
11747 # A C compiler.
11748 LTCC=$lt_LTCC
11749
11750 # A language-specific compiler.
11751 CC=$lt_compiler_CXX
11752
11753 # Is the compiler the GNU C compiler?
11754 with_gcc=$GCC_CXX
11755
11756 # An ERE matcher.
11757 EGREP=$lt_EGREP
11758
11759 # The linker used to build libraries.
11760 LD=$lt_LD_CXX
11761
11762 # Whether we need hard or soft links.
11763 LN_S=$lt_LN_S
11764
11765 # A BSD-compatible nm program.
11766 NM=$lt_NM
11767
11768 # A symbol stripping program
11769 STRIP=$STRIP
11770
11771 # Used to examine libraries when file_magic_cmd begins "file"
11772 MAGIC_CMD=$MAGIC_CMD
11773
11774 # Used on cygwin: DLL creation program.
11775 DLLTOOL="$DLLTOOL"
11776
11777 # Used on cygwin: object dumper.
11778 OBJDUMP="$OBJDUMP"
11779
11780 # Used on cygwin: assembler.
11781 AS="$AS"
11782
11783 # The name of the directory that contains temporary libtool files.
11784 objdir=$objdir
11785
11786 # How to create reloadable object files.
11787 reload_flag=$lt_reload_flag
11788 reload_cmds=$lt_reload_cmds
11789
11790 # How to pass a linker flag through the compiler.
11791 wl=$lt_lt_prog_compiler_wl_CXX
11792
11793 # Object file suffix (normally "o").
11794 objext="$ac_objext"
11795
11796 # Old archive suffix (normally "a").
11797 libext="$libext"
11798
11799 # Shared library suffix (normally ".so").
11800 shrext='$shrext'
11801
11802 # Executable file suffix (normally "").
11803 exeext="$exeext"
11804
11805 # Additional compiler flags for building library objects.
11806 pic_flag=$lt_lt_prog_compiler_pic_CXX
11807 pic_mode=$pic_mode
11808
11809 # What is the maximum length of a command?
11810 max_cmd_len=$lt_cv_sys_max_cmd_len
11811
11812 # Does compiler simultaneously support -c and -o options?
11813 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11814
11815 # Must we lock files when doing compilation ?
11816 need_locks=$lt_need_locks
11817
11818 # Do we need the lib prefix for modules?
11819 need_lib_prefix=$need_lib_prefix
11820
11821 # Do we need a version for libraries?
11822 need_version=$need_version
11823
11824 # Whether dlopen is supported.
11825 dlopen_support=$enable_dlopen
11826
11827 # Whether dlopen of programs is supported.
11828 dlopen_self=$enable_dlopen_self
11829
11830 # Whether dlopen of statically linked programs is supported.
11831 dlopen_self_static=$enable_dlopen_self_static
11832
11833 # Compiler flag to prevent dynamic linking.
11834 link_static_flag=$lt_lt_prog_compiler_static_CXX
11835
11836 # Compiler flag to turn off builtin functions.
11837 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11838
11839 # Compiler flag to allow reflexive dlopens.
11840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11841
11842 # Compiler flag to generate shared objects directly from archives.
11843 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11844
11845 # Compiler flag to generate thread-safe objects.
11846 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11847
11848 # Library versioning type.
11849 version_type=$version_type
11850
11851 # Format of library name prefix.
11852 libname_spec=$lt_libname_spec
11853
11854 # List of archive names. First name is the real one, the rest are links.
11855 # The last name is the one that the linker finds with -lNAME.
11856 library_names_spec=$lt_library_names_spec
11857
11858 # The coded name of the library, if different from the real name.
11859 soname_spec=$lt_soname_spec
11860
11861 # Commands used to build and install an old-style archive.
11862 RANLIB=$lt_RANLIB
11863 old_archive_cmds=$lt_old_archive_cmds_CXX
11864 old_postinstall_cmds=$lt_old_postinstall_cmds
11865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11866
11867 # Create an old-style archive from a shared archive.
11868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11869
11870 # Create a temporary old-style archive to link instead of a shared archive.
11871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11872
11873 # Commands used to build and install a shared archive.
11874 archive_cmds=$lt_archive_cmds_CXX
11875 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11876 postinstall_cmds=$lt_postinstall_cmds
11877 postuninstall_cmds=$lt_postuninstall_cmds
11878
11879 # Commands used to build a loadable module (assumed same as above if empty)
11880 module_cmds=$lt_module_cmds_CXX
11881 module_expsym_cmds=$lt_module_expsym_cmds_CXX
11882
11883 # Commands to strip libraries.
11884 old_striplib=$lt_old_striplib
11885 striplib=$lt_striplib
11886
11887 # Dependencies to place before the objects being linked to create a
11888 # shared library.
11889 predep_objects=$lt_predep_objects_CXX
11890
11891 # Dependencies to place after the objects being linked to create a
11892 # shared library.
11893 postdep_objects=$lt_postdep_objects_CXX
11894
11895 # Dependencies to place before the objects being linked to create a
11896 # shared library.
11897 predeps=$lt_predeps_CXX
11898
11899 # Dependencies to place after the objects being linked to create a
11900 # shared library.
11901 postdeps=$lt_postdeps_CXX
11902
11903 # The library search path used internally by the compiler when linking
11904 # a shared library.
11905 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11906
11907 # Method to check whether dependent libraries are shared objects.
11908 deplibs_check_method=$lt_deplibs_check_method
11909
11910 # Command to use when deplibs_check_method == file_magic.
11911 file_magic_cmd=$lt_file_magic_cmd
11912
11913 # Flag that allows shared libraries with undefined symbols to be built.
11914 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11915
11916 # Flag that forces no undefined symbols.
11917 no_undefined_flag=$lt_no_undefined_flag_CXX
11918
11919 # Commands used to finish a libtool library installation in a directory.
11920 finish_cmds=$lt_finish_cmds
11921
11922 # Same as above, but a single script fragment to be evaled but not shown.
11923 finish_eval=$lt_finish_eval
11924
11925 # Take the output of nm and produce a listing of raw symbols and C names.
11926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11927
11928 # Transform the output of nm in a proper C declaration
11929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11930
11931 # Transform the output of nm in a C name address pair
11932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11933
11934 # This is the shared library runtime path variable.
11935 runpath_var=$runpath_var
11936
11937 # This is the shared library path variable.
11938 shlibpath_var=$shlibpath_var
11939
11940 # Is shlibpath searched before the hard-coded library search path?
11941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11942
11943 # How to hardcode a shared library path into an executable.
11944 hardcode_action=$hardcode_action_CXX
11945
11946 # Whether we should hardcode library paths into libraries.
11947 hardcode_into_libs=$hardcode_into_libs
11948
11949 # Flag to hardcode \$libdir into a binary during linking.
11950 # This must work even if \$libdir does not exist.
11951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11952
11953 # If ld is used when linking, flag to hardcode \$libdir into
11954 # a binary during linking. This must work even if \$libdir does
11955 # not exist.
11956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
11957
11958 # Whether we need a single -rpath flag with a separated argument.
11959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11960
11961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11962 # resulting binary.
11963 hardcode_direct=$hardcode_direct_CXX
11964
11965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11966 # resulting binary.
11967 hardcode_minus_L=$hardcode_minus_L_CXX
11968
11969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11970 # the resulting binary.
11971 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11972
11973 # Set to yes if building a shared library automatically hardcodes DIR into the library
11974 # and all subsequent libraries and executables linked against it.
11975 hardcode_automatic=$hardcode_automatic_CXX
11976
11977 # Variables whose values should be saved in libtool wrapper scripts and
11978 # restored at relink time.
11979 variables_saved_for_relink="$variables_saved_for_relink"
11980
11981 # Whether libtool must link a program against all its dependency libraries.
11982 link_all_deplibs=$link_all_deplibs_CXX
11983
11984 # Compile-time system search path for libraries
11985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11986
11987 # Run-time system search path for libraries
11988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11989
11990 # Fix the shell variable \$srcfile for the compiler.
11991 fix_srcfile_path="$fix_srcfile_path_CXX"
11992
11993 # Set to yes if exported symbols are required.
11994 always_export_symbols=$always_export_symbols_CXX
11995
11996 # The commands to list exported symbols.
11997 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11998
11999 # The commands to extract the exported symbol list from a shared archive.
12000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12001
12002 # Symbols that should not be listed in the preloaded symbols.
12003 exclude_expsyms=$lt_exclude_expsyms_CXX
12004
12005 # Symbols that must always be exported.
12006 include_expsyms=$lt_include_expsyms_CXX
12007
12008 # ### END LIBTOOL TAG CONFIG: $tagname
12009
12010 __EOF__
12011
12012
12013 else
12014 # If there is no Makefile yet, we rely on a make rule to execute
12015 # `config.status --recheck' to rerun these tests and create the
12016 # libtool script then.
12017 test -f Makefile && make "$ltmain"
12018 fi
12019
12020
12021 ac_ext=c
12022 ac_cpp='$CPP $CPPFLAGS'
12023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12026
12027 CC=$lt_save_CC
12028 LDCXX=$LD
12029 LD=$lt_save_LD
12030 GCC=$lt_save_GCC
12031 with_gnu_ldcxx=$with_gnu_ld
12032 with_gnu_ld=$lt_save_with_gnu_ld
12033 lt_cv_path_LDCXX=$lt_cv_path_LD
12034 lt_cv_path_LD=$lt_save_path_LD
12035 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12036 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12037
12038 else
12039 tagname=""
12040 fi
12041 ;;
12042
12043 F77)
12044 if test -n "$F77" && test "X$F77" != "Xno"; then
12045
12046 ac_ext=f
12047 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12048 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12050
12051
12052 archive_cmds_need_lc_F77=no
12053 allow_undefined_flag_F77=
12054 always_export_symbols_F77=no
12055 archive_expsym_cmds_F77=
12056 export_dynamic_flag_spec_F77=
12057 hardcode_direct_F77=no
12058 hardcode_libdir_flag_spec_F77=
12059 hardcode_libdir_flag_spec_ld_F77=
12060 hardcode_libdir_separator_F77=
12061 hardcode_minus_L_F77=no
12062 hardcode_automatic_F77=no
12063 module_cmds_F77=
12064 module_expsym_cmds_F77=
12065 link_all_deplibs_F77=unknown
12066 old_archive_cmds_F77=$old_archive_cmds
12067 no_undefined_flag_F77=
12068 whole_archive_flag_spec_F77=
12069 enable_shared_with_static_runtimes_F77=no
12070
12071 # Source file extension for f77 test sources.
12072 ac_ext=f
12073
12074 # Object file extension for compiled f77 test sources.
12075 objext=o
12076 objext_F77=$objext
12077
12078 # Code to be used in simple compile tests
12079 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12080
12081 # Code to be used in simple link tests
12082 lt_simple_link_test_code=" program t\n end\n"
12083
12084 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12085
12086 # If no C compiler was specified, use CC.
12087 LTCC=${LTCC-"$CC"}
12088
12089 # Allow CC to be a program name with arguments.
12090 compiler=$CC
12091
12092
12093 # Allow CC to be a program name with arguments.
12094 lt_save_CC="$CC"
12095 CC=${F77-"f77"}
12096 compiler=$CC
12097 compiler_F77=$CC
12098 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12099
12100 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12101 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12102 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12103 echo "${ECHO_T}$can_build_shared" >&6
12104
12105 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12106 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12107 test "$can_build_shared" = "no" && enable_shared=no
12108
12109 # On AIX, shared libraries and static libraries use the same namespace, and
12110 # are all built from PIC.
12111 case "$host_os" in
12112 aix3*)
12113 test "$enable_shared" = yes && enable_static=no
12114 if test -n "$RANLIB"; then
12115 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12116 postinstall_cmds='$RANLIB $lib'
12117 fi
12118 ;;
12119 aix4*)
12120 test "$enable_shared" = yes && enable_static=no
12121 ;;
12122 esac
12123 echo "$as_me:$LINENO: result: $enable_shared" >&5
12124 echo "${ECHO_T}$enable_shared" >&6
12125
12126 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12127 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12128 # Make sure either enable_shared or enable_static is yes.
12129 test "$enable_shared" = yes || enable_static=yes
12130 echo "$as_me:$LINENO: result: $enable_static" >&5
12131 echo "${ECHO_T}$enable_static" >&6
12132
12133 test "$ld_shlibs_F77" = no && can_build_shared=no
12134
12135 GCC_F77="$G77"
12136 LD_F77="$LD"
12137
12138 lt_prog_compiler_wl_F77=
12139 lt_prog_compiler_pic_F77=
12140 lt_prog_compiler_static_F77=
12141
12142 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12143 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12144
12145 if test "$GCC" = yes; then
12146 lt_prog_compiler_wl_F77='-Wl,'
12147 lt_prog_compiler_static_F77='-static'
12148
12149 case $host_os in
12150 aix*)
12151 # All AIX code is PIC.
12152 if test "$host_cpu" = ia64; then
12153 # AIX 5 now supports IA64 processor
12154 lt_prog_compiler_static_F77='-Bstatic'
12155 fi
12156 ;;
12157
12158 amigaos*)
12159 # FIXME: we need at least 68020 code to build shared libraries, but
12160 # adding the `-m68020' flag to GCC prevents building anything better,
12161 # like `-m68040'.
12162 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12163 ;;
12164
12165 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12166 # PIC is the default for these OSes.
12167 ;;
12168
12169 mingw* | pw32* | os2*)
12170 # This hack is so that the source file can tell whether it is being
12171 # built for inclusion in a dll (and should export symbols for example).
12172 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12173 ;;
12174
12175 darwin* | rhapsody*)
12176 # PIC is the default on this platform
12177 # Common symbols not allowed in MH_DYLIB files
12178 lt_prog_compiler_pic_F77='-fno-common'
12179 ;;
12180
12181 msdosdjgpp*)
12182 # Just because we use GCC doesn't mean we suddenly get shared libraries
12183 # on systems that don't support them.
12184 lt_prog_compiler_can_build_shared_F77=no
12185 enable_shared=no
12186 ;;
12187
12188 sysv4*MP*)
12189 if test -d /usr/nec; then
12190 lt_prog_compiler_pic_F77=-Kconform_pic
12191 fi
12192 ;;
12193
12194 hpux*)
12195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12196 # not for PA HP-UX.
12197 case "$host_cpu" in
12198 hppa*64*|ia64*)
12199 # +Z the default
12200 ;;
12201 *)
12202 lt_prog_compiler_pic_F77='-fPIC'
12203 ;;
12204 esac
12205 ;;
12206
12207 *)
12208 lt_prog_compiler_pic_F77='-fPIC'
12209 ;;
12210 esac
12211 else
12212 # PORTME Check for flag to pass linker flags through the system compiler.
12213 case $host_os in
12214 aix*)
12215 lt_prog_compiler_wl_F77='-Wl,'
12216 if test "$host_cpu" = ia64; then
12217 # AIX 5 now supports IA64 processor
12218 lt_prog_compiler_static_F77='-Bstatic'
12219 else
12220 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12221 fi
12222 ;;
12223
12224 mingw* | pw32* | os2*)
12225 # This hack is so that the source file can tell whether it is being
12226 # built for inclusion in a dll (and should export symbols for example).
12227 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12228 ;;
12229
12230 hpux9* | hpux10* | hpux11*)
12231 lt_prog_compiler_wl_F77='-Wl,'
12232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12233 # not for PA HP-UX.
12234 case "$host_cpu" in
12235 hppa*64*|ia64*)
12236 # +Z the default
12237 ;;
12238 *)
12239 lt_prog_compiler_pic_F77='+Z'
12240 ;;
12241 esac
12242 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12243 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12244 ;;
12245
12246 irix5* | irix6* | nonstopux*)
12247 lt_prog_compiler_wl_F77='-Wl,'
12248 # PIC (with -KPIC) is the default.
12249 lt_prog_compiler_static_F77='-non_shared'
12250 ;;
12251
12252 newsos6)
12253 lt_prog_compiler_pic_F77='-KPIC'
12254 lt_prog_compiler_static_F77='-Bstatic'
12255 ;;
12256
12257 linux*)
12258 case $CC in
12259 icc|ecc)
12260 lt_prog_compiler_wl_F77='-Wl,'
12261 lt_prog_compiler_pic_F77='-KPIC'
12262 lt_prog_compiler_static_F77='-static'
12263 ;;
12264 ccc)
12265 lt_prog_compiler_wl_F77='-Wl,'
12266 # All Alpha code is PIC.
12267 lt_prog_compiler_static_F77='-non_shared'
12268 ;;
12269 esac
12270 ;;
12271
12272 osf3* | osf4* | osf5*)
12273 lt_prog_compiler_wl_F77='-Wl,'
12274 # All OSF/1 code is PIC.
12275 lt_prog_compiler_static_F77='-non_shared'
12276 ;;
12277
12278 sco3.2v5*)
12279 lt_prog_compiler_pic_F77='-Kpic'
12280 lt_prog_compiler_static_F77='-dn'
12281 ;;
12282
12283 solaris*)
12284 lt_prog_compiler_wl_F77='-Wl,'
12285 lt_prog_compiler_pic_F77='-KPIC'
12286 lt_prog_compiler_static_F77='-Bstatic'
12287 ;;
12288
12289 sunos4*)
12290 lt_prog_compiler_wl_F77='-Qoption ld '
12291 lt_prog_compiler_pic_F77='-PIC'
12292 lt_prog_compiler_static_F77='-Bstatic'
12293 ;;
12294
12295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12296 lt_prog_compiler_wl_F77='-Wl,'
12297 lt_prog_compiler_pic_F77='-KPIC'
12298 lt_prog_compiler_static_F77='-Bstatic'
12299 ;;
12300
12301 sysv4*MP*)
12302 if test -d /usr/nec ;then
12303 lt_prog_compiler_pic_F77='-Kconform_pic'
12304 lt_prog_compiler_static_F77='-Bstatic'
12305 fi
12306 ;;
12307
12308 uts4*)
12309 lt_prog_compiler_pic_F77='-pic'
12310 lt_prog_compiler_static_F77='-Bstatic'
12311 ;;
12312
12313 *)
12314 lt_prog_compiler_can_build_shared_F77=no
12315 ;;
12316 esac
12317 fi
12318
12319 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12320 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12321
12322 #
12323 # Check to make sure the PIC flag actually works.
12324 #
12325 if test -n "$lt_prog_compiler_pic_F77"; then
12326 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12327 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12328 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 lt_prog_compiler_pic_works_F77=no
12332 ac_outfile=conftest.$ac_objext
12333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12334 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12335 # Insert the option either (1) after the last *FLAGS variable, or
12336 # (2) before a word containing "conftest.", or (3) at the end.
12337 # Note that $ac_compile itself does not contain backslashes and begins
12338 # with a dollar sign (not a hyphen), so the echo should work correctly.
12339 # The option is referenced via a variable to avoid confusing sed.
12340 lt_compile=`echo "$ac_compile" | $SED \
12341 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12343 -e 's:$: $lt_compiler_flag:'`
12344 (eval echo "\"\$as_me:12344: $lt_compile\"" >&5)
12345 (eval "$lt_compile" 2>conftest.err)
12346 ac_status=$?
12347 cat conftest.err >&5
12348 echo "$as_me:12348: \$? = $ac_status" >&5
12349 if (exit $ac_status) && test -s "$ac_outfile"; then
12350 # The compiler can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
12352 if test ! -s conftest.err; then
12353 lt_prog_compiler_pic_works_F77=yes
12354 fi
12355 fi
12356 $rm conftest*
12357
12358 fi
12359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12360 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12361
12362 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12363 case $lt_prog_compiler_pic_F77 in
12364 "" | " "*) ;;
12365 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12366 esac
12367 else
12368 lt_prog_compiler_pic_F77=
12369 lt_prog_compiler_can_build_shared_F77=no
12370 fi
12371
12372 fi
12373 case "$host_os" in
12374 # For platforms which do not support PIC, -DPIC is meaningless:
12375 *djgpp*)
12376 lt_prog_compiler_pic_F77=
12377 ;;
12378 *)
12379 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12380 ;;
12381 esac
12382
12383 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12385 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 lt_cv_prog_compiler_c_o_F77=no
12389 $rm -r conftest 2>/dev/null
12390 mkdir conftest
12391 cd conftest
12392 mkdir out
12393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12394
12395 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12396 # that will create temporary files in the current directory regardless of
12397 # the output directory. Thus, making CWD read-only will cause this test
12398 # to fail, enabling locking or at least warning the user not to do parallel
12399 # builds.
12400 chmod -w .
12401
12402 lt_compiler_flag="-o out/conftest2.$ac_objext"
12403 # Insert the option either (1) after the last *FLAGS variable, or
12404 # (2) before a word containing "conftest.", or (3) at the end.
12405 # Note that $ac_compile itself does not contain backslashes and begins
12406 # with a dollar sign (not a hyphen), so the echo should work correctly.
12407 lt_compile=`echo "$ac_compile" | $SED \
12408 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12410 -e 's:$: $lt_compiler_flag:'`
12411 (eval echo "\"\$as_me:12411: $lt_compile\"" >&5)
12412 (eval "$lt_compile" 2>out/conftest.err)
12413 ac_status=$?
12414 cat out/conftest.err >&5
12415 echo "$as_me:12415: \$? = $ac_status" >&5
12416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12417 then
12418 # The compiler can only warn and ignore the option if not recognized
12419 # So say no if there are warnings
12420 if test ! -s out/conftest.err; then
12421 lt_cv_prog_compiler_c_o_F77=yes
12422 fi
12423 fi
12424 chmod u+w .
12425 $rm conftest* out/*
12426 rmdir out
12427 cd ..
12428 rmdir conftest
12429 $rm conftest*
12430
12431 fi
12432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12434
12435
12436 hard_links="nottested"
12437 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12438 # do not overwrite the value of need_locks provided by the user
12439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12440 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12441 hard_links=yes
12442 $rm conftest*
12443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12444 touch conftest.a
12445 ln conftest.a conftest.b 2>&5 || hard_links=no
12446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12447 echo "$as_me:$LINENO: result: $hard_links" >&5
12448 echo "${ECHO_T}$hard_links" >&6
12449 if test "$hard_links" = no; then
12450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12451 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12452 need_locks=warn
12453 fi
12454 else
12455 need_locks=no
12456 fi
12457
12458 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12459 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12460
12461 runpath_var=
12462 allow_undefined_flag_F77=
12463 enable_shared_with_static_runtimes_F77=no
12464 archive_cmds_F77=
12465 archive_expsym_cmds_F77=
12466 old_archive_From_new_cmds_F77=
12467 old_archive_from_expsyms_cmds_F77=
12468 export_dynamic_flag_spec_F77=
12469 whole_archive_flag_spec_F77=
12470 thread_safe_flag_spec_F77=
12471 hardcode_libdir_flag_spec_F77=
12472 hardcode_libdir_flag_spec_ld_F77=
12473 hardcode_libdir_separator_F77=
12474 hardcode_direct_F77=no
12475 hardcode_minus_L_F77=no
12476 hardcode_shlibpath_var_F77=unsupported
12477 link_all_deplibs_F77=unknown
12478 hardcode_automatic_F77=no
12479 module_cmds_F77=
12480 module_expsym_cmds_F77=
12481 always_export_symbols_F77=no
12482 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12483 # include_expsyms should be a list of space-separated symbols to be *always*
12484 # included in the symbol list
12485 include_expsyms_F77=
12486 # exclude_expsyms can be an extended regexp of symbols to exclude
12487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12489 # as well as any symbol that contains `d'.
12490 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12492 # platforms (ab)use it in PIC code, but their linkers get confused if
12493 # the symbol is explicitly referenced. Since portable code cannot
12494 # rely on this symbol name, it's probably fine to never include it in
12495 # preloaded symbol tables.
12496 extract_expsyms_cmds=
12497
12498 case $host_os in
12499 cygwin* | mingw* | pw32*)
12500 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12501 # When not using gcc, we currently assume that we are using
12502 # Microsoft Visual C++.
12503 if test "$GCC" != yes; then
12504 with_gnu_ld=no
12505 fi
12506 ;;
12507 openbsd*)
12508 with_gnu_ld=no
12509 ;;
12510 esac
12511
12512 ld_shlibs_F77=yes
12513 if test "$with_gnu_ld" = yes; then
12514 # If archive_cmds runs LD, not CC, wlarc should be empty
12515 wlarc='${wl}'
12516
12517 # See if GNU ld supports shared libraries.
12518 case $host_os in
12519 aix3* | aix4* | aix5*)
12520 # On AIX/PPC, the GNU linker is very broken
12521 if test "$host_cpu" != ia64; then
12522 ld_shlibs_F77=no
12523 cat <<EOF 1>&2
12524
12525 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12526 *** to be unable to reliably create shared libraries on AIX.
12527 *** Therefore, libtool is disabling shared libraries support. If you
12528 *** really care for shared libraries, you may want to modify your PATH
12529 *** so that a non-GNU linker is found, and then restart.
12530
12531 EOF
12532 fi
12533 ;;
12534
12535 amigaos*)
12536 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)'
12537 hardcode_libdir_flag_spec_F77='-L$libdir'
12538 hardcode_minus_L_F77=yes
12539
12540 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12541 # that the semantics of dynamic libraries on AmigaOS, at least up
12542 # to version 4, is to share data among multiple programs linked
12543 # with the same dynamic library. Since this doesn't match the
12544 # behavior of shared libraries on other platforms, we can't use
12545 # them.
12546 ld_shlibs_F77=no
12547 ;;
12548
12549 beos*)
12550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12551 allow_undefined_flag_F77=unsupported
12552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12553 # support --undefined. This deserves some investigation. FIXME
12554 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12555 else
12556 ld_shlibs_F77=no
12557 fi
12558 ;;
12559
12560 cygwin* | mingw* | pw32*)
12561 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12562 # as there is no search path for DLLs.
12563 hardcode_libdir_flag_spec_F77='-L$libdir'
12564 allow_undefined_flag_F77=unsupported
12565 always_export_symbols_F77=no
12566 enable_shared_with_static_runtimes_F77=yes
12567 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12568
12569 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12570 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12571 # If the export-symbols file already is a .def file (1st line
12572 # is EXPORTS), use it as is; otherwise, prepend...
12573 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12574 cp $export_symbols $output_objdir/$soname.def;
12575 else
12576 echo EXPORTS > $output_objdir/$soname.def;
12577 cat $export_symbols >> $output_objdir/$soname.def;
12578 fi~
12579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12580 else
12581 ld_shlibs=no
12582 fi
12583 ;;
12584
12585 netbsd*)
12586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12587 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12588 wlarc=
12589 else
12590 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12591 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12592 fi
12593 ;;
12594
12595 solaris* | sysv5*)
12596 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12597 ld_shlibs_F77=no
12598 cat <<EOF 1>&2
12599
12600 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12601 *** create shared libraries on Solaris systems. Therefore, libtool
12602 *** is disabling shared libraries support. We urge you to upgrade GNU
12603 *** binutils to release 2.9.1 or newer. Another option is to modify
12604 *** your PATH or compiler configuration so that the native linker is
12605 *** used, and then restart.
12606
12607 EOF
12608 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12611 else
12612 ld_shlibs_F77=no
12613 fi
12614 ;;
12615
12616 sunos4*)
12617 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12618 wlarc=
12619 hardcode_direct_F77=yes
12620 hardcode_shlibpath_var_F77=no
12621 ;;
12622
12623 *)
12624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12625 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12626 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12627 else
12628 ld_shlibs_F77=no
12629 fi
12630 ;;
12631 esac
12632
12633 if test "$ld_shlibs_F77" = yes; then
12634 runpath_var=LD_RUN_PATH
12635 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12636 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12637 # ancient GNU ld didn't support --whole-archive et. al.
12638 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12639 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12640 else
12641 whole_archive_flag_spec_F77=
12642 fi
12643 fi
12644 else
12645 # PORTME fill in a description of your system's linker (not GNU ld)
12646 case $host_os in
12647 aix3*)
12648 allow_undefined_flag_F77=unsupported
12649 always_export_symbols_F77=yes
12650 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'
12651 # Note: this linker hardcodes the directories in LIBPATH if there
12652 # are no directories specified by -L.
12653 hardcode_minus_L_F77=yes
12654 if test "$GCC" = yes && test -z "$link_static_flag"; then
12655 # Neither direct hardcoding nor static linking is supported with a
12656 # broken collect2.
12657 hardcode_direct_F77=unsupported
12658 fi
12659 ;;
12660
12661 aix4* | aix5*)
12662 if test "$host_cpu" = ia64; then
12663 # On IA64, the linker does run time linking by default, so we don't
12664 # have to do anything special.
12665 aix_use_runtimelinking=no
12666 exp_sym_flag='-Bexport'
12667 no_entry_flag=""
12668 else
12669 # If we're using GNU nm, then we don't want the "-C" option.
12670 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12671 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12672 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'
12673 else
12674 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'
12675 fi
12676 aix_use_runtimelinking=no
12677
12678 # Test if we are trying to use run time linking or normal
12679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12680 # need to do runtime linking.
12681 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12682 for ld_flag in $LDFLAGS; do
12683 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12684 aix_use_runtimelinking=yes
12685 break
12686 fi
12687 done
12688 esac
12689
12690 exp_sym_flag='-bexport'
12691 no_entry_flag='-bnoentry'
12692 fi
12693
12694 # When large executables or shared objects are built, AIX ld can
12695 # have problems creating the table of contents. If linking a library
12696 # or program results in "error TOC overflow" add -mminimal-toc to
12697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12699
12700 archive_cmds_F77=''
12701 hardcode_direct_F77=yes
12702 hardcode_libdir_separator_F77=':'
12703 link_all_deplibs_F77=yes
12704
12705 if test "$GCC" = yes; then
12706 case $host_os in aix4.012|aix4.012.*)
12707 # We only want to do this on AIX 4.2 and lower, the check
12708 # below for broken collect2 doesn't work under 4.3+
12709 collect2name=`${CC} -print-prog-name=collect2`
12710 if test -f "$collect2name" && \
12711 strings "$collect2name" | grep resolve_lib_name >/dev/null
12712 then
12713 # We have reworked collect2
12714 hardcode_direct_F77=yes
12715 else
12716 # We have old collect2
12717 hardcode_direct_F77=unsupported
12718 # It fails to find uninstalled libraries when the uninstalled
12719 # path is not listed in the libpath. Setting hardcode_minus_L
12720 # to unsupported forces relinking
12721 hardcode_minus_L_F77=yes
12722 hardcode_libdir_flag_spec_F77='-L$libdir'
12723 hardcode_libdir_separator_F77=
12724 fi
12725 esac
12726 shared_flag='-shared'
12727 else
12728 # not using gcc
12729 if test "$host_cpu" = ia64; then
12730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12731 # chokes on -Wl,-G. The following line is correct:
12732 shared_flag='-G'
12733 else
12734 if test "$aix_use_runtimelinking" = yes; then
12735 shared_flag='${wl}-G'
12736 else
12737 shared_flag='${wl}-bM:SRE'
12738 fi
12739 fi
12740 fi
12741
12742 # It seems that -bexpall does not export symbols beginning with
12743 # underscore (_), so it is better to generate a list of symbols to export.
12744 always_export_symbols_F77=yes
12745 if test "$aix_use_runtimelinking" = yes; then
12746 # Warning - without using the other runtime loading flags (-brtl),
12747 # -berok will link without error, but may produce a broken library.
12748 allow_undefined_flag_F77='-berok'
12749 # Determine the default libpath from the value encoded in an empty executable.
12750 cat >conftest.$ac_ext <<_ACEOF
12751 program main
12752
12753 end
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767
12768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12769 }'`
12770 # Check for a 64-bit object if we didn't find anything.
12771 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; }
12772 }'`; fi
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 cat conftest.$ac_ext >&5
12776 fi
12777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12779
12780 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12781 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12782 else
12783 if test "$host_cpu" = ia64; then
12784 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12785 allow_undefined_flag_F77="-z nodefs"
12786 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12787 else
12788 # Determine the default libpath from the value encoded in an empty executable.
12789 cat >conftest.$ac_ext <<_ACEOF
12790 program main
12791
12792 end
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806
12807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12808 }'`
12809 # Check for a 64-bit object if we didn't find anything.
12810 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; }
12811 }'`; fi
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 cat conftest.$ac_ext >&5
12815 fi
12816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12817 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12818
12819 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12820 # Warning - without using the other run time loading flags,
12821 # -berok will link without error, but may produce a broken library.
12822 no_undefined_flag_F77=' ${wl}-bernotok'
12823 allow_undefined_flag_F77=' ${wl}-berok'
12824 # -bexpall does not export symbols beginning with underscore (_)
12825 always_export_symbols_F77=yes
12826 # Exported symbols can be pulled into shared objects from archives
12827 whole_archive_flag_spec_F77=' '
12828 archive_cmds_need_lc_F77=yes
12829 # This is similar to how AIX traditionally builds it's shared libraries.
12830 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12831 fi
12832 fi
12833 ;;
12834
12835 amigaos*)
12836 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)'
12837 hardcode_libdir_flag_spec_F77='-L$libdir'
12838 hardcode_minus_L_F77=yes
12839 # see comment about different semantics on the GNU ld section
12840 ld_shlibs_F77=no
12841 ;;
12842
12843 bsdi4*)
12844 export_dynamic_flag_spec_F77=-rdynamic
12845 ;;
12846
12847 cygwin* | mingw* | pw32*)
12848 # When not using gcc, we currently assume that we are using
12849 # Microsoft Visual C++.
12850 # hardcode_libdir_flag_spec is actually meaningless, as there is
12851 # no search path for DLLs.
12852 hardcode_libdir_flag_spec_F77=' '
12853 allow_undefined_flag_F77=unsupported
12854 # Tell ltmain to make .lib files, not .a files.
12855 libext=lib
12856 # Tell ltmain to make .dll files, not .so files.
12857 shrext=".dll"
12858 # FIXME: Setting linknames here is a bad hack.
12859 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12860 # The linker will automatically build a .lib file if we build a DLL.
12861 old_archive_From_new_cmds_F77='true'
12862 # FIXME: Should let the user specify the lib program.
12863 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12864 fix_srcfile_path='`cygpath -w "$srcfile"`'
12865 enable_shared_with_static_runtimes_F77=yes
12866 ;;
12867
12868 darwin* | rhapsody*)
12869 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12870 archive_cmds_need_lc_F77=no
12871 case "$host_os" in
12872 rhapsody* | darwin1.[012])
12873 allow_undefined_flag_F77='-undefined suppress'
12874 ;;
12875 *) # Darwin 1.3 on
12876 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12877 ;;
12878 esac
12879 # FIXME: Relying on posixy $() will cause problems for
12880 # cross-compilation, but unfortunately the echo tests do not
12881 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12882 # `"' quotes if we put them in here... so don't!
12883 lt_int_apple_cc_single_mod=no
12884 output_verbose_link_cmd='echo'
12885 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12886 lt_int_apple_cc_single_mod=yes
12887 fi
12888 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12889 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12890 else
12891 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12892 fi
12893 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
12894 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12895 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12896 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12897 else
12898 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12899 fi
12900 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12901 hardcode_direct_F77=no
12902 hardcode_automatic_F77=yes
12903 hardcode_shlibpath_var_F77=unsupported
12904 whole_archive_flag_spec_F77='-all_load $convenience'
12905 link_all_deplibs_F77=yes
12906 fi
12907 ;;
12908
12909 dgux*)
12910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_libdir_flag_spec_F77='-L$libdir'
12912 hardcode_shlibpath_var_F77=no
12913 ;;
12914
12915 freebsd1*)
12916 ld_shlibs_F77=no
12917 ;;
12918
12919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12920 # support. Future versions do this automatically, but an explicit c++rt0.o
12921 # does not break anything, and helps significantly (at the cost of a little
12922 # extra space).
12923 freebsd2.2*)
12924 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12925 hardcode_libdir_flag_spec_F77='-R$libdir'
12926 hardcode_direct_F77=yes
12927 hardcode_shlibpath_var_F77=no
12928 ;;
12929
12930 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12931 freebsd2*)
12932 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12933 hardcode_direct_F77=yes
12934 hardcode_minus_L_F77=yes
12935 hardcode_shlibpath_var_F77=no
12936 ;;
12937
12938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12939 freebsd*)
12940 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12941 hardcode_libdir_flag_spec_F77='-R$libdir'
12942 hardcode_direct_F77=yes
12943 hardcode_shlibpath_var_F77=no
12944 ;;
12945
12946 hpux9*)
12947 if test "$GCC" = yes; then
12948 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'
12949 else
12950 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'
12951 fi
12952 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12953 hardcode_libdir_separator_F77=:
12954 hardcode_direct_F77=yes
12955
12956 # hardcode_minus_L: Not really in the search PATH,
12957 # but as the default location of the library.
12958 hardcode_minus_L_F77=yes
12959 export_dynamic_flag_spec_F77='${wl}-E'
12960 ;;
12961
12962 hpux10* | hpux11*)
12963 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12964 case "$host_cpu" in
12965 hppa*64*|ia64*)
12966 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12967 ;;
12968 *)
12969 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12970 ;;
12971 esac
12972 else
12973 case "$host_cpu" in
12974 hppa*64*|ia64*)
12975 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12976 ;;
12977 *)
12978 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12979 ;;
12980 esac
12981 fi
12982 if test "$with_gnu_ld" = no; then
12983 case "$host_cpu" in
12984 hppa*64*)
12985 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12986 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12987 hardcode_libdir_separator_F77=:
12988 hardcode_direct_F77=no
12989 hardcode_shlibpath_var_F77=no
12990 ;;
12991 ia64*)
12992 hardcode_libdir_flag_spec_F77='-L$libdir'
12993 hardcode_direct_F77=no
12994 hardcode_shlibpath_var_F77=no
12995
12996 # hardcode_minus_L: Not really in the search PATH,
12997 # but as the default location of the library.
12998 hardcode_minus_L_F77=yes
12999 ;;
13000 *)
13001 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13002 hardcode_libdir_separator_F77=:
13003 hardcode_direct_F77=yes
13004 export_dynamic_flag_spec_F77='${wl}-E'
13005
13006 # hardcode_minus_L: Not really in the search PATH,
13007 # but as the default location of the library.
13008 hardcode_minus_L_F77=yes
13009 ;;
13010 esac
13011 fi
13012 ;;
13013
13014 irix5* | irix6* | nonstopux*)
13015 if test "$GCC" = yes; then
13016 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'
13017 else
13018 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'
13019 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13020 fi
13021 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13022 hardcode_libdir_separator_F77=:
13023 link_all_deplibs_F77=yes
13024 ;;
13025
13026 netbsd*)
13027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13028 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13029 else
13030 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13031 fi
13032 hardcode_libdir_flag_spec_F77='-R$libdir'
13033 hardcode_direct_F77=yes
13034 hardcode_shlibpath_var_F77=no
13035 ;;
13036
13037 newsos6)
13038 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13039 hardcode_direct_F77=yes
13040 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13041 hardcode_libdir_separator_F77=:
13042 hardcode_shlibpath_var_F77=no
13043 ;;
13044
13045 openbsd*)
13046 hardcode_direct_F77=yes
13047 hardcode_shlibpath_var_F77=no
13048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13049 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13050 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13051 export_dynamic_flag_spec_F77='${wl}-E'
13052 else
13053 case $host_os in
13054 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13055 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_libdir_flag_spec_F77='-R$libdir'
13057 ;;
13058 *)
13059 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13061 ;;
13062 esac
13063 fi
13064 ;;
13065
13066 os2*)
13067 hardcode_libdir_flag_spec_F77='-L$libdir'
13068 hardcode_minus_L_F77=yes
13069 allow_undefined_flag_F77=unsupported
13070 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'
13071 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13072 ;;
13073
13074 osf3*)
13075 if test "$GCC" = yes; then
13076 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13077 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'
13078 else
13079 allow_undefined_flag_F77=' -expect_unresolved \*'
13080 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'
13081 fi
13082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13083 hardcode_libdir_separator_F77=:
13084 ;;
13085
13086 osf4* | osf5*) # as osf3* with the addition of -msym flag
13087 if test "$GCC" = yes; then
13088 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13089 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'
13090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13091 else
13092 allow_undefined_flag_F77=' -expect_unresolved \*'
13093 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'
13094 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~
13095 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13096
13097 # Both c and cxx compiler support -rpath directly
13098 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13099 fi
13100 hardcode_libdir_separator_F77=:
13101 ;;
13102
13103 sco3.2v5*)
13104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13105 hardcode_shlibpath_var_F77=no
13106 export_dynamic_flag_spec_F77='${wl}-Bexport'
13107 runpath_var=LD_RUN_PATH
13108 hardcode_runpath_var=yes
13109 ;;
13110
13111 solaris*)
13112 no_undefined_flag_F77=' -z text'
13113 if test "$GCC" = yes; then
13114 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13116 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13117 else
13118 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13120 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13121 fi
13122 hardcode_libdir_flag_spec_F77='-R$libdir'
13123 hardcode_shlibpath_var_F77=no
13124 case $host_os in
13125 solaris2.[0-5] | solaris2.[0-5].*) ;;
13126 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13127 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13128 esac
13129 link_all_deplibs_F77=yes
13130 ;;
13131
13132 sunos4*)
13133 if test "x$host_vendor" = xsequent; then
13134 # Use $CC to link under sequent, because it throws in some extra .o
13135 # files that make .init and .fini sections work.
13136 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13137 else
13138 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13139 fi
13140 hardcode_libdir_flag_spec_F77='-L$libdir'
13141 hardcode_direct_F77=yes
13142 hardcode_minus_L_F77=yes
13143 hardcode_shlibpath_var_F77=no
13144 ;;
13145
13146 sysv4)
13147 case $host_vendor in
13148 sni)
13149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13150 hardcode_direct_F77=yes # is this really true???
13151 ;;
13152 siemens)
13153 ## LD is ld it makes a PLAMLIB
13154 ## CC just makes a GrossModule.
13155 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13156 reload_cmds_F77='$CC -r -o $output$reload_objs'
13157 hardcode_direct_F77=no
13158 ;;
13159 motorola)
13160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13161 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13162 ;;
13163 esac
13164 runpath_var='LD_RUN_PATH'
13165 hardcode_shlibpath_var_F77=no
13166 ;;
13167
13168 sysv4.3*)
13169 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 hardcode_shlibpath_var_F77=no
13171 export_dynamic_flag_spec_F77='-Bexport'
13172 ;;
13173
13174 sysv4*MP*)
13175 if test -d /usr/nec; then
13176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_shlibpath_var_F77=no
13178 runpath_var=LD_RUN_PATH
13179 hardcode_runpath_var=yes
13180 ld_shlibs_F77=yes
13181 fi
13182 ;;
13183
13184 sysv4.2uw2*)
13185 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13186 hardcode_direct_F77=yes
13187 hardcode_minus_L_F77=no
13188 hardcode_shlibpath_var_F77=no
13189 hardcode_runpath_var=yes
13190 runpath_var=LD_RUN_PATH
13191 ;;
13192
13193 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13194 no_undefined_flag_F77='${wl}-z ${wl}text'
13195 if test "$GCC" = yes; then
13196 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13197 else
13198 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13199 fi
13200 runpath_var='LD_RUN_PATH'
13201 hardcode_shlibpath_var_F77=no
13202 ;;
13203
13204 sysv5*)
13205 no_undefined_flag_F77=' -z text'
13206 # $CC -shared without GNU ld will not create a library from C++
13207 # object files and a static libstdc++, better avoid it by now
13208 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13209 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13210 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13211 hardcode_libdir_flag_spec_F77=
13212 hardcode_shlibpath_var_F77=no
13213 runpath_var='LD_RUN_PATH'
13214 ;;
13215
13216 uts4*)
13217 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13218 hardcode_libdir_flag_spec_F77='-L$libdir'
13219 hardcode_shlibpath_var_F77=no
13220 ;;
13221
13222 *)
13223 ld_shlibs_F77=no
13224 ;;
13225 esac
13226 fi
13227
13228 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13229 echo "${ECHO_T}$ld_shlibs_F77" >&6
13230 test "$ld_shlibs_F77" = no && can_build_shared=no
13231
13232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13233 if test "$GCC" = yes; then
13234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13235 fi
13236
13237 #
13238 # Do we need to explicitly link libc?
13239 #
13240 case "x$archive_cmds_need_lc_F77" in
13241 x|xyes)
13242 # Assume -lc should be added
13243 archive_cmds_need_lc_F77=yes
13244
13245 if test "$enable_shared" = yes && test "$GCC" = yes; then
13246 case $archive_cmds_F77 in
13247 *'~'*)
13248 # FIXME: we may have to deal with multi-command sequences.
13249 ;;
13250 '$CC '*)
13251 # Test whether the compiler implicitly links with -lc since on some
13252 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13253 # to ld, don't add -lc before -lgcc.
13254 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13255 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13256 $rm conftest*
13257 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13258
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } 2>conftest.err; then
13264 soname=conftest
13265 lib=conftest
13266 libobjs=conftest.$ac_objext
13267 deplibs=
13268 wl=$lt_prog_compiler_wl_F77
13269 compiler_flags=-v
13270 linker_flags=-v
13271 verstring=
13272 output_objdir=.
13273 libname=conftest
13274 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13275 allow_undefined_flag_F77=
13276 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13277 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }
13281 then
13282 archive_cmds_need_lc_F77=no
13283 else
13284 archive_cmds_need_lc_F77=yes
13285 fi
13286 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13287 else
13288 cat conftest.err 1>&5
13289 fi
13290 $rm conftest*
13291 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13292 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13293 ;;
13294 esac
13295 fi
13296 ;;
13297 esac
13298
13299 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13301 hardcode_action_F77=
13302 if test -n "$hardcode_libdir_flag_spec_F77" || \
13303 test -n "$runpath_var F77" || \
13304 test "X$hardcode_automatic_F77"="Xyes" ; then
13305
13306 # We can hardcode non-existant directories.
13307 if test "$hardcode_direct_F77" != no &&
13308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13309 # have to relink, otherwise we might link with an installed library
13310 # when we should be linking with a yet-to-be-installed one
13311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13312 test "$hardcode_minus_L_F77" != no; then
13313 # Linking always hardcodes the temporary library directory.
13314 hardcode_action_F77=relink
13315 else
13316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13317 hardcode_action_F77=immediate
13318 fi
13319 else
13320 # We cannot hardcode anything, or else we can only hardcode existing
13321 # directories.
13322 hardcode_action_F77=unsupported
13323 fi
13324 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13325 echo "${ECHO_T}$hardcode_action_F77" >&6
13326
13327 if test "$hardcode_action_F77" = relink; then
13328 # Fast installation is not supported
13329 enable_fast_install=no
13330 elif test "$shlibpath_overrides_runpath" = yes ||
13331 test "$enable_shared" = no; then
13332 # Fast installation is not necessary
13333 enable_fast_install=needless
13334 fi
13335
13336 striplib=
13337 old_striplib=
13338 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13339 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13340 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13342 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13343 echo "$as_me:$LINENO: result: yes" >&5
13344 echo "${ECHO_T}yes" >&6
13345 else
13346 # FIXME - insert some real tests, host_os isn't really good enough
13347 case $host_os in
13348 darwin*)
13349 if test -n "$STRIP" ; then
13350 striplib="$STRIP -x"
13351 echo "$as_me:$LINENO: result: yes" >&5
13352 echo "${ECHO_T}yes" >&6
13353 else
13354 echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6
13356 fi
13357 ;;
13358 *)
13359 echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6
13361 ;;
13362 esac
13363 fi
13364
13365 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13367 library_names_spec=
13368 libname_spec='lib$name'
13369 soname_spec=
13370 shrext=".so"
13371 postinstall_cmds=
13372 postuninstall_cmds=
13373 finish_cmds=
13374 finish_eval=
13375 shlibpath_var=
13376 shlibpath_overrides_runpath=unknown
13377 version_type=none
13378 dynamic_linker="$host_os ld.so"
13379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13380 if test "$GCC" = yes; then
13381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13383 # if the path contains ";" then we assume it to be the separator
13384 # otherwise default to the standard path separator (i.e. ":") - it is
13385 # assumed that no part of a normal pathname contains ";" but that should
13386 # okay in the real world where ";" in dirpaths is itself problematic.
13387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13388 else
13389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13390 fi
13391 else
13392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13393 fi
13394 need_lib_prefix=unknown
13395 hardcode_into_libs=no
13396
13397 # when you set need_version to no, make sure it does not cause -set_version
13398 # flags to be left without arguments
13399 need_version=unknown
13400
13401 case $host_os in
13402 aix3*)
13403 version_type=linux
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13405 shlibpath_var=LIBPATH
13406
13407 # AIX 3 has no versioning support, so we append a major version to the name.
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 ;;
13410
13411 aix4* | aix5*)
13412 version_type=linux
13413 need_lib_prefix=no
13414 need_version=no
13415 hardcode_into_libs=yes
13416 if test "$host_cpu" = ia64; then
13417 # AIX 5 supports IA64
13418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 else
13421 # With GCC up to 2.95.x, collect2 would create an import file
13422 # for dependence libraries. The import file would start with
13423 # the line `#! .'. This would cause the generated library to
13424 # depend on `.', always an invalid library. This was fixed in
13425 # development snapshots of GCC prior to 3.0.
13426 case $host_os in
13427 aix4 | aix4.[01] | aix4.[01].*)
13428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13429 echo ' yes '
13430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13431 :
13432 else
13433 can_build_shared=no
13434 fi
13435 ;;
13436 esac
13437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13438 # soname into executable. Probably we can add versioning support to
13439 # collect2, so additional links can be useful in future.
13440 if test "$aix_use_runtimelinking" = yes; then
13441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13442 # instead of lib<name>.a to let people know that these are not
13443 # typical AIX shared libraries.
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 else
13446 # We preserve .a as extension for shared libraries through AIX4.2
13447 # and later when we are not doing run time linking.
13448 library_names_spec='${libname}${release}.a $libname.a'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 fi
13451 shlibpath_var=LIBPATH
13452 fi
13453 ;;
13454
13455 amigaos*)
13456 library_names_spec='$libname.ixlibrary $libname.a'
13457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13458 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'
13459 ;;
13460
13461 beos*)
13462 library_names_spec='${libname}${shared_ext}'
13463 dynamic_linker="$host_os ld.so"
13464 shlibpath_var=LIBRARY_PATH
13465 ;;
13466
13467 bsdi4*)
13468 version_type=linux
13469 need_version=no
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
13472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13476 # the default ld.so.conf also contains /usr/contrib/lib and
13477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13478 # libtool to hard-code these into programs
13479 ;;
13480
13481 cygwin* | mingw* | pw32*)
13482 version_type=windows
13483 shrext=".dll"
13484 need_version=no
13485 need_lib_prefix=no
13486
13487 case $GCC,$host_os in
13488 yes,cygwin* | yes,mingw* | yes,pw32*)
13489 library_names_spec='$libname.dll.a'
13490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13491 postinstall_cmds='base_file=`basename \${file}`~
13492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13493 dldir=$destdir/`dirname \$dlpath`~
13494 test -d \$dldir || mkdir -p \$dldir~
13495 $install_prog $dir/$dlname \$dldir/$dlname'
13496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13497 dlpath=$dir/\$dldll~
13498 $rm \$dlpath'
13499 shlibpath_overrides_runpath=yes
13500
13501 case $host_os in
13502 cygwin*)
13503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13505 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13506 ;;
13507 mingw*)
13508 # MinGW DLLs use traditional 'lib' prefix
13509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13511 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13512 # It is most probably a Windows format PATH printed by
13513 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13514 # path with ; separators, and with drive letters. We can handle the
13515 # drive letters (cygwin fileutils understands them), so leave them,
13516 # especially as we might pass files found there to a mingw objdump,
13517 # which wouldn't understand a cygwinified path. Ahh.
13518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13519 else
13520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13521 fi
13522 ;;
13523 pw32*)
13524 # pw32 DLLs use 'pw' prefix rather than 'lib'
13525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13526 ;;
13527 esac
13528 ;;
13529
13530 *)
13531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13532 ;;
13533 esac
13534 dynamic_linker='Win32 ld.exe'
13535 # FIXME: first we should search . and the directory the executable is in
13536 shlibpath_var=PATH
13537 ;;
13538
13539 darwin* | rhapsody*)
13540 dynamic_linker="$host_os dyld"
13541 version_type=darwin
13542 need_lib_prefix=no
13543 need_version=no
13544 # FIXME: Relying on posixy $() will cause problems for
13545 # cross-compilation, but unfortunately the echo tests do not
13546 # yet detect zsh echo's removal of \ escapes.
13547 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13548 soname_spec='${libname}${release}${major}$shared_ext'
13549 shlibpath_overrides_runpath=yes
13550 shlibpath_var=DYLD_LIBRARY_PATH
13551 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13552 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13553 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13554 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"`
13555 fi
13556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13557 ;;
13558
13559 dgux*)
13560 version_type=linux
13561 need_lib_prefix=no
13562 need_version=no
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 shlibpath_var=LD_LIBRARY_PATH
13566 ;;
13567
13568 freebsd1*)
13569 dynamic_linker=no
13570 ;;
13571
13572 freebsd*)
13573 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13574 version_type=freebsd-$objformat
13575 case $version_type in
13576 freebsd-elf*)
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13578 need_version=no
13579 need_lib_prefix=no
13580 ;;
13581 freebsd-*)
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13583 need_version=yes
13584 ;;
13585 esac
13586 shlibpath_var=LD_LIBRARY_PATH
13587 case $host_os in
13588 freebsd2*)
13589 shlibpath_overrides_runpath=yes
13590 ;;
13591 freebsd3.01* | freebsdelf3.01*)
13592 shlibpath_overrides_runpath=yes
13593 hardcode_into_libs=yes
13594 ;;
13595 *) # from 3.2 on
13596 shlibpath_overrides_runpath=no
13597 hardcode_into_libs=yes
13598 ;;
13599 esac
13600 ;;
13601
13602 gnu*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 hardcode_into_libs=yes
13610 ;;
13611
13612 hpux9* | hpux10* | hpux11*)
13613 # Give a soname corresponding to the major version so that dld.sl refuses to
13614 # link against other versions.
13615 version_type=sunos
13616 need_lib_prefix=no
13617 need_version=no
13618 case "$host_cpu" in
13619 ia64*)
13620 shrext='.so'
13621 hardcode_into_libs=yes
13622 dynamic_linker="$host_os dld.so"
13623 shlibpath_var=LD_LIBRARY_PATH
13624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626 soname_spec='${libname}${release}${shared_ext}$major'
13627 if test "X$HPUX_IA64_MODE" = X32; then
13628 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13629 else
13630 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13631 fi
13632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13633 ;;
13634 hppa*64*)
13635 shrext='.sl'
13636 hardcode_into_libs=yes
13637 dynamic_linker="$host_os dld.sl"
13638 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641 soname_spec='${libname}${release}${shared_ext}$major'
13642 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13644 ;;
13645 *)
13646 shrext='.sl'
13647 dynamic_linker="$host_os dld.sl"
13648 shlibpath_var=SHLIB_PATH
13649 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 ;;
13653 esac
13654 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13655 postinstall_cmds='chmod 555 $lib'
13656 ;;
13657
13658 irix5* | irix6* | nonstopux*)
13659 case $host_os in
13660 nonstopux*) version_type=nonstopux ;;
13661 *)
13662 if test "$lt_cv_prog_gnu_ld" = yes; then
13663 version_type=linux
13664 else
13665 version_type=irix
13666 fi ;;
13667 esac
13668 need_lib_prefix=no
13669 need_version=no
13670 soname_spec='${libname}${release}${shared_ext}$major'
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13672 case $host_os in
13673 irix5* | nonstopux*)
13674 libsuff= shlibsuff=
13675 ;;
13676 *)
13677 case $LD in # libtool.m4 will add one of these switches to LD
13678 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13679 libsuff= shlibsuff= libmagic=32-bit;;
13680 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13681 libsuff=32 shlibsuff=N32 libmagic=N32;;
13682 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13683 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13684 *) libsuff= shlibsuff= libmagic=never-match;;
13685 esac
13686 ;;
13687 esac
13688 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13689 shlibpath_overrides_runpath=no
13690 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13691 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13692 hardcode_into_libs=yes
13693 ;;
13694
13695 # No shared lib support for Linux oldld, aout, or coff.
13696 linux*oldld* | linux*aout* | linux*coff*)
13697 dynamic_linker=no
13698 ;;
13699
13700 # This must be Linux ELF.
13701 linux*)
13702 version_type=linux
13703 need_lib_prefix=no
13704 need_version=no
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=no
13710 # This implies no fast_install, which is unacceptable.
13711 # Some rework will be needed to allow for fast_install
13712 # before this can be enabled.
13713 hardcode_into_libs=yes
13714
13715 # We used to test for /lib/ld.so.1 and disable shared libraries on
13716 # powerpc, because MkLinux only supported shared libraries with the
13717 # GNU dynamic linker. Since this was broken with cross compilers,
13718 # most powerpc-linux boxes support dynamic linking these days and
13719 # people can always --disable-shared, the test was removed, and we
13720 # assume the GNU/Linux dynamic linker is in use.
13721 dynamic_linker='GNU/Linux ld.so'
13722 ;;
13723
13724 netbsd*)
13725 version_type=sunos
13726 need_lib_prefix=no
13727 need_version=no
13728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13731 dynamic_linker='NetBSD (a.out) ld.so'
13732 else
13733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13734 soname_spec='${libname}${release}${shared_ext}$major'
13735 dynamic_linker='NetBSD ld.elf_so'
13736 fi
13737 shlibpath_var=LD_LIBRARY_PATH
13738 shlibpath_overrides_runpath=yes
13739 hardcode_into_libs=yes
13740 ;;
13741
13742 newsos6)
13743 version_type=linux
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 shlibpath_overrides_runpath=yes
13747 ;;
13748
13749 nto-qnx)
13750 version_type=linux
13751 need_lib_prefix=no
13752 need_version=no
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 shlibpath_overrides_runpath=yes
13757 ;;
13758
13759 openbsd*)
13760 version_type=sunos
13761 need_lib_prefix=no
13762 need_version=no
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13765 shlibpath_var=LD_LIBRARY_PATH
13766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13767 case $host_os in
13768 openbsd2.[89] | openbsd2.[89].*)
13769 shlibpath_overrides_runpath=no
13770 ;;
13771 *)
13772 shlibpath_overrides_runpath=yes
13773 ;;
13774 esac
13775 else
13776 shlibpath_overrides_runpath=yes
13777 fi
13778 ;;
13779
13780 os2*)
13781 libname_spec='$name'
13782 shrext=".dll"
13783 need_lib_prefix=no
13784 library_names_spec='$libname${shared_ext} $libname.a'
13785 dynamic_linker='OS/2 ld.exe'
13786 shlibpath_var=LIBPATH
13787 ;;
13788
13789 osf3* | osf4* | osf5*)
13790 version_type=osf
13791 need_lib_prefix=no
13792 need_version=no
13793 soname_spec='${libname}${release}${shared_ext}$major'
13794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13798 ;;
13799
13800 sco3.2v5*)
13801 version_type=osf
13802 soname_spec='${libname}${release}${shared_ext}$major'
13803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13804 shlibpath_var=LD_LIBRARY_PATH
13805 ;;
13806
13807 solaris*)
13808 version_type=linux
13809 need_lib_prefix=no
13810 need_version=no
13811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13812 soname_spec='${libname}${release}${shared_ext}$major'
13813 shlibpath_var=LD_LIBRARY_PATH
13814 shlibpath_overrides_runpath=yes
13815 hardcode_into_libs=yes
13816 # ldd complains unless libraries are executable
13817 postinstall_cmds='chmod +x $lib'
13818 ;;
13819
13820 sunos4*)
13821 version_type=sunos
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 shlibpath_overrides_runpath=yes
13826 if test "$with_gnu_ld" = yes; then
13827 need_lib_prefix=no
13828 fi
13829 need_version=yes
13830 ;;
13831
13832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13833 version_type=linux
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 case $host_vendor in
13838 sni)
13839 shlibpath_overrides_runpath=no
13840 need_lib_prefix=no
13841 export_dynamic_flag_spec='${wl}-Blargedynsym'
13842 runpath_var=LD_RUN_PATH
13843 ;;
13844 siemens)
13845 need_lib_prefix=no
13846 ;;
13847 motorola)
13848 need_lib_prefix=no
13849 need_version=no
13850 shlibpath_overrides_runpath=no
13851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13852 ;;
13853 esac
13854 ;;
13855
13856 sysv4*MP*)
13857 if test -d /usr/nec ;then
13858 version_type=linux
13859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13860 soname_spec='$libname${shared_ext}.$major'
13861 shlibpath_var=LD_LIBRARY_PATH
13862 fi
13863 ;;
13864
13865 uts4*)
13866 version_type=linux
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868 soname_spec='${libname}${release}${shared_ext}$major'
13869 shlibpath_var=LD_LIBRARY_PATH
13870 ;;
13871
13872 *)
13873 dynamic_linker=no
13874 ;;
13875 esac
13876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13877 echo "${ECHO_T}$dynamic_linker" >&6
13878 test "$dynamic_linker" = no && can_build_shared=no
13879
13880
13881 # The else clause should only fire when bootstrapping the
13882 # libtool distribution, otherwise you forgot to ship ltmain.sh
13883 # with your package, and you will get complaints that there are
13884 # no rules to generate ltmain.sh.
13885 if test -f "$ltmain"; then
13886 # See if we are running on zsh, and set the options which allow our commands through
13887 # without removal of \ escapes.
13888 if test -n "${ZSH_VERSION+set}" ; then
13889 setopt NO_GLOB_SUBST
13890 fi
13891 # Now quote all the things that may contain metacharacters while being
13892 # careful not to overquote the AC_SUBSTed values. We take copies of the
13893 # variables and quote the copies for generation of the libtool script.
13894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13895 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13896 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13897 deplibs_check_method reload_flag reload_cmds need_locks \
13898 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13899 lt_cv_sys_global_symbol_to_c_name_address \
13900 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13901 old_postinstall_cmds old_postuninstall_cmds \
13902 compiler_F77 \
13903 CC_F77 \
13904 LD_F77 \
13905 lt_prog_compiler_wl_F77 \
13906 lt_prog_compiler_pic_F77 \
13907 lt_prog_compiler_static_F77 \
13908 lt_prog_compiler_no_builtin_flag_F77 \
13909 export_dynamic_flag_spec_F77 \
13910 thread_safe_flag_spec_F77 \
13911 whole_archive_flag_spec_F77 \
13912 enable_shared_with_static_runtimes_F77 \
13913 old_archive_cmds_F77 \
13914 old_archive_from_new_cmds_F77 \
13915 predep_objects_F77 \
13916 postdep_objects_F77 \
13917 predeps_F77 \
13918 postdeps_F77 \
13919 compiler_lib_search_path_F77 \
13920 archive_cmds_F77 \
13921 archive_expsym_cmds_F77 \
13922 postinstall_cmds_F77 \
13923 postuninstall_cmds_F77 \
13924 old_archive_from_expsyms_cmds_F77 \
13925 allow_undefined_flag_F77 \
13926 no_undefined_flag_F77 \
13927 export_symbols_cmds_F77 \
13928 hardcode_libdir_flag_spec_F77 \
13929 hardcode_libdir_flag_spec_ld_F77 \
13930 hardcode_libdir_separator_F77 \
13931 hardcode_automatic_F77 \
13932 module_cmds_F77 \
13933 module_expsym_cmds_F77 \
13934 lt_cv_prog_compiler_c_o_F77 \
13935 exclude_expsyms_F77 \
13936 include_expsyms_F77; do
13937
13938 case $var in
13939 old_archive_cmds_F77 | \
13940 old_archive_from_new_cmds_F77 | \
13941 archive_cmds_F77 | \
13942 archive_expsym_cmds_F77 | \
13943 module_cmds_F77 | \
13944 module_expsym_cmds_F77 | \
13945 old_archive_from_expsyms_cmds_F77 | \
13946 export_symbols_cmds_F77 | \
13947 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13948 postinstall_cmds | postuninstall_cmds | \
13949 old_postinstall_cmds | old_postuninstall_cmds | \
13950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13951 # Double-quote double-evaled strings.
13952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13953 ;;
13954 *)
13955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13956 ;;
13957 esac
13958 done
13959
13960 case $lt_echo in
13961 *'\$0 --fallback-echo"')
13962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13963 ;;
13964 esac
13965
13966 cfgfile="$ofile"
13967
13968 cat <<__EOF__ >> "$cfgfile"
13969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13970
13971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13972
13973 # Shell to use when invoking shell scripts.
13974 SHELL=$lt_SHELL
13975
13976 # Whether or not to build shared libraries.
13977 build_libtool_libs=$enable_shared
13978
13979 # Whether or not to build static libraries.
13980 build_old_libs=$enable_static
13981
13982 # Whether or not to add -lc for building shared libraries.
13983 build_libtool_need_lc=$archive_cmds_need_lc_F77
13984
13985 # Whether or not to disallow shared libs when runtime libs are static
13986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
13987
13988 # Whether or not to optimize for fast installation.
13989 fast_install=$enable_fast_install
13990
13991 # The host system.
13992 host_alias=$host_alias
13993 host=$host
13994
13995 # An echo program that does not interpret backslashes.
13996 echo=$lt_echo
13997
13998 # The archiver.
13999 AR=$lt_AR
14000 AR_FLAGS=$lt_AR_FLAGS
14001
14002 # A C compiler.
14003 LTCC=$lt_LTCC
14004
14005 # A language-specific compiler.
14006 CC=$lt_compiler_F77
14007
14008 # Is the compiler the GNU C compiler?
14009 with_gcc=$GCC_F77
14010
14011 # An ERE matcher.
14012 EGREP=$lt_EGREP
14013
14014 # The linker used to build libraries.
14015 LD=$lt_LD_F77
14016
14017 # Whether we need hard or soft links.
14018 LN_S=$lt_LN_S
14019
14020 # A BSD-compatible nm program.
14021 NM=$lt_NM
14022
14023 # A symbol stripping program
14024 STRIP=$STRIP
14025
14026 # Used to examine libraries when file_magic_cmd begins "file"
14027 MAGIC_CMD=$MAGIC_CMD
14028
14029 # Used on cygwin: DLL creation program.
14030 DLLTOOL="$DLLTOOL"
14031
14032 # Used on cygwin: object dumper.
14033 OBJDUMP="$OBJDUMP"
14034
14035 # Used on cygwin: assembler.
14036 AS="$AS"
14037
14038 # The name of the directory that contains temporary libtool files.
14039 objdir=$objdir
14040
14041 # How to create reloadable object files.
14042 reload_flag=$lt_reload_flag
14043 reload_cmds=$lt_reload_cmds
14044
14045 # How to pass a linker flag through the compiler.
14046 wl=$lt_lt_prog_compiler_wl_F77
14047
14048 # Object file suffix (normally "o").
14049 objext="$ac_objext"
14050
14051 # Old archive suffix (normally "a").
14052 libext="$libext"
14053
14054 # Shared library suffix (normally ".so").
14055 shrext='$shrext'
14056
14057 # Executable file suffix (normally "").
14058 exeext="$exeext"
14059
14060 # Additional compiler flags for building library objects.
14061 pic_flag=$lt_lt_prog_compiler_pic_F77
14062 pic_mode=$pic_mode
14063
14064 # What is the maximum length of a command?
14065 max_cmd_len=$lt_cv_sys_max_cmd_len
14066
14067 # Does compiler simultaneously support -c and -o options?
14068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14069
14070 # Must we lock files when doing compilation ?
14071 need_locks=$lt_need_locks
14072
14073 # Do we need the lib prefix for modules?
14074 need_lib_prefix=$need_lib_prefix
14075
14076 # Do we need a version for libraries?
14077 need_version=$need_version
14078
14079 # Whether dlopen is supported.
14080 dlopen_support=$enable_dlopen
14081
14082 # Whether dlopen of programs is supported.
14083 dlopen_self=$enable_dlopen_self
14084
14085 # Whether dlopen of statically linked programs is supported.
14086 dlopen_self_static=$enable_dlopen_self_static
14087
14088 # Compiler flag to prevent dynamic linking.
14089 link_static_flag=$lt_lt_prog_compiler_static_F77
14090
14091 # Compiler flag to turn off builtin functions.
14092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14093
14094 # Compiler flag to allow reflexive dlopens.
14095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14096
14097 # Compiler flag to generate shared objects directly from archives.
14098 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14099
14100 # Compiler flag to generate thread-safe objects.
14101 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14102
14103 # Library versioning type.
14104 version_type=$version_type
14105
14106 # Format of library name prefix.
14107 libname_spec=$lt_libname_spec
14108
14109 # List of archive names. First name is the real one, the rest are links.
14110 # The last name is the one that the linker finds with -lNAME.
14111 library_names_spec=$lt_library_names_spec
14112
14113 # The coded name of the library, if different from the real name.
14114 soname_spec=$lt_soname_spec
14115
14116 # Commands used to build and install an old-style archive.
14117 RANLIB=$lt_RANLIB
14118 old_archive_cmds=$lt_old_archive_cmds_F77
14119 old_postinstall_cmds=$lt_old_postinstall_cmds
14120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14121
14122 # Create an old-style archive from a shared archive.
14123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14124
14125 # Create a temporary old-style archive to link instead of a shared archive.
14126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14127
14128 # Commands used to build and install a shared archive.
14129 archive_cmds=$lt_archive_cmds_F77
14130 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14131 postinstall_cmds=$lt_postinstall_cmds
14132 postuninstall_cmds=$lt_postuninstall_cmds
14133
14134 # Commands used to build a loadable module (assumed same as above if empty)
14135 module_cmds=$lt_module_cmds_F77
14136 module_expsym_cmds=$lt_module_expsym_cmds_F77
14137
14138 # Commands to strip libraries.
14139 old_striplib=$lt_old_striplib
14140 striplib=$lt_striplib
14141
14142 # Dependencies to place before the objects being linked to create a
14143 # shared library.
14144 predep_objects=$lt_predep_objects_F77
14145
14146 # Dependencies to place after the objects being linked to create a
14147 # shared library.
14148 postdep_objects=$lt_postdep_objects_F77
14149
14150 # Dependencies to place before the objects being linked to create a
14151 # shared library.
14152 predeps=$lt_predeps_F77
14153
14154 # Dependencies to place after the objects being linked to create a
14155 # shared library.
14156 postdeps=$lt_postdeps_F77
14157
14158 # The library search path used internally by the compiler when linking
14159 # a shared library.
14160 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14161
14162 # Method to check whether dependent libraries are shared objects.
14163 deplibs_check_method=$lt_deplibs_check_method
14164
14165 # Command to use when deplibs_check_method == file_magic.
14166 file_magic_cmd=$lt_file_magic_cmd
14167
14168 # Flag that allows shared libraries with undefined symbols to be built.
14169 allow_undefined_flag=$lt_allow_undefined_flag_F77
14170
14171 # Flag that forces no undefined symbols.
14172 no_undefined_flag=$lt_no_undefined_flag_F77
14173
14174 # Commands used to finish a libtool library installation in a directory.
14175 finish_cmds=$lt_finish_cmds
14176
14177 # Same as above, but a single script fragment to be evaled but not shown.
14178 finish_eval=$lt_finish_eval
14179
14180 # Take the output of nm and produce a listing of raw symbols and C names.
14181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14182
14183 # Transform the output of nm in a proper C declaration
14184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14185
14186 # Transform the output of nm in a C name address pair
14187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14188
14189 # This is the shared library runtime path variable.
14190 runpath_var=$runpath_var
14191
14192 # This is the shared library path variable.
14193 shlibpath_var=$shlibpath_var
14194
14195 # Is shlibpath searched before the hard-coded library search path?
14196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14197
14198 # How to hardcode a shared library path into an executable.
14199 hardcode_action=$hardcode_action_F77
14200
14201 # Whether we should hardcode library paths into libraries.
14202 hardcode_into_libs=$hardcode_into_libs
14203
14204 # Flag to hardcode \$libdir into a binary during linking.
14205 # This must work even if \$libdir does not exist.
14206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14207
14208 # If ld is used when linking, flag to hardcode \$libdir into
14209 # a binary during linking. This must work even if \$libdir does
14210 # not exist.
14211 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14212
14213 # Whether we need a single -rpath flag with a separated argument.
14214 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14215
14216 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14217 # resulting binary.
14218 hardcode_direct=$hardcode_direct_F77
14219
14220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14221 # resulting binary.
14222 hardcode_minus_L=$hardcode_minus_L_F77
14223
14224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14225 # the resulting binary.
14226 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14227
14228 # Set to yes if building a shared library automatically hardcodes DIR into the library
14229 # and all subsequent libraries and executables linked against it.
14230 hardcode_automatic=$hardcode_automatic_F77
14231
14232 # Variables whose values should be saved in libtool wrapper scripts and
14233 # restored at relink time.
14234 variables_saved_for_relink="$variables_saved_for_relink"
14235
14236 # Whether libtool must link a program against all its dependency libraries.
14237 link_all_deplibs=$link_all_deplibs_F77
14238
14239 # Compile-time system search path for libraries
14240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14241
14242 # Run-time system search path for libraries
14243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14244
14245 # Fix the shell variable \$srcfile for the compiler.
14246 fix_srcfile_path="$fix_srcfile_path_F77"
14247
14248 # Set to yes if exported symbols are required.
14249 always_export_symbols=$always_export_symbols_F77
14250
14251 # The commands to list exported symbols.
14252 export_symbols_cmds=$lt_export_symbols_cmds_F77
14253
14254 # The commands to extract the exported symbol list from a shared archive.
14255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14256
14257 # Symbols that should not be listed in the preloaded symbols.
14258 exclude_expsyms=$lt_exclude_expsyms_F77
14259
14260 # Symbols that must always be exported.
14261 include_expsyms=$lt_include_expsyms_F77
14262
14263 # ### END LIBTOOL TAG CONFIG: $tagname
14264
14265 __EOF__
14266
14267
14268 else
14269 # If there is no Makefile yet, we rely on a make rule to execute
14270 # `config.status --recheck' to rerun these tests and create the
14271 # libtool script then.
14272 test -f Makefile && make "$ltmain"
14273 fi
14274
14275
14276 ac_ext=c
14277 ac_cpp='$CPP $CPPFLAGS'
14278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14281
14282 CC="$lt_save_CC"
14283
14284 else
14285 tagname=""
14286 fi
14287 ;;
14288
14289 GCJ)
14290 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14291
14292
14293
14294 # Source file extension for Java test sources.
14295 ac_ext=java
14296
14297 # Object file extension for compiled Java test sources.
14298 objext=o
14299 objext_GCJ=$objext
14300
14301 # Code to be used in simple compile tests
14302 lt_simple_compile_test_code="class foo {}\n"
14303
14304 # Code to be used in simple link tests
14305 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14306
14307 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14308
14309 # If no C compiler was specified, use CC.
14310 LTCC=${LTCC-"$CC"}
14311
14312 # Allow CC to be a program name with arguments.
14313 compiler=$CC
14314
14315
14316 # Allow CC to be a program name with arguments.
14317 lt_save_CC="$CC"
14318 CC=${GCJ-"gcj"}
14319 compiler=$CC
14320 compiler_GCJ=$CC
14321
14322 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14323 archive_cmds_need_lc_GCJ=no
14324
14325
14326 lt_prog_compiler_no_builtin_flag_GCJ=
14327
14328 if test "$GCC" = yes; then
14329 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14330
14331 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14332 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14333 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336 lt_cv_prog_compiler_rtti_exceptions=no
14337 ac_outfile=conftest.$ac_objext
14338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14339 lt_compiler_flag="-fno-rtti -fno-exceptions"
14340 # Insert the option either (1) after the last *FLAGS variable, or
14341 # (2) before a word containing "conftest.", or (3) at the end.
14342 # Note that $ac_compile itself does not contain backslashes and begins
14343 # with a dollar sign (not a hyphen), so the echo should work correctly.
14344 # The option is referenced via a variable to avoid confusing sed.
14345 lt_compile=`echo "$ac_compile" | $SED \
14346 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348 -e 's:$: $lt_compiler_flag:'`
14349 (eval echo "\"\$as_me:14349: $lt_compile\"" >&5)
14350 (eval "$lt_compile" 2>conftest.err)
14351 ac_status=$?
14352 cat conftest.err >&5
14353 echo "$as_me:14353: \$? = $ac_status" >&5
14354 if (exit $ac_status) && test -s "$ac_outfile"; then
14355 # The compiler can only warn and ignore the option if not recognized
14356 # So say no if there are warnings
14357 if test ! -s conftest.err; then
14358 lt_cv_prog_compiler_rtti_exceptions=yes
14359 fi
14360 fi
14361 $rm conftest*
14362
14363 fi
14364 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14365 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14366
14367 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14368 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14369 else
14370 :
14371 fi
14372
14373 fi
14374
14375 lt_prog_compiler_wl_GCJ=
14376 lt_prog_compiler_pic_GCJ=
14377 lt_prog_compiler_static_GCJ=
14378
14379 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14380 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14381
14382 if test "$GCC" = yes; then
14383 lt_prog_compiler_wl_GCJ='-Wl,'
14384 lt_prog_compiler_static_GCJ='-static'
14385
14386 case $host_os in
14387 aix*)
14388 # All AIX code is PIC.
14389 if test "$host_cpu" = ia64; then
14390 # AIX 5 now supports IA64 processor
14391 lt_prog_compiler_static_GCJ='-Bstatic'
14392 fi
14393 ;;
14394
14395 amigaos*)
14396 # FIXME: we need at least 68020 code to build shared libraries, but
14397 # adding the `-m68020' flag to GCC prevents building anything better,
14398 # like `-m68040'.
14399 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14400 ;;
14401
14402 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14403 # PIC is the default for these OSes.
14404 ;;
14405
14406 mingw* | pw32* | os2*)
14407 # This hack is so that the source file can tell whether it is being
14408 # built for inclusion in a dll (and should export symbols for example).
14409 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14410 ;;
14411
14412 darwin* | rhapsody*)
14413 # PIC is the default on this platform
14414 # Common symbols not allowed in MH_DYLIB files
14415 lt_prog_compiler_pic_GCJ='-fno-common'
14416 ;;
14417
14418 msdosdjgpp*)
14419 # Just because we use GCC doesn't mean we suddenly get shared libraries
14420 # on systems that don't support them.
14421 lt_prog_compiler_can_build_shared_GCJ=no
14422 enable_shared=no
14423 ;;
14424
14425 sysv4*MP*)
14426 if test -d /usr/nec; then
14427 lt_prog_compiler_pic_GCJ=-Kconform_pic
14428 fi
14429 ;;
14430
14431 hpux*)
14432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14433 # not for PA HP-UX.
14434 case "$host_cpu" in
14435 hppa*64*|ia64*)
14436 # +Z the default
14437 ;;
14438 *)
14439 lt_prog_compiler_pic_GCJ='-fPIC'
14440 ;;
14441 esac
14442 ;;
14443
14444 *)
14445 lt_prog_compiler_pic_GCJ='-fPIC'
14446 ;;
14447 esac
14448 else
14449 # PORTME Check for flag to pass linker flags through the system compiler.
14450 case $host_os in
14451 aix*)
14452 lt_prog_compiler_wl_GCJ='-Wl,'
14453 if test "$host_cpu" = ia64; then
14454 # AIX 5 now supports IA64 processor
14455 lt_prog_compiler_static_GCJ='-Bstatic'
14456 else
14457 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14458 fi
14459 ;;
14460
14461 mingw* | pw32* | os2*)
14462 # This hack is so that the source file can tell whether it is being
14463 # built for inclusion in a dll (and should export symbols for example).
14464 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14465 ;;
14466
14467 hpux9* | hpux10* | hpux11*)
14468 lt_prog_compiler_wl_GCJ='-Wl,'
14469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14470 # not for PA HP-UX.
14471 case "$host_cpu" in
14472 hppa*64*|ia64*)
14473 # +Z the default
14474 ;;
14475 *)
14476 lt_prog_compiler_pic_GCJ='+Z'
14477 ;;
14478 esac
14479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14480 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14481 ;;
14482
14483 irix5* | irix6* | nonstopux*)
14484 lt_prog_compiler_wl_GCJ='-Wl,'
14485 # PIC (with -KPIC) is the default.
14486 lt_prog_compiler_static_GCJ='-non_shared'
14487 ;;
14488
14489 newsos6)
14490 lt_prog_compiler_pic_GCJ='-KPIC'
14491 lt_prog_compiler_static_GCJ='-Bstatic'
14492 ;;
14493
14494 linux*)
14495 case $CC in
14496 icc|ecc)
14497 lt_prog_compiler_wl_GCJ='-Wl,'
14498 lt_prog_compiler_pic_GCJ='-KPIC'
14499 lt_prog_compiler_static_GCJ='-static'
14500 ;;
14501 ccc)
14502 lt_prog_compiler_wl_GCJ='-Wl,'
14503 # All Alpha code is PIC.
14504 lt_prog_compiler_static_GCJ='-non_shared'
14505 ;;
14506 esac
14507 ;;
14508
14509 osf3* | osf4* | osf5*)
14510 lt_prog_compiler_wl_GCJ='-Wl,'
14511 # All OSF/1 code is PIC.
14512 lt_prog_compiler_static_GCJ='-non_shared'
14513 ;;
14514
14515 sco3.2v5*)
14516 lt_prog_compiler_pic_GCJ='-Kpic'
14517 lt_prog_compiler_static_GCJ='-dn'
14518 ;;
14519
14520 solaris*)
14521 lt_prog_compiler_wl_GCJ='-Wl,'
14522 lt_prog_compiler_pic_GCJ='-KPIC'
14523 lt_prog_compiler_static_GCJ='-Bstatic'
14524 ;;
14525
14526 sunos4*)
14527 lt_prog_compiler_wl_GCJ='-Qoption ld '
14528 lt_prog_compiler_pic_GCJ='-PIC'
14529 lt_prog_compiler_static_GCJ='-Bstatic'
14530 ;;
14531
14532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14533 lt_prog_compiler_wl_GCJ='-Wl,'
14534 lt_prog_compiler_pic_GCJ='-KPIC'
14535 lt_prog_compiler_static_GCJ='-Bstatic'
14536 ;;
14537
14538 sysv4*MP*)
14539 if test -d /usr/nec ;then
14540 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14541 lt_prog_compiler_static_GCJ='-Bstatic'
14542 fi
14543 ;;
14544
14545 uts4*)
14546 lt_prog_compiler_pic_GCJ='-pic'
14547 lt_prog_compiler_static_GCJ='-Bstatic'
14548 ;;
14549
14550 *)
14551 lt_prog_compiler_can_build_shared_GCJ=no
14552 ;;
14553 esac
14554 fi
14555
14556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14557 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14558
14559 #
14560 # Check to make sure the PIC flag actually works.
14561 #
14562 if test -n "$lt_prog_compiler_pic_GCJ"; then
14563 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14564 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14565 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 lt_prog_compiler_pic_works_GCJ=no
14569 ac_outfile=conftest.$ac_objext
14570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14571 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 # The option is referenced via a variable to avoid confusing sed.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:14581: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>conftest.err)
14583 ac_status=$?
14584 cat conftest.err >&5
14585 echo "$as_me:14585: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s "$ac_outfile"; then
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings
14589 if test ! -s conftest.err; then
14590 lt_prog_compiler_pic_works_GCJ=yes
14591 fi
14592 fi
14593 $rm conftest*
14594
14595 fi
14596 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14597 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14598
14599 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14600 case $lt_prog_compiler_pic_GCJ in
14601 "" | " "*) ;;
14602 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14603 esac
14604 else
14605 lt_prog_compiler_pic_GCJ=
14606 lt_prog_compiler_can_build_shared_GCJ=no
14607 fi
14608
14609 fi
14610 case "$host_os" in
14611 # For platforms which do not support PIC, -DPIC is meaningless:
14612 *djgpp*)
14613 lt_prog_compiler_pic_GCJ=
14614 ;;
14615 *)
14616 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14617 ;;
14618 esac
14619
14620 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14621 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14622 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 lt_cv_prog_compiler_c_o_GCJ=no
14626 $rm -r conftest 2>/dev/null
14627 mkdir conftest
14628 cd conftest
14629 mkdir out
14630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14631
14632 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14633 # that will create temporary files in the current directory regardless of
14634 # the output directory. Thus, making CWD read-only will cause this test
14635 # to fail, enabling locking or at least warning the user not to do parallel
14636 # builds.
14637 chmod -w .
14638
14639 lt_compiler_flag="-o out/conftest2.$ac_objext"
14640 # Insert the option either (1) after the last *FLAGS variable, or
14641 # (2) before a word containing "conftest.", or (3) at the end.
14642 # Note that $ac_compile itself does not contain backslashes and begins
14643 # with a dollar sign (not a hyphen), so the echo should work correctly.
14644 lt_compile=`echo "$ac_compile" | $SED \
14645 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14647 -e 's:$: $lt_compiler_flag:'`
14648 (eval echo "\"\$as_me:14648: $lt_compile\"" >&5)
14649 (eval "$lt_compile" 2>out/conftest.err)
14650 ac_status=$?
14651 cat out/conftest.err >&5
14652 echo "$as_me:14652: \$? = $ac_status" >&5
14653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14654 then
14655 # The compiler can only warn and ignore the option if not recognized
14656 # So say no if there are warnings
14657 if test ! -s out/conftest.err; then
14658 lt_cv_prog_compiler_c_o_GCJ=yes
14659 fi
14660 fi
14661 chmod u+w .
14662 $rm conftest* out/*
14663 rmdir out
14664 cd ..
14665 rmdir conftest
14666 $rm conftest*
14667
14668 fi
14669 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14670 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14671
14672
14673 hard_links="nottested"
14674 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14675 # do not overwrite the value of need_locks provided by the user
14676 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14677 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14678 hard_links=yes
14679 $rm conftest*
14680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14681 touch conftest.a
14682 ln conftest.a conftest.b 2>&5 || hard_links=no
14683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14684 echo "$as_me:$LINENO: result: $hard_links" >&5
14685 echo "${ECHO_T}$hard_links" >&6
14686 if test "$hard_links" = no; then
14687 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14688 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14689 need_locks=warn
14690 fi
14691 else
14692 need_locks=no
14693 fi
14694
14695 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14696 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14697
14698 runpath_var=
14699 allow_undefined_flag_GCJ=
14700 enable_shared_with_static_runtimes_GCJ=no
14701 archive_cmds_GCJ=
14702 archive_expsym_cmds_GCJ=
14703 old_archive_From_new_cmds_GCJ=
14704 old_archive_from_expsyms_cmds_GCJ=
14705 export_dynamic_flag_spec_GCJ=
14706 whole_archive_flag_spec_GCJ=
14707 thread_safe_flag_spec_GCJ=
14708 hardcode_libdir_flag_spec_GCJ=
14709 hardcode_libdir_flag_spec_ld_GCJ=
14710 hardcode_libdir_separator_GCJ=
14711 hardcode_direct_GCJ=no
14712 hardcode_minus_L_GCJ=no
14713 hardcode_shlibpath_var_GCJ=unsupported
14714 link_all_deplibs_GCJ=unknown
14715 hardcode_automatic_GCJ=no
14716 module_cmds_GCJ=
14717 module_expsym_cmds_GCJ=
14718 always_export_symbols_GCJ=no
14719 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14720 # include_expsyms should be a list of space-separated symbols to be *always*
14721 # included in the symbol list
14722 include_expsyms_GCJ=
14723 # exclude_expsyms can be an extended regexp of symbols to exclude
14724 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14725 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14726 # as well as any symbol that contains `d'.
14727 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14728 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14729 # platforms (ab)use it in PIC code, but their linkers get confused if
14730 # the symbol is explicitly referenced. Since portable code cannot
14731 # rely on this symbol name, it's probably fine to never include it in
14732 # preloaded symbol tables.
14733 extract_expsyms_cmds=
14734
14735 case $host_os in
14736 cygwin* | mingw* | pw32*)
14737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14738 # When not using gcc, we currently assume that we are using
14739 # Microsoft Visual C++.
14740 if test "$GCC" != yes; then
14741 with_gnu_ld=no
14742 fi
14743 ;;
14744 openbsd*)
14745 with_gnu_ld=no
14746 ;;
14747 esac
14748
14749 ld_shlibs_GCJ=yes
14750 if test "$with_gnu_ld" = yes; then
14751 # If archive_cmds runs LD, not CC, wlarc should be empty
14752 wlarc='${wl}'
14753
14754 # See if GNU ld supports shared libraries.
14755 case $host_os in
14756 aix3* | aix4* | aix5*)
14757 # On AIX/PPC, the GNU linker is very broken
14758 if test "$host_cpu" != ia64; then
14759 ld_shlibs_GCJ=no
14760 cat <<EOF 1>&2
14761
14762 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14763 *** to be unable to reliably create shared libraries on AIX.
14764 *** Therefore, libtool is disabling shared libraries support. If you
14765 *** really care for shared libraries, you may want to modify your PATH
14766 *** so that a non-GNU linker is found, and then restart.
14767
14768 EOF
14769 fi
14770 ;;
14771
14772 amigaos*)
14773 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)'
14774 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14775 hardcode_minus_L_GCJ=yes
14776
14777 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14778 # that the semantics of dynamic libraries on AmigaOS, at least up
14779 # to version 4, is to share data among multiple programs linked
14780 # with the same dynamic library. Since this doesn't match the
14781 # behavior of shared libraries on other platforms, we can't use
14782 # them.
14783 ld_shlibs_GCJ=no
14784 ;;
14785
14786 beos*)
14787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14788 allow_undefined_flag_GCJ=unsupported
14789 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14790 # support --undefined. This deserves some investigation. FIXME
14791 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14792 else
14793 ld_shlibs_GCJ=no
14794 fi
14795 ;;
14796
14797 cygwin* | mingw* | pw32*)
14798 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14799 # as there is no search path for DLLs.
14800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14801 allow_undefined_flag_GCJ=unsupported
14802 always_export_symbols_GCJ=no
14803 enable_shared_with_static_runtimes_GCJ=yes
14804 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14805
14806 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14807 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14808 # If the export-symbols file already is a .def file (1st line
14809 # is EXPORTS), use it as is; otherwise, prepend...
14810 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14811 cp $export_symbols $output_objdir/$soname.def;
14812 else
14813 echo EXPORTS > $output_objdir/$soname.def;
14814 cat $export_symbols >> $output_objdir/$soname.def;
14815 fi~
14816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14817 else
14818 ld_shlibs=no
14819 fi
14820 ;;
14821
14822 netbsd*)
14823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14824 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14825 wlarc=
14826 else
14827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14829 fi
14830 ;;
14831
14832 solaris* | sysv5*)
14833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14834 ld_shlibs_GCJ=no
14835 cat <<EOF 1>&2
14836
14837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14838 *** create shared libraries on Solaris systems. Therefore, libtool
14839 *** is disabling shared libraries support. We urge you to upgrade GNU
14840 *** binutils to release 2.9.1 or newer. Another option is to modify
14841 *** your PATH or compiler configuration so that the native linker is
14842 *** used, and then restart.
14843
14844 EOF
14845 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14847 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14848 else
14849 ld_shlibs_GCJ=no
14850 fi
14851 ;;
14852
14853 sunos4*)
14854 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14855 wlarc=
14856 hardcode_direct_GCJ=yes
14857 hardcode_shlibpath_var_GCJ=no
14858 ;;
14859
14860 *)
14861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14864 else
14865 ld_shlibs_GCJ=no
14866 fi
14867 ;;
14868 esac
14869
14870 if test "$ld_shlibs_GCJ" = yes; then
14871 runpath_var=LD_RUN_PATH
14872 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14873 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14874 # ancient GNU ld didn't support --whole-archive et. al.
14875 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14876 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14877 else
14878 whole_archive_flag_spec_GCJ=
14879 fi
14880 fi
14881 else
14882 # PORTME fill in a description of your system's linker (not GNU ld)
14883 case $host_os in
14884 aix3*)
14885 allow_undefined_flag_GCJ=unsupported
14886 always_export_symbols_GCJ=yes
14887 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'
14888 # Note: this linker hardcodes the directories in LIBPATH if there
14889 # are no directories specified by -L.
14890 hardcode_minus_L_GCJ=yes
14891 if test "$GCC" = yes && test -z "$link_static_flag"; then
14892 # Neither direct hardcoding nor static linking is supported with a
14893 # broken collect2.
14894 hardcode_direct_GCJ=unsupported
14895 fi
14896 ;;
14897
14898 aix4* | aix5*)
14899 if test "$host_cpu" = ia64; then
14900 # On IA64, the linker does run time linking by default, so we don't
14901 # have to do anything special.
14902 aix_use_runtimelinking=no
14903 exp_sym_flag='-Bexport'
14904 no_entry_flag=""
14905 else
14906 # If we're using GNU nm, then we don't want the "-C" option.
14907 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14908 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14909 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'
14910 else
14911 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'
14912 fi
14913 aix_use_runtimelinking=no
14914
14915 # Test if we are trying to use run time linking or normal
14916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14917 # need to do runtime linking.
14918 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14919 for ld_flag in $LDFLAGS; do
14920 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14921 aix_use_runtimelinking=yes
14922 break
14923 fi
14924 done
14925 esac
14926
14927 exp_sym_flag='-bexport'
14928 no_entry_flag='-bnoentry'
14929 fi
14930
14931 # When large executables or shared objects are built, AIX ld can
14932 # have problems creating the table of contents. If linking a library
14933 # or program results in "error TOC overflow" add -mminimal-toc to
14934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14936
14937 archive_cmds_GCJ=''
14938 hardcode_direct_GCJ=yes
14939 hardcode_libdir_separator_GCJ=':'
14940 link_all_deplibs_GCJ=yes
14941
14942 if test "$GCC" = yes; then
14943 case $host_os in aix4.012|aix4.012.*)
14944 # We only want to do this on AIX 4.2 and lower, the check
14945 # below for broken collect2 doesn't work under 4.3+
14946 collect2name=`${CC} -print-prog-name=collect2`
14947 if test -f "$collect2name" && \
14948 strings "$collect2name" | grep resolve_lib_name >/dev/null
14949 then
14950 # We have reworked collect2
14951 hardcode_direct_GCJ=yes
14952 else
14953 # We have old collect2
14954 hardcode_direct_GCJ=unsupported
14955 # It fails to find uninstalled libraries when the uninstalled
14956 # path is not listed in the libpath. Setting hardcode_minus_L
14957 # to unsupported forces relinking
14958 hardcode_minus_L_GCJ=yes
14959 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14960 hardcode_libdir_separator_GCJ=
14961 fi
14962 esac
14963 shared_flag='-shared'
14964 else
14965 # not using gcc
14966 if test "$host_cpu" = ia64; then
14967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14968 # chokes on -Wl,-G. The following line is correct:
14969 shared_flag='-G'
14970 else
14971 if test "$aix_use_runtimelinking" = yes; then
14972 shared_flag='${wl}-G'
14973 else
14974 shared_flag='${wl}-bM:SRE'
14975 fi
14976 fi
14977 fi
14978
14979 # It seems that -bexpall does not export symbols beginning with
14980 # underscore (_), so it is better to generate a list of symbols to export.
14981 always_export_symbols_GCJ=yes
14982 if test "$aix_use_runtimelinking" = yes; then
14983 # Warning - without using the other runtime loading flags (-brtl),
14984 # -berok will link without error, but may produce a broken library.
14985 allow_undefined_flag_GCJ='-berok'
14986 # Determine the default libpath from the value encoded in an empty executable.
14987 cat >conftest.$ac_ext <<_ACEOF
14988 #line $LINENO "configure"
14989 #include "confdefs.h"
14990
14991 #ifdef F77_DUMMY_MAIN
14992 # ifdef __cplusplus
14993 extern "C"
14994 # endif
14995 int F77_DUMMY_MAIN() { return 1; }
14996 #endif
14997 int
14998 main ()
14999 {
15000
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007 (eval $ac_link) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017
15018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15019 }'`
15020 # Check for a 64-bit object if we didn't find anything.
15021 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; }
15022 }'`; fi
15023 else
15024 echo "$as_me: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15026 fi
15027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15029
15030 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15031 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15032 else
15033 if test "$host_cpu" = ia64; then
15034 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15035 allow_undefined_flag_GCJ="-z nodefs"
15036 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15037 else
15038 # Determine the default libpath from the value encoded in an empty executable.
15039 cat >conftest.$ac_ext <<_ACEOF
15040 #line $LINENO "configure"
15041 #include "confdefs.h"
15042
15043 #ifdef F77_DUMMY_MAIN
15044 # ifdef __cplusplus
15045 extern "C"
15046 # endif
15047 int F77_DUMMY_MAIN() { return 1; }
15048 #endif
15049 int
15050 main ()
15051 {
15052
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -s conftest$ac_exeext'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069
15070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15071 }'`
15072 # Check for a 64-bit object if we didn't find anything.
15073 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; }
15074 }'`; fi
15075 else
15076 echo "$as_me: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
15078 fi
15079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15081
15082 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15083 # Warning - without using the other run time loading flags,
15084 # -berok will link without error, but may produce a broken library.
15085 no_undefined_flag_GCJ=' ${wl}-bernotok'
15086 allow_undefined_flag_GCJ=' ${wl}-berok'
15087 # -bexpall does not export symbols beginning with underscore (_)
15088 always_export_symbols_GCJ=yes
15089 # Exported symbols can be pulled into shared objects from archives
15090 whole_archive_flag_spec_GCJ=' '
15091 archive_cmds_need_lc_GCJ=yes
15092 # This is similar to how AIX traditionally builds it's shared libraries.
15093 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15094 fi
15095 fi
15096 ;;
15097
15098 amigaos*)
15099 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)'
15100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101 hardcode_minus_L_GCJ=yes
15102 # see comment about different semantics on the GNU ld section
15103 ld_shlibs_GCJ=no
15104 ;;
15105
15106 bsdi4*)
15107 export_dynamic_flag_spec_GCJ=-rdynamic
15108 ;;
15109
15110 cygwin* | mingw* | pw32*)
15111 # When not using gcc, we currently assume that we are using
15112 # Microsoft Visual C++.
15113 # hardcode_libdir_flag_spec is actually meaningless, as there is
15114 # no search path for DLLs.
15115 hardcode_libdir_flag_spec_GCJ=' '
15116 allow_undefined_flag_GCJ=unsupported
15117 # Tell ltmain to make .lib files, not .a files.
15118 libext=lib
15119 # Tell ltmain to make .dll files, not .so files.
15120 shrext=".dll"
15121 # FIXME: Setting linknames here is a bad hack.
15122 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15123 # The linker will automatically build a .lib file if we build a DLL.
15124 old_archive_From_new_cmds_GCJ='true'
15125 # FIXME: Should let the user specify the lib program.
15126 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15127 fix_srcfile_path='`cygpath -w "$srcfile"`'
15128 enable_shared_with_static_runtimes_GCJ=yes
15129 ;;
15130
15131 darwin* | rhapsody*)
15132 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15133 archive_cmds_need_lc_GCJ=no
15134 case "$host_os" in
15135 rhapsody* | darwin1.[012])
15136 allow_undefined_flag_GCJ='-undefined suppress'
15137 ;;
15138 *) # Darwin 1.3 on
15139 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15140 ;;
15141 esac
15142 # FIXME: Relying on posixy $() will cause problems for
15143 # cross-compilation, but unfortunately the echo tests do not
15144 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15145 # `"' quotes if we put them in here... so don't!
15146 lt_int_apple_cc_single_mod=no
15147 output_verbose_link_cmd='echo'
15148 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15149 lt_int_apple_cc_single_mod=yes
15150 fi
15151 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15152 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15153 else
15154 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15155 fi
15156 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15158 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15159 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15160 else
15161 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15162 fi
15163 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15164 hardcode_direct_GCJ=no
15165 hardcode_automatic_GCJ=yes
15166 hardcode_shlibpath_var_GCJ=unsupported
15167 whole_archive_flag_spec_GCJ='-all_load $convenience'
15168 link_all_deplibs_GCJ=yes
15169 fi
15170 ;;
15171
15172 dgux*)
15173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15175 hardcode_shlibpath_var_GCJ=no
15176 ;;
15177
15178 freebsd1*)
15179 ld_shlibs_GCJ=no
15180 ;;
15181
15182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15183 # support. Future versions do this automatically, but an explicit c++rt0.o
15184 # does not break anything, and helps significantly (at the cost of a little
15185 # extra space).
15186 freebsd2.2*)
15187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15189 hardcode_direct_GCJ=yes
15190 hardcode_shlibpath_var_GCJ=no
15191 ;;
15192
15193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15194 freebsd2*)
15195 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_direct_GCJ=yes
15197 hardcode_minus_L_GCJ=yes
15198 hardcode_shlibpath_var_GCJ=no
15199 ;;
15200
15201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15202 freebsd*)
15203 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15205 hardcode_direct_GCJ=yes
15206 hardcode_shlibpath_var_GCJ=no
15207 ;;
15208
15209 hpux9*)
15210 if test "$GCC" = yes; then
15211 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'
15212 else
15213 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'
15214 fi
15215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15216 hardcode_libdir_separator_GCJ=:
15217 hardcode_direct_GCJ=yes
15218
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L_GCJ=yes
15222 export_dynamic_flag_spec_GCJ='${wl}-E'
15223 ;;
15224
15225 hpux10* | hpux11*)
15226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15227 case "$host_cpu" in
15228 hppa*64*|ia64*)
15229 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15230 ;;
15231 *)
15232 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15233 ;;
15234 esac
15235 else
15236 case "$host_cpu" in
15237 hppa*64*|ia64*)
15238 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15239 ;;
15240 *)
15241 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15242 ;;
15243 esac
15244 fi
15245 if test "$with_gnu_ld" = no; then
15246 case "$host_cpu" in
15247 hppa*64*)
15248 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15249 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15250 hardcode_libdir_separator_GCJ=:
15251 hardcode_direct_GCJ=no
15252 hardcode_shlibpath_var_GCJ=no
15253 ;;
15254 ia64*)
15255 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15256 hardcode_direct_GCJ=no
15257 hardcode_shlibpath_var_GCJ=no
15258
15259 # hardcode_minus_L: Not really in the search PATH,
15260 # but as the default location of the library.
15261 hardcode_minus_L_GCJ=yes
15262 ;;
15263 *)
15264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15265 hardcode_libdir_separator_GCJ=:
15266 hardcode_direct_GCJ=yes
15267 export_dynamic_flag_spec_GCJ='${wl}-E'
15268
15269 # hardcode_minus_L: Not really in the search PATH,
15270 # but as the default location of the library.
15271 hardcode_minus_L_GCJ=yes
15272 ;;
15273 esac
15274 fi
15275 ;;
15276
15277 irix5* | irix6* | nonstopux*)
15278 if test "$GCC" = yes; then
15279 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'
15280 else
15281 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'
15282 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15283 fi
15284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15285 hardcode_libdir_separator_GCJ=:
15286 link_all_deplibs_GCJ=yes
15287 ;;
15288
15289 netbsd*)
15290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15292 else
15293 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15294 fi
15295 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15296 hardcode_direct_GCJ=yes
15297 hardcode_shlibpath_var_GCJ=no
15298 ;;
15299
15300 newsos6)
15301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15302 hardcode_direct_GCJ=yes
15303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15304 hardcode_libdir_separator_GCJ=:
15305 hardcode_shlibpath_var_GCJ=no
15306 ;;
15307
15308 openbsd*)
15309 hardcode_direct_GCJ=yes
15310 hardcode_shlibpath_var_GCJ=no
15311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15312 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15314 export_dynamic_flag_spec_GCJ='${wl}-E'
15315 else
15316 case $host_os in
15317 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15318 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15319 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15320 ;;
15321 *)
15322 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15324 ;;
15325 esac
15326 fi
15327 ;;
15328
15329 os2*)
15330 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15331 hardcode_minus_L_GCJ=yes
15332 allow_undefined_flag_GCJ=unsupported
15333 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'
15334 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15335 ;;
15336
15337 osf3*)
15338 if test "$GCC" = yes; then
15339 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15340 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'
15341 else
15342 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15343 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'
15344 fi
15345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15346 hardcode_libdir_separator_GCJ=:
15347 ;;
15348
15349 osf4* | osf5*) # as osf3* with the addition of -msym flag
15350 if test "$GCC" = yes; then
15351 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15352 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'
15353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15354 else
15355 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15356 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'
15357 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~
15358 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15359
15360 # Both c and cxx compiler support -rpath directly
15361 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15362 fi
15363 hardcode_libdir_separator_GCJ=:
15364 ;;
15365
15366 sco3.2v5*)
15367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15368 hardcode_shlibpath_var_GCJ=no
15369 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15370 runpath_var=LD_RUN_PATH
15371 hardcode_runpath_var=yes
15372 ;;
15373
15374 solaris*)
15375 no_undefined_flag_GCJ=' -z text'
15376 if test "$GCC" = yes; then
15377 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15379 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15380 else
15381 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15382 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15383 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15384 fi
15385 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15386 hardcode_shlibpath_var_GCJ=no
15387 case $host_os in
15388 solaris2.[0-5] | solaris2.[0-5].*) ;;
15389 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15390 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15391 esac
15392 link_all_deplibs_GCJ=yes
15393 ;;
15394
15395 sunos4*)
15396 if test "x$host_vendor" = xsequent; then
15397 # Use $CC to link under sequent, because it throws in some extra .o
15398 # files that make .init and .fini sections work.
15399 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15400 else
15401 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15402 fi
15403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15404 hardcode_direct_GCJ=yes
15405 hardcode_minus_L_GCJ=yes
15406 hardcode_shlibpath_var_GCJ=no
15407 ;;
15408
15409 sysv4)
15410 case $host_vendor in
15411 sni)
15412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413 hardcode_direct_GCJ=yes # is this really true???
15414 ;;
15415 siemens)
15416 ## LD is ld it makes a PLAMLIB
15417 ## CC just makes a GrossModule.
15418 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15419 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15420 hardcode_direct_GCJ=no
15421 ;;
15422 motorola)
15423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15425 ;;
15426 esac
15427 runpath_var='LD_RUN_PATH'
15428 hardcode_shlibpath_var_GCJ=no
15429 ;;
15430
15431 sysv4.3*)
15432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_shlibpath_var_GCJ=no
15434 export_dynamic_flag_spec_GCJ='-Bexport'
15435 ;;
15436
15437 sysv4*MP*)
15438 if test -d /usr/nec; then
15439 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15440 hardcode_shlibpath_var_GCJ=no
15441 runpath_var=LD_RUN_PATH
15442 hardcode_runpath_var=yes
15443 ld_shlibs_GCJ=yes
15444 fi
15445 ;;
15446
15447 sysv4.2uw2*)
15448 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15449 hardcode_direct_GCJ=yes
15450 hardcode_minus_L_GCJ=no
15451 hardcode_shlibpath_var_GCJ=no
15452 hardcode_runpath_var=yes
15453 runpath_var=LD_RUN_PATH
15454 ;;
15455
15456 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15457 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15458 if test "$GCC" = yes; then
15459 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15460 else
15461 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15462 fi
15463 runpath_var='LD_RUN_PATH'
15464 hardcode_shlibpath_var_GCJ=no
15465 ;;
15466
15467 sysv5*)
15468 no_undefined_flag_GCJ=' -z text'
15469 # $CC -shared without GNU ld will not create a library from C++
15470 # object files and a static libstdc++, better avoid it by now
15471 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15474 hardcode_libdir_flag_spec_GCJ=
15475 hardcode_shlibpath_var_GCJ=no
15476 runpath_var='LD_RUN_PATH'
15477 ;;
15478
15479 uts4*)
15480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15482 hardcode_shlibpath_var_GCJ=no
15483 ;;
15484
15485 *)
15486 ld_shlibs_GCJ=no
15487 ;;
15488 esac
15489 fi
15490
15491 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15492 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15493 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15494
15495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15496 if test "$GCC" = yes; then
15497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15498 fi
15499
15500 #
15501 # Do we need to explicitly link libc?
15502 #
15503 case "x$archive_cmds_need_lc_GCJ" in
15504 x|xyes)
15505 # Assume -lc should be added
15506 archive_cmds_need_lc_GCJ=yes
15507
15508 if test "$enable_shared" = yes && test "$GCC" = yes; then
15509 case $archive_cmds_GCJ in
15510 *'~'*)
15511 # FIXME: we may have to deal with multi-command sequences.
15512 ;;
15513 '$CC '*)
15514 # Test whether the compiler implicitly links with -lc since on some
15515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15516 # to ld, don't add -lc before -lgcc.
15517 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15518 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15519 $rm conftest*
15520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15521
15522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15523 (eval $ac_compile) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } 2>conftest.err; then
15527 soname=conftest
15528 lib=conftest
15529 libobjs=conftest.$ac_objext
15530 deplibs=
15531 wl=$lt_prog_compiler_wl_GCJ
15532 compiler_flags=-v
15533 linker_flags=-v
15534 verstring=
15535 output_objdir=.
15536 libname=conftest
15537 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15538 allow_undefined_flag_GCJ=
15539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15540 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }
15544 then
15545 archive_cmds_need_lc_GCJ=no
15546 else
15547 archive_cmds_need_lc_GCJ=yes
15548 fi
15549 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15550 else
15551 cat conftest.err 1>&5
15552 fi
15553 $rm conftest*
15554 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15555 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15556 ;;
15557 esac
15558 fi
15559 ;;
15560 esac
15561
15562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15564 hardcode_action_GCJ=
15565 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15566 test -n "$runpath_var GCJ" || \
15567 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15568
15569 # We can hardcode non-existant directories.
15570 if test "$hardcode_direct_GCJ" != no &&
15571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15572 # have to relink, otherwise we might link with an installed library
15573 # when we should be linking with a yet-to-be-installed one
15574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15575 test "$hardcode_minus_L_GCJ" != no; then
15576 # Linking always hardcodes the temporary library directory.
15577 hardcode_action_GCJ=relink
15578 else
15579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15580 hardcode_action_GCJ=immediate
15581 fi
15582 else
15583 # We cannot hardcode anything, or else we can only hardcode existing
15584 # directories.
15585 hardcode_action_GCJ=unsupported
15586 fi
15587 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15588 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15589
15590 if test "$hardcode_action_GCJ" = relink; then
15591 # Fast installation is not supported
15592 enable_fast_install=no
15593 elif test "$shlibpath_overrides_runpath" = yes ||
15594 test "$enable_shared" = no; then
15595 # Fast installation is not necessary
15596 enable_fast_install=needless
15597 fi
15598
15599 striplib=
15600 old_striplib=
15601 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15606 echo "$as_me:$LINENO: result: yes" >&5
15607 echo "${ECHO_T}yes" >&6
15608 else
15609 # FIXME - insert some real tests, host_os isn't really good enough
15610 case $host_os in
15611 darwin*)
15612 if test -n "$STRIP" ; then
15613 striplib="$STRIP -x"
15614 echo "$as_me:$LINENO: result: yes" >&5
15615 echo "${ECHO_T}yes" >&6
15616 else
15617 echo "$as_me:$LINENO: result: no" >&5
15618 echo "${ECHO_T}no" >&6
15619 fi
15620 ;;
15621 *)
15622 echo "$as_me:$LINENO: result: no" >&5
15623 echo "${ECHO_T}no" >&6
15624 ;;
15625 esac
15626 fi
15627
15628 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15629 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15630 library_names_spec=
15631 libname_spec='lib$name'
15632 soname_spec=
15633 shrext=".so"
15634 postinstall_cmds=
15635 postuninstall_cmds=
15636 finish_cmds=
15637 finish_eval=
15638 shlibpath_var=
15639 shlibpath_overrides_runpath=unknown
15640 version_type=none
15641 dynamic_linker="$host_os ld.so"
15642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15643 if test "$GCC" = yes; then
15644 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15645 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15646 # if the path contains ";" then we assume it to be the separator
15647 # otherwise default to the standard path separator (i.e. ":") - it is
15648 # assumed that no part of a normal pathname contains ";" but that should
15649 # okay in the real world where ";" in dirpaths is itself problematic.
15650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15651 else
15652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15653 fi
15654 else
15655 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15656 fi
15657 need_lib_prefix=unknown
15658 hardcode_into_libs=no
15659
15660 # when you set need_version to no, make sure it does not cause -set_version
15661 # flags to be left without arguments
15662 need_version=unknown
15663
15664 case $host_os in
15665 aix3*)
15666 version_type=linux
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15668 shlibpath_var=LIBPATH
15669
15670 # AIX 3 has no versioning support, so we append a major version to the name.
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 ;;
15673
15674 aix4* | aix5*)
15675 version_type=linux
15676 need_lib_prefix=no
15677 need_version=no
15678 hardcode_into_libs=yes
15679 if test "$host_cpu" = ia64; then
15680 # AIX 5 supports IA64
15681 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 else
15684 # With GCC up to 2.95.x, collect2 would create an import file
15685 # for dependence libraries. The import file would start with
15686 # the line `#! .'. This would cause the generated library to
15687 # depend on `.', always an invalid library. This was fixed in
15688 # development snapshots of GCC prior to 3.0.
15689 case $host_os in
15690 aix4 | aix4.[01] | aix4.[01].*)
15691 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15692 echo ' yes '
15693 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15694 :
15695 else
15696 can_build_shared=no
15697 fi
15698 ;;
15699 esac
15700 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15701 # soname into executable. Probably we can add versioning support to
15702 # collect2, so additional links can be useful in future.
15703 if test "$aix_use_runtimelinking" = yes; then
15704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15705 # instead of lib<name>.a to let people know that these are not
15706 # typical AIX shared libraries.
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 else
15709 # We preserve .a as extension for shared libraries through AIX4.2
15710 # and later when we are not doing run time linking.
15711 library_names_spec='${libname}${release}.a $libname.a'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 fi
15714 shlibpath_var=LIBPATH
15715 fi
15716 ;;
15717
15718 amigaos*)
15719 library_names_spec='$libname.ixlibrary $libname.a'
15720 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15721 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'
15722 ;;
15723
15724 beos*)
15725 library_names_spec='${libname}${shared_ext}'
15726 dynamic_linker="$host_os ld.so"
15727 shlibpath_var=LIBRARY_PATH
15728 ;;
15729
15730 bsdi4*)
15731 version_type=linux
15732 need_version=no
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15734 soname_spec='${libname}${release}${shared_ext}$major'
15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15739 # the default ld.so.conf also contains /usr/contrib/lib and
15740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15741 # libtool to hard-code these into programs
15742 ;;
15743
15744 cygwin* | mingw* | pw32*)
15745 version_type=windows
15746 shrext=".dll"
15747 need_version=no
15748 need_lib_prefix=no
15749
15750 case $GCC,$host_os in
15751 yes,cygwin* | yes,mingw* | yes,pw32*)
15752 library_names_spec='$libname.dll.a'
15753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15754 postinstall_cmds='base_file=`basename \${file}`~
15755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15756 dldir=$destdir/`dirname \$dlpath`~
15757 test -d \$dldir || mkdir -p \$dldir~
15758 $install_prog $dir/$dlname \$dldir/$dlname'
15759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15760 dlpath=$dir/\$dldll~
15761 $rm \$dlpath'
15762 shlibpath_overrides_runpath=yes
15763
15764 case $host_os in
15765 cygwin*)
15766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15768 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15769 ;;
15770 mingw*)
15771 # MinGW DLLs use traditional 'lib' prefix
15772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15774 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15775 # It is most probably a Windows format PATH printed by
15776 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15777 # path with ; separators, and with drive letters. We can handle the
15778 # drive letters (cygwin fileutils understands them), so leave them,
15779 # especially as we might pass files found there to a mingw objdump,
15780 # which wouldn't understand a cygwinified path. Ahh.
15781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15782 else
15783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15784 fi
15785 ;;
15786 pw32*)
15787 # pw32 DLLs use 'pw' prefix rather than 'lib'
15788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15789 ;;
15790 esac
15791 ;;
15792
15793 *)
15794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15795 ;;
15796 esac
15797 dynamic_linker='Win32 ld.exe'
15798 # FIXME: first we should search . and the directory the executable is in
15799 shlibpath_var=PATH
15800 ;;
15801
15802 darwin* | rhapsody*)
15803 dynamic_linker="$host_os dyld"
15804 version_type=darwin
15805 need_lib_prefix=no
15806 need_version=no
15807 # FIXME: Relying on posixy $() will cause problems for
15808 # cross-compilation, but unfortunately the echo tests do not
15809 # yet detect zsh echo's removal of \ escapes.
15810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15811 soname_spec='${libname}${release}${major}$shared_ext'
15812 shlibpath_overrides_runpath=yes
15813 shlibpath_var=DYLD_LIBRARY_PATH
15814 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15815 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15816 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15817 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"`
15818 fi
15819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15820 ;;
15821
15822 dgux*)
15823 version_type=linux
15824 need_lib_prefix=no
15825 need_version=no
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15827 soname_spec='${libname}${release}${shared_ext}$major'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 ;;
15830
15831 freebsd1*)
15832 dynamic_linker=no
15833 ;;
15834
15835 freebsd*)
15836 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15837 version_type=freebsd-$objformat
15838 case $version_type in
15839 freebsd-elf*)
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15841 need_version=no
15842 need_lib_prefix=no
15843 ;;
15844 freebsd-*)
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15846 need_version=yes
15847 ;;
15848 esac
15849 shlibpath_var=LD_LIBRARY_PATH
15850 case $host_os in
15851 freebsd2*)
15852 shlibpath_overrides_runpath=yes
15853 ;;
15854 freebsd3.01* | freebsdelf3.01*)
15855 shlibpath_overrides_runpath=yes
15856 hardcode_into_libs=yes
15857 ;;
15858 *) # from 3.2 on
15859 shlibpath_overrides_runpath=no
15860 hardcode_into_libs=yes
15861 ;;
15862 esac
15863 ;;
15864
15865 gnu*)
15866 version_type=linux
15867 need_lib_prefix=no
15868 need_version=no
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 hardcode_into_libs=yes
15873 ;;
15874
15875 hpux9* | hpux10* | hpux11*)
15876 # Give a soname corresponding to the major version so that dld.sl refuses to
15877 # link against other versions.
15878 version_type=sunos
15879 need_lib_prefix=no
15880 need_version=no
15881 case "$host_cpu" in
15882 ia64*)
15883 shrext='.so'
15884 hardcode_into_libs=yes
15885 dynamic_linker="$host_os dld.so"
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 if test "X$HPUX_IA64_MODE" = X32; then
15891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15892 else
15893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15894 fi
15895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15896 ;;
15897 hppa*64*)
15898 shrext='.sl'
15899 hardcode_into_libs=yes
15900 dynamic_linker="$host_os dld.sl"
15901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15907 ;;
15908 *)
15909 shrext='.sl'
15910 dynamic_linker="$host_os dld.sl"
15911 shlibpath_var=SHLIB_PATH
15912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 ;;
15916 esac
15917 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15918 postinstall_cmds='chmod 555 $lib'
15919 ;;
15920
15921 irix5* | irix6* | nonstopux*)
15922 case $host_os in
15923 nonstopux*) version_type=nonstopux ;;
15924 *)
15925 if test "$lt_cv_prog_gnu_ld" = yes; then
15926 version_type=linux
15927 else
15928 version_type=irix
15929 fi ;;
15930 esac
15931 need_lib_prefix=no
15932 need_version=no
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15935 case $host_os in
15936 irix5* | nonstopux*)
15937 libsuff= shlibsuff=
15938 ;;
15939 *)
15940 case $LD in # libtool.m4 will add one of these switches to LD
15941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15942 libsuff= shlibsuff= libmagic=32-bit;;
15943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15944 libsuff=32 shlibsuff=N32 libmagic=N32;;
15945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15947 *) libsuff= shlibsuff= libmagic=never-match;;
15948 esac
15949 ;;
15950 esac
15951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15952 shlibpath_overrides_runpath=no
15953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15955 hardcode_into_libs=yes
15956 ;;
15957
15958 # No shared lib support for Linux oldld, aout, or coff.
15959 linux*oldld* | linux*aout* | linux*coff*)
15960 dynamic_linker=no
15961 ;;
15962
15963 # This must be Linux ELF.
15964 linux*)
15965 version_type=linux
15966 need_lib_prefix=no
15967 need_version=no
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 shlibpath_overrides_runpath=no
15973 # This implies no fast_install, which is unacceptable.
15974 # Some rework will be needed to allow for fast_install
15975 # before this can be enabled.
15976 hardcode_into_libs=yes
15977
15978 # We used to test for /lib/ld.so.1 and disable shared libraries on
15979 # powerpc, because MkLinux only supported shared libraries with the
15980 # GNU dynamic linker. Since this was broken with cross compilers,
15981 # most powerpc-linux boxes support dynamic linking these days and
15982 # people can always --disable-shared, the test was removed, and we
15983 # assume the GNU/Linux dynamic linker is in use.
15984 dynamic_linker='GNU/Linux ld.so'
15985 ;;
15986
15987 netbsd*)
15988 version_type=sunos
15989 need_lib_prefix=no
15990 need_version=no
15991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15994 dynamic_linker='NetBSD (a.out) ld.so'
15995 else
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 dynamic_linker='NetBSD ld.elf_so'
15999 fi
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=yes
16002 hardcode_into_libs=yes
16003 ;;
16004
16005 newsos6)
16006 version_type=linux
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=yes
16010 ;;
16011
16012 nto-qnx)
16013 version_type=linux
16014 need_lib_prefix=no
16015 need_version=no
16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 soname_spec='${libname}${release}${shared_ext}$major'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 shlibpath_overrides_runpath=yes
16020 ;;
16021
16022 openbsd*)
16023 version_type=sunos
16024 need_lib_prefix=no
16025 need_version=no
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16030 case $host_os in
16031 openbsd2.[89] | openbsd2.[89].*)
16032 shlibpath_overrides_runpath=no
16033 ;;
16034 *)
16035 shlibpath_overrides_runpath=yes
16036 ;;
16037 esac
16038 else
16039 shlibpath_overrides_runpath=yes
16040 fi
16041 ;;
16042
16043 os2*)
16044 libname_spec='$name'
16045 shrext=".dll"
16046 need_lib_prefix=no
16047 library_names_spec='$libname${shared_ext} $libname.a'
16048 dynamic_linker='OS/2 ld.exe'
16049 shlibpath_var=LIBPATH
16050 ;;
16051
16052 osf3* | osf4* | osf5*)
16053 version_type=osf
16054 need_lib_prefix=no
16055 need_version=no
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16060 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16061 ;;
16062
16063 sco3.2v5*)
16064 version_type=osf
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 ;;
16069
16070 solaris*)
16071 version_type=linux
16072 need_lib_prefix=no
16073 need_version=no
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 hardcode_into_libs=yes
16079 # ldd complains unless libraries are executable
16080 postinstall_cmds='chmod +x $lib'
16081 ;;
16082
16083 sunos4*)
16084 version_type=sunos
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes
16089 if test "$with_gnu_ld" = yes; then
16090 need_lib_prefix=no
16091 fi
16092 need_version=yes
16093 ;;
16094
16095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16096 version_type=linux
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 case $host_vendor in
16101 sni)
16102 shlibpath_overrides_runpath=no
16103 need_lib_prefix=no
16104 export_dynamic_flag_spec='${wl}-Blargedynsym'
16105 runpath_var=LD_RUN_PATH
16106 ;;
16107 siemens)
16108 need_lib_prefix=no
16109 ;;
16110 motorola)
16111 need_lib_prefix=no
16112 need_version=no
16113 shlibpath_overrides_runpath=no
16114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16115 ;;
16116 esac
16117 ;;
16118
16119 sysv4*MP*)
16120 if test -d /usr/nec ;then
16121 version_type=linux
16122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16123 soname_spec='$libname${shared_ext}.$major'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 fi
16126 ;;
16127
16128 uts4*)
16129 version_type=linux
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 ;;
16134
16135 *)
16136 dynamic_linker=no
16137 ;;
16138 esac
16139 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16140 echo "${ECHO_T}$dynamic_linker" >&6
16141 test "$dynamic_linker" = no && can_build_shared=no
16142
16143 if test "x$enable_dlopen" != xyes; then
16144 enable_dlopen=unknown
16145 enable_dlopen_self=unknown
16146 enable_dlopen_self_static=unknown
16147 else
16148 lt_cv_dlopen=no
16149 lt_cv_dlopen_libs=
16150
16151 case $host_os in
16152 beos*)
16153 lt_cv_dlopen="load_add_on"
16154 lt_cv_dlopen_libs=
16155 lt_cv_dlopen_self=yes
16156 ;;
16157
16158 mingw* | pw32*)
16159 lt_cv_dlopen="LoadLibrary"
16160 lt_cv_dlopen_libs=
16161 ;;
16162
16163 cygwin*)
16164 lt_cv_dlopen="dlopen"
16165 lt_cv_dlopen_libs=
16166 ;;
16167
16168 darwin*)
16169 # if libdl is installed we need to link against it
16170 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175 ac_check_lib_save_LIBS=$LIBS
16176 LIBS="-ldl $LIBS"
16177 cat >conftest.$ac_ext <<_ACEOF
16178 #line $LINENO "configure"
16179 #include "confdefs.h"
16180
16181 /* Override any gcc2 internal prototype to avoid an error. */
16182 #ifdef __cplusplus
16183 extern "C"
16184 #endif
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16187 char dlopen ();
16188 #ifdef F77_DUMMY_MAIN
16189 # ifdef __cplusplus
16190 extern "C"
16191 # endif
16192 int F77_DUMMY_MAIN() { return 1; }
16193 #endif
16194 int
16195 main ()
16196 {
16197 dlopen ();
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16204 (eval $ac_link) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -s conftest$ac_exeext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_lib_dl_dlopen=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 cat conftest.$ac_ext >&5
16218 ac_cv_lib_dl_dlopen=no
16219 fi
16220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16222 fi
16223 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16224 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16225 if test $ac_cv_lib_dl_dlopen = yes; then
16226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16227 else
16228
16229 lt_cv_dlopen="dyld"
16230 lt_cv_dlopen_libs=
16231 lt_cv_dlopen_self=yes
16232
16233 fi
16234
16235 ;;
16236
16237 *)
16238 echo "$as_me:$LINENO: checking for shl_load" >&5
16239 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16240 if test "${ac_cv_func_shl_load+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243 cat >conftest.$ac_ext <<_ACEOF
16244 #line $LINENO "configure"
16245 #include "confdefs.h"
16246 /* System header to define __stub macros and hopefully few prototypes,
16247 which can conflict with char shl_load (); below. */
16248 #include <assert.h>
16249 /* Override any gcc2 internal prototype to avoid an error. */
16250 #ifdef __cplusplus
16251 extern "C"
16252 #endif
16253 /* We use char because int might match the return type of a gcc2
16254 builtin and then its argument prototype would still apply. */
16255 char shl_load ();
16256 char (*f) ();
16257
16258 #ifdef F77_DUMMY_MAIN
16259 # ifdef __cplusplus
16260 extern "C"
16261 # endif
16262 int F77_DUMMY_MAIN() { return 1; }
16263 #endif
16264 int
16265 main ()
16266 {
16267 /* The GNU C library defines this for functions which it implements
16268 to always fail with ENOSYS. Some functions are actually named
16269 something starting with __ and the normal name is an alias. */
16270 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16271 choke me
16272 #else
16273 f = shl_load;
16274 #endif
16275
16276 ;
16277 return 0;
16278 }
16279 _ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282 (eval $ac_link) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
16286 { ac_try='test -s conftest$ac_exeext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_cv_func_shl_load=yes
16293 else
16294 echo "$as_me: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16296 ac_cv_func_shl_load=no
16297 fi
16298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16299 fi
16300 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16302 if test $ac_cv_func_shl_load = yes; then
16303 lt_cv_dlopen="shl_load"
16304 else
16305 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310 ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-ldld $LIBS"
16312 cat >conftest.$ac_ext <<_ACEOF
16313 #line $LINENO "configure"
16314 #include "confdefs.h"
16315
16316 /* Override any gcc2 internal prototype to avoid an error. */
16317 #ifdef __cplusplus
16318 extern "C"
16319 #endif
16320 /* We use char because int might match the return type of a gcc2
16321 builtin and then its argument prototype would still apply. */
16322 char shl_load ();
16323 #ifdef F77_DUMMY_MAIN
16324 # ifdef __cplusplus
16325 extern "C"
16326 # endif
16327 int F77_DUMMY_MAIN() { return 1; }
16328 #endif
16329 int
16330 main ()
16331 {
16332 shl_load ();
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_cv_lib_dld_shl_load=yes
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 ac_cv_lib_dld_shl_load=no
16354 fi
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16357 fi
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16359 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16360 if test $ac_cv_lib_dld_shl_load = yes; then
16361 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16362 else
16363 echo "$as_me:$LINENO: checking for dlopen" >&5
16364 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16365 if test "${ac_cv_func_dlopen+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368 cat >conftest.$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16370 #include "confdefs.h"
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char dlopen (); below. */
16373 #include <assert.h>
16374 /* Override any gcc2 internal prototype to avoid an error. */
16375 #ifdef __cplusplus
16376 extern "C"
16377 #endif
16378 /* We use char because int might match the return type of a gcc2
16379 builtin and then its argument prototype would still apply. */
16380 char dlopen ();
16381 char (*f) ();
16382
16383 #ifdef F77_DUMMY_MAIN
16384 # ifdef __cplusplus
16385 extern "C"
16386 # endif
16387 int F77_DUMMY_MAIN() { return 1; }
16388 #endif
16389 int
16390 main ()
16391 {
16392 /* The GNU C library defines this for functions which it implements
16393 to always fail with ENOSYS. Some functions are actually named
16394 something starting with __ and the normal name is an alias. */
16395 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16396 choke me
16397 #else
16398 f = dlopen;
16399 #endif
16400
16401 ;
16402 return 0;
16403 }
16404 _ACEOF
16405 rm -f conftest.$ac_objext conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_cv_func_dlopen=yes
16418 else
16419 echo "$as_me: failed program was:" >&5
16420 cat conftest.$ac_ext >&5
16421 ac_cv_func_dlopen=no
16422 fi
16423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16424 fi
16425 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16426 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16427 if test $ac_cv_func_dlopen = yes; then
16428 lt_cv_dlopen="dlopen"
16429 else
16430 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16431 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16432 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435 ac_check_lib_save_LIBS=$LIBS
16436 LIBS="-ldl $LIBS"
16437 cat >conftest.$ac_ext <<_ACEOF
16438 #line $LINENO "configure"
16439 #include "confdefs.h"
16440
16441 /* Override any gcc2 internal prototype to avoid an error. */
16442 #ifdef __cplusplus
16443 extern "C"
16444 #endif
16445 /* We use char because int might match the return type of a gcc2
16446 builtin and then its argument prototype would still apply. */
16447 char dlopen ();
16448 #ifdef F77_DUMMY_MAIN
16449 # ifdef __cplusplus
16450 extern "C"
16451 # endif
16452 int F77_DUMMY_MAIN() { return 1; }
16453 #endif
16454 int
16455 main ()
16456 {
16457 dlopen ();
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464 (eval $ac_link) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -s conftest$ac_exeext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_lib_dl_dlopen=yes
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16478 ac_cv_lib_dl_dlopen=no
16479 fi
16480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16481 LIBS=$ac_check_lib_save_LIBS
16482 fi
16483 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16484 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16485 if test $ac_cv_lib_dl_dlopen = yes; then
16486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16487 else
16488 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16489 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16490 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493 ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-lsvld $LIBS"
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16497 #include "confdefs.h"
16498
16499 /* Override any gcc2 internal prototype to avoid an error. */
16500 #ifdef __cplusplus
16501 extern "C"
16502 #endif
16503 /* We use char because int might match the return type of a gcc2
16504 builtin and then its argument prototype would still apply. */
16505 char dlopen ();
16506 #ifdef F77_DUMMY_MAIN
16507 # ifdef __cplusplus
16508 extern "C"
16509 # endif
16510 int F77_DUMMY_MAIN() { return 1; }
16511 #endif
16512 int
16513 main ()
16514 {
16515 dlopen ();
16516 ;
16517 return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16522 (eval $ac_link) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_lib_svld_dlopen=yes
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 cat conftest.$ac_ext >&5
16536 ac_cv_lib_svld_dlopen=no
16537 fi
16538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16539 LIBS=$ac_check_lib_save_LIBS
16540 fi
16541 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16542 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16543 if test $ac_cv_lib_svld_dlopen = yes; then
16544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16545 else
16546 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16547 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16548 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551 ac_check_lib_save_LIBS=$LIBS
16552 LIBS="-ldld $LIBS"
16553 cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16555 #include "confdefs.h"
16556
16557 /* Override any gcc2 internal prototype to avoid an error. */
16558 #ifdef __cplusplus
16559 extern "C"
16560 #endif
16561 /* We use char because int might match the return type of a gcc2
16562 builtin and then its argument prototype would still apply. */
16563 char dld_link ();
16564 #ifdef F77_DUMMY_MAIN
16565 # ifdef __cplusplus
16566 extern "C"
16567 # endif
16568 int F77_DUMMY_MAIN() { return 1; }
16569 #endif
16570 int
16571 main ()
16572 {
16573 dld_link ();
16574 ;
16575 return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
16584 { ac_try='test -s conftest$ac_exeext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_lib_dld_dld_link=yes
16591 else
16592 echo "$as_me: failed program was:" >&5
16593 cat conftest.$ac_ext >&5
16594 ac_cv_lib_dld_dld_link=no
16595 fi
16596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16597 LIBS=$ac_check_lib_save_LIBS
16598 fi
16599 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16600 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16601 if test $ac_cv_lib_dld_dld_link = yes; then
16602 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16603 fi
16604
16605
16606 fi
16607
16608
16609 fi
16610
16611
16612 fi
16613
16614
16615 fi
16616
16617
16618 fi
16619
16620 ;;
16621 esac
16622
16623 if test "x$lt_cv_dlopen" != xno; then
16624 enable_dlopen=yes
16625 else
16626 enable_dlopen=no
16627 fi
16628
16629 case $lt_cv_dlopen in
16630 dlopen)
16631 save_CPPFLAGS="$CPPFLAGS"
16632 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16633
16634 save_LDFLAGS="$LDFLAGS"
16635 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16636
16637 save_LIBS="$LIBS"
16638 LIBS="$lt_cv_dlopen_libs $LIBS"
16639
16640 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16641 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16642 if test "${lt_cv_dlopen_self+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 if test "$cross_compiling" = yes; then :
16646 lt_cv_dlopen_self=cross
16647 else
16648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16649 lt_status=$lt_dlunknown
16650 cat > conftest.$ac_ext <<EOF
16651 #line 16651 "configure"
16652 #include "confdefs.h"
16653
16654 #if HAVE_DLFCN_H
16655 #include <dlfcn.h>
16656 #endif
16657
16658 #include <stdio.h>
16659
16660 #ifdef RTLD_GLOBAL
16661 # define LT_DLGLOBAL RTLD_GLOBAL
16662 #else
16663 # ifdef DL_GLOBAL
16664 # define LT_DLGLOBAL DL_GLOBAL
16665 # else
16666 # define LT_DLGLOBAL 0
16667 # endif
16668 #endif
16669
16670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16671 find out it does not work in some platform. */
16672 #ifndef LT_DLLAZY_OR_NOW
16673 # ifdef RTLD_LAZY
16674 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16675 # else
16676 # ifdef DL_LAZY
16677 # define LT_DLLAZY_OR_NOW DL_LAZY
16678 # else
16679 # ifdef RTLD_NOW
16680 # define LT_DLLAZY_OR_NOW RTLD_NOW
16681 # else
16682 # ifdef DL_NOW
16683 # define LT_DLLAZY_OR_NOW DL_NOW
16684 # else
16685 # define LT_DLLAZY_OR_NOW 0
16686 # endif
16687 # endif
16688 # endif
16689 # endif
16690 #endif
16691
16692 #ifdef __cplusplus
16693 extern "C" void exit (int);
16694 #endif
16695
16696 void fnord() { int i=42;}
16697 int main ()
16698 {
16699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16700 int status = $lt_dlunknown;
16701
16702 if (self)
16703 {
16704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16705 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16706 /* dlclose (self); */
16707 }
16708
16709 exit (status);
16710 }
16711 EOF
16712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16713 (eval $ac_link) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16717 (./conftest; exit; ) 2>/dev/null
16718 lt_status=$?
16719 case x$lt_status in
16720 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16721 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16722 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16723 esac
16724 else :
16725 # compilation failed
16726 lt_cv_dlopen_self=no
16727 fi
16728 fi
16729 rm -fr conftest*
16730
16731
16732 fi
16733 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16734 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16735
16736 if test "x$lt_cv_dlopen_self" = xyes; then
16737 LDFLAGS="$LDFLAGS $link_static_flag"
16738 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16739 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16740 if test "${lt_cv_dlopen_self_static+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743 if test "$cross_compiling" = yes; then :
16744 lt_cv_dlopen_self_static=cross
16745 else
16746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16747 lt_status=$lt_dlunknown
16748 cat > conftest.$ac_ext <<EOF
16749 #line 16749 "configure"
16750 #include "confdefs.h"
16751
16752 #if HAVE_DLFCN_H
16753 #include <dlfcn.h>
16754 #endif
16755
16756 #include <stdio.h>
16757
16758 #ifdef RTLD_GLOBAL
16759 # define LT_DLGLOBAL RTLD_GLOBAL
16760 #else
16761 # ifdef DL_GLOBAL
16762 # define LT_DLGLOBAL DL_GLOBAL
16763 # else
16764 # define LT_DLGLOBAL 0
16765 # endif
16766 #endif
16767
16768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16769 find out it does not work in some platform. */
16770 #ifndef LT_DLLAZY_OR_NOW
16771 # ifdef RTLD_LAZY
16772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16773 # else
16774 # ifdef DL_LAZY
16775 # define LT_DLLAZY_OR_NOW DL_LAZY
16776 # else
16777 # ifdef RTLD_NOW
16778 # define LT_DLLAZY_OR_NOW RTLD_NOW
16779 # else
16780 # ifdef DL_NOW
16781 # define LT_DLLAZY_OR_NOW DL_NOW
16782 # else
16783 # define LT_DLLAZY_OR_NOW 0
16784 # endif
16785 # endif
16786 # endif
16787 # endif
16788 #endif
16789
16790 #ifdef __cplusplus
16791 extern "C" void exit (int);
16792 #endif
16793
16794 void fnord() { int i=42;}
16795 int main ()
16796 {
16797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16798 int status = $lt_dlunknown;
16799
16800 if (self)
16801 {
16802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16803 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16804 /* dlclose (self); */
16805 }
16806
16807 exit (status);
16808 }
16809 EOF
16810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16811 (eval $ac_link) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16815 (./conftest; exit; ) 2>/dev/null
16816 lt_status=$?
16817 case x$lt_status in
16818 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16819 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16820 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16821 esac
16822 else :
16823 # compilation failed
16824 lt_cv_dlopen_self_static=no
16825 fi
16826 fi
16827 rm -fr conftest*
16828
16829
16830 fi
16831 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16832 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16833 fi
16834
16835 CPPFLAGS="$save_CPPFLAGS"
16836 LDFLAGS="$save_LDFLAGS"
16837 LIBS="$save_LIBS"
16838 ;;
16839 esac
16840
16841 case $lt_cv_dlopen_self in
16842 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16843 *) enable_dlopen_self=unknown ;;
16844 esac
16845
16846 case $lt_cv_dlopen_self_static in
16847 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16848 *) enable_dlopen_self_static=unknown ;;
16849 esac
16850 fi
16851
16852
16853 # The else clause should only fire when bootstrapping the
16854 # libtool distribution, otherwise you forgot to ship ltmain.sh
16855 # with your package, and you will get complaints that there are
16856 # no rules to generate ltmain.sh.
16857 if test -f "$ltmain"; then
16858 # See if we are running on zsh, and set the options which allow our commands through
16859 # without removal of \ escapes.
16860 if test -n "${ZSH_VERSION+set}" ; then
16861 setopt NO_GLOB_SUBST
16862 fi
16863 # Now quote all the things that may contain metacharacters while being
16864 # careful not to overquote the AC_SUBSTed values. We take copies of the
16865 # variables and quote the copies for generation of the libtool script.
16866 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16869 deplibs_check_method reload_flag reload_cmds need_locks \
16870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16871 lt_cv_sys_global_symbol_to_c_name_address \
16872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16873 old_postinstall_cmds old_postuninstall_cmds \
16874 compiler_GCJ \
16875 CC_GCJ \
16876 LD_GCJ \
16877 lt_prog_compiler_wl_GCJ \
16878 lt_prog_compiler_pic_GCJ \
16879 lt_prog_compiler_static_GCJ \
16880 lt_prog_compiler_no_builtin_flag_GCJ \
16881 export_dynamic_flag_spec_GCJ \
16882 thread_safe_flag_spec_GCJ \
16883 whole_archive_flag_spec_GCJ \
16884 enable_shared_with_static_runtimes_GCJ \
16885 old_archive_cmds_GCJ \
16886 old_archive_from_new_cmds_GCJ \
16887 predep_objects_GCJ \
16888 postdep_objects_GCJ \
16889 predeps_GCJ \
16890 postdeps_GCJ \
16891 compiler_lib_search_path_GCJ \
16892 archive_cmds_GCJ \
16893 archive_expsym_cmds_GCJ \
16894 postinstall_cmds_GCJ \
16895 postuninstall_cmds_GCJ \
16896 old_archive_from_expsyms_cmds_GCJ \
16897 allow_undefined_flag_GCJ \
16898 no_undefined_flag_GCJ \
16899 export_symbols_cmds_GCJ \
16900 hardcode_libdir_flag_spec_GCJ \
16901 hardcode_libdir_flag_spec_ld_GCJ \
16902 hardcode_libdir_separator_GCJ \
16903 hardcode_automatic_GCJ \
16904 module_cmds_GCJ \
16905 module_expsym_cmds_GCJ \
16906 lt_cv_prog_compiler_c_o_GCJ \
16907 exclude_expsyms_GCJ \
16908 include_expsyms_GCJ; do
16909
16910 case $var in
16911 old_archive_cmds_GCJ | \
16912 old_archive_from_new_cmds_GCJ | \
16913 archive_cmds_GCJ | \
16914 archive_expsym_cmds_GCJ | \
16915 module_cmds_GCJ | \
16916 module_expsym_cmds_GCJ | \
16917 old_archive_from_expsyms_cmds_GCJ | \
16918 export_symbols_cmds_GCJ | \
16919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16920 postinstall_cmds | postuninstall_cmds | \
16921 old_postinstall_cmds | old_postuninstall_cmds | \
16922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16923 # Double-quote double-evaled strings.
16924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16925 ;;
16926 *)
16927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16928 ;;
16929 esac
16930 done
16931
16932 case $lt_echo in
16933 *'\$0 --fallback-echo"')
16934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16935 ;;
16936 esac
16937
16938 cfgfile="$ofile"
16939
16940 cat <<__EOF__ >> "$cfgfile"
16941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16942
16943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16944
16945 # Shell to use when invoking shell scripts.
16946 SHELL=$lt_SHELL
16947
16948 # Whether or not to build shared libraries.
16949 build_libtool_libs=$enable_shared
16950
16951 # Whether or not to build static libraries.
16952 build_old_libs=$enable_static
16953
16954 # Whether or not to add -lc for building shared libraries.
16955 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16956
16957 # Whether or not to disallow shared libs when runtime libs are static
16958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16959
16960 # Whether or not to optimize for fast installation.
16961 fast_install=$enable_fast_install
16962
16963 # The host system.
16964 host_alias=$host_alias
16965 host=$host
16966
16967 # An echo program that does not interpret backslashes.
16968 echo=$lt_echo
16969
16970 # The archiver.
16971 AR=$lt_AR
16972 AR_FLAGS=$lt_AR_FLAGS
16973
16974 # A C compiler.
16975 LTCC=$lt_LTCC
16976
16977 # A language-specific compiler.
16978 CC=$lt_compiler_GCJ
16979
16980 # Is the compiler the GNU C compiler?
16981 with_gcc=$GCC_GCJ
16982
16983 # An ERE matcher.
16984 EGREP=$lt_EGREP
16985
16986 # The linker used to build libraries.
16987 LD=$lt_LD_GCJ
16988
16989 # Whether we need hard or soft links.
16990 LN_S=$lt_LN_S
16991
16992 # A BSD-compatible nm program.
16993 NM=$lt_NM
16994
16995 # A symbol stripping program
16996 STRIP=$STRIP
16997
16998 # Used to examine libraries when file_magic_cmd begins "file"
16999 MAGIC_CMD=$MAGIC_CMD
17000
17001 # Used on cygwin: DLL creation program.
17002 DLLTOOL="$DLLTOOL"
17003
17004 # Used on cygwin: object dumper.
17005 OBJDUMP="$OBJDUMP"
17006
17007 # Used on cygwin: assembler.
17008 AS="$AS"
17009
17010 # The name of the directory that contains temporary libtool files.
17011 objdir=$objdir
17012
17013 # How to create reloadable object files.
17014 reload_flag=$lt_reload_flag
17015 reload_cmds=$lt_reload_cmds
17016
17017 # How to pass a linker flag through the compiler.
17018 wl=$lt_lt_prog_compiler_wl_GCJ
17019
17020 # Object file suffix (normally "o").
17021 objext="$ac_objext"
17022
17023 # Old archive suffix (normally "a").
17024 libext="$libext"
17025
17026 # Shared library suffix (normally ".so").
17027 shrext='$shrext'
17028
17029 # Executable file suffix (normally "").
17030 exeext="$exeext"
17031
17032 # Additional compiler flags for building library objects.
17033 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17034 pic_mode=$pic_mode
17035
17036 # What is the maximum length of a command?
17037 max_cmd_len=$lt_cv_sys_max_cmd_len
17038
17039 # Does compiler simultaneously support -c and -o options?
17040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17041
17042 # Must we lock files when doing compilation ?
17043 need_locks=$lt_need_locks
17044
17045 # Do we need the lib prefix for modules?
17046 need_lib_prefix=$need_lib_prefix
17047
17048 # Do we need a version for libraries?
17049 need_version=$need_version
17050
17051 # Whether dlopen is supported.
17052 dlopen_support=$enable_dlopen
17053
17054 # Whether dlopen of programs is supported.
17055 dlopen_self=$enable_dlopen_self
17056
17057 # Whether dlopen of statically linked programs is supported.
17058 dlopen_self_static=$enable_dlopen_self_static
17059
17060 # Compiler flag to prevent dynamic linking.
17061 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17062
17063 # Compiler flag to turn off builtin functions.
17064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17065
17066 # Compiler flag to allow reflexive dlopens.
17067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17068
17069 # Compiler flag to generate shared objects directly from archives.
17070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17071
17072 # Compiler flag to generate thread-safe objects.
17073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17074
17075 # Library versioning type.
17076 version_type=$version_type
17077
17078 # Format of library name prefix.
17079 libname_spec=$lt_libname_spec
17080
17081 # List of archive names. First name is the real one, the rest are links.
17082 # The last name is the one that the linker finds with -lNAME.
17083 library_names_spec=$lt_library_names_spec
17084
17085 # The coded name of the library, if different from the real name.
17086 soname_spec=$lt_soname_spec
17087
17088 # Commands used to build and install an old-style archive.
17089 RANLIB=$lt_RANLIB
17090 old_archive_cmds=$lt_old_archive_cmds_GCJ
17091 old_postinstall_cmds=$lt_old_postinstall_cmds
17092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17093
17094 # Create an old-style archive from a shared archive.
17095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17096
17097 # Create a temporary old-style archive to link instead of a shared archive.
17098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17099
17100 # Commands used to build and install a shared archive.
17101 archive_cmds=$lt_archive_cmds_GCJ
17102 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17103 postinstall_cmds=$lt_postinstall_cmds
17104 postuninstall_cmds=$lt_postuninstall_cmds
17105
17106 # Commands used to build a loadable module (assumed same as above if empty)
17107 module_cmds=$lt_module_cmds_GCJ
17108 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17109
17110 # Commands to strip libraries.
17111 old_striplib=$lt_old_striplib
17112 striplib=$lt_striplib
17113
17114 # Dependencies to place before the objects being linked to create a
17115 # shared library.
17116 predep_objects=$lt_predep_objects_GCJ
17117
17118 # Dependencies to place after the objects being linked to create a
17119 # shared library.
17120 postdep_objects=$lt_postdep_objects_GCJ
17121
17122 # Dependencies to place before the objects being linked to create a
17123 # shared library.
17124 predeps=$lt_predeps_GCJ
17125
17126 # Dependencies to place after the objects being linked to create a
17127 # shared library.
17128 postdeps=$lt_postdeps_GCJ
17129
17130 # The library search path used internally by the compiler when linking
17131 # a shared library.
17132 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17133
17134 # Method to check whether dependent libraries are shared objects.
17135 deplibs_check_method=$lt_deplibs_check_method
17136
17137 # Command to use when deplibs_check_method == file_magic.
17138 file_magic_cmd=$lt_file_magic_cmd
17139
17140 # Flag that allows shared libraries with undefined symbols to be built.
17141 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17142
17143 # Flag that forces no undefined symbols.
17144 no_undefined_flag=$lt_no_undefined_flag_GCJ
17145
17146 # Commands used to finish a libtool library installation in a directory.
17147 finish_cmds=$lt_finish_cmds
17148
17149 # Same as above, but a single script fragment to be evaled but not shown.
17150 finish_eval=$lt_finish_eval
17151
17152 # Take the output of nm and produce a listing of raw symbols and C names.
17153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17154
17155 # Transform the output of nm in a proper C declaration
17156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17157
17158 # Transform the output of nm in a C name address pair
17159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17160
17161 # This is the shared library runtime path variable.
17162 runpath_var=$runpath_var
17163
17164 # This is the shared library path variable.
17165 shlibpath_var=$shlibpath_var
17166
17167 # Is shlibpath searched before the hard-coded library search path?
17168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17169
17170 # How to hardcode a shared library path into an executable.
17171 hardcode_action=$hardcode_action_GCJ
17172
17173 # Whether we should hardcode library paths into libraries.
17174 hardcode_into_libs=$hardcode_into_libs
17175
17176 # Flag to hardcode \$libdir into a binary during linking.
17177 # This must work even if \$libdir does not exist.
17178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17179
17180 # If ld is used when linking, flag to hardcode \$libdir into
17181 # a binary during linking. This must work even if \$libdir does
17182 # not exist.
17183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17184
17185 # Whether we need a single -rpath flag with a separated argument.
17186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17187
17188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17189 # resulting binary.
17190 hardcode_direct=$hardcode_direct_GCJ
17191
17192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17193 # resulting binary.
17194 hardcode_minus_L=$hardcode_minus_L_GCJ
17195
17196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17197 # the resulting binary.
17198 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17199
17200 # Set to yes if building a shared library automatically hardcodes DIR into the library
17201 # and all subsequent libraries and executables linked against it.
17202 hardcode_automatic=$hardcode_automatic_GCJ
17203
17204 # Variables whose values should be saved in libtool wrapper scripts and
17205 # restored at relink time.
17206 variables_saved_for_relink="$variables_saved_for_relink"
17207
17208 # Whether libtool must link a program against all its dependency libraries.
17209 link_all_deplibs=$link_all_deplibs_GCJ
17210
17211 # Compile-time system search path for libraries
17212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17213
17214 # Run-time system search path for libraries
17215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17216
17217 # Fix the shell variable \$srcfile for the compiler.
17218 fix_srcfile_path="$fix_srcfile_path_GCJ"
17219
17220 # Set to yes if exported symbols are required.
17221 always_export_symbols=$always_export_symbols_GCJ
17222
17223 # The commands to list exported symbols.
17224 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17225
17226 # The commands to extract the exported symbol list from a shared archive.
17227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17228
17229 # Symbols that should not be listed in the preloaded symbols.
17230 exclude_expsyms=$lt_exclude_expsyms_GCJ
17231
17232 # Symbols that must always be exported.
17233 include_expsyms=$lt_include_expsyms_GCJ
17234
17235 # ### END LIBTOOL TAG CONFIG: $tagname
17236
17237 __EOF__
17238
17239
17240 else
17241 # If there is no Makefile yet, we rely on a make rule to execute
17242 # `config.status --recheck' to rerun these tests and create the
17243 # libtool script then.
17244 test -f Makefile && make "$ltmain"
17245 fi
17246
17247
17248 ac_ext=c
17249 ac_cpp='$CPP $CPPFLAGS'
17250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17253
17254 CC="$lt_save_CC"
17255
17256 else
17257 tagname=""
17258 fi
17259 ;;
17260
17261 RC)
17262
17263
17264
17265 # Source file extension for RC test sources.
17266 ac_ext=rc
17267
17268 # Object file extension for compiled RC test sources.
17269 objext=o
17270 objext_RC=$objext
17271
17272 # Code to be used in simple compile tests
17273 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17274
17275 # Code to be used in simple link tests
17276 lt_simple_link_test_code="$lt_simple_compile_test_code"
17277
17278 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17279
17280 # If no C compiler was specified, use CC.
17281 LTCC=${LTCC-"$CC"}
17282
17283 # Allow CC to be a program name with arguments.
17284 compiler=$CC
17285
17286
17287 # Allow CC to be a program name with arguments.
17288 lt_save_CC="$CC"
17289 CC=${RC-"windres"}
17290 compiler=$CC
17291 compiler_RC=$CC
17292 lt_cv_prog_compiler_c_o_RC=yes
17293
17294 # The else clause should only fire when bootstrapping the
17295 # libtool distribution, otherwise you forgot to ship ltmain.sh
17296 # with your package, and you will get complaints that there are
17297 # no rules to generate ltmain.sh.
17298 if test -f "$ltmain"; then
17299 # See if we are running on zsh, and set the options which allow our commands through
17300 # without removal of \ escapes.
17301 if test -n "${ZSH_VERSION+set}" ; then
17302 setopt NO_GLOB_SUBST
17303 fi
17304 # Now quote all the things that may contain metacharacters while being
17305 # careful not to overquote the AC_SUBSTed values. We take copies of the
17306 # variables and quote the copies for generation of the libtool script.
17307 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17308 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17309 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17310 deplibs_check_method reload_flag reload_cmds need_locks \
17311 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17312 lt_cv_sys_global_symbol_to_c_name_address \
17313 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17314 old_postinstall_cmds old_postuninstall_cmds \
17315 compiler_RC \
17316 CC_RC \
17317 LD_RC \
17318 lt_prog_compiler_wl_RC \
17319 lt_prog_compiler_pic_RC \
17320 lt_prog_compiler_static_RC \
17321 lt_prog_compiler_no_builtin_flag_RC \
17322 export_dynamic_flag_spec_RC \
17323 thread_safe_flag_spec_RC \
17324 whole_archive_flag_spec_RC \
17325 enable_shared_with_static_runtimes_RC \
17326 old_archive_cmds_RC \
17327 old_archive_from_new_cmds_RC \
17328 predep_objects_RC \
17329 postdep_objects_RC \
17330 predeps_RC \
17331 postdeps_RC \
17332 compiler_lib_search_path_RC \
17333 archive_cmds_RC \
17334 archive_expsym_cmds_RC \
17335 postinstall_cmds_RC \
17336 postuninstall_cmds_RC \
17337 old_archive_from_expsyms_cmds_RC \
17338 allow_undefined_flag_RC \
17339 no_undefined_flag_RC \
17340 export_symbols_cmds_RC \
17341 hardcode_libdir_flag_spec_RC \
17342 hardcode_libdir_flag_spec_ld_RC \
17343 hardcode_libdir_separator_RC \
17344 hardcode_automatic_RC \
17345 module_cmds_RC \
17346 module_expsym_cmds_RC \
17347 lt_cv_prog_compiler_c_o_RC \
17348 exclude_expsyms_RC \
17349 include_expsyms_RC; do
17350
17351 case $var in
17352 old_archive_cmds_RC | \
17353 old_archive_from_new_cmds_RC | \
17354 archive_cmds_RC | \
17355 archive_expsym_cmds_RC | \
17356 module_cmds_RC | \
17357 module_expsym_cmds_RC | \
17358 old_archive_from_expsyms_cmds_RC | \
17359 export_symbols_cmds_RC | \
17360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17361 postinstall_cmds | postuninstall_cmds | \
17362 old_postinstall_cmds | old_postuninstall_cmds | \
17363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17364 # Double-quote double-evaled strings.
17365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17366 ;;
17367 *)
17368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17369 ;;
17370 esac
17371 done
17372
17373 case $lt_echo in
17374 *'\$0 --fallback-echo"')
17375 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17376 ;;
17377 esac
17378
17379 cfgfile="$ofile"
17380
17381 cat <<__EOF__ >> "$cfgfile"
17382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17383
17384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17385
17386 # Shell to use when invoking shell scripts.
17387 SHELL=$lt_SHELL
17388
17389 # Whether or not to build shared libraries.
17390 build_libtool_libs=$enable_shared
17391
17392 # Whether or not to build static libraries.
17393 build_old_libs=$enable_static
17394
17395 # Whether or not to add -lc for building shared libraries.
17396 build_libtool_need_lc=$archive_cmds_need_lc_RC
17397
17398 # Whether or not to disallow shared libs when runtime libs are static
17399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17400
17401 # Whether or not to optimize for fast installation.
17402 fast_install=$enable_fast_install
17403
17404 # The host system.
17405 host_alias=$host_alias
17406 host=$host
17407
17408 # An echo program that does not interpret backslashes.
17409 echo=$lt_echo
17410
17411 # The archiver.
17412 AR=$lt_AR
17413 AR_FLAGS=$lt_AR_FLAGS
17414
17415 # A C compiler.
17416 LTCC=$lt_LTCC
17417
17418 # A language-specific compiler.
17419 CC=$lt_compiler_RC
17420
17421 # Is the compiler the GNU C compiler?
17422 with_gcc=$GCC_RC
17423
17424 # An ERE matcher.
17425 EGREP=$lt_EGREP
17426
17427 # The linker used to build libraries.
17428 LD=$lt_LD_RC
17429
17430 # Whether we need hard or soft links.
17431 LN_S=$lt_LN_S
17432
17433 # A BSD-compatible nm program.
17434 NM=$lt_NM
17435
17436 # A symbol stripping program
17437 STRIP=$STRIP
17438
17439 # Used to examine libraries when file_magic_cmd begins "file"
17440 MAGIC_CMD=$MAGIC_CMD
17441
17442 # Used on cygwin: DLL creation program.
17443 DLLTOOL="$DLLTOOL"
17444
17445 # Used on cygwin: object dumper.
17446 OBJDUMP="$OBJDUMP"
17447
17448 # Used on cygwin: assembler.
17449 AS="$AS"
17450
17451 # The name of the directory that contains temporary libtool files.
17452 objdir=$objdir
17453
17454 # How to create reloadable object files.
17455 reload_flag=$lt_reload_flag
17456 reload_cmds=$lt_reload_cmds
17457
17458 # How to pass a linker flag through the compiler.
17459 wl=$lt_lt_prog_compiler_wl_RC
17460
17461 # Object file suffix (normally "o").
17462 objext="$ac_objext"
17463
17464 # Old archive suffix (normally "a").
17465 libext="$libext"
17466
17467 # Shared library suffix (normally ".so").
17468 shrext='$shrext'
17469
17470 # Executable file suffix (normally "").
17471 exeext="$exeext"
17472
17473 # Additional compiler flags for building library objects.
17474 pic_flag=$lt_lt_prog_compiler_pic_RC
17475 pic_mode=$pic_mode
17476
17477 # What is the maximum length of a command?
17478 max_cmd_len=$lt_cv_sys_max_cmd_len
17479
17480 # Does compiler simultaneously support -c and -o options?
17481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17482
17483 # Must we lock files when doing compilation ?
17484 need_locks=$lt_need_locks
17485
17486 # Do we need the lib prefix for modules?
17487 need_lib_prefix=$need_lib_prefix
17488
17489 # Do we need a version for libraries?
17490 need_version=$need_version
17491
17492 # Whether dlopen is supported.
17493 dlopen_support=$enable_dlopen
17494
17495 # Whether dlopen of programs is supported.
17496 dlopen_self=$enable_dlopen_self
17497
17498 # Whether dlopen of statically linked programs is supported.
17499 dlopen_self_static=$enable_dlopen_self_static
17500
17501 # Compiler flag to prevent dynamic linking.
17502 link_static_flag=$lt_lt_prog_compiler_static_RC
17503
17504 # Compiler flag to turn off builtin functions.
17505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17506
17507 # Compiler flag to allow reflexive dlopens.
17508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17509
17510 # Compiler flag to generate shared objects directly from archives.
17511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17512
17513 # Compiler flag to generate thread-safe objects.
17514 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17515
17516 # Library versioning type.
17517 version_type=$version_type
17518
17519 # Format of library name prefix.
17520 libname_spec=$lt_libname_spec
17521
17522 # List of archive names. First name is the real one, the rest are links.
17523 # The last name is the one that the linker finds with -lNAME.
17524 library_names_spec=$lt_library_names_spec
17525
17526 # The coded name of the library, if different from the real name.
17527 soname_spec=$lt_soname_spec
17528
17529 # Commands used to build and install an old-style archive.
17530 RANLIB=$lt_RANLIB
17531 old_archive_cmds=$lt_old_archive_cmds_RC
17532 old_postinstall_cmds=$lt_old_postinstall_cmds
17533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17534
17535 # Create an old-style archive from a shared archive.
17536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17537
17538 # Create a temporary old-style archive to link instead of a shared archive.
17539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17540
17541 # Commands used to build and install a shared archive.
17542 archive_cmds=$lt_archive_cmds_RC
17543 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17544 postinstall_cmds=$lt_postinstall_cmds
17545 postuninstall_cmds=$lt_postuninstall_cmds
17546
17547 # Commands used to build a loadable module (assumed same as above if empty)
17548 module_cmds=$lt_module_cmds_RC
17549 module_expsym_cmds=$lt_module_expsym_cmds_RC
17550
17551 # Commands to strip libraries.
17552 old_striplib=$lt_old_striplib
17553 striplib=$lt_striplib
17554
17555 # Dependencies to place before the objects being linked to create a
17556 # shared library.
17557 predep_objects=$lt_predep_objects_RC
17558
17559 # Dependencies to place after the objects being linked to create a
17560 # shared library.
17561 postdep_objects=$lt_postdep_objects_RC
17562
17563 # Dependencies to place before the objects being linked to create a
17564 # shared library.
17565 predeps=$lt_predeps_RC
17566
17567 # Dependencies to place after the objects being linked to create a
17568 # shared library.
17569 postdeps=$lt_postdeps_RC
17570
17571 # The library search path used internally by the compiler when linking
17572 # a shared library.
17573 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17574
17575 # Method to check whether dependent libraries are shared objects.
17576 deplibs_check_method=$lt_deplibs_check_method
17577
17578 # Command to use when deplibs_check_method == file_magic.
17579 file_magic_cmd=$lt_file_magic_cmd
17580
17581 # Flag that allows shared libraries with undefined symbols to be built.
17582 allow_undefined_flag=$lt_allow_undefined_flag_RC
17583
17584 # Flag that forces no undefined symbols.
17585 no_undefined_flag=$lt_no_undefined_flag_RC
17586
17587 # Commands used to finish a libtool library installation in a directory.
17588 finish_cmds=$lt_finish_cmds
17589
17590 # Same as above, but a single script fragment to be evaled but not shown.
17591 finish_eval=$lt_finish_eval
17592
17593 # Take the output of nm and produce a listing of raw symbols and C names.
17594 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17595
17596 # Transform the output of nm in a proper C declaration
17597 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17598
17599 # Transform the output of nm in a C name address pair
17600 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17601
17602 # This is the shared library runtime path variable.
17603 runpath_var=$runpath_var
17604
17605 # This is the shared library path variable.
17606 shlibpath_var=$shlibpath_var
17607
17608 # Is shlibpath searched before the hard-coded library search path?
17609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17610
17611 # How to hardcode a shared library path into an executable.
17612 hardcode_action=$hardcode_action_RC
17613
17614 # Whether we should hardcode library paths into libraries.
17615 hardcode_into_libs=$hardcode_into_libs
17616
17617 # Flag to hardcode \$libdir into a binary during linking.
17618 # This must work even if \$libdir does not exist.
17619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17620
17621 # If ld is used when linking, flag to hardcode \$libdir into
17622 # a binary during linking. This must work even if \$libdir does
17623 # not exist.
17624 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17625
17626 # Whether we need a single -rpath flag with a separated argument.
17627 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17628
17629 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17630 # resulting binary.
17631 hardcode_direct=$hardcode_direct_RC
17632
17633 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17634 # resulting binary.
17635 hardcode_minus_L=$hardcode_minus_L_RC
17636
17637 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17638 # the resulting binary.
17639 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17640
17641 # Set to yes if building a shared library automatically hardcodes DIR into the library
17642 # and all subsequent libraries and executables linked against it.
17643 hardcode_automatic=$hardcode_automatic_RC
17644
17645 # Variables whose values should be saved in libtool wrapper scripts and
17646 # restored at relink time.
17647 variables_saved_for_relink="$variables_saved_for_relink"
17648
17649 # Whether libtool must link a program against all its dependency libraries.
17650 link_all_deplibs=$link_all_deplibs_RC
17651
17652 # Compile-time system search path for libraries
17653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17654
17655 # Run-time system search path for libraries
17656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17657
17658 # Fix the shell variable \$srcfile for the compiler.
17659 fix_srcfile_path="$fix_srcfile_path_RC"
17660
17661 # Set to yes if exported symbols are required.
17662 always_export_symbols=$always_export_symbols_RC
17663
17664 # The commands to list exported symbols.
17665 export_symbols_cmds=$lt_export_symbols_cmds_RC
17666
17667 # The commands to extract the exported symbol list from a shared archive.
17668 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17669
17670 # Symbols that should not be listed in the preloaded symbols.
17671 exclude_expsyms=$lt_exclude_expsyms_RC
17672
17673 # Symbols that must always be exported.
17674 include_expsyms=$lt_include_expsyms_RC
17675
17676 # ### END LIBTOOL TAG CONFIG: $tagname
17677
17678 __EOF__
17679
17680
17681 else
17682 # If there is no Makefile yet, we rely on a make rule to execute
17683 # `config.status --recheck' to rerun these tests and create the
17684 # libtool script then.
17685 test -f Makefile && make "$ltmain"
17686 fi
17687
17688
17689 ac_ext=c
17690 ac_cpp='$CPP $CPPFLAGS'
17691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17694
17695 CC="$lt_save_CC"
17696
17697 ;;
17698
17699 *)
17700 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17701 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17702 { (exit 1); exit 1; }; }
17703 ;;
17704 esac
17705
17706 # Append the new tag name to the list of available tags.
17707 if test -n "$tagname" ; then
17708 available_tags="$available_tags $tagname"
17709 fi
17710 fi
17711 done
17712 IFS="$lt_save_ifs"
17713
17714 # Now substitute the updated list of available tags.
17715 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17716 mv "${ofile}T" "$ofile"
17717 chmod +x "$ofile"
17718 else
17719 rm -f "${ofile}T"
17720 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17721 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17722 { (exit 1); exit 1; }; }
17723 fi
17724 fi
17725
17726
17727
17728 # This can be used to rebuild libtool when needed
17729 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17730
17731 # Always use our own libtool.
17732 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17733
17734 # Prevent multiple expansion
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758 echo "$as_me:$LINENO: checking for library containing crypt" >&5
17759 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
17760 if test "${ac_cv_search_crypt+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 else
17763 ac_func_search_save_LIBS=$LIBS
17764 ac_cv_search_crypt=no
17765 cat >conftest.$ac_ext <<_ACEOF
17766 #line $LINENO "configure"
17767 #include "confdefs.h"
17768
17769 /* Override any gcc2 internal prototype to avoid an error. */
17770 #ifdef __cplusplus
17771 extern "C"
17772 #endif
17773 /* We use char because int might match the return type of a gcc2
17774 builtin and then its argument prototype would still apply. */
17775 char crypt ();
17776 #ifdef F77_DUMMY_MAIN
17777 # ifdef __cplusplus
17778 extern "C"
17779 # endif
17780 int F77_DUMMY_MAIN() { return 1; }
17781 #endif
17782 int
17783 main ()
17784 {
17785 crypt ();
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17792 (eval $ac_link) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -s conftest$ac_exeext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_search_crypt="none required"
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17806 fi
17807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17808 if test "$ac_cv_search_crypt" = no; then
17809 for ac_lib in crypt; do
17810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17811 cat >conftest.$ac_ext <<_ACEOF
17812 #line $LINENO "configure"
17813 #include "confdefs.h"
17814
17815 /* Override any gcc2 internal prototype to avoid an error. */
17816 #ifdef __cplusplus
17817 extern "C"
17818 #endif
17819 /* We use char because int might match the return type of a gcc2
17820 builtin and then its argument prototype would still apply. */
17821 char crypt ();
17822 #ifdef F77_DUMMY_MAIN
17823 # ifdef __cplusplus
17824 extern "C"
17825 # endif
17826 int F77_DUMMY_MAIN() { return 1; }
17827 #endif
17828 int
17829 main ()
17830 {
17831 crypt ();
17832 ;
17833 return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17838 (eval $ac_link) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -s conftest$ac_exeext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_search_crypt="-l$ac_lib"
17849 break
17850 else
17851 echo "$as_me: failed program was:" >&5
17852 cat conftest.$ac_ext >&5
17853 fi
17854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17855 done
17856 fi
17857 LIBS=$ac_func_search_save_LIBS
17858 fi
17859 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
17860 echo "${ECHO_T}$ac_cv_search_crypt" >&6
17861 if test "$ac_cv_search_crypt" != no; then
17862 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
17863
17864 fi
17865
17866
17867 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
17868 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
17869 if test "${ac_cv_lib_socket_connect+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872 ac_check_lib_save_LIBS=$LIBS
17873 LIBS="-lsocket $LIBS"
17874 cat >conftest.$ac_ext <<_ACEOF
17875 #line $LINENO "configure"
17876 #include "confdefs.h"
17877
17878 /* Override any gcc2 internal prototype to avoid an error. */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 /* We use char because int might match the return type of a gcc2
17883 builtin and then its argument prototype would still apply. */
17884 char connect ();
17885 #ifdef F77_DUMMY_MAIN
17886 # ifdef __cplusplus
17887 extern "C"
17888 # endif
17889 int F77_DUMMY_MAIN() { return 1; }
17890 #endif
17891 int
17892 main ()
17893 {
17894 connect ();
17895 ;
17896 return 0;
17897 }
17898 _ACEOF
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901 (eval $ac_link) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -s conftest$ac_exeext'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17911 ac_cv_lib_socket_connect=yes
17912 else
17913 echo "$as_me: failed program was:" >&5
17914 cat conftest.$ac_ext >&5
17915 ac_cv_lib_socket_connect=no
17916 fi
17917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17919 fi
17920 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
17921 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
17922 if test $ac_cv_lib_socket_connect = yes; then
17923 cat >>confdefs.h <<_ACEOF
17924 #define HAVE_LIBSOCKET 1
17925 _ACEOF
17926
17927 LIBS="-lsocket $LIBS"
17928
17929 fi
17930
17931
17932 echo "$as_me:$LINENO: checking for getservbyname in -lbind" >&5
17933 echo $ECHO_N "checking for getservbyname in -lbind... $ECHO_C" >&6
17934 if test "${ac_cv_lib_bind_getservbyname+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937 ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lbind $LIBS"
17939 cat >conftest.$ac_ext <<_ACEOF
17940 #line $LINENO "configure"
17941 #include "confdefs.h"
17942
17943 /* Override any gcc2 internal prototype to avoid an error. */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 /* We use char because int might match the return type of a gcc2
17948 builtin and then its argument prototype would still apply. */
17949 char getservbyname ();
17950 #ifdef F77_DUMMY_MAIN
17951 # ifdef __cplusplus
17952 extern "C"
17953 # endif
17954 int F77_DUMMY_MAIN() { return 1; }
17955 #endif
17956 int
17957 main ()
17958 {
17959 getservbyname ();
17960 ;
17961 return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_lib_bind_getservbyname=yes
17977 else
17978 echo "$as_me: failed program was:" >&5
17979 cat conftest.$ac_ext >&5
17980 ac_cv_lib_bind_getservbyname=no
17981 fi
17982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17983 LIBS=$ac_check_lib_save_LIBS
17984 fi
17985 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_getservbyname" >&5
17986 echo "${ECHO_T}$ac_cv_lib_bind_getservbyname" >&6
17987 if test $ac_cv_lib_bind_getservbyname = yes; then
17988 cat >>confdefs.h <<_ACEOF
17989 #define HAVE_LIBBIND 1
17990 _ACEOF
17991
17992 LIBS="-lbind $LIBS"
17993
17994 fi
17995
17996
17997 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
17998 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
17999 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002 ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-lnsl $LIBS"
18004 cat >conftest.$ac_ext <<_ACEOF
18005 #line $LINENO "configure"
18006 #include "confdefs.h"
18007
18008 /* Override any gcc2 internal prototype to avoid an error. */
18009 #ifdef __cplusplus
18010 extern "C"
18011 #endif
18012 /* We use char because int might match the return type of a gcc2
18013 builtin and then its argument prototype would still apply. */
18014 char gethostbyname ();
18015 #ifdef F77_DUMMY_MAIN
18016 # ifdef __cplusplus
18017 extern "C"
18018 # endif
18019 int F77_DUMMY_MAIN() { return 1; }
18020 #endif
18021 int
18022 main ()
18023 {
18024 gethostbyname ();
18025 ;
18026 return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18031 (eval $ac_link) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_cv_lib_nsl_gethostbyname=yes
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 cat conftest.$ac_ext >&5
18045 ac_cv_lib_nsl_gethostbyname=no
18046 fi
18047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18048 LIBS=$ac_check_lib_save_LIBS
18049 fi
18050 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18051 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18052 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18053 cat >>confdefs.h <<_ACEOF
18054 #define HAVE_LIBNSL 1
18055 _ACEOF
18056
18057 LIBS="-lnsl $LIBS"
18058
18059 fi
18060
18061
18062 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18063 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18064 if test "${ac_cv_lib_util_openpty+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067 ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-lutil $LIBS"
18069 cat >conftest.$ac_ext <<_ACEOF
18070 #line $LINENO "configure"
18071 #include "confdefs.h"
18072
18073 /* Override any gcc2 internal prototype to avoid an error. */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 /* We use char because int might match the return type of a gcc2
18078 builtin and then its argument prototype would still apply. */
18079 char openpty ();
18080 #ifdef F77_DUMMY_MAIN
18081 # ifdef __cplusplus
18082 extern "C"
18083 # endif
18084 int F77_DUMMY_MAIN() { return 1; }
18085 #endif
18086 int
18087 main ()
18088 {
18089 openpty ();
18090 ;
18091 return 0;
18092 }
18093 _ACEOF
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18096 (eval $ac_link) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -s conftest$ac_exeext'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_lib_util_openpty=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 cat conftest.$ac_ext >&5
18110 ac_cv_lib_util_openpty=no
18111 fi
18112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18114 fi
18115 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18116 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18117 if test $ac_cv_lib_util_openpty = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define HAVE_LIBUTIL 1
18120 _ACEOF
18121
18122 LIBS="-lutil $LIBS"
18123
18124 fi
18125
18126
18127 echo "$as_me:$LINENO: checking for X" >&5
18128 echo $ECHO_N "checking for X... $ECHO_C" >&6
18129
18130
18131 # Check whether --with-x or --without-x was given.
18132 if test "${with_x+set}" = set; then
18133 withval="$with_x"
18134
18135 fi;
18136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18137 if test "x$with_x" = xno; then
18138 # The user explicitly disabled X.
18139 have_x=disabled
18140 else
18141 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18142 # Both variables are already set.
18143 have_x=yes
18144 else
18145 if test "${ac_cv_have_x+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 # One or both of the vars are not set, and there is no cached value.
18149 ac_x_includes=no ac_x_libraries=no
18150 rm -fr conftest.dir
18151 if mkdir conftest.dir; then
18152 cd conftest.dir
18153 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18154 cat >Imakefile <<'_ACEOF'
18155 acfindx:
18156 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18157 _ACEOF
18158 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18160 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18161 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18162 for ac_extension in a so sl; do
18163 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18164 test -f $ac_im_libdir/libX11.$ac_extension; then
18165 ac_im_usrlibdir=$ac_im_libdir; break
18166 fi
18167 done
18168 # Screen out bogus values from the imake configuration. They are
18169 # bogus both because they are the default anyway, and because
18170 # using them would break gcc on systems where it needs fixed includes.
18171 case $ac_im_incroot in
18172 /usr/include) ;;
18173 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18174 esac
18175 case $ac_im_usrlibdir in
18176 /usr/lib | /lib) ;;
18177 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18178 esac
18179 fi
18180 cd ..
18181 rm -fr conftest.dir
18182 fi
18183
18184 # Standard set of common directories for X headers.
18185 # Check X11 before X11Rn because it is often a symlink to the current release.
18186 ac_x_header_dirs='
18187 /usr/X11/include
18188 /usr/X11R6/include
18189 /usr/X11R5/include
18190 /usr/X11R4/include
18191
18192 /usr/include/X11
18193 /usr/include/X11R6
18194 /usr/include/X11R5
18195 /usr/include/X11R4
18196
18197 /usr/local/X11/include
18198 /usr/local/X11R6/include
18199 /usr/local/X11R5/include
18200 /usr/local/X11R4/include
18201
18202 /usr/local/include/X11
18203 /usr/local/include/X11R6
18204 /usr/local/include/X11R5
18205 /usr/local/include/X11R4
18206
18207 /usr/X386/include
18208 /usr/x386/include
18209 /usr/XFree86/include/X11
18210
18211 /usr/include
18212 /usr/local/include
18213 /usr/unsupported/include
18214 /usr/athena/include
18215 /usr/local/x11r5/include
18216 /usr/lpp/Xamples/include
18217
18218 /usr/openwin/include
18219 /usr/openwin/share/include'
18220
18221 if test "$ac_x_includes" = no; then
18222 # Guess where to find include files, by looking for Intrinsic.h.
18223 # First, try using that file with no special directory specified.
18224 cat >conftest.$ac_ext <<_ACEOF
18225 #line $LINENO "configure"
18226 #include "confdefs.h"
18227 #include <X11/Intrinsic.h>
18228 _ACEOF
18229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18231 ac_status=$?
18232 egrep -v '^ *\+' conftest.er1 >conftest.err
18233 rm -f conftest.er1
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } >/dev/null; then
18237 if test -s conftest.err; then
18238 ac_cpp_err=$ac_c_preproc_warn_flag
18239 else
18240 ac_cpp_err=
18241 fi
18242 else
18243 ac_cpp_err=yes
18244 fi
18245 if test -z "$ac_cpp_err"; then
18246 # We can compile using X headers with no special include directory.
18247 ac_x_includes=
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 cat conftest.$ac_ext >&5
18251 for ac_dir in $ac_x_header_dirs; do
18252 if test -r "$ac_dir/X11/Intrinsic.h"; then
18253 ac_x_includes=$ac_dir
18254 break
18255 fi
18256 done
18257 fi
18258 rm -f conftest.err conftest.$ac_ext
18259 fi # $ac_x_includes = no
18260
18261 if test "$ac_x_libraries" = no; then
18262 # Check for the libraries.
18263 # See if we find them without any special options.
18264 # Don't add to $LIBS permanently.
18265 ac_save_LIBS=$LIBS
18266 LIBS="-lXt $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18268 #line $LINENO "configure"
18269 #include "confdefs.h"
18270 #include <X11/Intrinsic.h>
18271 #ifdef F77_DUMMY_MAIN
18272 # ifdef __cplusplus
18273 extern "C"
18274 # endif
18275 int F77_DUMMY_MAIN() { return 1; }
18276 #endif
18277 int
18278 main ()
18279 {
18280 XtMalloc (0)
18281 ;
18282 return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18287 (eval $ac_link) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 LIBS=$ac_save_LIBS
18298 # We can link X programs with no special library path.
18299 ac_x_libraries=
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 cat conftest.$ac_ext >&5
18303 LIBS=$ac_save_LIBS
18304 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18305 do
18306 # Don't even attempt the hair of trying to link an X program!
18307 for ac_extension in a so sl; do
18308 if test -r $ac_dir/libXt.$ac_extension; then
18309 ac_x_libraries=$ac_dir
18310 break 2
18311 fi
18312 done
18313 done
18314 fi
18315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18316 fi # $ac_x_libraries = no
18317
18318 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18319 # Didn't find X anywhere. Cache the known absence of X.
18320 ac_cv_have_x="have_x=no"
18321 else
18322 # Record where we found X for the cache.
18323 ac_cv_have_x="have_x=yes \
18324 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18325 fi
18326 fi
18327
18328 fi
18329 eval "$ac_cv_have_x"
18330 fi # $with_x != no
18331
18332 if test "$have_x" != yes; then
18333 echo "$as_me:$LINENO: result: $have_x" >&5
18334 echo "${ECHO_T}$have_x" >&6
18335 no_x=yes
18336 else
18337 # If each of the values was on the command line, it overrides each guess.
18338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18340 # Update the cache value to reflect the command line values.
18341 ac_cv_have_x="have_x=yes \
18342 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18343 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18344 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18345 fi
18346
18347 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18349 if test "${ac_cv_header_stdc+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352 cat >conftest.$ac_ext <<_ACEOF
18353 #line $LINENO "configure"
18354 #include "confdefs.h"
18355 #include <stdlib.h>
18356 #include <stdarg.h>
18357 #include <string.h>
18358 #include <float.h>
18359
18360 _ACEOF
18361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18363 ac_status=$?
18364 egrep -v '^ *\+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } >/dev/null; then
18369 if test -s conftest.err; then
18370 ac_cpp_err=$ac_c_preproc_warn_flag
18371 else
18372 ac_cpp_err=
18373 fi
18374 else
18375 ac_cpp_err=yes
18376 fi
18377 if test -z "$ac_cpp_err"; then
18378 ac_cv_header_stdc=yes
18379 else
18380 echo "$as_me: failed program was:" >&5
18381 cat conftest.$ac_ext >&5
18382 ac_cv_header_stdc=no
18383 fi
18384 rm -f conftest.err conftest.$ac_ext
18385
18386 if test $ac_cv_header_stdc = yes; then
18387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18388 cat >conftest.$ac_ext <<_ACEOF
18389 #line $LINENO "configure"
18390 #include "confdefs.h"
18391 #include <string.h>
18392
18393 _ACEOF
18394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18395 egrep "memchr" >/dev/null 2>&1; then
18396 :
18397 else
18398 ac_cv_header_stdc=no
18399 fi
18400 rm -f conftest*
18401
18402 fi
18403
18404 if test $ac_cv_header_stdc = yes; then
18405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18406 cat >conftest.$ac_ext <<_ACEOF
18407 #line $LINENO "configure"
18408 #include "confdefs.h"
18409 #include <stdlib.h>
18410
18411 _ACEOF
18412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18413 egrep "free" >/dev/null 2>&1; then
18414 :
18415 else
18416 ac_cv_header_stdc=no
18417 fi
18418 rm -f conftest*
18419
18420 fi
18421
18422 if test $ac_cv_header_stdc = yes; then
18423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18424 if test "$cross_compiling" = yes; then
18425 :
18426 else
18427 cat >conftest.$ac_ext <<_ACEOF
18428 #line $LINENO "configure"
18429 #include "confdefs.h"
18430 #include <ctype.h>
18431 #if ((' ' & 0x0FF) == 0x020)
18432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18434 #else
18435 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18436 || ('j' <= (c) && (c) <= 'r') \
18437 || ('s' <= (c) && (c) <= 'z'))
18438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18439 #endif
18440
18441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18442 int
18443 main ()
18444 {
18445 int i;
18446 for (i = 0; i < 256; i++)
18447 if (XOR (islower (i), ISLOWER (i))
18448 || toupper (i) != TOUPPER (i))
18449 exit(2);
18450 exit (0);
18451 }
18452 _ACEOF
18453 rm -f conftest$ac_exeext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18455 (eval $ac_link) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 :
18465 else
18466 echo "$as_me: program exited with status $ac_status" >&5
18467 echo "$as_me: failed program was:" >&5
18468 cat conftest.$ac_ext >&5
18469 ( exit $ac_status )
18470 ac_cv_header_stdc=no
18471 fi
18472 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18473 fi
18474 fi
18475 fi
18476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18478 if test $ac_cv_header_stdc = yes; then
18479
18480 cat >>confdefs.h <<\_ACEOF
18481 #define STDC_HEADERS 1
18482 _ACEOF
18483
18484 fi
18485
18486 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491 cat >conftest.$ac_ext <<_ACEOF
18492 #line $LINENO "configure"
18493 #include "confdefs.h"
18494 #include <sys/types.h>
18495 #include <sys/wait.h>
18496 #ifndef WEXITSTATUS
18497 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18498 #endif
18499 #ifndef WIFEXITED
18500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18501 #endif
18502
18503 #ifdef F77_DUMMY_MAIN
18504 # ifdef __cplusplus
18505 extern "C"
18506 # endif
18507 int F77_DUMMY_MAIN() { return 1; }
18508 #endif
18509 int
18510 main ()
18511 {
18512 int s;
18513 wait (&s);
18514 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521 (eval $ac_compile) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -s conftest.$ac_objext'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; }; then
18531 ac_cv_header_sys_wait_h=yes
18532 else
18533 echo "$as_me: failed program was:" >&5
18534 cat conftest.$ac_ext >&5
18535 ac_cv_header_sys_wait_h=no
18536 fi
18537 rm -f conftest.$ac_objext conftest.$ac_ext
18538 fi
18539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18540 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18541 if test $ac_cv_header_sys_wait_h = yes; then
18542
18543 cat >>confdefs.h <<\_ACEOF
18544 #define HAVE_SYS_WAIT_H 1
18545 _ACEOF
18546
18547 fi
18548
18549 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18550 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18551 if test "${ac_cv_header_time+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 cat >conftest.$ac_ext <<_ACEOF
18555 #line $LINENO "configure"
18556 #include "confdefs.h"
18557 #include <sys/types.h>
18558 #include <sys/time.h>
18559 #include <time.h>
18560
18561 #ifdef F77_DUMMY_MAIN
18562 # ifdef __cplusplus
18563 extern "C"
18564 # endif
18565 int F77_DUMMY_MAIN() { return 1; }
18566 #endif
18567 int
18568 main ()
18569 {
18570 if ((struct tm *) 0)
18571 return 0;
18572 ;
18573 return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18578 (eval $ac_compile) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
18582 { ac_try='test -s conftest.$ac_objext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 ac_cv_header_time=yes
18589 else
18590 echo "$as_me: failed program was:" >&5
18591 cat conftest.$ac_ext >&5
18592 ac_cv_header_time=no
18593 fi
18594 rm -f conftest.$ac_objext conftest.$ac_ext
18595 fi
18596 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18597 echo "${ECHO_T}$ac_cv_header_time" >&6
18598 if test $ac_cv_header_time = yes; then
18599
18600 cat >>confdefs.h <<\_ACEOF
18601 #define TIME_WITH_SYS_TIME 1
18602 _ACEOF
18603
18604 fi
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628 for ac_header in fcntl.h syslog.h unistd.h utmp.h utmpx.h \
18629 sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \
18630 malloc.h strings.h memory.h \
18631 curses.h ncurses.h sgtty.h term.h termio.h termios.h \
18632 termcap.h sys/termio.h libutil.h\
18633
18634 do
18635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18637 echo "$as_me:$LINENO: checking for $ac_header" >&5
18638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 fi
18642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18644 else
18645 # Is the header compilable?
18646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18648 cat >conftest.$ac_ext <<_ACEOF
18649 #line $LINENO "configure"
18650 #include "confdefs.h"
18651 $ac_includes_default
18652 #include <$ac_header>
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18656 (eval $ac_compile) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
18660 { ac_try='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_header_compiler=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 cat conftest.$ac_ext >&5
18670 ac_header_compiler=no
18671 fi
18672 rm -f conftest.$ac_objext conftest.$ac_ext
18673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18674 echo "${ECHO_T}$ac_header_compiler" >&6
18675
18676 # Is the header present?
18677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18679 cat >conftest.$ac_ext <<_ACEOF
18680 #line $LINENO "configure"
18681 #include "confdefs.h"
18682 #include <$ac_header>
18683 _ACEOF
18684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18686 ac_status=$?
18687 egrep -v '^ *\+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } >/dev/null; then
18692 if test -s conftest.err; then
18693 ac_cpp_err=$ac_c_preproc_warn_flag
18694 else
18695 ac_cpp_err=
18696 fi
18697 else
18698 ac_cpp_err=yes
18699 fi
18700 if test -z "$ac_cpp_err"; then
18701 ac_header_preproc=yes
18702 else
18703 echo "$as_me: failed program was:" >&5
18704 cat conftest.$ac_ext >&5
18705 ac_header_preproc=no
18706 fi
18707 rm -f conftest.err conftest.$ac_ext
18708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18709 echo "${ECHO_T}$ac_header_preproc" >&6
18710
18711 # So? What about this header?
18712 case $ac_header_compiler:$ac_header_preproc in
18713 yes:no )
18714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18718 no:yes )
18719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18725 esac
18726 echo "$as_me:$LINENO: checking for $ac_header" >&5
18727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731 eval "$as_ac_Header=$ac_header_preproc"
18732 fi
18733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18735
18736 fi
18737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18740 _ACEOF
18741
18742 fi
18743
18744 done
18745
18746
18747 olibs="$LIBS"
18748 CNVFILE_SUBDIR=bsd
18749 echo "$as_me:$LINENO: checking --with-term-libs argument" >&5
18750 echo $ECHO_N "checking --with-term-libs argument... $ECHO_C" >&6
18751
18752 # Check whether --with-tlib or --without-tlib was given.
18753 if test "${with_tlib+set}" = set; then
18754 withval="$with_tlib"
18755
18756 fi;
18757 if test -n "$with_term_libs"; then
18758 echo "$as_me:$LINENO: result: $with_term_libs" >&5
18759 echo "${ECHO_T}$with_term_libs" >&6
18760 TERMLIB=$with_term_libs
18761 else
18762 echo "$as_me:$LINENO: result: automatic terminal library selection" >&5
18763 echo "${ECHO_T}automatic terminal library selection" >&6
18764 case "`uname -s 2>/dev/null`" in
18765 OSF1) tlibs="ncurses curses termlib termcap";;
18766 *) tlibs="ncurses termlib termcap curses";;
18767 esac
18768 for libname in $tlibs; do
18769 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
18770 echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
18771 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
18772 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-l${libname} $LIBS"
18777 cat >conftest.$ac_ext <<_ACEOF
18778 #line $LINENO "configure"
18779 #include "confdefs.h"
18780
18781 /* Override any gcc2 internal prototype to avoid an error. */
18782 #ifdef __cplusplus
18783 extern "C"
18784 #endif
18785 /* We use char because int might match the return type of a gcc2
18786 builtin and then its argument prototype would still apply. */
18787 char tgetent ();
18788 #ifdef F77_DUMMY_MAIN
18789 # ifdef __cplusplus
18790 extern "C"
18791 # endif
18792 int F77_DUMMY_MAIN() { return 1; }
18793 #endif
18794 int
18795 main ()
18796 {
18797 tgetent ();
18798 ;
18799 return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext conftest$ac_exeext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18804 (eval $ac_link) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
18808 { ac_try='test -s conftest$ac_exeext'
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 eval "$as_ac_Lib=yes"
18815 else
18816 echo "$as_me: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18818 eval "$as_ac_Lib=no"
18819 fi
18820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_lib_save_LIBS
18822 fi
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18825 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18826
18827 LIBS="${LIBS} -l${libname}"
18828 if test "$cross_compiling" = yes; then
18829 res="FAIL"
18830 else
18831 cat >conftest.$ac_ext <<_ACEOF
18832 #line $LINENO "configure"
18833 #include "confdefs.h"
18834
18835 #ifdef HAVE_TERMCAP_H
18836 # include <termcap.h>
18837 #endif
18838 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
18839 _ACEOF
18840 rm -f conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 res="OK"
18852 else
18853 echo "$as_me: program exited with status $ac_status" >&5
18854 echo "$as_me: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18856 ( exit $ac_status )
18857 res="FAIL"
18858 fi
18859 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18860 fi
18861 if test "$res" = "OK"; then
18862 TERMLIB="${TERMLIB} -l${libname}"
18863 break
18864 fi
18865 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
18866 echo "${ECHO_T}$libname library is not usable" >&6
18867
18868 fi
18869
18870 LIBS=${olibs}
18871 done
18872 fi
18873 if test "x$TERMLIB" != "x"; then
18874 LIBS="${LIBS} ${TERMLIB}"
18875 echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
18876 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
18877 if test "$cross_compiling" = yes; then
18878 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
18879 echo "$as_me: error: failed to compile test program." >&2;}
18880 { (exit 1); exit 1; }; }
18881 else
18882 cat >conftest.$ac_ext <<_ACEOF
18883 #line $LINENO "configure"
18884 #include "confdefs.h"
18885
18886 #ifdef HAVE_TERMCAP_H
18887 # include <termcap.h>
18888 #endif
18889 main()
18890 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
18891 _ACEOF
18892 rm -f conftest$ac_exeext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18894 (eval $ac_link) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
18904 echo "${ECHO_T}no -- we are in termcap land" >&6
18905 CNVFILE_SUBDIR=bsd
18906 else
18907 echo "$as_me: program exited with status $ac_status" >&5
18908 echo "$as_me: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18910 ( exit $ac_status )
18911
18912 cat >>confdefs.h <<\_ACEOF
18913 #define HAVE_TERMINFO 1
18914 _ACEOF
18915
18916 echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
18917 echo "${ECHO_T}yes -- terminfo spoken here" >&6
18918 CNVFILE_SUBDIR=sysV
18919 fi
18920 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18921 fi
18922 else
18923 echo "$as_me:$LINENO: result: none found" >&5
18924 echo "${ECHO_T}none found" >&6
18925 fi
18926 LIBS=${olibs}
18927
18928
18929
18930 if test $client = true; then
18931 if test $client_utmp = auto; then
18932 cat >conftest.$ac_ext <<_ACEOF
18933 #line $LINENO "configure"
18934 #include "confdefs.h"
18935
18936 #if HAVE_SYS_PARAM_H
18937 # include <sys/param.h>
18938 #endif
18939 #if defined(BSD) && (BSD >= 199306)
18940 yes
18941 #endif
18942
18943 _ACEOF
18944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18945 egrep "yes" >/dev/null 2>&1; then
18946 client_utmp=false
18947 else
18948 client_utmp=true
18949 fi
18950 rm -f conftest*
18951
18952 fi
18953
18954 echo "$as_me:$LINENO: checking whether we're using utmp with uum" >&5
18955 echo $ECHO_N "checking whether we're using utmp with uum... $ECHO_C" >&6
18956 if test $client_utmp = true; then
18957
18958 cat >>confdefs.h <<\_ACEOF
18959 #define USE_UTMP 1
18960 _ACEOF
18961
18962 echo "$as_me:$LINENO: result: yes" >&5
18963 echo "${ECHO_T}yes" >&6
18964 else
18965 echo "$as_me:$LINENO: result: no" >&5
18966 echo "${ECHO_T}no" >&6
18967 fi
18968 fi
18969
18970 echo "$as_me:$LINENO: checking for mode_t" >&5
18971 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
18972 if test "${ac_cv_type_mode_t+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975 cat >conftest.$ac_ext <<_ACEOF
18976 #line $LINENO "configure"
18977 #include "confdefs.h"
18978 $ac_includes_default
18979 #ifdef F77_DUMMY_MAIN
18980 # ifdef __cplusplus
18981 extern "C"
18982 # endif
18983 int F77_DUMMY_MAIN() { return 1; }
18984 #endif
18985 int
18986 main ()
18987 {
18988 if ((mode_t *) 0)
18989 return 0;
18990 if (sizeof (mode_t))
18991 return 0;
18992 ;
18993 return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998 (eval $ac_compile) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_type_mode_t=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 cat conftest.$ac_ext >&5
19012 ac_cv_type_mode_t=no
19013 fi
19014 rm -f conftest.$ac_objext conftest.$ac_ext
19015 fi
19016 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19017 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
19018 if test $ac_cv_type_mode_t = yes; then
19019 :
19020 else
19021
19022 cat >>confdefs.h <<_ACEOF
19023 #define mode_t int
19024 _ACEOF
19025
19026 fi
19027
19028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19030 if test "${ac_cv_header_time+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033 cat >conftest.$ac_ext <<_ACEOF
19034 #line $LINENO "configure"
19035 #include "confdefs.h"
19036 #include <sys/types.h>
19037 #include <sys/time.h>
19038 #include <time.h>
19039
19040 #ifdef F77_DUMMY_MAIN
19041 # ifdef __cplusplus
19042 extern "C"
19043 # endif
19044 int F77_DUMMY_MAIN() { return 1; }
19045 #endif
19046 int
19047 main ()
19048 {
19049 if ((struct tm *) 0)
19050 return 0;
19051 ;
19052 return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057 (eval $ac_compile) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
19061 { ac_try='test -s conftest.$ac_objext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_header_time=yes
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 cat conftest.$ac_ext >&5
19071 ac_cv_header_time=no
19072 fi
19073 rm -f conftest.$ac_objext conftest.$ac_ext
19074 fi
19075 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19076 echo "${ECHO_T}$ac_cv_header_time" >&6
19077 if test $ac_cv_header_time = yes; then
19078
19079 cat >>confdefs.h <<\_ACEOF
19080 #define TIME_WITH_SYS_TIME 1
19081 _ACEOF
19082
19083 fi
19084
19085
19086 echo "$as_me:$LINENO: checking for socklen_t" >&5
19087 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
19088 if test "${ac_cv_type_socklen_t+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091 cat >conftest.$ac_ext <<_ACEOF
19092 #line $LINENO "configure"
19093 #include "confdefs.h"
19094
19095 #if HAVE_SYS_TYPES_H
19096 # include <sys/types.h>
19097 #endif
19098 #include <sys/socket.h>
19099
19100 #ifdef F77_DUMMY_MAIN
19101 # ifdef __cplusplus
19102 extern "C"
19103 # endif
19104 int F77_DUMMY_MAIN() { return 1; }
19105 #endif
19106 int
19107 main ()
19108 {
19109 if ((socklen_t *) 0)
19110 return 0;
19111 if (sizeof (socklen_t))
19112 return 0;
19113 ;
19114 return 0;
19115 }
19116 _ACEOF
19117 rm -f conftest.$ac_objext
19118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119 (eval $ac_compile) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_socklen_t=yes
19130 else
19131 echo "$as_me: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 ac_cv_type_socklen_t=no
19134 fi
19135 rm -f conftest.$ac_objext conftest.$ac_ext
19136 fi
19137 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19138 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
19139 if test $ac_cv_type_socklen_t = yes; then
19140
19141 cat >>confdefs.h <<_ACEOF
19142 #define HAVE_SOCKLEN_T 1
19143 _ACEOF
19144
19145
19146 else
19147
19148 cat >>confdefs.h <<\_ACEOF
19149 #define socklen_t int
19150 _ACEOF
19151
19152 fi
19153
19154
19155 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
19156 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
19157 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160 cat >conftest.$ac_ext <<_ACEOF
19161 #line $LINENO "configure"
19162 #include "confdefs.h"
19163
19164 #include <sys/types.h>
19165 #if HAVE_UTMPX_H
19166 # include <utmpx.h>
19167 #endif
19168 #if HAVE_UTMP_H
19169 # include <utmp.h>
19170 #endif
19171
19172 #ifdef F77_DUMMY_MAIN
19173 # ifdef __cplusplus
19174 extern "C"
19175 # endif
19176 int F77_DUMMY_MAIN() { return 1; }
19177 #endif
19178 int
19179 main ()
19180 {
19181 static struct utmp ac_aggr;
19182 if (ac_aggr.ut_user)
19183 return 0;
19184 ;
19185 return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19190 (eval $ac_compile) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -s conftest.$ac_objext'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
19200 ac_cv_member_struct_utmp_ut_user=yes
19201 else
19202 echo "$as_me: failed program was:" >&5
19203 cat conftest.$ac_ext >&5
19204 ac_cv_member_struct_utmp_ut_user=no
19205 fi
19206 rm -f conftest.$ac_objext conftest.$ac_ext
19207 fi
19208 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
19209 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
19210 if test $ac_cv_member_struct_utmp_ut_user = yes; then
19211
19212 cat >>confdefs.h <<_ACEOF
19213 #define HAVE_STRUCT_UTMP_UT_USER 1
19214 _ACEOF
19215
19216
19217 fi
19218 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
19219 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
19220 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223 cat >conftest.$ac_ext <<_ACEOF
19224 #line $LINENO "configure"
19225 #include "confdefs.h"
19226
19227 #include <sys/types.h>
19228 #if HAVE_UTMPX_H
19229 # include <utmpx.h>
19230 #endif
19231 #if HAVE_UTMP_H
19232 # include <utmp.h>
19233 #endif
19234
19235 #ifdef F77_DUMMY_MAIN
19236 # ifdef __cplusplus
19237 extern "C"
19238 # endif
19239 int F77_DUMMY_MAIN() { return 1; }
19240 #endif
19241 int
19242 main ()
19243 {
19244 static struct utmp ac_aggr;
19245 if (ac_aggr.ut_name)
19246 return 0;
19247 ;
19248 return 0;
19249 }
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19253 (eval $ac_compile) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try='test -s conftest.$ac_objext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_member_struct_utmp_ut_name=yes
19264 else
19265 echo "$as_me: failed program was:" >&5
19266 cat conftest.$ac_ext >&5
19267 ac_cv_member_struct_utmp_ut_name=no
19268 fi
19269 rm -f conftest.$ac_objext conftest.$ac_ext
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
19272 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
19273 if test $ac_cv_member_struct_utmp_ut_name = yes; then
19274
19275 cat >>confdefs.h <<_ACEOF
19276 #define HAVE_STRUCT_UTMP_UT_NAME 1
19277 _ACEOF
19278
19279
19280 fi
19281 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
19282 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
19283 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286 cat >conftest.$ac_ext <<_ACEOF
19287 #line $LINENO "configure"
19288 #include "confdefs.h"
19289
19290 #include <sys/types.h>
19291 #if HAVE_UTMPX_H
19292 # include <utmpx.h>
19293 #endif
19294 #if HAVE_UTMP_H
19295 # include <utmp.h>
19296 #endif
19297
19298 #ifdef F77_DUMMY_MAIN
19299 # ifdef __cplusplus
19300 extern "C"
19301 # endif
19302 int F77_DUMMY_MAIN() { return 1; }
19303 #endif
19304 int
19305 main ()
19306 {
19307 static struct utmp ac_aggr;
19308 if (ac_aggr.ut_id)
19309 return 0;
19310 ;
19311 return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -s conftest.$ac_objext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_member_struct_utmp_ut_id=yes
19327 else
19328 echo "$as_me: failed program was:" >&5
19329 cat conftest.$ac_ext >&5
19330 ac_cv_member_struct_utmp_ut_id=no
19331 fi
19332 rm -f conftest.$ac_objext conftest.$ac_ext
19333 fi
19334 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
19335 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
19336 if test $ac_cv_member_struct_utmp_ut_id = yes; then
19337
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_STRUCT_UTMP_UT_ID 1
19340 _ACEOF
19341
19342
19343 fi
19344
19345
19346
19347 if test $ac_cv_c_compiler_gnu = yes; then
19348 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
19349 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
19350 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
19353 ac_pattern="Autoconf.*'x'"
19354 cat >conftest.$ac_ext <<_ACEOF
19355 #line $LINENO "configure"
19356 #include "confdefs.h"
19357 #include <sgtty.h>
19358 Autoconf TIOCGETP
19359 _ACEOF
19360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19361 egrep "$ac_pattern" >/dev/null 2>&1; then
19362 ac_cv_prog_gcc_traditional=yes
19363 else
19364 ac_cv_prog_gcc_traditional=no
19365 fi
19366 rm -f conftest*
19367
19368
19369 if test $ac_cv_prog_gcc_traditional = no; then
19370 cat >conftest.$ac_ext <<_ACEOF
19371 #line $LINENO "configure"
19372 #include "confdefs.h"
19373 #include <termio.h>
19374 Autoconf TCGETA
19375 _ACEOF
19376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19377 egrep "$ac_pattern" >/dev/null 2>&1; then
19378 ac_cv_prog_gcc_traditional=yes
19379 fi
19380 rm -f conftest*
19381
19382 fi
19383 fi
19384 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
19385 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
19386 if test $ac_cv_prog_gcc_traditional = yes; then
19387 CC="$CC -traditional"
19388 fi
19389 fi
19390
19391
19392 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19393 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19394 if test "${ac_cv_type_signal+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397 cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 #include "confdefs.h"
19400 #include <sys/types.h>
19401 #include <signal.h>
19402 #ifdef signal
19403 # undef signal
19404 #endif
19405 #ifdef __cplusplus
19406 extern "C" void (*signal (int, void (*)(int)))(int);
19407 #else
19408 void (*signal ()) ();
19409 #endif
19410
19411 #ifdef F77_DUMMY_MAIN
19412 # ifdef __cplusplus
19413 extern "C"
19414 # endif
19415 int F77_DUMMY_MAIN() { return 1; }
19416 #endif
19417 int
19418 main ()
19419 {
19420 int i;
19421 ;
19422 return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_cv_type_signal=void
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 cat conftest.$ac_ext >&5
19441 ac_cv_type_signal=int
19442 fi
19443 rm -f conftest.$ac_objext conftest.$ac_ext
19444 fi
19445 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19446 echo "${ECHO_T}$ac_cv_type_signal" >&6
19447
19448 cat >>confdefs.h <<_ACEOF
19449 #define RETSIGTYPE $ac_cv_type_signal
19450 _ACEOF
19451
19452
19453 if test "$ac_cv_type_signal" = void; then
19454
19455 cat >>confdefs.h <<\_ACEOF
19456 #define RETSIGTYPE_VOID 1
19457 _ACEOF
19458
19459 fi
19460
19461 echo "$as_me:$LINENO: checking for working memcmp" >&5
19462 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
19463 if test "${ac_cv_func_memcmp_working+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466 if test "$cross_compiling" = yes; then
19467 ac_cv_func_memcmp_working=no
19468 else
19469 cat >conftest.$ac_ext <<_ACEOF
19470 #line $LINENO "configure"
19471 #include "confdefs.h"
19472
19473 #ifdef F77_DUMMY_MAIN
19474 # ifdef __cplusplus
19475 extern "C"
19476 # endif
19477 int F77_DUMMY_MAIN() { return 1; }
19478 #endif
19479 int
19480 main ()
19481 {
19482
19483 /* Some versions of memcmp are not 8-bit clean. */
19484 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
19485 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19486 exit (1);
19487
19488 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19489 or more and with at least one buffer not starting on a 4-byte boundary.
19490 William Lewis provided this test program. */
19491 {
19492 char foo[21];
19493 char bar[21];
19494 int i;
19495 for (i = 0; i < 4; i++)
19496 {
19497 char *a = foo + i;
19498 char *b = bar + i;
19499 strcpy (a, "--------01111111");
19500 strcpy (b, "--------10000000");
19501 if (memcmp (a, b, 16) >= 0)
19502 exit (1);
19503 }
19504 exit (0);
19505 }
19506
19507 ;
19508 return 0;
19509 }
19510 _ACEOF
19511 rm -f conftest$ac_exeext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19513 (eval $ac_link) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_func_memcmp_working=yes
19523 else
19524 echo "$as_me: program exited with status $ac_status" >&5
19525 echo "$as_me: failed program was:" >&5
19526 cat conftest.$ac_ext >&5
19527 ( exit $ac_status )
19528 ac_cv_func_memcmp_working=no
19529 fi
19530 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19531 fi
19532 fi
19533 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
19534 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
19535 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19536
19537
19538
19539
19540
19541 for ac_func in getpgid getpgrp setpgrp wait3
19542 do
19543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19544 echo "$as_me:$LINENO: checking for $ac_func" >&5
19545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19546 if eval "test \"\${$as_ac_var+set}\" = set"; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 cat >conftest.$ac_ext <<_ACEOF
19550 #line $LINENO "configure"
19551 #include "confdefs.h"
19552 /* System header to define __stub macros and hopefully few prototypes,
19553 which can conflict with char $ac_func (); below. */
19554 #include <assert.h>
19555 /* Override any gcc2 internal prototype to avoid an error. */
19556 #ifdef __cplusplus
19557 extern "C"
19558 #endif
19559 /* We use char because int might match the return type of a gcc2
19560 builtin and then its argument prototype would still apply. */
19561 char $ac_func ();
19562 char (*f) ();
19563
19564 #ifdef F77_DUMMY_MAIN
19565 # ifdef __cplusplus
19566 extern "C"
19567 # endif
19568 int F77_DUMMY_MAIN() { return 1; }
19569 #endif
19570 int
19571 main ()
19572 {
19573 /* The GNU C library defines this for functions which it implements
19574 to always fail with ENOSYS. Some functions are actually named
19575 something starting with __ and the normal name is an alias. */
19576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19577 choke me
19578 #else
19579 f = $ac_func;
19580 #endif
19581
19582 ;
19583 return 0;
19584 }
19585 _ACEOF
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19588 (eval $ac_link) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19598 eval "$as_ac_var=yes"
19599 else
19600 echo "$as_me: failed program was:" >&5
19601 cat conftest.$ac_ext >&5
19602 eval "$as_ac_var=no"
19603 fi
19604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19605 fi
19606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19608 if test `eval echo '${'$as_ac_var'}'` = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19611 _ACEOF
19612
19613 fi
19614 done
19615
19616 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19617 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
19618 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621 # Use it with a single arg.
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #line $LINENO "configure"
19624 #include "confdefs.h"
19625 $ac_includes_default
19626 #ifdef F77_DUMMY_MAIN
19627 # ifdef __cplusplus
19628 extern "C"
19629 # endif
19630 int F77_DUMMY_MAIN() { return 1; }
19631 #endif
19632 int
19633 main ()
19634 {
19635 getpgrp (0);
19636 ;
19637 return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_cv_func_getpgrp_void=no
19653 else
19654 echo "$as_me: failed program was:" >&5
19655 cat conftest.$ac_ext >&5
19656 ac_cv_func_getpgrp_void=yes
19657 fi
19658 rm -f conftest.$ac_objext conftest.$ac_ext
19659
19660 fi
19661 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19662 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
19663 if test $ac_cv_func_getpgrp_void = yes; then
19664
19665 cat >>confdefs.h <<\_ACEOF
19666 #define GETPGRP_VOID 1
19667 _ACEOF
19668
19669 fi
19670
19671 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19672 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19673 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 if test "$cross_compiling" = yes; then
19677 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19678 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19679 { (exit 1); exit 1; }; }
19680 else
19681 cat >conftest.$ac_ext <<_ACEOF
19682 #line $LINENO "configure"
19683 #include "confdefs.h"
19684 #if HAVE_UNISTD_H
19685 # include <unistd.h>
19686 #endif
19687
19688 #ifdef F77_DUMMY_MAIN
19689 # ifdef __cplusplus
19690 extern "C"
19691 # endif
19692 int F77_DUMMY_MAIN() { return 1; }
19693 #endif
19694 int
19695 main ()
19696 {
19697 /* If this system has a BSD-style setpgrp which takes arguments,
19698 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19699 exit successfully. */
19700 exit (setpgrp (1,1) == -1 ? 0 : 1);
19701 ;
19702 return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_cv_func_setpgrp_void=no
19717 else
19718 echo "$as_me: program exited with status $ac_status" >&5
19719 echo "$as_me: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19721 ( exit $ac_status )
19722 ac_cv_func_setpgrp_void=yes
19723 fi
19724 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19725 fi
19726 fi
19727 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19728 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19729 if test $ac_cv_func_setpgrp_void = yes; then
19730
19731 cat >>confdefs.h <<\_ACEOF
19732 #define SETPGRP_VOID 1
19733 _ACEOF
19734
19735 fi
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763 for ac_func in random drand48 fchmod getopt killpg \
19764 FD_SET \
19765 gethostname select socket closesocket setsockopt send recv \
19766 getdtablesize getrlimit syslog vsyslog setenv snprintf \
19767 ptsname posix_openpt openpty pututxline pututline setsid
19768 do
19769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19772 if eval "test \"\${$as_ac_var+set}\" = set"; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 #line $LINENO "configure"
19777 #include "confdefs.h"
19778 /* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char $ac_func (); below. */
19780 #include <assert.h>
19781 /* Override any gcc2 internal prototype to avoid an error. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 /* We use char because int might match the return type of a gcc2
19786 builtin and then its argument prototype would still apply. */
19787 char $ac_func ();
19788 char (*f) ();
19789
19790 #ifdef F77_DUMMY_MAIN
19791 # ifdef __cplusplus
19792 extern "C"
19793 # endif
19794 int F77_DUMMY_MAIN() { return 1; }
19795 #endif
19796 int
19797 main ()
19798 {
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19803 choke me
19804 #else
19805 f = $ac_func;
19806 #endif
19807
19808 ;
19809 return 0;
19810 }
19811 _ACEOF
19812 rm -f conftest.$ac_objext conftest$ac_exeext
19813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19814 (eval $ac_link) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } &&
19818 { ac_try='test -s conftest$ac_exeext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 eval "$as_ac_var=yes"
19825 else
19826 echo "$as_me: failed program was:" >&5
19827 cat conftest.$ac_ext >&5
19828 eval "$as_ac_var=no"
19829 fi
19830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19831 fi
19832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19834 if test `eval echo '${'$as_ac_var'}'` = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19837 _ACEOF
19838
19839 fi
19840 done
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852 for ac_func in bcopy bzero bcmp index rindex \
19853 memcpy memmove memset strchr strrchr
19854 do
19855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19856 echo "$as_me:$LINENO: checking for $ac_func" >&5
19857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19858 if eval "test \"\${$as_ac_var+set}\" = set"; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861 cat >conftest.$ac_ext <<_ACEOF
19862 #line $LINENO "configure"
19863 #include "confdefs.h"
19864 /* System header to define __stub macros and hopefully few prototypes,
19865 which can conflict with char $ac_func (); below. */
19866 #include <assert.h>
19867 /* Override any gcc2 internal prototype to avoid an error. */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 /* We use char because int might match the return type of a gcc2
19872 builtin and then its argument prototype would still apply. */
19873 char $ac_func ();
19874 char (*f) ();
19875
19876 #ifdef F77_DUMMY_MAIN
19877 # ifdef __cplusplus
19878 extern "C"
19879 # endif
19880 int F77_DUMMY_MAIN() { return 1; }
19881 #endif
19882 int
19883 main ()
19884 {
19885 /* The GNU C library defines this for functions which it implements
19886 to always fail with ENOSYS. Some functions are actually named
19887 something starting with __ and the normal name is an alias. */
19888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19889 choke me
19890 #else
19891 f = $ac_func;
19892 #endif
19893
19894 ;
19895 return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -s conftest$ac_exeext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 eval "$as_ac_var=yes"
19911 else
19912 echo "$as_me: failed program was:" >&5
19913 cat conftest.$ac_ext >&5
19914 eval "$as_ac_var=no"
19915 fi
19916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19917 fi
19918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19920 if test `eval echo '${'$as_ac_var'}'` = yes; then
19921 cat >>confdefs.h <<_ACEOF
19922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19923 _ACEOF
19924
19925 fi
19926 done
19927
19928
19929 JS_SUPPORTOBJS=
19930
19931
19932 for ac_func in mkdir vasprintf
19933 do
19934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19935 echo "$as_me:$LINENO: checking for $ac_func" >&5
19936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19937 if eval "test \"\${$as_ac_var+set}\" = set"; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940 cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19942 #include "confdefs.h"
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char $ac_func (); below. */
19945 #include <assert.h>
19946 /* Override any gcc2 internal prototype to avoid an error. */
19947 #ifdef __cplusplus
19948 extern "C"
19949 #endif
19950 /* We use char because int might match the return type of a gcc2
19951 builtin and then its argument prototype would still apply. */
19952 char $ac_func ();
19953 char (*f) ();
19954
19955 #ifdef F77_DUMMY_MAIN
19956 # ifdef __cplusplus
19957 extern "C"
19958 # endif
19959 int F77_DUMMY_MAIN() { return 1; }
19960 #endif
19961 int
19962 main ()
19963 {
19964 /* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
19967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19968 choke me
19969 #else
19970 f = $ac_func;
19971 #endif
19972
19973 ;
19974 return 0;
19975 }
19976 _ACEOF
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19979 (eval $ac_link) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -s conftest$ac_exeext'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 eval "$as_ac_var=yes"
19990 else
19991 echo "$as_me: failed program was:" >&5
19992 cat conftest.$ac_ext >&5
19993 eval "$as_ac_var=no"
19994 fi
19995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19996 fi
19997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19999 if test `eval echo '${'$as_ac_var'}'` = yes; then
20000 cat >>confdefs.h <<_ACEOF
20001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20002 _ACEOF
20003
20004 else
20005 JS_SUPPORTOBJS="${JS_SUPPORTOBJS} ${ac_func}.o"
20006 fi
20007 done
20008
20009
20010
20011
20012 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
20013 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
20014 if test "${ac_cv_file__dev_ptmx+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 test "$cross_compiling" = yes &&
20018 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20019 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20020 { (exit 1); exit 1; }; }
20021 if test -r "/dev/ptmx"; then
20022 ac_cv_file__dev_ptmx=yes
20023 else
20024 ac_cv_file__dev_ptmx=no
20025 fi
20026 fi
20027 echo "$as_me:$LINENO: result: $ac_cv_file__dev_ptmx" >&5
20028 echo "${ECHO_T}$ac_cv_file__dev_ptmx" >&6
20029 if test $ac_cv_file__dev_ptmx = yes; then
20030
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE__DEV_PTMX 1
20033 _ACEOF
20034
20035
20036 fi
20037
20038
20039
20040
20041 WRAPLIB=
20042 echo "$as_me:$LINENO: checking whether to use libwrap" >&5
20043 echo $ECHO_N "checking whether to use libwrap... $ECHO_C" >&6
20044
20045 # Check whether --with-libwrap or --without-libwrap was given.
20046 if test "${with_libwrap+set}" = set; then
20047 withval="$with_libwrap"
20048 case "$withval" in
20049 no)
20050 echo "$as_me:$LINENO: result: no" >&5
20051 echo "${ECHO_T}no" >&6
20052 WRAP_TRY=no
20053 ;;
20054 yes)
20055 echo "$as_me:$LINENO: result: yes" >&5
20056 echo "${ECHO_T}yes" >&6
20057 WRAP_TRY=yes
20058 ;;
20059 *)
20060 echo "$as_me:$LINENO: result: yes" >&5
20061 echo "${ECHO_T}yes" >&6
20062 WRAP_TRY=yes
20063 if test -d "$withval"; then
20064 WRAPINCLUDES="-I$withval"
20065 if test -d $withval/include; then
20066 WRAPINCLUDES="-I$withval/include $WRAPINCLUDES"
20067 fi
20068 WRAPLIB="-L$withval -lwrap"
20069 if test -d $withval/lib; then
20070 WRAPLIB="-L$withval/lib $WRAPLIB"
20071 fi
20072 else
20073 WRAPINCLUDES="$withval"
20074 fi
20075 ;;
20076 esac
20077 else
20078 echo "$as_me:$LINENO: result: try to find" >&5
20079 echo "${ECHO_T}try to find" >&6
20080 WRAP_TRY=auto
20081
20082 fi;
20083 # Link test for libwrap
20084 if test "$WRAP_TRY" = yes -o "$WRAP_TRY" = auto; then
20085 OLDCFLAGS="$CFLAGS"
20086 CFLAGS="$WRAPINCLUDES $CFLAGS"
20087 OLDLIBS="$LIBS"
20088 WRAPLIB=${WRAPLIB:-"-lwrap"}
20089 LIBS="$WRAPLIB $OLDLIBS"
20090 echo "$as_me:$LINENO: checking libwrap is working" >&5
20091 echo $ECHO_N "checking libwrap is working... $ECHO_C" >&6
20092 cat >conftest.$ac_ext <<_ACEOF
20093 #line $LINENO "configure"
20094 #include "confdefs.h"
20095 int allow_severity; int deny_severity;
20096 #ifdef F77_DUMMY_MAIN
20097 # ifdef __cplusplus
20098 extern "C"
20099 # endif
20100 int F77_DUMMY_MAIN() { return 1; }
20101 #endif
20102 int
20103 main ()
20104 {
20105 hosts_access();
20106 ;
20107 return 0;
20108 }
20109 _ACEOF
20110 rm -f conftest.$ac_objext conftest$ac_exeext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112 (eval $ac_link) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try='test -s conftest$ac_exeext'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 echo "$as_me:$LINENO: result: yes" >&5
20123 echo "${ECHO_T}yes" >&6
20124
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_LIBWRAP 1
20127 _ACEOF
20128
20129
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 cat conftest.$ac_ext >&5
20133 echo "$as_me:$LINENO: result: no" >&5
20134 echo "${ECHO_T}no" >&6
20135 if test "$WRAP_TRY" = yes; then
20136 { { echo "$as_me:$LINENO: error: Could not find libwrap. Please check config.log." >&5
20137 echo "$as_me: error: Could not find libwrap. Please check config.log." >&2;}
20138 { (exit 1); exit 1; }; }
20139 else
20140 # recover old flag / clear needless WRAPLIB and continue
20141 CFLAGS=$OLDCFLAGS
20142 WRAPLIB=
20143 fi
20144 fi
20145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20146 # only jserver needs libwrap, recover LIBS also
20147 LIBS=$OLDLIBS
20148 fi
20149
20150
20151 # mkdir -p Contrib/dic/gerodic in case builddir != srcdir
20152 dir=Contrib/dic/gerodic
20153 if test ! -d $dir; then
20154 echo "creating $dir ..."
20155 $ac_install_sh -d $dir
20156 fi
20157
20158
20159
20160 makefiles_generic="makerule.mk Makefile"
20161
20162
20163 if test "x${Wnn}" = "xWnn"; then
20164 makefiles_wnn="Wnn/Makefile Wnn/conv/Makefile Wnn/include/Makefile \
20165 Wnn/jd/Makefile Wnn/jd/rk/Makefile Wnn/jd/rk.vi/Makefile \
20166 Wnn/jlib/Makefile Wnn/jlib.V3/Makefile Wnn/jserver/Makefile \
20167 Wnn/jutil/Makefile Wnn/ld/Makefile Wnn/ld/rk/Makefile \
20168 Wnn/romkan/Makefile Wnn/uum/Makefile \
20169 Wnn/man/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile \
20170 Wnn/man/4.cmd/Makefile Wnn/man/6.jutil/Makefile \
20171 Wnn/man/2.env/dic/Makefile Wnn/man/2.env/wnn/Makefile \
20172 Wnn/man/3.libwnn/jl_lib/Makefile Wnn/man/3.libwnn/js_lib/Makefile \
20173 Wnn/man/3.libwnn/misc_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile"
20174 makefiles_wnn_dic="Contrib/dic/gerodic/Makefile Wnn/pubdicplus/Makefile \
20175 Wnn/wnncons/Makefile Wnn/wnncons/dic/Makefile"
20176 fi
20177
20178
20179 if test "x$cWnn" = "xcWnn"; then
20180 makefiles_cwnn="cWnn/Makefile cWnn/conv/Makefile cWnn/etc/Makefile \
20181 cWnn/cd/Makefile cWnn/cd/rk/Makefile \
20182 cWnn/cd/rk_p/Makefile cWnn/cd/rk_z/Makefile \
20183 cWnn/td/Makefile cWnn/td/rk/Makefile \
20184 cWnn/td/rk_z/Makefile cWnn/td/rk_p/Makefile \
20185 cWnn/include/Makefile cWnn/jlib/Makefile \
20186 cWnn/jserver/Makefile cWnn/jutil/Makefile \
20187 cWnn/man/Makefile cWnn/man/1.intro/Makefile cWnn/man/2.env/Makefile \
20188 cWnn/man/4.cmd/Makefile cWnn/man/6.jutil/Makefile \
20189 cWnn/romkan/Makefile cWnn/uum/Makefile"
20190 makefiles_cwnn_dic="cWnn/cdic/Makefile cWnn/tdic/Makefile"
20191 fi
20192
20193
20194 if test "x$kWnn" = "xkWnn"; then
20195 makefiles_kwnn="kWnn/Makefile kWnn/conv/Makefile kWnn/etc/Makefile \
20196 kWnn/include/Makefile kWnn/jlib/Makefile kWnn/jutil/Makefile \
20197 kWnn/jserver/Makefile kWnn/kd/Makefile kWnn/kd/rk/Makefile \
20198 kWnn/romkan/Makefile kWnn/uum/Makefile"
20199 makefiles_kwnn_dic="kWnn/kdic/Makefile"
20200 fi
20201
20202 ac_config_files="$ac_config_files ${makefiles_generic} ${makefiles_wnn} ${makefiles_wnn_dic} ${makefiles_cwnn} ${makefiles_cwnn_dic} ${makefiles_kwnn} ${makefiles_kwnn_dic}"
20203 cat >confcache <<\_ACEOF
20204 # This file is a shell script that caches the results of configure
20205 # tests run on this system so they can be shared between configure
20206 # scripts and configure runs, see configure's option --config-cache.
20207 # It is not useful on other systems. If it contains results you don't
20208 # want to keep, you may remove or edit it.
20209 #
20210 # config.status only pays attention to the cache file if you give it
20211 # the --recheck option to rerun configure.
20212 #
20213 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20215 # following values.
20216
20217 _ACEOF
20218
20219 # The following way of writing the cache mishandles newlines in values,
20220 # but we know of no workaround that is simple, portable, and efficient.
20221 # So, don't put newlines in cache variables' values.
20222 # Ultrix sh set writes to stderr and can't be redirected directly,
20223 # and sets the high bit in the cache file unless we assign to the vars.
20224 {
20225 (set) 2>&1 |
20226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20227 *ac_space=\ *)
20228 # `set' does not quote correctly, so add quotes (double-quote
20229 # substitution turns \\\\ into \\, and sed turns \\ into \).
20230 sed -n \
20231 "s/'/'\\\\''/g;
20232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20233 ;;
20234 *)
20235 # `set' quotes correctly as required by POSIX, so do not add quotes.
20236 sed -n \
20237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20238 ;;
20239 esac;
20240 } |
20241 sed '
20242 t clear
20243 : clear
20244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20245 t end
20246 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20247 : end' >>confcache
20248 if cmp -s $cache_file confcache; then :; else
20249 if test -w $cache_file; then
20250 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20251 cat confcache >$cache_file
20252 else
20253 echo "not updating unwritable cache $cache_file"
20254 fi
20255 fi
20256 rm -f confcache
20257
20258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20259 # Let make expand exec_prefix.
20260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20261
20262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20264 # trailing colons and then remove the whole line if VPATH becomes empty
20265 # (actually we leave an empty line to preserve line numbers).
20266 if test "x$srcdir" = x.; then
20267 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20268 s/:*\$(srcdir):*/:/;
20269 s/:*\${srcdir}:*/:/;
20270 s/:*@srcdir@:*/:/;
20271 s/^\([^=]*=[ ]*\):*/\1/;
20272 s/:*$//;
20273 s/^[^=]*=[ ]*$//;
20274 }'
20275 fi
20276
20277 DEFS=-DHAVE_CONFIG_H
20278
20279
20280 : ${CONFIG_STATUS=./config.status}
20281 ac_clean_files_save=$ac_clean_files
20282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20283 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20284 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20285 cat >$CONFIG_STATUS <<_ACEOF
20286 #! $SHELL
20287 # Generated by $as_me.
20288 # Run this file to recreate the current configuration.
20289 # Compiler output produced by configure, useful for debugging
20290 # configure, is in config.log if it exists.
20291
20292 debug=false
20293 SHELL=\${CONFIG_SHELL-$SHELL}
20294 _ACEOF
20295
20296 cat >>$CONFIG_STATUS <<\_ACEOF
20297
20298 ## --------------------- ##
20299 ## M4sh Initialization. ##
20300 ## --------------------- ##
20301
20302 # Be Bourne compatible
20303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20304 emulate sh
20305 NULLCMD=:
20306 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20307 set -o posix
20308 fi
20309
20310 # NLS nuisances.
20311 # Support unset when possible.
20312 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20313 as_unset=unset
20314 else
20315 as_unset=false
20316 fi
20317
20318 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
20319 { $as_unset LANG || test "${LANG+set}" != set; } ||
20320 { LANG=C; export LANG; }
20321 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
20322 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
20323 { LC_ALL=C; export LC_ALL; }
20324 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
20325 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
20326 { LC_TIME=C; export LC_TIME; }
20327 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
20328 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
20329 { LC_CTYPE=C; export LC_CTYPE; }
20330 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
20331 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
20332 { LANGUAGE=C; export LANGUAGE; }
20333 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
20334 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
20335 { LC_COLLATE=C; export LC_COLLATE; }
20336 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
20337 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
20338 { LC_NUMERIC=C; export LC_NUMERIC; }
20339 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
20340 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
20341 { LC_MESSAGES=C; export LC_MESSAGES; }
20342
20343
20344 # Name of the executable.
20345 as_me=`(basename "$0") 2>/dev/null ||
20346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20347 X"$0" : 'X\(//\)$' \| \
20348 X"$0" : 'X\(/\)$' \| \
20349 . : '\(.\)' 2>/dev/null ||
20350 echo X/"$0" |
20351 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20352 /^X\/\(\/\/\)$/{ s//\1/; q; }
20353 /^X\/\(\/\).*/{ s//\1/; q; }
20354 s/.*/./; q'`
20355
20356 # PATH needs CR, and LINENO needs CR and PATH.
20357 # Avoid depending upon Character Ranges.
20358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20361 as_cr_digits='0123456789'
20362 as_cr_alnum=$as_cr_Letters$as_cr_digits
20363
20364 # The user is always right.
20365 if test "${PATH_SEPARATOR+set}" != set; then
20366 echo "#! /bin/sh" >conftest.sh
20367 echo "exit 0" >>conftest.sh
20368 chmod +x conftest.sh
20369 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
20370 PATH_SEPARATOR=';'
20371 else
20372 PATH_SEPARATOR=:
20373 fi
20374 rm -f conftest.sh
20375 fi
20376
20377
20378 as_lineno_1=$LINENO
20379 as_lineno_2=$LINENO
20380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20381 test "x$as_lineno_1" != "x$as_lineno_2" &&
20382 test "x$as_lineno_3" = "x$as_lineno_2" || {
20383 # Find who we are. Look in the path if we contain no path at all
20384 # relative or not.
20385 case $0 in
20386 *[\\/]* ) as_myself=$0 ;;
20387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20388 for as_dir in $PATH
20389 do
20390 IFS=$as_save_IFS
20391 test -z "$as_dir" && as_dir=.
20392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20393 done
20394
20395 ;;
20396 esac
20397 # We did not find ourselves, most probably we were run as `sh COMMAND'
20398 # in which case we are not to be found in the path.
20399 if test "x$as_myself" = x; then
20400 as_myself=$0
20401 fi
20402 if test ! -f "$as_myself"; then
20403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20404 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20405 { (exit 1); exit 1; }; }
20406 fi
20407 case $CONFIG_SHELL in
20408 '')
20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20411 do
20412 IFS=$as_save_IFS
20413 test -z "$as_dir" && as_dir=.
20414 for as_base in sh bash ksh sh5; do
20415 case $as_dir in
20416 /*)
20417 if ("$as_dir/$as_base" -c '
20418 as_lineno_1=$LINENO
20419 as_lineno_2=$LINENO
20420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20421 test "x$as_lineno_1" != "x$as_lineno_2" &&
20422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20423 CONFIG_SHELL=$as_dir/$as_base
20424 export CONFIG_SHELL
20425 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20426 fi;;
20427 esac
20428 done
20429 done
20430 ;;
20431 esac
20432
20433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20434 # uniformly replaced by the line number. The first 'sed' inserts a
20435 # line-number line before each line; the second 'sed' does the real
20436 # work. The second script uses 'N' to pair each line-number line
20437 # with the numbered line, and appends trailing '-' during
20438 # substitution so that $LINENO is not a special case at line end.
20439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20440 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20441 sed '=' <$as_myself |
20442 sed '
20443 N
20444 s,$,-,
20445 : loop
20446 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20447 t loop
20448 s,-$,,
20449 s,^['$as_cr_digits']*\n,,
20450 ' >$as_me.lineno &&
20451 chmod +x $as_me.lineno ||
20452 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20453 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20454 { (exit 1); exit 1; }; }
20455
20456 # Don't try to exec as it changes $[0], causing all sort of problems
20457 # (the dirname of $[0] is not the place where we might find the
20458 # original and so on. Autoconf is especially sensible to this).
20459 . ./$as_me.lineno
20460 # Exit status is that of the last command.
20461 exit
20462 }
20463
20464
20465 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20466 *c*,-n*) ECHO_N= ECHO_C='
20467 ' ECHO_T=' ' ;;
20468 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20469 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20470 esac
20471
20472 if expr a : '\(a\)' >/dev/null 2>&1; then
20473 as_expr=expr
20474 else
20475 as_expr=false
20476 fi
20477
20478 rm -f conf$$ conf$$.exe conf$$.file
20479 echo >conf$$.file
20480 if ln -s conf$$.file conf$$ 2>/dev/null; then
20481 # We could just check for DJGPP; but this test a) works b) is more generic
20482 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20483 if test -f conf$$.exe; then
20484 # Don't use ln at all; we don't have any links
20485 as_ln_s='cp -p'
20486 else
20487 as_ln_s='ln -s'
20488 fi
20489 elif ln conf$$.file conf$$ 2>/dev/null; then
20490 as_ln_s=ln
20491 else
20492 as_ln_s='cp -p'
20493 fi
20494 rm -f conf$$ conf$$.exe conf$$.file
20495
20496 as_executable_p="test -f"
20497
20498 # Sed expression to map a string onto a valid CPP name.
20499 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20500
20501 # Sed expression to map a string onto a valid variable name.
20502 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20503
20504
20505 # IFS
20506 # We need space, tab and new line, in precisely that order.
20507 as_nl='
20508 '
20509 IFS=" $as_nl"
20510
20511 # CDPATH.
20512 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
20513
20514 exec 6>&1
20515
20516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20517 # report actual input values of CONFIG_FILES etc. instead of their
20518 # values after options handling. Logging --version etc. is OK.
20519 exec 5>>config.log
20520 {
20521 echo
20522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20523 ## Running $as_me. ##
20524 _ASBOX
20525 } >&5
20526 cat >&5 <<_CSEOF
20527
20528 This file was extended by $as_me, which was
20529 generated by GNU Autoconf 2.53. Invocation command line was
20530
20531 CONFIG_FILES = $CONFIG_FILES
20532 CONFIG_HEADERS = $CONFIG_HEADERS
20533 CONFIG_LINKS = $CONFIG_LINKS
20534 CONFIG_COMMANDS = $CONFIG_COMMANDS
20535 $ $0 $@
20536
20537 _CSEOF
20538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20539 echo >&5
20540 _ACEOF
20541
20542 # Files that config.status was made for.
20543 if test -n "$ac_config_files"; then
20544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20545 fi
20546
20547 if test -n "$ac_config_headers"; then
20548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20549 fi
20550
20551 if test -n "$ac_config_links"; then
20552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20553 fi
20554
20555 if test -n "$ac_config_commands"; then
20556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20557 fi
20558
20559 cat >>$CONFIG_STATUS <<\_ACEOF
20560
20561 ac_cs_usage="\
20562 \`$as_me' instantiates files from templates according to the
20563 current configuration.
20564
20565 Usage: $0 [OPTIONS] [FILE]...
20566
20567 -h, --help print this help, then exit
20568 -V, --version print version number, then exit
20569 -d, --debug don't remove temporary files
20570 --recheck update $as_me by reconfiguring in the same conditions
20571 --file=FILE[:TEMPLATE]
20572 instantiate the configuration file FILE
20573 --header=FILE[:TEMPLATE]
20574 instantiate the configuration header FILE
20575
20576 Configuration files:
20577 $config_files
20578
20579 Configuration headers:
20580 $config_headers
20581
20582 Report bugs to <bug-autoconf@gnu.org>."
20583 _ACEOF
20584
20585 cat >>$CONFIG_STATUS <<_ACEOF
20586 ac_cs_version="\\
20587 config.status
20588 configured by $0, generated by GNU Autoconf 2.53,
20589 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20590
20591 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20592 Free Software Foundation, Inc.
20593 This config.status script is free software; the Free Software Foundation
20594 gives unlimited permission to copy, distribute and modify it."
20595 srcdir=$srcdir
20596 INSTALL="$INSTALL"
20597 _ACEOF
20598
20599 cat >>$CONFIG_STATUS <<\_ACEOF
20600 # If no file are specified by the user, then we need to provide default
20601 # value. By we need to know if files were specified by the user.
20602 ac_need_defaults=:
20603 while test $# != 0
20604 do
20605 case $1 in
20606 --*=*)
20607 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20608 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20609 shift
20610 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20611 shift
20612 ;;
20613 -*);;
20614 *) # This is not an option, so the user has probably given explicit
20615 # arguments.
20616 ac_need_defaults=false;;
20617 esac
20618
20619 case $1 in
20620 # Handling of the options.
20621 _ACEOF
20622 cat >>$CONFIG_STATUS <<_ACEOF
20623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20624 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20625 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20626 _ACEOF
20627 cat >>$CONFIG_STATUS <<\_ACEOF
20628 --version | --vers* | -V )
20629 echo "$ac_cs_version"; exit 0 ;;
20630 --he | --h)
20631 # Conflict between --help and --header
20632 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20633 Try \`$0 --help' for more information." >&5
20634 echo "$as_me: error: ambiguous option: $1
20635 Try \`$0 --help' for more information." >&2;}
20636 { (exit 1); exit 1; }; };;
20637 --help | --hel | -h )
20638 echo "$ac_cs_usage"; exit 0 ;;
20639 --debug | --d* | -d )
20640 debug=: ;;
20641 --file | --fil | --fi | --f )
20642 shift
20643 CONFIG_FILES="$CONFIG_FILES $1"
20644 ac_need_defaults=false;;
20645 --header | --heade | --head | --hea )
20646 shift
20647 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20648 ac_need_defaults=false;;
20649
20650 # This is an error.
20651 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20652 Try \`$0 --help' for more information." >&5
20653 echo "$as_me: error: unrecognized option: $1
20654 Try \`$0 --help' for more information." >&2;}
20655 { (exit 1); exit 1; }; } ;;
20656
20657 *) ac_config_targets="$ac_config_targets $1" ;;
20658
20659 esac
20660 shift
20661 done
20662
20663 _ACEOF
20664
20665
20666
20667
20668
20669 cat >>$CONFIG_STATUS <<\_ACEOF
20670 for ac_config_target in $ac_config_targets
20671 do
20672 case "$ac_config_target" in
20673 # Handling of arguments.
20674 "${makefiles_generic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_generic}" ;;
20675 "${makefiles_wnn}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn}" ;;
20676 "${makefiles_wnn_dic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn_dic}" ;;
20677 "${makefiles_cwnn}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn}" ;;
20678 "${makefiles_cwnn_dic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn_dic}" ;;
20679 "${makefiles_kwnn}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_kwnn}" ;;
20680 "${makefiles_kwnn_dic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_kwnn_dic}" ;;
20681 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20684 { (exit 1); exit 1; }; };;
20685 esac
20686 done
20687
20688 # If the user did not use the arguments to specify the items to instantiate,
20689 # then the envvar interface is used. Set only those that are not.
20690 # We use the long form for the default assignment because of an extremely
20691 # bizarre bug on SunOS 4.1.3.
20692 if $ac_need_defaults; then
20693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20695 fi
20696
20697 # Create a temporary directory, and hook for its removal unless debugging.
20698 $debug ||
20699 {
20700 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20701 trap '{ (exit 1); exit 1; }' 1 2 13 15
20702 }
20703
20704 # Create a (secure) tmp directory for tmp files.
20705 : ${TMPDIR=/tmp}
20706 {
20707 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20708 test -n "$tmp" && test -d "$tmp"
20709 } ||
20710 {
20711 tmp=$TMPDIR/cs$$-$RANDOM
20712 (umask 077 && mkdir $tmp)
20713 } ||
20714 {
20715 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20716 { (exit 1); exit 1; }
20717 }
20718
20719 _ACEOF
20720
20721 cat >>$CONFIG_STATUS <<_ACEOF
20722
20723 #
20724 # CONFIG_FILES section.
20725 #
20726
20727 # No need to generate the scripts if there are no CONFIG_FILES.
20728 # This happens for instance when ./config.status config.h
20729 if test -n "\$CONFIG_FILES"; then
20730 # Protect against being on the right side of a sed subst in config.status.
20731 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20732 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20733 s,@SHELL@,$SHELL,;t t
20734 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20735 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20736 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20737 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20738 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20739 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20740 s,@exec_prefix@,$exec_prefix,;t t
20741 s,@prefix@,$prefix,;t t
20742 s,@program_transform_name@,$program_transform_name,;t t
20743 s,@bindir@,$bindir,;t t
20744 s,@sbindir@,$sbindir,;t t
20745 s,@libexecdir@,$libexecdir,;t t
20746 s,@datadir@,$datadir,;t t
20747 s,@sysconfdir@,$sysconfdir,;t t
20748 s,@sharedstatedir@,$sharedstatedir,;t t
20749 s,@localstatedir@,$localstatedir,;t t
20750 s,@libdir@,$libdir,;t t
20751 s,@includedir@,$includedir,;t t
20752 s,@oldincludedir@,$oldincludedir,;t t
20753 s,@infodir@,$infodir,;t t
20754 s,@mandir@,$mandir,;t t
20755 s,@build_alias@,$build_alias,;t t
20756 s,@host_alias@,$host_alias,;t t
20757 s,@target_alias@,$target_alias,;t t
20758 s,@DEFS@,$DEFS,;t t
20759 s,@ECHO_C@,$ECHO_C,;t t
20760 s,@ECHO_N@,$ECHO_N,;t t
20761 s,@ECHO_T@,$ECHO_T,;t t
20762 s,@LIBS@,$LIBS,;t t
20763 s,@build@,$build,;t t
20764 s,@build_cpu@,$build_cpu,;t t
20765 s,@build_vendor@,$build_vendor,;t t
20766 s,@build_os@,$build_os,;t t
20767 s,@host@,$host,;t t
20768 s,@host_cpu@,$host_cpu,;t t
20769 s,@host_vendor@,$host_vendor,;t t
20770 s,@host_os@,$host_os,;t t
20771 s,@SUBDIRS@,$SUBDIRS,;t t
20772 s,@WNNMANDIR@,$WNNMANDIR,;t t
20773 s,@Wnn@,$Wnn,;t t
20774 s,@JSERVER_SUBDIRS2@,$JSERVER_SUBDIRS2,;t t
20775 s,@cWnn@,$cWnn,;t t
20776 s,@kWnn@,$kWnn,;t t
20777 s,@WNNJLIB@,$WNNJLIB,;t t
20778 s,@DEPWNNJLIB@,$DEPWNNJLIB,;t t
20779 s,@HINSI_DATA@,$HINSI_DATA,;t t
20780 s,@CWNNJLIB@,$CWNNJLIB,;t t
20781 s,@DEPCWNNJLIB@,$DEPCWNNJLIB,;t t
20782 s,@CHINSI_DATA@,$CHINSI_DATA,;t t
20783 s,@THINSI_DATA@,$THINSI_DATA,;t t
20784 s,@KWNNJLIB@,$KWNNJLIB,;t t
20785 s,@DEPKWNNJLIB@,$DEPKWNNJLIB,;t t
20786 s,@KHINSI_DATA@,$KHINSI_DATA,;t t
20787 s,@ipv6@,$ipv6,;t t
20788 s,@unsafe_path@,$unsafe_path,;t t
20789 s,@CC@,$CC,;t t
20790 s,@CFLAGS@,$CFLAGS,;t t
20791 s,@LDFLAGS@,$LDFLAGS,;t t
20792 s,@CPPFLAGS@,$CPPFLAGS,;t t
20793 s,@ac_ct_CC@,$ac_ct_CC,;t t
20794 s,@EXEEXT@,$EXEEXT,;t t
20795 s,@OBJEXT@,$OBJEXT,;t t
20796 s,@CCOPTIONS@,$CCOPTIONS,;t t
20797 s,@CDEBUGFLAGS@,$CDEBUGFLAGS,;t t
20798 s,@INSTPGMFLAGS@,$INSTPGMFLAGS,;t t
20799 s,@CPP@,$CPP,;t t
20800 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20801 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20802 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20803 s,@LN_S@,$LN_S,;t t
20804 s,@SET_MAKE@,$SET_MAKE,;t t
20805 s,@EGREP@,$EGREP,;t t
20806 s,@ECHO@,$ECHO,;t t
20807 s,@AR@,$AR,;t t
20808 s,@ac_ct_AR@,$ac_ct_AR,;t t
20809 s,@RANLIB@,$RANLIB,;t t
20810 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20811 s,@STRIP@,$STRIP,;t t
20812 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20813 s,@CXX@,$CXX,;t t
20814 s,@CXXFLAGS@,$CXXFLAGS,;t t
20815 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20816 s,@CXXCPP@,$CXXCPP,;t t
20817 s,@F77@,$F77,;t t
20818 s,@FFLAGS@,$FFLAGS,;t t
20819 s,@ac_ct_F77@,$ac_ct_F77,;t t
20820 s,@LIBTOOL@,$LIBTOOL,;t t
20821 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
20822 s,@TERMLIB@,$TERMLIB,;t t
20823 s,@CNVFILE_SUBDIR@,$CNVFILE_SUBDIR,;t t
20824 s,@LIBOBJS@,$LIBOBJS,;t t
20825 s,@JS_SUPPORTOBJS@,$JS_SUPPORTOBJS,;t t
20826 s,@WRAPLIB@,$WRAPLIB,;t t
20827 CEOF
20828
20829 _ACEOF
20830
20831 cat >>$CONFIG_STATUS <<\_ACEOF
20832 # Split the substitutions into bite-sized pieces for seds with
20833 # small command number limits, like on Digital OSF/1 and HP-UX.
20834 ac_max_sed_lines=48
20835 ac_sed_frag=1 # Number of current file.
20836 ac_beg=1 # First line for current file.
20837 ac_end=$ac_max_sed_lines # Line after last line for current file.
20838 ac_more_lines=:
20839 ac_sed_cmds=
20840 while $ac_more_lines; do
20841 if test $ac_beg -gt 1; then
20842 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20843 else
20844 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20845 fi
20846 if test ! -s $tmp/subs.frag; then
20847 ac_more_lines=false
20848 else
20849 # The purpose of the label and of the branching condition is to
20850 # speed up the sed processing (if there are no `@' at all, there
20851 # is no need to browse any of the substitutions).
20852 # These are the two extra sed commands mentioned above.
20853 (echo ':t
20854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20855 if test -z "$ac_sed_cmds"; then
20856 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20857 else
20858 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20859 fi
20860 ac_sed_frag=`expr $ac_sed_frag + 1`
20861 ac_beg=$ac_end
20862 ac_end=`expr $ac_end + $ac_max_sed_lines`
20863 fi
20864 done
20865 if test -z "$ac_sed_cmds"; then
20866 ac_sed_cmds=cat
20867 fi
20868 fi # test -n "$CONFIG_FILES"
20869
20870 _ACEOF
20871 cat >>$CONFIG_STATUS <<\_ACEOF
20872 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20873 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20874 case $ac_file in
20875 - | *:- | *:-:* ) # input from stdin
20876 cat >$tmp/stdin
20877 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20879 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20881 * ) ac_file_in=$ac_file.in ;;
20882 esac
20883
20884 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20885 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887 X"$ac_file" : 'X\(//\)[^/]' \| \
20888 X"$ac_file" : 'X\(//\)$' \| \
20889 X"$ac_file" : 'X\(/\)' \| \
20890 . : '\(.\)' 2>/dev/null ||
20891 echo X"$ac_file" |
20892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20894 /^X\(\/\/\)$/{ s//\1/; q; }
20895 /^X\(\/\).*/{ s//\1/; q; }
20896 s/.*/./; q'`
20897 { case "$ac_dir" in
20898 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20899 *) as_incr_dir=.;;
20900 esac
20901 as_dummy="$ac_dir"
20902 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20903 case $as_mkdir_dir in
20904 # Skip DOS drivespec
20905 ?:) as_incr_dir=$as_mkdir_dir ;;
20906 *)
20907 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20908 test -d "$as_incr_dir" ||
20909 mkdir "$as_incr_dir" ||
20910 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
20911 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
20912 { (exit 1); exit 1; }; }
20913 ;;
20914 esac
20915 done; }
20916
20917 ac_builddir=.
20918
20919 if test "$ac_dir" != .; then
20920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20921 # A "../" for each directory in $ac_dir_suffix.
20922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20923 else
20924 ac_dir_suffix= ac_top_builddir=
20925 fi
20926
20927 case $srcdir in
20928 .) # No --srcdir option. We are building in place.
20929 ac_srcdir=.
20930 if test -z "$ac_top_builddir"; then
20931 ac_top_srcdir=.
20932 else
20933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20934 fi ;;
20935 [\\/]* | ?:[\\/]* ) # Absolute path.
20936 ac_srcdir=$srcdir$ac_dir_suffix;
20937 ac_top_srcdir=$srcdir ;;
20938 *) # Relative path.
20939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20941 esac
20942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20943 # absolute.
20944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
20946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20948
20949
20950 case $INSTALL in
20951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20952 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20953 esac
20954
20955 if test x"$ac_file" != x-; then
20956 { echo "$as_me:$LINENO: creating $ac_file" >&5
20957 echo "$as_me: creating $ac_file" >&6;}
20958 rm -f "$ac_file"
20959 fi
20960 # Let's still pretend it is `configure' which instantiates (i.e., don't
20961 # use $as_me), people would be surprised to read:
20962 # /* config.h. Generated by config.status. */
20963 if test x"$ac_file" = x-; then
20964 configure_input=
20965 else
20966 configure_input="$ac_file. "
20967 fi
20968 configure_input=$configure_input"Generated from `echo $ac_file_in |
20969 sed 's,.*/,,'` by configure."
20970
20971 # First look for the input files in the build tree, otherwise in the
20972 # src tree.
20973 ac_file_inputs=`IFS=:
20974 for f in $ac_file_in; do
20975 case $f in
20976 -) echo $tmp/stdin ;;
20977 [\\/$]*)
20978 # Absolute (can't be DOS-style, as IFS=:)
20979 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20980 echo "$as_me: error: cannot find input file: $f" >&2;}
20981 { (exit 1); exit 1; }; }
20982 echo $f;;
20983 *) # Relative
20984 if test -f "$f"; then
20985 # Build tree
20986 echo $f
20987 elif test -f "$srcdir/$f"; then
20988 # Source tree
20989 echo $srcdir/$f
20990 else
20991 # /dev/null tree
20992 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20993 echo "$as_me: error: cannot find input file: $f" >&2;}
20994 { (exit 1); exit 1; }; }
20995 fi;;
20996 esac
20997 done` || { (exit 1); exit 1; }
20998 _ACEOF
20999 cat >>$CONFIG_STATUS <<_ACEOF
21000 sed "$ac_vpsub
21001 $extrasub
21002 _ACEOF
21003 cat >>$CONFIG_STATUS <<\_ACEOF
21004 :t
21005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21006 s,@configure_input@,$configure_input,;t t
21007 s,@srcdir@,$ac_srcdir,;t t
21008 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21009 s,@top_srcdir@,$ac_top_srcdir,;t t
21010 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21011 s,@builddir@,$ac_builddir,;t t
21012 s,@abs_builddir@,$ac_abs_builddir,;t t
21013 s,@top_builddir@,$ac_top_builddir,;t t
21014 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21015 s,@INSTALL@,$ac_INSTALL,;t t
21016 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21017 rm -f $tmp/stdin
21018 if test x"$ac_file" != x-; then
21019 mv $tmp/out $ac_file
21020 else
21021 cat $tmp/out
21022 rm -f $tmp/out
21023 fi
21024
21025 done
21026 _ACEOF
21027 cat >>$CONFIG_STATUS <<\_ACEOF
21028
21029 #
21030 # CONFIG_HEADER section.
21031 #
21032
21033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21035 #
21036 # ac_d sets the value in "#define NAME VALUE" lines.
21037 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21038 ac_dB='[ ].*$,\1#\2'
21039 ac_dC=' '
21040 ac_dD=',;t'
21041 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21042 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21043 ac_uB='$,\1#\2define\3'
21044 ac_uC=' '
21045 ac_uD=',;t'
21046
21047 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21049 case $ac_file in
21050 - | *:- | *:-:* ) # input from stdin
21051 cat >$tmp/stdin
21052 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21054 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21056 * ) ac_file_in=$ac_file.in ;;
21057 esac
21058
21059 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21060 echo "$as_me: creating $ac_file" >&6;}
21061
21062 # First look for the input files in the build tree, otherwise in the
21063 # src tree.
21064 ac_file_inputs=`IFS=:
21065 for f in $ac_file_in; do
21066 case $f in
21067 -) echo $tmp/stdin ;;
21068 [\\/$]*)
21069 # Absolute (can't be DOS-style, as IFS=:)
21070 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21071 echo "$as_me: error: cannot find input file: $f" >&2;}
21072 { (exit 1); exit 1; }; }
21073 echo $f;;
21074 *) # Relative
21075 if test -f "$f"; then
21076 # Build tree
21077 echo $f
21078 elif test -f "$srcdir/$f"; then
21079 # Source tree
21080 echo $srcdir/$f
21081 else
21082 # /dev/null tree
21083 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21084 echo "$as_me: error: cannot find input file: $f" >&2;}
21085 { (exit 1); exit 1; }; }
21086 fi;;
21087 esac
21088 done` || { (exit 1); exit 1; }
21089 # Remove the trailing spaces.
21090 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21091
21092 _ACEOF
21093
21094 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21095 # `conftest.undefs', that substitutes the proper values into
21096 # config.h.in to produce config.h. The first handles `#define'
21097 # templates, and the second `#undef' templates.
21098 # And first: Protect against being on the right side of a sed subst in
21099 # config.status. Protect against being in an unquoted here document
21100 # in config.status.
21101 rm -f conftest.defines conftest.undefs
21102 # Using a here document instead of a string reduces the quoting nightmare.
21103 # Putting comments in sed scripts is not portable.
21104 #
21105 # `end' is used to avoid that the second main sed command (meant for
21106 # 0-ary CPP macros) applies to n-ary macro definitions.
21107 # See the Autoconf documentation for `clear'.
21108 cat >confdef2sed.sed <<\_ACEOF
21109 s/[\\&,]/\\&/g
21110 s,[\\$`],\\&,g
21111 t clear
21112 : clear
21113 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21114 t end
21115 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21116 : end
21117 _ACEOF
21118 # If some macros were called several times there might be several times
21119 # the same #defines, which is useless. Nevertheless, we may not want to
21120 # sort them, since we want the *last* AC-DEFINE to be honored.
21121 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21122 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21123 rm -f confdef2sed.sed
21124
21125 # This sed command replaces #undef with comments. This is necessary, for
21126 # example, in the case of _POSIX_SOURCE, which is predefined and required
21127 # on some systems where configure will not decide to define it.
21128 cat >>conftest.undefs <<\_ACEOF
21129 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21130 _ACEOF
21131
21132 # Break up conftest.defines because some shells have a limit on the size
21133 # of here documents, and old seds have small limits too (100 cmds).
21134 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21135 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21136 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21137 echo ' :' >>$CONFIG_STATUS
21138 rm -f conftest.tail
21139 while grep . conftest.defines >/dev/null
21140 do
21141 # Write a limited-size here document to $tmp/defines.sed.
21142 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21143 # Speed up: don't consider the non `#define' lines.
21144 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21145 # Work around the forget-to-reset-the-flag bug.
21146 echo 't clr' >>$CONFIG_STATUS
21147 echo ': clr' >>$CONFIG_STATUS
21148 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21149 echo 'CEOF
21150 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21151 rm -f $tmp/in
21152 mv $tmp/out $tmp/in
21153 ' >>$CONFIG_STATUS
21154 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21155 rm -f conftest.defines
21156 mv conftest.tail conftest.defines
21157 done
21158 rm -f conftest.defines
21159 echo ' fi # egrep' >>$CONFIG_STATUS
21160 echo >>$CONFIG_STATUS
21161
21162 # Break up conftest.undefs because some shells have a limit on the size
21163 # of here documents, and old seds have small limits too (100 cmds).
21164 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21165 rm -f conftest.tail
21166 while grep . conftest.undefs >/dev/null
21167 do
21168 # Write a limited-size here document to $tmp/undefs.sed.
21169 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21170 # Speed up: don't consider the non `#undef'
21171 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21172 # Work around the forget-to-reset-the-flag bug.
21173 echo 't clr' >>$CONFIG_STATUS
21174 echo ': clr' >>$CONFIG_STATUS
21175 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21176 echo 'CEOF
21177 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21178 rm -f $tmp/in
21179 mv $tmp/out $tmp/in
21180 ' >>$CONFIG_STATUS
21181 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21182 rm -f conftest.undefs
21183 mv conftest.tail conftest.undefs
21184 done
21185 rm -f conftest.undefs
21186
21187 cat >>$CONFIG_STATUS <<\_ACEOF
21188 # Let's still pretend it is `configure' which instantiates (i.e., don't
21189 # use $as_me), people would be surprised to read:
21190 # /* config.h. Generated by config.status. */
21191 if test x"$ac_file" = x-; then
21192 echo "/* Generated by configure. */" >$tmp/config.h
21193 else
21194 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21195 fi
21196 cat $tmp/in >>$tmp/config.h
21197 rm -f $tmp/in
21198 if test x"$ac_file" != x-; then
21199 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21200 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21201 echo "$as_me: $ac_file is unchanged" >&6;}
21202 else
21203 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21205 X"$ac_file" : 'X\(//\)[^/]' \| \
21206 X"$ac_file" : 'X\(//\)$' \| \
21207 X"$ac_file" : 'X\(/\)' \| \
21208 . : '\(.\)' 2>/dev/null ||
21209 echo X"$ac_file" |
21210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21212 /^X\(\/\/\)$/{ s//\1/; q; }
21213 /^X\(\/\).*/{ s//\1/; q; }
21214 s/.*/./; q'`
21215 { case "$ac_dir" in
21216 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21217 *) as_incr_dir=.;;
21218 esac
21219 as_dummy="$ac_dir"
21220 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21221 case $as_mkdir_dir in
21222 # Skip DOS drivespec
21223 ?:) as_incr_dir=$as_mkdir_dir ;;
21224 *)
21225 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21226 test -d "$as_incr_dir" ||
21227 mkdir "$as_incr_dir" ||
21228 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
21229 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
21230 { (exit 1); exit 1; }; }
21231 ;;
21232 esac
21233 done; }
21234
21235 rm -f $ac_file
21236 mv $tmp/config.h $ac_file
21237 fi
21238 else
21239 cat $tmp/config.h
21240 rm -f $tmp/config.h
21241 fi
21242 done
21243 _ACEOF
21244
21245 cat >>$CONFIG_STATUS <<\_ACEOF
21246
21247 { (exit 0); exit 0; }
21248 _ACEOF
21249 chmod +x $CONFIG_STATUS
21250 ac_clean_files=$ac_clean_files_save
21251
21252
21253 # configure is writing to config.log, and then calls config.status.
21254 # config.status does its own redirection, appending to config.log.
21255 # Unfortunately, on DOS this fails, as config.log is still kept open
21256 # by configure, so config.status won't be able to write to it; its
21257 # output is simply discarded. So we exec the FD to /dev/null,
21258 # effectively closing config.log, so it can be properly (re)opened and
21259 # appended to by config.status. When coming back to configure, we
21260 # need to make the FD available again.
21261 if test "$no_create" != yes; then
21262 ac_cs_success=:
21263 exec 5>/dev/null
21264 $SHELL $CONFIG_STATUS || ac_cs_success=false
21265 exec 5>>config.log
21266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21267 # would make configure fail if this is the last instruction.
21268 $ac_cs_success || { (exit 1); exit 1; }
21269 fi
21270