libftdi, ftdi_eeprom: (tomj) changed all email addresses to opensource@intra2net.com
[ftdi_eeprom] / configure
CommitLineData
50850385
TJ
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.
12SHELL=${CONFIG_SHELL-/bin/sh}
13
14case X$ECHO in
15X*--fallback-echo)
16 # Remove one level of quotation (which was required for Make).
17 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
18 ;;
19esac
20
21echo=${ECHO-echo}
22if test "X$1" = X--no-reexec; then
23 # Discard the --no-reexec flag, and continue.
24 shift
25elif test "X$1" = X--fallback-echo; then
26 # Avoid inline document here, it may be left over
27 :
28elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
29 # Yippee, $echo works!
30 :
31else
32 # Restart under the correct shell.
33 exec $SHELL "$0" --no-reexec ${1+"$@"}
34fi
35
36if test "X$1" = X--fallback-echo; then
37 # used as fallback echo
38 shift
39 cat <<EOF
40$*
41EOF
42 exit 0
43fi
44
45# The HP-UX ksh and POSIX shell print the target directory to stdout
46# if CDPATH is set.
47if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
48
49if test -z "$ECHO"; then
50if 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
61fi
62
63if 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 :
67else
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
147fi
148fi
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.
152ECHO=$echo
153if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
154 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
155fi
156
157
158
159
160# Check that we are running under the correct shell.
161SHELL=${CONFIG_SHELL-/bin/sh}
162
163case X$ECHO in
164X*--fallback-echo)
165 # Remove one level of quotation (which was required for Make).
166 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
167 ;;
168esac
169
170echo=${ECHO-echo}
171if test "X$1" = X--no-reexec; then
172 # Discard the --no-reexec flag, and continue.
173 shift
174elif test "X$1" = X--fallback-echo; then
175 # Avoid inline document here, it may be left over
176 :
177elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
178 # Yippee, $echo works!
179 :
180else
181 # Restart under the correct shell.
182 exec $SHELL "$0" --no-reexec ${1+"$@"}
183fi
184
185if test "X$1" = X--fallback-echo; then
186 # used as fallback echo
187 shift
188 cat <<EOF
189$*
190EOF
191 exit 0
192fi
193
194# The HP-UX ksh and POSIX shell print the target directory to stdout
195# if CDPATH is set.
196if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
197
198if test -z "$ECHO"; then
199if test "X${echo_test_string+set}" != Xset; then
200# find a string as large as possible, as long as the shell can cope with it
201 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
202 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
203 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
204 echo_test_string="`eval $cmd`" &&
205 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
206 then
207 break
208 fi
209 done
210fi
211
212if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
213 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
214 test "X$echo_testing_string" = "X$echo_test_string"; then
215 :
216else
217 # The Solaris, AIX, and Digital Unix default echo programs unquote
218 # backslashes. This makes it impossible to quote backslashes using
219 # echo "$something" | sed 's/\\/\\\\/g'
220 #
221 # So, first we look for a working echo in the user's PATH.
222
223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
224 for dir in $PATH /usr/ucb; do
225 IFS="$lt_save_ifs"
226 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
227 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
228 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
229 test "X$echo_testing_string" = "X$echo_test_string"; then
230 echo="$dir/echo"
231 break
232 fi
233 done
234 IFS="$lt_save_ifs"
235
236 if test "X$echo" = Xecho; then
237 # We didn't find a better echo, so look for alternatives.
238 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
241 # This shell has a builtin print -r that does the trick.
242 echo='print -r'
243 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
244 test "X$CONFIG_SHELL" != X/bin/ksh; then
245 # If we have ksh, try running configure again with it.
246 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
247 export ORIGINAL_CONFIG_SHELL
248 CONFIG_SHELL=/bin/ksh
249 export CONFIG_SHELL
250 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
251 else
252 # Try using printf.
253 echo='printf %s\n'
254 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
255 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
257 # Cool, printf works
258 :
259 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
260 test "X$echo_testing_string" = 'X\t' &&
261 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
262 test "X$echo_testing_string" = "X$echo_test_string"; then
263 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
264 export CONFIG_SHELL
265 SHELL="$CONFIG_SHELL"
266 export SHELL
267 echo="$CONFIG_SHELL $0 --fallback-echo"
268 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 echo="$CONFIG_SHELL $0 --fallback-echo"
273 else
274 # maybe with a smaller string...
275 prev=:
276
277 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
278 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
279 then
280 break
281 fi
282 prev="$cmd"
283 done
284
285 if test "$prev" != 'sed 50q "$0"'; then
286 echo_test_string=`eval $prev`
287 export echo_test_string
288 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
289 else
290 # Oops. We lost completely, so just stick with echo.
291 echo=echo
292 fi
293 fi
294 fi
295 fi
296fi
297fi
298
299# Copy echo and quote the copy suitably for passing to libtool from
300# the Makefile, instead of quoting the original, which is used later.
301ECHO=$echo
302if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
303 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
304fi
305
306
307
308if expr a : '\(a\)' >/dev/null 2>&1; then
309 as_expr=expr
310else
311 as_expr=false
312fi
313
314
315## --------------------- ##
316## M4sh Initialization. ##
317## --------------------- ##
318
319# Be Bourne compatible
320if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
321 emulate sh
322 NULLCMD=:
323elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
324 set -o posix
325fi
326
327# NLS nuisances.
328# Support unset when possible.
329if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
330 as_unset=unset
331else
332 as_unset=false
333fi
334
335(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
336 { $as_unset LANG || test "${LANG+set}" != set; } ||
337 { LANG=C; export LANG; }
338(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
339 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
340 { LC_ALL=C; export LC_ALL; }
341(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
342 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
343 { LC_TIME=C; export LC_TIME; }
344(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
345 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
346 { LC_CTYPE=C; export LC_CTYPE; }
347(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
348 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
349 { LANGUAGE=C; export LANGUAGE; }
350(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
351 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
352 { LC_COLLATE=C; export LC_COLLATE; }
353(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
354 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
355 { LC_NUMERIC=C; export LC_NUMERIC; }
356(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
357 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
358 { LC_MESSAGES=C; export LC_MESSAGES; }
359
360
361# Name of the executable.
362as_me=`(basename "$0") 2>/dev/null ||
363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
364 X"$0" : 'X\(//\)$' \| \
365 X"$0" : 'X\(/\)$' \| \
366 . : '\(.\)' 2>/dev/null ||
367echo X/"$0" |
368 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
369 /^X\/\(\/\/\)$/{ s//\1/; q; }
370 /^X\/\(\/\).*/{ s//\1/; q; }
371 s/.*/./; q'`
372
373# PATH needs CR, and LINENO needs CR and PATH.
374# Avoid depending upon Character Ranges.
375as_cr_letters='abcdefghijklmnopqrstuvwxyz'
376as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
377as_cr_Letters=$as_cr_letters$as_cr_LETTERS
378as_cr_digits='0123456789'
379as_cr_alnum=$as_cr_Letters$as_cr_digits
380
381# The user is always right.
382if test "${PATH_SEPARATOR+set}" != set; then
383 echo "#! /bin/sh" >conftest.sh
384 echo "exit 0" >>conftest.sh
385 chmod +x conftest.sh
386 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
387 PATH_SEPARATOR=';'
388 else
389 PATH_SEPARATOR=:
390 fi
391 rm -f conftest.sh
392fi
393
394
395 as_lineno_1=$LINENO
396 as_lineno_2=$LINENO
397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
398 test "x$as_lineno_1" != "x$as_lineno_2" &&
399 test "x$as_lineno_3" = "x$as_lineno_2" || {
400 # Find who we are. Look in the path if we contain no path at all
401 # relative or not.
402 case $0 in
403 *[\\/]* ) as_myself=$0 ;;
404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
405for as_dir in $PATH
406do
407 IFS=$as_save_IFS
408 test -z "$as_dir" && as_dir=.
409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
410done
411
412 ;;
413 esac
414 # We did not find ourselves, most probably we were run as `sh COMMAND'
415 # in which case we are not to be found in the path.
416 if test "x$as_myself" = x; then
417 as_myself=$0
418 fi
419 if test ! -f "$as_myself"; then
420 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
421 { (exit 1); exit 1; }; }
422 fi
423 case $CONFIG_SHELL in
424 '')
425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
426for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
427do
428 IFS=$as_save_IFS
429 test -z "$as_dir" && as_dir=.
430 for as_base in sh bash ksh sh5; do
431 case $as_dir in
432 /*)
433 if ("$as_dir/$as_base" -c '
434 as_lineno_1=$LINENO
435 as_lineno_2=$LINENO
436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
437 test "x$as_lineno_1" != "x$as_lineno_2" &&
438 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
439 CONFIG_SHELL=$as_dir/$as_base
440 export CONFIG_SHELL
441 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
442 fi;;
443 esac
444 done
445done
446;;
447 esac
448
449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450 # uniformly replaced by the line number. The first 'sed' inserts a
451 # line-number line before each line; the second 'sed' does the real
452 # work. The second script uses 'N' to pair each line-number line
453 # with the numbered line, and appends trailing '-' during
454 # substitution so that $LINENO is not a special case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
457 sed '=' <$as_myself |
458 sed '
459 N
460 s,$,-,
461 : loop
462 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
463 t loop
464 s,-$,,
465 s,^['$as_cr_digits']*\n,,
466 ' >$as_me.lineno &&
467 chmod +x $as_me.lineno ||
468 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
469 { (exit 1); exit 1; }; }
470
471 # Don't try to exec as it changes $[0], causing all sort of problems
472 # (the dirname of $[0] is not the place where we might find the
473 # original and so on. Autoconf is especially sensible to this).
474 . ./$as_me.lineno
475 # Exit status is that of the last command.
476 exit
477}
478
479
480case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
481 *c*,-n*) ECHO_N= ECHO_C='
482' ECHO_T=' ' ;;
483 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
484 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494echo >conf$$.file
495if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # We could just check for DJGPP; but this test a) works b) is more generic
497 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
498 if test -f conf$$.exe; then
499 # Don't use ln at all; we don't have any links
500 as_ln_s='cp -p'
501 else
502 as_ln_s='ln -s'
503 fi
504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.file
510
511as_executable_p="test -f"
512
513# Sed expression to map a string onto a valid CPP name.
514as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
515
516# Sed expression to map a string onto a valid variable name.
517as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
518
519
520# IFS
521# We need space, tab and new line, in precisely that order.
522as_nl='
523'
524IFS=" $as_nl"
525
526# CDPATH.
527$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
528
529
530# Name of the host.
531# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
532# so uname gets run too.
533ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
534
535exec 6>&1
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545SHELL=${CONFIG_SHELL-/bin/sh}
546
547# Maximum number of lines to put in a shell here document.
548# This variable seems obsolete. It should probably be removed, and
549# only ac_max_sed_lines should be used.
550: ${ac_max_here_lines=38}
551
552# Identity of this package.
553PACKAGE_NAME=
554PACKAGE_TARNAME=
555PACKAGE_VERSION=
556PACKAGE_STRING=
557PACKAGE_BUGREPORT=
558
559ac_unique_file="acinclude.m4"
560ac_default_prefix=/usr/local
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#if HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#if HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#if STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# if HAVE_STDLIB_H
575# include <stdlib.h>
576# endif
577#endif
578#if HAVE_STRING_H
579# if !STDC_HEADERS && HAVE_MEMORY_H
580# include <memory.h>
581# endif
582# include <string.h>
583#endif
584#if HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#if HAVE_INTTYPES_H
588# include <inttypes.h>
589#else
590# if HAVE_STDINT_H
591# include <stdint.h>
592# endif
593#endif
594#if HAVE_UNISTD_H
595# include <unistd.h>
596#endif"
597
598
599# Initialize some variables set by options.
600ac_init_help=
601ac_init_version=false
602# The variables have the same names as the options, with
603# dashes changed to underlines.
604cache_file=/dev/null
605exec_prefix=NONE
606no_create=
607no_recursion=
608prefix=NONE
609program_prefix=NONE
610program_suffix=NONE
611program_transform_name=s,x,x,
612silent=
613site=
614srcdir=
615verbose=
616x_includes=NONE
617x_libraries=NONE
618
619# Installation directory options.
620# These are left unexpanded so users can "make install exec_prefix=/foo"
621# and all the variables that are supposed to be based on exec_prefix
622# by default will actually change.
623# Use braces instead of parens because sh, perl, etc. also accept them.
624bindir='${exec_prefix}/bin'
625sbindir='${exec_prefix}/sbin'
626libexecdir='${exec_prefix}/libexec'
627datadir='${prefix}/share'
628sysconfdir='${prefix}/etc'
629sharedstatedir='${prefix}/com'
630localstatedir='${prefix}/var'
631libdir='${exec_prefix}/lib'
632includedir='${prefix}/include'
633oldincludedir='/usr/include'
634infodir='${prefix}/info'
635mandir='${prefix}/man'
636
637ac_prev=
638for ac_option
639do
640 # If the previous option needs an argument, assign it.
641 if test -n "$ac_prev"; then
642 eval "$ac_prev=\$ac_option"
643 ac_prev=
644 continue
645 fi
646
647 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
648
649 # Accept the important Cygnus configure options, so we can diagnose typos.
650
651 case $ac_option in
652
653 -bindir | --bindir | --bindi | --bind | --bin | --bi)
654 ac_prev=bindir ;;
655 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
656 bindir=$ac_optarg ;;
657
658 -build | --build | --buil | --bui | --bu)
659 ac_prev=build_alias ;;
660 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
661 build_alias=$ac_optarg ;;
662
663 -cache-file | --cache-file | --cache-fil | --cache-fi \
664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
665 ac_prev=cache_file ;;
666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
668 cache_file=$ac_optarg ;;
669
670 --config-cache | -C)
671 cache_file=config.cache ;;
672
673 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
674 ac_prev=datadir ;;
675 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
676 | --da=*)
677 datadir=$ac_optarg ;;
678
679 -disable-* | --disable-*)
680 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
681 # Reject names that are not valid shell variable names.
682 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
683 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
684 { (exit 1); exit 1; }; }
685 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
686 eval "enable_$ac_feature=no" ;;
687
688 -enable-* | --enable-*)
689 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
690 # Reject names that are not valid shell variable names.
691 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
692 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
693 { (exit 1); exit 1; }; }
694 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
695 case $ac_option in
696 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
697 *) ac_optarg=yes ;;
698 esac
699 eval "enable_$ac_feature='$ac_optarg'" ;;
700
701 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
702 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
703 | --exec | --exe | --ex)
704 ac_prev=exec_prefix ;;
705 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
706 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
707 | --exec=* | --exe=* | --ex=*)
708 exec_prefix=$ac_optarg ;;
709
710 -gas | --gas | --ga | --g)
711 # Obsolete; use --with-gas.
712 with_gas=yes ;;
713
714 -help | --help | --hel | --he | -h)
715 ac_init_help=long ;;
716 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
717 ac_init_help=recursive ;;
718 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
719 ac_init_help=short ;;
720
721 -host | --host | --hos | --ho)
722 ac_prev=host_alias ;;
723 -host=* | --host=* | --hos=* | --ho=*)
724 host_alias=$ac_optarg ;;
725
726 -includedir | --includedir | --includedi | --included | --include \
727 | --includ | --inclu | --incl | --inc)
728 ac_prev=includedir ;;
729 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
730 | --includ=* | --inclu=* | --incl=* | --inc=*)
731 includedir=$ac_optarg ;;
732
733 -infodir | --infodir | --infodi | --infod | --info | --inf)
734 ac_prev=infodir ;;
735 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
736 infodir=$ac_optarg ;;
737
738 -libdir | --libdir | --libdi | --libd)
739 ac_prev=libdir ;;
740 -libdir=* | --libdir=* | --libdi=* | --libd=*)
741 libdir=$ac_optarg ;;
742
743 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
744 | --libexe | --libex | --libe)
745 ac_prev=libexecdir ;;
746 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
747 | --libexe=* | --libex=* | --libe=*)
748 libexecdir=$ac_optarg ;;
749
750 -localstatedir | --localstatedir | --localstatedi | --localstated \
751 | --localstate | --localstat | --localsta | --localst \
752 | --locals | --local | --loca | --loc | --lo)
753 ac_prev=localstatedir ;;
754 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
755 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
756 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
757 localstatedir=$ac_optarg ;;
758
759 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
760 ac_prev=mandir ;;
761 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
762 mandir=$ac_optarg ;;
763
764 -nfp | --nfp | --nf)
765 # Obsolete; use --without-fp.
766 with_fp=no ;;
767
768 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
769 | --no-cr | --no-c | -n)
770 no_create=yes ;;
771
772 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
773 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
774 no_recursion=yes ;;
775
776 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
777 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
778 | --oldin | --oldi | --old | --ol | --o)
779 ac_prev=oldincludedir ;;
780 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
781 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
782 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
783 oldincludedir=$ac_optarg ;;
784
785 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
786 ac_prev=prefix ;;
787 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
788 prefix=$ac_optarg ;;
789
790 -program-prefix | --program-prefix | --program-prefi | --program-pref \
791 | --program-pre | --program-pr | --program-p)
792 ac_prev=program_prefix ;;
793 -program-prefix=* | --program-prefix=* | --program-prefi=* \
794 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
795 program_prefix=$ac_optarg ;;
796
797 -program-suffix | --program-suffix | --program-suffi | --program-suff \
798 | --program-suf | --program-su | --program-s)
799 ac_prev=program_suffix ;;
800 -program-suffix=* | --program-suffix=* | --program-suffi=* \
801 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
802 program_suffix=$ac_optarg ;;
803
804 -program-transform-name | --program-transform-name \
805 | --program-transform-nam | --program-transform-na \
806 | --program-transform-n | --program-transform- \
807 | --program-transform | --program-transfor \
808 | --program-transfo | --program-transf \
809 | --program-trans | --program-tran \
810 | --progr-tra | --program-tr | --program-t)
811 ac_prev=program_transform_name ;;
812 -program-transform-name=* | --program-transform-name=* \
813 | --program-transform-nam=* | --program-transform-na=* \
814 | --program-transform-n=* | --program-transform-=* \
815 | --program-transform=* | --program-transfor=* \
816 | --program-transfo=* | --program-transf=* \
817 | --program-trans=* | --program-tran=* \
818 | --progr-tra=* | --program-tr=* | --program-t=*)
819 program_transform_name=$ac_optarg ;;
820
821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
822 | -silent | --silent | --silen | --sile | --sil)
823 silent=yes ;;
824
825 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
826 ac_prev=sbindir ;;
827 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
828 | --sbi=* | --sb=*)
829 sbindir=$ac_optarg ;;
830
831 -sharedstatedir | --sharedstatedir | --sharedstatedi \
832 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
833 | --sharedst | --shareds | --shared | --share | --shar \
834 | --sha | --sh)
835 ac_prev=sharedstatedir ;;
836 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
837 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
838 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
839 | --sha=* | --sh=*)
840 sharedstatedir=$ac_optarg ;;
841
842 -site | --site | --sit)
843 ac_prev=site ;;
844 -site=* | --site=* | --sit=*)
845 site=$ac_optarg ;;
846
847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
848 ac_prev=srcdir ;;
849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
850 srcdir=$ac_optarg ;;
851
852 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
853 | --syscon | --sysco | --sysc | --sys | --sy)
854 ac_prev=sysconfdir ;;
855 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
856 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
857 sysconfdir=$ac_optarg ;;
858
859 -target | --target | --targe | --targ | --tar | --ta | --t)
860 ac_prev=target_alias ;;
861 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
862 target_alias=$ac_optarg ;;
863
864 -v | -verbose | --verbose | --verbos | --verbo | --verb)
865 verbose=yes ;;
866
867 -version | --version | --versio | --versi | --vers | -V)
868 ac_init_version=: ;;
869
870 -with-* | --with-*)
871 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid package name: $ac_package" >&2
875 { (exit 1); exit 1; }; }
876 ac_package=`echo $ac_package| sed 's/-/_/g'`
877 case $ac_option in
878 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
879 *) ac_optarg=yes ;;
880 esac
881 eval "with_$ac_package='$ac_optarg'" ;;
882
883 -without-* | --without-*)
884 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid package name: $ac_package" >&2
888 { (exit 1); exit 1; }; }
889 ac_package=`echo $ac_package | sed 's/-/_/g'`
890 eval "with_$ac_package=no" ;;
891
892 --x)
893 # Obsolete; use --with-x.
894 with_x=yes ;;
895
896 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
897 | --x-incl | --x-inc | --x-in | --x-i)
898 ac_prev=x_includes ;;
899 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
900 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
901 x_includes=$ac_optarg ;;
902
903 -x-libraries | --x-libraries | --x-librarie | --x-librari \
904 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
905 ac_prev=x_libraries ;;
906 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
907 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
908 x_libraries=$ac_optarg ;;
909
910 -*) { echo "$as_me: error: unrecognized option: $ac_option
911Try \`$0 --help' for more information." >&2
912 { (exit 1); exit 1; }; }
913 ;;
914
915 *=*)
916 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
920 { (exit 1); exit 1; }; }
921 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
922 eval "$ac_envvar='$ac_optarg'"
923 export $ac_envvar ;;
924
925 *)
926 # FIXME: should be removed in autoconf 3.0.
927 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
928 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
929 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
930 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
931 ;;
932
933 esac
934done
935
936if test -n "$ac_prev"; then
937 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
938 { echo "$as_me: error: missing argument to $ac_option" >&2
939 { (exit 1); exit 1; }; }
940fi
941
942# Be sure to have absolute paths.
943for ac_var in exec_prefix prefix
944do
945 eval ac_val=$`echo $ac_var`
946 case $ac_val in
947 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
948 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
949 { (exit 1); exit 1; }; };;
950 esac
951done
952
953# Be sure to have absolute paths.
954for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
955 localstatedir libdir includedir oldincludedir infodir mandir
956do
957 eval ac_val=$`echo $ac_var`
958 case $ac_val in
959 [\\/$]* | ?:[\\/]* ) ;;
960 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
961 { (exit 1); exit 1; }; };;
962 esac
963done
964
965# There might be people who depend on the old broken behavior: `$host'
966# used to hold the argument of --host etc.
967# FIXME: To remove some day.
968build=$build_alias
969host=$host_alias
970target=$target_alias
971
972# FIXME: To remove some day.
973if test "x$host_alias" != x; then
974 if test "x$build_alias" = x; then
975 cross_compiling=maybe
976 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
977 If a cross compiler is detected then cross compile mode will be used." >&2
978 elif test "x$build_alias" != "x$host_alias"; then
979 cross_compiling=yes
980 fi
981fi
982
983ac_tool_prefix=
984test -n "$host_alias" && ac_tool_prefix=$host_alias-
985
986test "$silent" = yes && exec 6>/dev/null
987
988
989# Find the source files, if location was not specified.
990if test -z "$srcdir"; then
991 ac_srcdir_defaulted=yes
992 # Try the directory containing this script, then its parent.
993 ac_confdir=`(dirname "$0") 2>/dev/null ||
994$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
995 X"$0" : 'X\(//\)[^/]' \| \
996 X"$0" : 'X\(//\)$' \| \
997 X"$0" : 'X\(/\)' \| \
998 . : '\(.\)' 2>/dev/null ||
999echo X"$0" |
1000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1002 /^X\(\/\/\)$/{ s//\1/; q; }
1003 /^X\(\/\).*/{ s//\1/; q; }
1004 s/.*/./; q'`
1005 srcdir=$ac_confdir
1006 if test ! -r $srcdir/$ac_unique_file; then
1007 srcdir=..
1008 fi
1009else
1010 ac_srcdir_defaulted=no
1011fi
1012if test ! -r $srcdir/$ac_unique_file; then
1013 if test "$ac_srcdir_defaulted" = yes; then
1014 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1015 { (exit 1); exit 1; }; }
1016 else
1017 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1018 { (exit 1); exit 1; }; }
1019 fi
1020fi
1021srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1022ac_env_build_alias_set=${build_alias+set}
1023ac_env_build_alias_value=$build_alias
1024ac_cv_env_build_alias_set=${build_alias+set}
1025ac_cv_env_build_alias_value=$build_alias
1026ac_env_host_alias_set=${host_alias+set}
1027ac_env_host_alias_value=$host_alias
1028ac_cv_env_host_alias_set=${host_alias+set}
1029ac_cv_env_host_alias_value=$host_alias
1030ac_env_target_alias_set=${target_alias+set}
1031ac_env_target_alias_value=$target_alias
1032ac_cv_env_target_alias_set=${target_alias+set}
1033ac_cv_env_target_alias_value=$target_alias
1034ac_env_CC_set=${CC+set}
1035ac_env_CC_value=$CC
1036ac_cv_env_CC_set=${CC+set}
1037ac_cv_env_CC_value=$CC
1038ac_env_CFLAGS_set=${CFLAGS+set}
1039ac_env_CFLAGS_value=$CFLAGS
1040ac_cv_env_CFLAGS_set=${CFLAGS+set}
1041ac_cv_env_CFLAGS_value=$CFLAGS
1042ac_env_LDFLAGS_set=${LDFLAGS+set}
1043ac_env_LDFLAGS_value=$LDFLAGS
1044ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1045ac_cv_env_LDFLAGS_value=$LDFLAGS
1046ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1047ac_env_CPPFLAGS_value=$CPPFLAGS
1048ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1049ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1050ac_env_CXX_set=${CXX+set}
1051ac_env_CXX_value=$CXX
1052ac_cv_env_CXX_set=${CXX+set}
1053ac_cv_env_CXX_value=$CXX
1054ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1055ac_env_CXXFLAGS_value=$CXXFLAGS
1056ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1057ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1058ac_env_CPP_set=${CPP+set}
1059ac_env_CPP_value=$CPP
1060ac_cv_env_CPP_set=${CPP+set}
1061ac_cv_env_CPP_value=$CPP
1062ac_env_CXXCPP_set=${CXXCPP+set}
1063ac_env_CXXCPP_value=$CXXCPP
1064ac_cv_env_CXXCPP_set=${CXXCPP+set}
1065ac_cv_env_CXXCPP_value=$CXXCPP
1066
1067#
1068# Report the --help message.
1069#
1070if test "$ac_init_help" = "long"; then
1071 # Omit some internal or obsolete options to make the list less imposing.
1072 # This message is too long to be a string in the A/UX 3.1 sh.
1073 cat <<_ACEOF
1074\`configure' configures this package to adapt to many kinds of systems.
1075
1076Usage: $0 [OPTION]... [VAR=VALUE]...
1077
1078To assign environment variables (e.g., CC, CFLAGS...), specify them as
1079VAR=VALUE. See below for descriptions of some of the useful variables.
1080
1081Defaults for the options are specified in brackets.
1082
1083Configuration:
1084 -h, --help display this help and exit
1085 --help=short display options specific to this package
1086 --help=recursive display the short help of all the included packages
1087 -V, --version display version information and exit
1088 -q, --quiet, --silent do not print \`checking...' messages
1089 --cache-file=FILE cache test results in FILE [disabled]
1090 -C, --config-cache alias for \`--cache-file=config.cache'
1091 -n, --no-create do not create output files
1092 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1093
1094_ACEOF
1095
1096 cat <<_ACEOF
1097Installation directories:
1098 --prefix=PREFIX install architecture-independent files in PREFIX
1099 [$ac_default_prefix]
1100 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1101 [PREFIX]
1102
1103By default, \`make install' will install all the files in
1104\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1105an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1106for instance \`--prefix=\$HOME'.
1107
1108For better control, use the options below.
1109
1110Fine tuning of the installation directories:
1111 --bindir=DIR user executables [EPREFIX/bin]
1112 --sbindir=DIR system admin executables [EPREFIX/sbin]
1113 --libexecdir=DIR program executables [EPREFIX/libexec]
1114 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1115 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1116 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1117 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1118 --libdir=DIR object code libraries [EPREFIX/lib]
1119 --includedir=DIR C header files [PREFIX/include]
1120 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1121 --infodir=DIR info documentation [PREFIX/info]
1122 --mandir=DIR man documentation [PREFIX/man]
1123_ACEOF
1124
1125 cat <<\_ACEOF
1126
1127Program names:
1128 --program-prefix=PREFIX prepend PREFIX to installed program names
1129 --program-suffix=SUFFIX append SUFFIX to installed program names
1130 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1131
1132System types:
1133 --build=BUILD configure for building on BUILD [guessed]
1134 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1135 --target=TARGET configure for building compilers for TARGET [HOST]
1136_ACEOF
1137fi
1138
1139if test -n "$ac_init_help"; then
1140
1141 cat <<\_ACEOF
1142
1143Optional Features:
1144 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1145 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1146 --disable-fast-perl disable fast Makefile generation (needs perl)
1147 --enable-debug enables debug symbols default=no
1148 --disable-debug disables debug output and debug symbols default=no
1149 --enable-strict compiles with strict compiler options (may not work!)
1150 --enable-profile creates profiling infos default=no
1151 --disable-dependency-tracking Speeds up one-time builds
1152 --enable-dependency-tracking Do not reject slow dependency extractors
1153 --enable-final build size optimized apps (experimental - needs lots of memory)
1154 --disable-closure don't delay template instantiation
1155 --enable-shared[=PKGS]
1156 build shared libraries [default=yes]
1157 --enable-static[=PKGS]
1158 build static libraries [default=no]
1159 --enable-fast-install[=PKGS]
1160 optimize for fast installation [default=yes]
1161 --disable-libtool-lock avoid locking (might break parallel builds)
1162
1163Optional Packages:
1164 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1165 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1166 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1167 --with-pic try to use only PIC/non-PIC objects [default=use
1168 both]
1169 --with-tags=TAGS include additional configurations [CXX,GCJ]
1170 --with-extra-includes=DIR
1171 adds non standard include paths
1172 --with-extra-libs=DIR adds non standard library paths
1173
1174Some influential environment variables:
1175 CC C compiler command
1176 CFLAGS C compiler flags
1177 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1178 nonstandard directory <lib dir>
1179 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1180 headers in a nonstandard directory <include dir>
1181 CXX C++ compiler command
1182 CXXFLAGS C++ compiler flags
1183 CPP C preprocessor
1184 CXXCPP C++ preprocessor
1185
1186Use these variables to override the choices made by `configure' or to help
1187it to find libraries and programs with nonstandard names/locations.
1188
1189_ACEOF
1190fi
1191
1192if test "$ac_init_help" = "recursive"; then
1193 # If there are subdirs, report their specific --help.
1194 ac_popdir=`pwd`
1195 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1196 test -d $ac_dir || continue
1197 ac_builddir=.
1198
1199if test "$ac_dir" != .; then
1200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1201 # A "../" for each directory in $ac_dir_suffix.
1202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1203else
1204 ac_dir_suffix= ac_top_builddir=
1205fi
1206
1207case $srcdir in
1208 .) # No --srcdir option. We are building in place.
1209 ac_srcdir=.
1210 if test -z "$ac_top_builddir"; then
1211 ac_top_srcdir=.
1212 else
1213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1214 fi ;;
1215 [\\/]* | ?:[\\/]* ) # Absolute path.
1216 ac_srcdir=$srcdir$ac_dir_suffix;
1217 ac_top_srcdir=$srcdir ;;
1218 *) # Relative path.
1219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1221esac
1222# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1223# absolute.
1224ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1225ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1226ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1227ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1228
1229 cd $ac_dir
1230 # Check for guested configure; otherwise get Cygnus style configure.
1231 if test -f $ac_srcdir/configure.gnu; then
1232 echo
1233 $SHELL $ac_srcdir/configure.gnu --help=recursive
1234 elif test -f $ac_srcdir/configure; then
1235 echo
1236 $SHELL $ac_srcdir/configure --help=recursive
1237 elif test -f $ac_srcdir/configure.ac ||
1238 test -f $ac_srcdir/configure.in; then
1239 echo
1240 $ac_configure --help
1241 else
1242 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1243 fi
1244 cd $ac_popdir
1245 done
1246fi
1247
1248test -n "$ac_init_help" && exit 0
1249if $ac_init_version; then
1250 cat <<\_ACEOF
1251
1252Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1253Free Software Foundation, Inc.
1254This configure script is free software; the Free Software Foundation
1255gives unlimited permission to copy, distribute and modify it.
1256_ACEOF
1257 exit 0
1258fi
1259exec 5>config.log
1260cat >&5 <<_ACEOF
1261This file contains any messages produced by compilers while
1262running configure, to aid debugging if configure makes a mistake.
1263
1264It was created by $as_me, which was
1265generated by GNU Autoconf 2.53. Invocation command line was
1266
1267 $ $0 $@
1268
1269_ACEOF
1270{
1271cat <<_ASUNAME
1272## --------- ##
1273## Platform. ##
1274## --------- ##
1275
1276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1277uname -m = `(uname -m) 2>/dev/null || echo unknown`
1278uname -r = `(uname -r) 2>/dev/null || echo unknown`
1279uname -s = `(uname -s) 2>/dev/null || echo unknown`
1280uname -v = `(uname -v) 2>/dev/null || echo unknown`
1281
1282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1283/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1284
1285/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1286/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1288hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1289/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1290/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1291/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1292
1293_ASUNAME
1294
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298 IFS=$as_save_IFS
1299 test -z "$as_dir" && as_dir=.
1300 echo "PATH: $as_dir"
1301done
1302
1303} >&5
1304
1305cat >&5 <<_ACEOF
1306
1307
1308## ----------- ##
1309## Core tests. ##
1310## ----------- ##
1311
1312_ACEOF
1313
1314
1315# Keep a trace of the command line.
1316# Strip out --no-create and --no-recursion so they do not pile up.
1317# Also quote any args containing shell meta-characters.
1318ac_configure_args=
1319ac_sep=
1320for ac_arg
1321do
1322 case $ac_arg in
1323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1324 | --no-cr | --no-c | -n ) continue ;;
1325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1327 continue ;;
1328 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1329 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1330 esac
1331 case " $ac_configure_args " in
1332 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1333 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1334 ac_sep=" " ;;
1335 esac
1336 # Get rid of the leading space.
1337done
1338
1339# When interrupted or exit'd, cleanup temporary files, and complete
1340# config.log. We remove comments because anyway the quotes in there
1341# would cause problems or look ugly.
1342# WARNING: Be sure not to use single quotes in there, as some shells,
1343# such as our DU 5.0 friend, will then `close' the trap.
1344trap 'exit_status=$?
1345 # Save into config.log some information that might help in debugging.
1346 {
1347 echo
1348 cat <<\_ASBOX
1349## ---------------- ##
1350## Cache variables. ##
1351## ---------------- ##
1352_ASBOX
1353 echo
1354 # The following way of writing the cache mishandles newlines in values,
1355{
1356 (set) 2>&1 |
1357 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1358 *ac_space=\ *)
1359 sed -n \
1360 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1362 ;;
1363 *)
1364 sed -n \
1365 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1366 ;;
1367 esac;
1368}
1369 echo
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
1384 rm -f core core.* *.core &&
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1484echo "$as_me: former value: $ac_old_val" >&2;}
1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1486echo "$as_me: current value: $ac_new_val" >&2;}
1487 ac_cache_corrupted=:
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534ac_aux_dir=
1535for ac_dir in admin $srcdir/admin; do
1536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559
1560unset CDPATH
1561
1562# Make sure we can run config.sub.
1563$ac_config_sub sun4 >/dev/null 2>&1 ||
1564 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568echo "$as_me:$LINENO: checking build system type" >&5
1569echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570if test "${ac_cv_build+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573 ac_cv_build_alias=$build_alias
1574test -z "$ac_cv_build_alias" &&
1575 ac_cv_build_alias=`$ac_config_guess`
1576test -z "$ac_cv_build_alias" &&
1577 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579 { (exit 1); exit 1; }; }
1580ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587echo "${ECHO_T}$ac_cv_build" >&6
1588build=$ac_cv_build
1589build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594echo "$as_me:$LINENO: checking host system type" >&5
1595echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596if test "${ac_cv_host+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599 ac_cv_host_alias=$host_alias
1600test -z "$ac_cv_host_alias" &&
1601 ac_cv_host_alias=$ac_cv_build_alias
1602ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609echo "${ECHO_T}$ac_cv_host" >&6
1610host=$ac_cv_host
1611host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616echo "$as_me:$LINENO: checking target system type" >&5
1617echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618if test "${ac_cv_target+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_target_alias=$target_alias
1622test "x$ac_cv_target_alias" = "x" &&
1623 ac_cv_target_alias=$ac_cv_host_alias
1624ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631echo "${ECHO_T}$ac_cv_target" >&6
1632target=$ac_cv_target
1633target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638# The aliases save the names the user supplied, while $host etc.
1639# will get canonicalized.
1640test -n "$target_alias" &&
1641 test "$program_prefix$program_suffix$program_transform_name" = \
1642 NONENONEs,x,x, &&
1643 program_prefix=${target_alias}-
1644test "$program_prefix" != NONE &&
1645 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1646# Use a double $ so make ignores it.
1647test "$program_suffix" != NONE &&
1648 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1649# Double any \ or $. echo might interpret backslashes.
1650# By default was `s,x,x', remove it if useless.
1651cat <<\_ACEOF >conftest.sed
1652s/[\\$]/&&/g;s/;s,x,x,$//
1653_ACEOF
1654program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1655rm conftest.sed
1656
1657
1658am__api_version="1.6"
1659
1660
1661 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1662 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1663 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1664 # Find a good install program. We prefer a C program (faster),
1665# so one script is as good as another. But avoid the broken or
1666# incompatible versions:
1667# SysV /etc/install, /usr/sbin/install
1668# SunOS /usr/etc/install
1669# IRIX /sbin/install
1670# AIX /bin/install
1671# AmigaOS /C/install, which installs bootblocks on floppy discs
1672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1675# ./install, which can be erroneously created by make from ./install.sh.
1676echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1677echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1678if test -z "$INSTALL"; then
1679if test "${ac_cv_path_install+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 # Account for people who put trailing slashes in PATH elements.
1688case $as_dir/ in
1689 ./ | .// | /cC/* | \
1690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1691 /usr/ucb/* ) ;;
1692 *)
1693 # OSF1 and SCO ODT 3.0 have their own names for install.
1694 # Don't use installbsd from OSF since it installs stuff as root
1695 # by default.
1696 for ac_prog in ginstall scoinst install; do
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1699 if test $ac_prog = install &&
1700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1701 # AIX install. It has an incompatible calling convention.
1702 :
1703 elif test $ac_prog = install &&
1704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1705 # program-specific install script used by HP pwplus--don't use.
1706 :
1707 else
1708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1709 break 3
1710 fi
1711 fi
1712 done
1713 done
1714 ;;
1715esac
1716done
1717
1718
1719fi
1720 if test "${ac_cv_path_install+set}" = set; then
1721 INSTALL=$ac_cv_path_install
1722 else
1723 # As a last resort, use the slow shell script. We don't cache a
1724 # path for INSTALL within a source directory, because that will
1725 # break other packages using the cache if that directory is
1726 # removed, or if the path is relative.
1727 INSTALL=$ac_install_sh
1728 fi
1729fi
1730echo "$as_me:$LINENO: result: $INSTALL" >&5
1731echo "${ECHO_T}$INSTALL" >&6
1732
1733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1734# It thinks the first close brace ends the variable substitution.
1735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1736
1737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1738
1739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1740
1741
1742 if test -z "$kde_save_INSTALL_given" ; then
1743 # OK, user hasn't given any INSTALL, autoconf found one for us
1744 # now we test, if it supports the -p flag
1745 echo "$as_me:$LINENO: checking for -p flag to install" >&5
1746echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1747 rm -f confinst.$$.* > /dev/null 2>&1
1748 echo "Testtest" > confinst.$$.orig
1749 ac_res=no
1750 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1751 if test -f confinst.$$.new ; then
1752 # OK, -p seems to do no harm to install
1753 INSTALL="${INSTALL} -p"
1754 ac_res=yes
1755 fi
1756 fi
1757 rm -f confinst.$$.*
1758 echo "$as_me:$LINENO: result: $ac_res" >&5
1759echo "${ECHO_T}$ac_res" >&6
1760 fi
1761
1762 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1763 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1764 fi
1765 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1766 INSTALL_SCRIPT='${INSTALL}'
1767 fi
1768
1769echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1770echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1771# Just in case
1772sleep 1
1773echo timestamp > conftest.file
1774# Do `set' in a subshell so we don't clobber the current shell's
1775# arguments. Must try -L first in case configure is actually a
1776# symlink; some systems play weird games with the mod time of symlinks
1777# (eg FreeBSD returns the mod time of the symlink's containing
1778# directory).
1779if (
1780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1781 if test "$*" = "X"; then
1782 # -L didn't work.
1783 set X `ls -t $srcdir/configure conftest.file`
1784 fi
1785 rm -f conftest.file
1786 if test "$*" != "X $srcdir/configure conftest.file" \
1787 && test "$*" != "X conftest.file $srcdir/configure"; then
1788
1789 # If neither matched, then we have a broken ls. This can happen
1790 # if, for instance, CONFIG_SHELL is bash and it inherits a
1791 # broken ls alias from the environment. This has actually
1792 # happened. Such a system could not be considered "sane".
1793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1794alias in your environment" >&5
1795echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1796alias in your environment" >&2;}
1797 { (exit 1); exit 1; }; }
1798 fi
1799
1800 test "$2" = conftest.file
1801 )
1802then
1803 # Ok.
1804 :
1805else
1806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1807Check your system clock" >&5
1808echo "$as_me: error: newly created file is older than distributed files!
1809Check your system clock" >&2;}
1810 { (exit 1); exit 1; }; }
1811fi
1812echo "$as_me:$LINENO: result: yes" >&5
1813echo "${ECHO_T}yes" >&6
1814
1815# expand $ac_aux_dir to an absolute path
1816am_aux_dir=`cd $ac_aux_dir && pwd`
1817
1818test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1819# Use eval to expand $SHELL
1820if eval "$MISSING --run true"; then
1821 am_missing_run="$MISSING --run "
1822else
1823 am_missing_run=
1824 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1825echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1826fi
1827
1828for ac_prog in gawk mawk nawk awk
1829do
1830 # Extract the first word of "$ac_prog", so it can be a program name with args.
1831set dummy $ac_prog; ac_word=$2
1832echo "$as_me:$LINENO: checking for $ac_word" >&5
1833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834if test "${ac_cv_prog_AWK+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836else
1837 if test -n "$AWK"; then
1838 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1839else
1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841for as_dir in $PATH
1842do
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_AWK="$ac_prog"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 break 2
1850 fi
1851done
1852done
1853
1854fi
1855fi
1856AWK=$ac_cv_prog_AWK
1857if test -n "$AWK"; then
1858 echo "$as_me:$LINENO: result: $AWK" >&5
1859echo "${ECHO_T}$AWK" >&6
1860else
1861 echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6
1863fi
1864
1865 test -n "$AWK" && break
1866done
1867
1868echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1869echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1870set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1871if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 cat >conftest.make <<\_ACEOF
1875all:
1876 @echo 'ac_maketemp="${MAKE}"'
1877_ACEOF
1878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1879eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1880if test -n "$ac_maketemp"; then
1881 eval ac_cv_prog_make_${ac_make}_set=yes
1882else
1883 eval ac_cv_prog_make_${ac_make}_set=no
1884fi
1885rm -f conftest.make
1886fi
1887if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1888 echo "$as_me:$LINENO: result: yes" >&5
1889echo "${ECHO_T}yes" >&6
1890 SET_MAKE=
1891else
1892 echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894 SET_MAKE="MAKE=${MAKE-make}"
1895fi
1896
1897 # test to see if srcdir already configured
1898if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899 test -f $srcdir/config.status; then
1900 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902 { (exit 1); exit 1; }; }
1903fi
1904
1905# Define the identity of the package.
1906 PACKAGE=ftdi_eeprom
1907 VERSION=0.1
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE "$PACKAGE"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define VERSION "$VERSION"
1917_ACEOF
1918
1919# Some tools Automake needs.
1920
1921ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1922
1923
1924AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1925
1926
1927AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1928
1929
1930AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1931
1932
1933MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1934
1935
1936AMTAR=${AMTAR-"${am_missing_run}tar"}
1937
1938install_sh=${install_sh-"$am_aux_dir/install-sh"}
1939
1940# Installed binaries are usually stripped using `strip' when the user
1941# run `make install-strip'. However `strip' might not be the right
1942# tool to use in cross-compilation environments, therefore Automake
1943# will honor the `STRIP' environment variable to overrule this program.
1944if test "$cross_compiling" != no; then
1945 if test -n "$ac_tool_prefix"; then
1946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1947set dummy ${ac_tool_prefix}strip; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_STRIP+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953 if test -n "$STRIP"; then
1954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1955else
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967done
1968done
1969
1970fi
1971fi
1972STRIP=$ac_cv_prog_STRIP
1973if test -n "$STRIP"; then
1974 echo "$as_me:$LINENO: result: $STRIP" >&5
1975echo "${ECHO_T}$STRIP" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981fi
1982if test -z "$ac_cv_prog_STRIP"; then
1983 ac_ct_STRIP=$STRIP
1984 # Extract the first word of "strip", so it can be a program name with args.
1985set dummy strip; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 if test -n "$ac_ct_STRIP"; then
1992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_ac_ct_STRIP="strip"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005done
2006done
2007
2008 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2009fi
2010fi
2011ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2012if test -n "$ac_ct_STRIP"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2014echo "${ECHO_T}$ac_ct_STRIP" >&6
2015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
2020 STRIP=$ac_ct_STRIP
2021else
2022 STRIP="$ac_cv_prog_STRIP"
2023fi
2024
2025fi
2026INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2027
2028# We need awk for the "check" target. The system "awk" is bad on
2029# some platforms.
2030
2031
2032
2033unset CDPATH
2034
2035
2036if test "x$prefix" = "xNONE"; then
2037 prefix=$ac_default_prefix
2038 ac_configure_args="$ac_configure_args --prefix $prefix"
2039fi
2040
2041 # Check whether --enable-fast-perl or --disable-fast-perl was given.
2042if test "${enable_fast_perl+set}" = set; then
2043 enableval="$enable_fast_perl"
2044 with_fast_perl=$enableval
2045else
2046 with_fast_perl=yes
2047fi;
2048
2049
2050 val=
2051 if test -f $srcdir/configure.files ; then
2052 val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2053 fi
2054 CONF_FILES=
2055 if test -n "$val" ; then
2056 for i in $val ; do
2057 CONF_FILES="$CONF_FILES $i"
2058 done
2059 fi
2060
2061
2062
2063# Add the stamp file to the list of files AC keeps track of,
2064# along with our hook.
2065ac_config_headers="$ac_config_headers config.h"
2066
2067
2068
2069
2070rm -f .deps 2>/dev/null
2071mkdir .deps 2>/dev/null
2072if test -d .deps; then
2073 DEPDIR=.deps
2074else
2075 # MS-DOS does not allow filenames that begin with a dot.
2076 DEPDIR=_deps
2077fi
2078rmdir .deps 2>/dev/null
2079
2080
2081ac_config_commands="$ac_config_commands depfiles"
2082
2083
2084am_make=${MAKE-make}
2085cat > confinc << 'END'
2086doit:
2087 @echo done
2088END
2089# If we don't find an include directive, just comment out the code.
2090echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2091echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2092am__include="#"
2093am__quote=
2094_am_result=none
2095# First try GNU make style include.
2096echo "include confinc" > confmf
2097# We grep out `Entering directory' and `Leaving directory'
2098# messages which can occur if `w' ends up in MAKEFLAGS.
2099# In particular we don't look at `^make:' because GNU make might
2100# be invoked under some other name (usually "gmake"), in which
2101# case it prints its new name instead of `make'.
2102if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2103 am__include=include
2104 am__quote=
2105 _am_result=GNU
2106fi
2107# Now try BSD make style include.
2108if test "$am__include" = "#"; then
2109 echo '.include "confinc"' > confmf
2110 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2111 am__include=.include
2112 am__quote="\""
2113 _am_result=BSD
2114 fi
2115fi
2116
2117
2118echo "$as_me:$LINENO: result: $_am_result" >&5
2119echo "${ECHO_T}$_am_result" >&6
2120rm -f confinc confmf
2121
2122# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2123if test "${enable_dependency_tracking+set}" = set; then
2124 enableval="$enable_dependency_tracking"
2125
2126fi;
2127if test "x$enable_dependency_tracking" != xno; then
2128 am_depcomp="$ac_aux_dir/depcomp"
2129 AMDEPBACKSLASH='\'
2130fi
2131
2132
2133if test "x$enable_dependency_tracking" != xno; then
2134 AMDEP_TRUE=
2135 AMDEP_FALSE='#'
2136else
2137 AMDEP_TRUE='#'
2138 AMDEP_FALSE=
2139fi
2140
2141
2142
2143ac_ext=cc
2144ac_cpp='$CXXCPP $CPPFLAGS'
2145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2148if test -n "$ac_tool_prefix"; then
2149 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2150 do
2151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153echo "$as_me:$LINENO: checking for $ac_word" >&5
2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155if test "${ac_cv_prog_CXX+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158 if test -n "$CXX"; then
2159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2160else
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172done
2173done
2174
2175fi
2176fi
2177CXX=$ac_cv_prog_CXX
2178if test -n "$CXX"; then
2179 echo "$as_me:$LINENO: result: $CXX" >&5
2180echo "${ECHO_T}$CXX" >&6
2181else
2182 echo "$as_me:$LINENO: result: no" >&5
2183echo "${ECHO_T}no" >&6
2184fi
2185
2186 test -n "$CXX" && break
2187 done
2188fi
2189if test -z "$CXX"; then
2190 ac_ct_CXX=$CXX
2191 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2192do
2193 # Extract the first word of "$ac_prog", so it can be a program name with args.
2194set dummy $ac_prog; ac_word=$2
2195echo "$as_me:$LINENO: checking for $ac_word" >&5
2196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200 if test -n "$ac_ct_CXX"; then
2201 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 ac_cv_prog_ac_ct_CXX="$ac_prog"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2213 fi
2214done
2215done
2216
2217fi
2218fi
2219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2220if test -n "$ac_ct_CXX"; then
2221 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2222echo "${ECHO_T}$ac_ct_CXX" >&6
2223else
2224 echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6
2226fi
2227
2228 test -n "$ac_ct_CXX" && break
2229done
2230test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2231
2232 CXX=$ac_ct_CXX
2233fi
2234
2235
2236# Provide some information about the compiler.
2237echo "$as_me:$LINENO:" \
2238 "checking for C++ compiler version" >&5
2239ac_compiler=`set X $ac_compile; echo $2`
2240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2241 (eval $ac_compiler --version </dev/null >&5) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }
2245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2246 (eval $ac_compiler -v </dev/null >&5) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }
2250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2251 (eval $ac_compiler -V </dev/null >&5) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }
2255
2256echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2257echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2258if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261 cat >conftest.$ac_ext <<_ACEOF
2262#line $LINENO "configure"
2263#include "confdefs.h"
2264
2265#ifdef F77_DUMMY_MAIN
2266# ifdef __cplusplus
2267 extern "C"
2268# endif
2269 int F77_DUMMY_MAIN() { return 1; }
2270#endif
2271int
2272main ()
2273{
2274#ifndef __GNUC__
2275 choke me
2276#endif
2277
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282rm -f conftest.$ac_objext
2283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 ac_compiler_gnu=yes
2295else
2296 echo "$as_me: failed program was:" >&5
2297cat conftest.$ac_ext >&5
2298ac_compiler_gnu=no
2299fi
2300rm -f conftest.$ac_objext conftest.$ac_ext
2301ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2302
2303fi
2304echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2305echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2306GXX=`test $ac_compiler_gnu = yes && echo yes`
2307ac_test_CXXFLAGS=${CXXFLAGS+set}
2308ac_save_CXXFLAGS=$CXXFLAGS
2309CXXFLAGS="-g"
2310echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2311echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2312if test "${ac_cv_prog_cxx_g+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315 cat >conftest.$ac_ext <<_ACEOF
2316#line $LINENO "configure"
2317#include "confdefs.h"
2318
2319#ifdef F77_DUMMY_MAIN
2320# ifdef __cplusplus
2321 extern "C"
2322# endif
2323 int F77_DUMMY_MAIN() { return 1; }
2324#endif
2325int
2326main ()
2327{
2328
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333rm -f conftest.$ac_objext
2334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cxx_g=yes
2346else
2347 echo "$as_me: failed program was:" >&5
2348cat conftest.$ac_ext >&5
2349ac_cv_prog_cxx_g=no
2350fi
2351rm -f conftest.$ac_objext conftest.$ac_ext
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2354echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2355if test "$ac_test_CXXFLAGS" = set; then
2356 CXXFLAGS=$ac_save_CXXFLAGS
2357elif test $ac_cv_prog_cxx_g = yes; then
2358 if test "$GXX" = yes; then
2359 CXXFLAGS="-g -O2"
2360 else
2361 CXXFLAGS="-g"
2362 fi
2363else
2364 if test "$GXX" = yes; then
2365 CXXFLAGS="-O2"
2366 else
2367 CXXFLAGS=
2368 fi
2369fi
2370for ac_declaration in \
2371 ''\
2372 '#include <stdlib.h>' \
2373 'extern "C" void std::exit (int) throw (); using std::exit;' \
2374 'extern "C" void std::exit (int); using std::exit;' \
2375 'extern "C" void exit (int) throw ();' \
2376 'extern "C" void exit (int);' \
2377 'void exit (int);'
2378do
2379 cat >conftest.$ac_ext <<_ACEOF
2380#line $LINENO "configure"
2381#include "confdefs.h"
2382#include <stdlib.h>
2383$ac_declaration
2384#ifdef F77_DUMMY_MAIN
2385# ifdef __cplusplus
2386 extern "C"
2387# endif
2388 int F77_DUMMY_MAIN() { return 1; }
2389#endif
2390int
2391main ()
2392{
2393exit (42);
2394 ;
2395 return 0;
2396}
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 :
2411else
2412 echo "$as_me: failed program was:" >&5
2413cat conftest.$ac_ext >&5
2414continue
2415fi
2416rm -f conftest.$ac_objext conftest.$ac_ext
2417 cat >conftest.$ac_ext <<_ACEOF
2418#line $LINENO "configure"
2419#include "confdefs.h"
2420$ac_declaration
2421#ifdef F77_DUMMY_MAIN
2422# ifdef __cplusplus
2423 extern "C"
2424# endif
2425 int F77_DUMMY_MAIN() { return 1; }
2426#endif
2427int
2428main ()
2429{
2430exit (42);
2431 ;
2432 return 0;
2433}
2434_ACEOF
2435rm -f conftest.$ac_objext
2436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 break
2448else
2449 echo "$as_me: failed program was:" >&5
2450cat conftest.$ac_ext >&5
2451fi
2452rm -f conftest.$ac_objext conftest.$ac_ext
2453done
2454rm -f conftest*
2455if test -n "$ac_declaration"; then
2456 echo '#ifdef __cplusplus' >>confdefs.h
2457 echo $ac_declaration >>confdefs.h
2458 echo '#endif' >>confdefs.h
2459fi
2460
2461ac_ext=cc
2462ac_cpp='$CXXCPP $CPPFLAGS'
2463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2466
2467depcc="$CXX" am_compiler_list=
2468
2469echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2470echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2471if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2475 # We make a subdir and do the tests there. Otherwise we can end up
2476 # making bogus files that we don't know about and never remove. For
2477 # instance it was reported that on HP-UX the gcc test will end up
2478 # making a dummy file named `D' -- because `-MD' means `put the output
2479 # in D'.
2480 mkdir conftest.dir
2481 # Copy depcomp to subdir because otherwise we won't find it if we're
2482 # using a relative directory.
2483 cp "$am_depcomp" conftest.dir
2484 cd conftest.dir
2485
2486 am_cv_CXX_dependencies_compiler_type=none
2487 if test "$am_compiler_list" = ""; then
2488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2489 fi
2490 for depmode in $am_compiler_list; do
2491 # We need to recreate these files for each test, as the compiler may
2492 # overwrite some of them when testing with obscure command lines.
2493 # This happens at least with the AIX C compiler.
2494 echo '#include "conftest.h"' > conftest.c
2495 echo 'int i;' > conftest.h
2496 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2497
2498 case $depmode in
2499 nosideeffect)
2500 # after this tag, mechanisms are not by side-effect, so they'll
2501 # only be used when explicitly requested
2502 if test "x$enable_dependency_tracking" = xyes; then
2503 continue
2504 else
2505 break
2506 fi
2507 ;;
2508 none) break ;;
2509 esac
2510 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2511 # mode. It turns out that the SunPro C++ compiler does not properly
2512 # handle `-M -o', and we need to detect this.
2513 if depmode=$depmode \
2514 source=conftest.c object=conftest.o \
2515 depfile=conftest.Po tmpdepfile=conftest.TPo \
2516 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2517 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2518 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2519 am_cv_CXX_dependencies_compiler_type=$depmode
2520 break
2521 fi
2522 done
2523
2524 cd ..
2525 rm -rf conftest.dir
2526else
2527 am_cv_CXX_dependencies_compiler_type=none
2528fi
2529
2530fi
2531echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2532echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2533CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2534
2535
2536
2537
2538 # Check whether --enable-debug or --disable-debug was given.
2539if test "${enable_debug+set}" = set; then
2540 enableval="$enable_debug"
2541
2542 if test $enableval = "no"; then
2543 kde_use_debug_code="no"
2544 kde_use_debug_define=yes
2545 else
2546 kde_use_debug_code="yes"
2547 kde_use_debug_define=no
2548 fi
2549
2550else
2551 kde_use_debug_code="no"
2552 kde_use_debug_define=no
2553
2554fi;
2555
2556 # Check whether --enable-dummyoption or --disable-dummyoption was given.
2557if test "${enable_dummyoption+set}" = set; then
2558 enableval="$enable_dummyoption"
2559
2560fi;
2561
2562 # Check whether --enable-strict or --disable-strict was given.
2563if test "${enable_strict+set}" = set; then
2564 enableval="$enable_strict"
2565
2566 if test $enableval = "no"; then
2567 kde_use_strict_options="no"
2568 else
2569 kde_use_strict_options="yes"
2570 fi
2571
2572else
2573 kde_use_strict_options="no"
2574fi;
2575
2576 # Check whether --enable-profile or --disable-profile was given.
2577if test "${enable_profile+set}" = set; then
2578 enableval="$enable_profile"
2579 kde_use_profiling=$enableval
2580else
2581 kde_use_profiling="no"
2582
2583fi;
2584
2585 CFLAGS=" $CFLAGS"
2586
2587 ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2594set dummy ${ac_tool_prefix}gcc; ac_word=$2
2595echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614done
2615done
2616
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
2621 echo "$as_me:$LINENO: result: $CC" >&5
2622echo "${ECHO_T}$CC" >&6
2623else
2624 echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6
2626fi
2627
2628fi
2629if test -z "$ac_cv_prog_CC"; then
2630 ac_ct_CC=$CC
2631 # Extract the first word of "gcc", so it can be a program name with args.
2632set dummy gcc; ac_word=$2
2633echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_ac_ct_CC="gcc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653done
2654
2655fi
2656fi
2657ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658if test -n "$ac_ct_CC"; then
2659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660echo "${ECHO_T}$ac_ct_CC" >&6
2661else
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
2664fi
2665
2666 CC=$ac_ct_CC
2667else
2668 CC="$ac_cv_prog_CC"
2669fi
2670
2671if test -z "$CC"; then
2672 if test -n "$ac_tool_prefix"; then
2673 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2674set dummy ${ac_tool_prefix}cc; ac_word=$2
2675echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_CC="${ac_tool_prefix}cc"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
2696
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
2701 echo "$as_me:$LINENO: result: $CC" >&5
2702echo "${ECHO_T}$CC" >&6
2703else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706fi
2707
2708fi
2709if test -z "$ac_cv_prog_CC"; then
2710 ac_ct_CC=$CC
2711 # Extract the first word of "cc", so it can be a program name with args.
2712set dummy cc; ac_word=$2
2713echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_CC="cc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733done
2734
2735fi
2736fi
2737ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738if test -n "$ac_ct_CC"; then
2739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2740echo "${ECHO_T}$ac_ct_CC" >&6
2741else
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
2744fi
2745
2746 CC=$ac_ct_CC
2747else
2748 CC="$ac_cv_prog_CC"
2749fi
2750
2751fi
2752if test -z "$CC"; then
2753 # Extract the first word of "cc", so it can be a program name with args.
2754set dummy cc; ac_word=$2
2755echo "$as_me:$LINENO: checking for $ac_word" >&5
2756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757if test "${ac_cv_prog_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763 ac_prog_rejected=no
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2772 ac_prog_rejected=yes
2773 continue
2774 fi
2775 ac_cv_prog_CC="cc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
2780done
2781
2782if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2785 shift
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2790 shift
2791 set dummy "$as_dir/$ac_word" ${1+"$@"}
2792 shift
2793 ac_cv_prog_CC="$@"
2794 fi
2795fi
2796fi
2797fi
2798CC=$ac_cv_prog_CC
2799if test -n "$CC"; then
2800 echo "$as_me:$LINENO: result: $CC" >&5
2801echo "${ECHO_T}$CC" >&6
2802else
2803 echo "$as_me:$LINENO: result: no" >&5
2804echo "${ECHO_T}no" >&6
2805fi
2806
2807fi
2808if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 for ac_prog in cl
2811 do
2812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2814echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840 echo "$as_me:$LINENO: result: $CC" >&5
2841echo "${ECHO_T}$CC" >&6
2842else
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
2845fi
2846
2847 test -n "$CC" && break
2848 done
2849fi
2850if test -z "$CC"; then
2851 ac_ct_CC=$CC
2852 for ac_prog in cl
2853do
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855set dummy $ac_prog; ac_word=$2
2856echo "$as_me:$LINENO: checking for $ac_word" >&5
2857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861 if test -n "$ac_ct_CC"; then
2862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_ac_ct_CC="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876done
2877
2878fi
2879fi
2880ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881if test -n "$ac_ct_CC"; then
2882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883echo "${ECHO_T}$ac_ct_CC" >&6
2884else
2885 echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888
2889 test -n "$ac_ct_CC" && break
2890done
2891
2892 CC=$ac_ct_CC
2893fi
2894
2895fi
2896
2897
2898test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2899echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2900 { (exit 1); exit 1; }; }
2901
2902# Provide some information about the compiler.
2903echo "$as_me:$LINENO:" \
2904 "checking for C compiler version" >&5
2905ac_compiler=`set X $ac_compile; echo $2`
2906{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2907 (eval $ac_compiler --version </dev/null >&5) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2912 (eval $ac_compiler -v </dev/null >&5) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2917 (eval $ac_compiler -V </dev/null >&5) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921
2922cat >conftest.$ac_ext <<_ACEOF
2923#line $LINENO "configure"
2924#include "confdefs.h"
2925
2926#ifdef F77_DUMMY_MAIN
2927# ifdef __cplusplus
2928 extern "C"
2929# endif
2930 int F77_DUMMY_MAIN() { return 1; }
2931#endif
2932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940ac_clean_files_save=$ac_clean_files
2941ac_clean_files="$ac_clean_files a.out a.exe"
2942# Try to create an executable without -o first, disregard a.out.
2943# It will help us diagnose broken compilers, and finding out an intuition
2944# of exeext.
2945echo "$as_me:$LINENO: checking for C compiler default output" >&5
2946echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2947ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2948if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2949 (eval $ac_link_default) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; then
2953 # Find the output, starting from the most likely. This scheme is
2954# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2955# resort.
2956
2957# Be careful to initialize this variable, since it used to be cached.
2958# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2959ac_cv_exeext=
2960for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2961 ls a.out conftest 2>/dev/null;
2962 ls a.* conftest.* 2>/dev/null`; do
2963 case $ac_file in
2964 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2965 a.out ) # We found the default executable, but exeext='' is most
2966 # certainly right.
2967 break;;
2968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2970 export ac_cv_exeext
2971 break;;
2972 * ) break;;
2973 esac
2974done
2975else
2976 echo "$as_me: failed program was:" >&5
2977cat conftest.$ac_ext >&5
2978{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2979echo "$as_me: error: C compiler cannot create executables" >&2;}
2980 { (exit 77); exit 77; }; }
2981fi
2982
2983ac_exeext=$ac_cv_exeext
2984echo "$as_me:$LINENO: result: $ac_file" >&5
2985echo "${ECHO_T}$ac_file" >&6
2986
2987# Check the compiler produces executables we can run. If not, either
2988# the compiler is broken, or we cross compile.
2989echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2990echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2991# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2992# If not cross compiling, check that we can run a simple program.
2993if test "$cross_compiling" != yes; then
2994 if { ac_try='./$ac_file'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 cross_compiling=no
3001 else
3002 if test "$cross_compiling" = maybe; then
3003 cross_compiling=yes
3004 else
3005 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3006If you meant to cross compile, use \`--host'." >&5
3007echo "$as_me: error: cannot run C compiled programs.
3008If you meant to cross compile, use \`--host'." >&2;}
3009 { (exit 1); exit 1; }; }
3010 fi
3011 fi
3012fi
3013echo "$as_me:$LINENO: result: yes" >&5
3014echo "${ECHO_T}yes" >&6
3015
3016rm -f a.out a.exe conftest$ac_cv_exeext
3017ac_clean_files=$ac_clean_files_save
3018# Check the compiler produces executables we can run. If not, either
3019# the compiler is broken, or we cross compile.
3020echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3021echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3022echo "$as_me:$LINENO: result: $cross_compiling" >&5
3023echo "${ECHO_T}$cross_compiling" >&6
3024
3025echo "$as_me:$LINENO: checking for suffix of executables" >&5
3026echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; then
3032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3033# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3034# work properly (i.e., refer to `conftest.exe'), while it won't with
3035# `rm'.
3036for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3037 case $ac_file in
3038 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 export ac_cv_exeext
3041 break;;
3042 * ) break;;
3043 esac
3044done
3045else
3046 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3047echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3048 { (exit 1); exit 1; }; }
3049fi
3050
3051rm -f conftest$ac_cv_exeext
3052echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3053echo "${ECHO_T}$ac_cv_exeext" >&6
3054
3055rm -f conftest.$ac_ext
3056EXEEXT=$ac_cv_exeext
3057ac_exeext=$EXEEXT
3058echo "$as_me:$LINENO: checking for suffix of object files" >&5
3059echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3060if test "${ac_cv_objext+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 cat >conftest.$ac_ext <<_ACEOF
3064#line $LINENO "configure"
3065#include "confdefs.h"
3066
3067#ifdef F77_DUMMY_MAIN
3068# ifdef __cplusplus
3069 extern "C"
3070# endif
3071 int F77_DUMMY_MAIN() { return 1; }
3072#endif
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.o conftest.obj
3082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; then
3087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091 break;;
3092 esac
3093done
3094else
3095 echo "$as_me: failed program was:" >&5
3096cat conftest.$ac_ext >&5
3097{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3098echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3099 { (exit 1); exit 1; }; }
3100fi
3101
3102rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103fi
3104echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3105echo "${ECHO_T}$ac_cv_objext" >&6
3106OBJEXT=$ac_cv_objext
3107ac_objext=$OBJEXT
3108echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3109echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3110if test "${ac_cv_c_compiler_gnu+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113 cat >conftest.$ac_ext <<_ACEOF
3114#line $LINENO "configure"
3115#include "confdefs.h"
3116
3117#ifdef F77_DUMMY_MAIN
3118# ifdef __cplusplus
3119 extern "C"
3120# endif
3121 int F77_DUMMY_MAIN() { return 1; }
3122#endif
3123int
3124main ()
3125{
3126#ifndef __GNUC__
3127 choke me
3128#endif
3129
3130 ;
3131 return 0;
3132}
3133_ACEOF
3134rm -f conftest.$ac_objext
3135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_compiler_gnu=yes
3147else
3148 echo "$as_me: failed program was:" >&5
3149cat conftest.$ac_ext >&5
3150ac_compiler_gnu=no
3151fi
3152rm -f conftest.$ac_objext conftest.$ac_ext
3153ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154
3155fi
3156echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3157echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3158GCC=`test $ac_compiler_gnu = yes && echo yes`
3159ac_test_CFLAGS=${CFLAGS+set}
3160ac_save_CFLAGS=$CFLAGS
3161CFLAGS="-g"
3162echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3164if test "${ac_cv_prog_cc_g+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 cat >conftest.$ac_ext <<_ACEOF
3168#line $LINENO "configure"
3169#include "confdefs.h"
3170
3171#ifdef F77_DUMMY_MAIN
3172# ifdef __cplusplus
3173 extern "C"
3174# endif
3175 int F77_DUMMY_MAIN() { return 1; }
3176#endif
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_cv_prog_cc_g=yes
3198else
3199 echo "$as_me: failed program was:" >&5
3200cat conftest.$ac_ext >&5
3201ac_cv_prog_cc_g=no
3202fi
3203rm -f conftest.$ac_objext conftest.$ac_ext
3204fi
3205echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3207if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
3212 else
3213 CFLAGS="-g"
3214 fi
3215else
3216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
3218 else
3219 CFLAGS=
3220 fi
3221fi
3222# Some people use a C++ compiler to compile C. Since we use `exit',
3223# in C++ we need to declare it. In case someone uses the same compiler
3224# for both compiling C and C++ we need to have the C++ compiler decide
3225# the declaration of exit, since it's the most demanding environment.
3226cat >conftest.$ac_ext <<_ACEOF
3227#ifndef __cplusplus
3228 choke me
3229#endif
3230_ACEOF
3231rm -f conftest.$ac_objext
3232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 for ac_declaration in \
3244 ''\
3245 '#include <stdlib.h>' \
3246 'extern "C" void std::exit (int) throw (); using std::exit;' \
3247 'extern "C" void std::exit (int); using std::exit;' \
3248 'extern "C" void exit (int) throw ();' \
3249 'extern "C" void exit (int);' \
3250 'void exit (int);'
3251do
3252 cat >conftest.$ac_ext <<_ACEOF
3253#line $LINENO "configure"
3254#include "confdefs.h"
3255#include <stdlib.h>
3256$ac_declaration
3257#ifdef F77_DUMMY_MAIN
3258# ifdef __cplusplus
3259 extern "C"
3260# endif
3261 int F77_DUMMY_MAIN() { return 1; }
3262#endif
3263int
3264main ()
3265{
3266exit (42);
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
3272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 :
3284else
3285 echo "$as_me: failed program was:" >&5
3286cat conftest.$ac_ext >&5
3287continue
3288fi
3289rm -f conftest.$ac_objext conftest.$ac_ext
3290 cat >conftest.$ac_ext <<_ACEOF
3291#line $LINENO "configure"
3292#include "confdefs.h"
3293$ac_declaration
3294#ifdef F77_DUMMY_MAIN
3295# ifdef __cplusplus
3296 extern "C"
3297# endif
3298 int F77_DUMMY_MAIN() { return 1; }
3299#endif
3300int
3301main ()
3302{
3303exit (42);
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 break
3321else
3322 echo "$as_me: failed program was:" >&5
3323cat conftest.$ac_ext >&5
3324fi
3325rm -f conftest.$ac_objext conftest.$ac_ext
3326done
3327rm -f conftest*
3328if test -n "$ac_declaration"; then
3329 echo '#ifdef __cplusplus' >>confdefs.h
3330 echo $ac_declaration >>confdefs.h
3331 echo '#endif' >>confdefs.h
3332fi
3333
3334else
3335 echo "$as_me: failed program was:" >&5
3336cat conftest.$ac_ext >&5
3337fi
3338rm -f conftest.$ac_objext conftest.$ac_ext
3339ac_ext=c
3340ac_cpp='$CPP $CPPFLAGS'
3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344
3345depcc="$CC" am_compiler_list=
3346
3347echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3348echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3349if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3353 # We make a subdir and do the tests there. Otherwise we can end up
3354 # making bogus files that we don't know about and never remove. For
3355 # instance it was reported that on HP-UX the gcc test will end up
3356 # making a dummy file named `D' -- because `-MD' means `put the output
3357 # in D'.
3358 mkdir conftest.dir
3359 # Copy depcomp to subdir because otherwise we won't find it if we're
3360 # using a relative directory.
3361 cp "$am_depcomp" conftest.dir
3362 cd conftest.dir
3363
3364 am_cv_CC_dependencies_compiler_type=none
3365 if test "$am_compiler_list" = ""; then
3366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3367 fi
3368 for depmode in $am_compiler_list; do
3369 # We need to recreate these files for each test, as the compiler may
3370 # overwrite some of them when testing with obscure command lines.
3371 # This happens at least with the AIX C compiler.
3372 echo '#include "conftest.h"' > conftest.c
3373 echo 'int i;' > conftest.h
3374 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3375
3376 case $depmode in
3377 nosideeffect)
3378 # after this tag, mechanisms are not by side-effect, so they'll
3379 # only be used when explicitly requested
3380 if test "x$enable_dependency_tracking" = xyes; then
3381 continue
3382 else
3383 break
3384 fi
3385 ;;
3386 none) break ;;
3387 esac
3388 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3389 # mode. It turns out that the SunPro C++ compiler does not properly
3390 # handle `-M -o', and we need to detect this.
3391 if depmode=$depmode \
3392 source=conftest.c object=conftest.o \
3393 depfile=conftest.Po tmpdepfile=conftest.TPo \
3394 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3395 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3396 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3397 am_cv_CC_dependencies_compiler_type=$depmode
3398 break
3399 fi
3400 done
3401
3402 cd ..
3403 rm -rf conftest.dir
3404else
3405 am_cv_CC_dependencies_compiler_type=none
3406fi
3407
3408fi
3409echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3410echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3411CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3412
3413
3414
3415 if test "$GCC" = "yes"; then
3416 if test "$kde_use_debug_code" = "yes"; then
3417 CFLAGS="-g -O2 $CFLAGS"
3418 case $host in
3419 *-*-linux-gnu)
3420 CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3421 ;;
3422 esac
3423 else
3424 CFLAGS="-O2 $CFLAGS"
3425 fi
3426 fi
3427
3428 if test "$kde_use_debug_define" = "yes"; then
3429 CFLAGS="-DNDEBUG $CFLAGS"
3430 fi
3431
3432 case "$host" in
3433 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3434 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3435 esac
3436
3437 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3438 LDFLAGS=""
3439 fi
3440
3441 if test "$kde_use_profiling" = "yes"; then
3442
3443echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
3444echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
3445kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
3446if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449
3450
3451
3452
3453ac_ext=cc
3454ac_cpp='$CXXCPP $CPPFLAGS'
3455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3458
3459ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3460
3461
3462
3463 save_CXXFLAGS="$CXXFLAGS"
3464 CXXFLAGS="$CXXFLAGS -pg"
3465 cat >conftest.$ac_ext <<_ACEOF
3466#line $LINENO "configure"
3467#include "confdefs.h"
3468
3469#ifdef F77_DUMMY_MAIN
3470# ifdef __cplusplus
3471 extern "C"
3472# endif
3473 int F77_DUMMY_MAIN() { return 1; }
3474#endif
3475int
3476main ()
3477{
3478 return 0;
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext conftest$ac_exeext
3484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 eval "kde_cv_prog_cxx_$kde_cache=yes"
3496else
3497 echo "$as_me: failed program was:" >&5
3498cat conftest.$ac_ext >&5
3499fi
3500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3501 CXXFLAGS="$save_CXXFLAGS"
3502 ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508
3509fi
3510
3511if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3512 echo "$as_me:$LINENO: result: yes" >&5
3513echo "${ECHO_T}yes" >&6
3514 :
3515
3516 CFLAGS="-pg $CFLAGS"
3517
3518else
3519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
3521 :
3522
3523fi
3524
3525 fi
3526
3527 USE_EXCEPTIONS=
3528
3529 USE_RTTI=
3530
3531
3532 ac_ext=c
3533ac_cpp='$CPP $CPPFLAGS'
3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3538echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3539# On Suns, sometimes $CPP names a directory.
3540if test -n "$CPP" && test -d "$CPP"; then
3541 CPP=
3542fi
3543if test -z "$CPP"; then
3544 if test "${ac_cv_prog_CPP+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 # Double quotes because CPP needs to be expanded
3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3549 do
3550 ac_preproc_ok=false
3551for ac_c_preproc_warn_flag in '' yes
3552do
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # On the NeXT, cc -E runs the code through the compiler's parser,
3556 # not just through cpp. "Syntax error" is here to catch this case.
3557 cat >conftest.$ac_ext <<_ACEOF
3558#line $LINENO "configure"
3559#include "confdefs.h"
3560#include <assert.h>
3561 Syntax error
3562_ACEOF
3563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3565 ac_status=$?
3566 egrep -v '^ *\+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 else
3574 ac_cpp_err=
3575 fi
3576else
3577 ac_cpp_err=yes
3578fi
3579if test -z "$ac_cpp_err"; then
3580 :
3581else
3582 echo "$as_me: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3585continue
3586fi
3587rm -f conftest.err conftest.$ac_ext
3588
3589 # OK, works on sane cases. Now check whether non-existent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3592#line $LINENO "configure"
3593#include "confdefs.h"
3594#include <ac_nonexistent.h>
3595_ACEOF
3596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3598 ac_status=$?
3599 egrep -v '^ *\+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 else
3607 ac_cpp_err=
3608 fi
3609else
3610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3614continue
3615else
3616 echo "$as_me: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 # Passes both tests.
3619ac_preproc_ok=:
3620break
3621fi
3622rm -f conftest.err conftest.$ac_ext
3623
3624done
3625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626rm -f conftest.err conftest.$ac_ext
3627if $ac_preproc_ok; then
3628 break
3629fi
3630
3631 done
3632 ac_cv_prog_CPP=$CPP
3633
3634fi
3635 CPP=$ac_cv_prog_CPP
3636else
3637 ac_cv_prog_CPP=$CPP
3638fi
3639echo "$as_me:$LINENO: result: $CPP" >&5
3640echo "${ECHO_T}$CPP" >&6
3641ac_preproc_ok=false
3642for ac_c_preproc_warn_flag in '' yes
3643do
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat >conftest.$ac_ext <<_ACEOF
3649#line $LINENO "configure"
3650#include "confdefs.h"
3651#include <assert.h>
3652 Syntax error
3653_ACEOF
3654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3656 ac_status=$?
3657 egrep -v '^ *\+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } >/dev/null; then
3662 if test -s conftest.err; then
3663 ac_cpp_err=$ac_c_preproc_warn_flag
3664 else
3665 ac_cpp_err=
3666 fi
3667else
3668 ac_cpp_err=yes
3669fi
3670if test -z "$ac_cpp_err"; then
3671 :
3672else
3673 echo "$as_me: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 # Broken: fails on valid input.
3676continue
3677fi
3678rm -f conftest.err conftest.$ac_ext
3679
3680 # OK, works on sane cases. Now check whether non-existent headers
3681 # can be detected and how.
3682 cat >conftest.$ac_ext <<_ACEOF
3683#line $LINENO "configure"
3684#include "confdefs.h"
3685#include <ac_nonexistent.h>
3686_ACEOF
3687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3689 ac_status=$?
3690 egrep -v '^ *\+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } >/dev/null; then
3695 if test -s conftest.err; then
3696 ac_cpp_err=$ac_c_preproc_warn_flag
3697 else
3698 ac_cpp_err=
3699 fi
3700else
3701 ac_cpp_err=yes
3702fi
3703if test -z "$ac_cpp_err"; then
3704 # Broken: success on invalid input.
3705continue
3706else
3707 echo "$as_me: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 # Passes both tests.
3710ac_preproc_ok=:
3711break
3712fi
3713rm -f conftest.err conftest.$ac_ext
3714
3715done
3716# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3717rm -f conftest.err conftest.$ac_ext
3718if $ac_preproc_ok; then
3719 :
3720else
3721 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3722echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi
3725
3726ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732
3733 # the following is to allow programs, that are known to
3734 # have problems when compiled with -O2
3735 if test -n "$CFLAGS"; then
3736 kde_safe_IFS=$IFS
3737 IFS=" "
3738 NOOPT_CFLAGS=""
3739 for i in $CFLAGS; do
3740 case $i in
3741 -O*)
3742 ;;
3743 *)
3744 NOOPT_CFLAGS="$NOOPT_CFLAGS $i"
3745 ;;
3746 esac
3747 done
3748 IFS=$kde_safe_IFS
3749 fi
3750
3751
3752
3753
3754 # Check whether --enable-final or --disable-final was given.
3755if test "${enable_final+set}" = set; then
3756 enableval="$enable_final"
3757 kde_use_final=$enableval
3758else
3759 kde_use_final=no
3760fi;
3761
3762
3763 REPO=""
3764 NOREPO=""
3765
3766
3767echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
3768echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
3769kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
3770if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773
3774
3775
3776 ac_ext=cc
3777ac_cpp='$CXXCPP $CPPFLAGS'
3778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3781
3782ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3783
3784
3785 save_CXXFLAGS="$CXXFLAGS"
3786 CXXFLAGS="$CXXFLAGS -frepo"
3787 cat >conftest.$ac_ext <<_ACEOF
3788#line $LINENO "configure"
3789#include "confdefs.h"
3790
3791#ifdef F77_DUMMY_MAIN
3792# ifdef __cplusplus
3793 extern "C"
3794# endif
3795 int F77_DUMMY_MAIN() { return 1; }
3796#endif
3797int
3798main ()
3799{
3800 return 0;
3801 ;
3802 return 0;
3803}
3804_ACEOF
3805rm -f conftest.$ac_objext conftest$ac_exeext
3806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -s conftest$ac_exeext'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 eval "kde_cv_prog_cxx_$kde_cache=yes"
3818else
3819 echo "$as_me: failed program was:" >&5
3820cat conftest.$ac_ext >&5
3821fi
3822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 CXXFLAGS="$save_CXXFLAGS"
3824 ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830
3831fi
3832
3833if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3834 echo "$as_me:$LINENO: result: yes" >&5
3835echo "${ECHO_T}yes" >&6
3836 :
3837
3838 REPO="-frepo"
3839 NOREPO="-fno-repo"
3840
3841else
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844 :
3845
3846fi
3847
3848
3849 if test -z "$REPO"; then
3850
3851echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
3852echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
3853kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
3854if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857
3858
3859
3860 ac_ext=cc
3861ac_cpp='$CXXCPP $CPPFLAGS'
3862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3865
3866ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3867
3868
3869 save_CXXFLAGS="$CXXFLAGS"
3870 CXXFLAGS="$CXXFLAGS -instances=explicit"
3871 cat >conftest.$ac_ext <<_ACEOF
3872#line $LINENO "configure"
3873#include "confdefs.h"
3874
3875#ifdef F77_DUMMY_MAIN
3876# ifdef __cplusplus
3877 extern "C"
3878# endif
3879 int F77_DUMMY_MAIN() { return 1; }
3880#endif
3881int
3882main ()
3883{
3884 return 0;
3885 ;
3886 return 0;
3887}
3888_ACEOF
3889rm -f conftest.$ac_objext conftest$ac_exeext
3890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3891 (eval $ac_link) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -s conftest$ac_exeext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 eval "kde_cv_prog_cxx_$kde_cache=yes"
3902else
3903 echo "$as_me: failed program was:" >&5
3904cat conftest.$ac_ext >&5
3905fi
3906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3907 CXXFLAGS="$save_CXXFLAGS"
3908 ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914
3915fi
3916
3917if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3918 echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6
3920 :
3921
3922 REPO="-instances=explicit"
3923 NOREPO="-instances=extern"
3924
3925else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928 :
3929
3930fi
3931
3932 fi
3933
3934 if test -n "$REPO"; then
3935
3936cat >>confdefs.h <<_ACEOF
3937#define HAVE_TEMPLATE_REPOSITORY 1
3938_ACEOF
3939
3940
3941 fi
3942
3943
3944
3945
3946 if test "x$kde_use_final" = "xyes"; then
3947 KDE_USE_FINAL_TRUE=""
3948 KDE_USE_FINAL_FALSE="#"
3949 else
3950 KDE_USE_FINAL_TRUE="#"
3951 KDE_USE_FINAL_FALSE=""
3952 fi
3953
3954
3955
3956 # Check whether --enable-closure or --disable-closure was given.
3957if test "${enable_closure+set}" = set; then
3958 enableval="$enable_closure"
3959 kde_use_closure=$enableval
3960else
3961 kde_use_closure=yes
3962fi;
3963
3964 if test "x$kde_use_closure" = "xyes"; then
3965 KDE_USE_CLOSURE_TRUE=""
3966 KDE_USE_CLOSURE_FALSE="#"
3967# CXXFLAGS="$CXXFLAGS $REPO"
3968 else
3969 KDE_USE_CLOSURE_TRUE="#"
3970 KDE_USE_CLOSURE_FALSE=""
3971 fi
3972
3973
3974
3975
3976
3977
3978 KDE_CXXFLAGS=
3979
3980
3981
3982
3983# Check whether --enable-shared or --disable-shared was given.
3984if test "${enable_shared+set}" = set; then
3985 enableval="$enable_shared"
3986 p=${PACKAGE-default}
3987 case $enableval in
3988 yes) enable_shared=yes ;;
3989 no) enable_shared=no ;;
3990 *)
3991 enable_shared=no
3992 # Look at the argument we got. We use all the common list separators.
3993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3994 for pkg in $enableval; do
3995 IFS="$lt_save_ifs"
3996 if test "X$pkg" = "X$p"; then
3997 enable_shared=yes
3998 fi
3999 done
4000 IFS="$lt_save_ifs"
4001 ;;
4002 esac
4003else
4004 enable_shared=yes
4005fi;
4006
4007
4008# Check whether --enable-static or --disable-static was given.
4009if test "${enable_static+set}" = set; then
4010 enableval="$enable_static"
4011 p=${PACKAGE-default}
4012 case $enableval in
4013 yes) enable_static=yes ;;
4014 no) enable_static=no ;;
4015 *)
4016 enable_static=no
4017 # Look at the argument we got. We use all the common list separators.
4018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4019 for pkg in $enableval; do
4020 IFS="$lt_save_ifs"
4021 if test "X$pkg" = "X$p"; then
4022 enable_static=yes
4023 fi
4024 done
4025 IFS="$lt_save_ifs"
4026 ;;
4027 esac
4028else
4029 enable_static=no
4030fi;
4031
4032
4033
4034
4035# Check whether --enable-fast-install or --disable-fast-install was given.
4036if test "${enable_fast_install+set}" = set; then
4037 enableval="$enable_fast_install"
4038 p=${PACKAGE-default}
4039 case $enableval in
4040 yes) enable_fast_install=yes ;;
4041 no) enable_fast_install=no ;;
4042 *)
4043 enable_fast_install=no
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4047 IFS="$lt_save_ifs"
4048 if test "X$pkg" = "X$p"; then
4049 enable_fast_install=yes
4050 fi
4051 done
4052 IFS="$lt_save_ifs"
4053 ;;
4054 esac
4055else
4056 enable_fast_install=yes
4057fi;
4058
4059
4060# Check whether --with-gnu-ld or --without-gnu-ld was given.
4061if test "${with_gnu_ld+set}" = set; then
4062 withval="$with_gnu_ld"
4063 test "$withval" = no || with_gnu_ld=yes
4064else
4065 with_gnu_ld=no
4066fi;
4067ac_prog=ld
4068if test "$GCC" = yes; then
4069 # Check if gcc -print-prog-name=ld gives a path.
4070 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4071echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4072 case $host in
4073 *-*-mingw*)
4074 # gcc leaves a trailing carriage return which upsets mingw
4075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4076 *)
4077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4078 esac
4079 case $ac_prog in
4080 # Accept absolute paths.
4081 [\\/]* | ?:[\\/]*)
4082 re_direlt='/[^/][^/]*/\.\./'
4083 # Canonicalize the path of ld
4084 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4085 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4086 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4087 done
4088 test -z "$LD" && LD="$ac_prog"
4089 ;;
4090 "")
4091 # If it fails, then pretend we aren't using GCC.
4092 ac_prog=ld
4093 ;;
4094 *)
4095 # If it is relative, then search for the first ld in PATH.
4096 with_gnu_ld=unknown
4097 ;;
4098 esac
4099elif test "$with_gnu_ld" = yes; then
4100 echo "$as_me:$LINENO: checking for GNU ld" >&5
4101echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4102else
4103 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4104echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4105fi
4106if test "${lt_cv_path_LD+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 if test -z "$LD"; then
4110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4111 for ac_dir in $PATH; do
4112 IFS="$lt_save_ifs"
4113 test -z "$ac_dir" && ac_dir=.
4114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4115 lt_cv_path_LD="$ac_dir/$ac_prog"
4116 # Check to see if the program is GNU ld. I'd rather use --version,
4117 # but apparently some GNU ld's only accept -v.
4118 # Break only if it was the GNU/non-GNU ld that we prefer.
4119 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4120 test "$with_gnu_ld" != no && break
4121 else
4122 test "$with_gnu_ld" != yes && break
4123 fi
4124 fi
4125 done
4126 IFS="$lt_save_ifs"
4127else
4128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4129fi
4130fi
4131
4132LD="$lt_cv_path_LD"
4133if test -n "$LD"; then
4134 echo "$as_me:$LINENO: result: $LD" >&5
4135echo "${ECHO_T}$LD" >&6
4136else
4137 echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6
4139fi
4140test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4141echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4142 { (exit 1); exit 1; }; }
4143echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4144echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4145if test "${lt_cv_prog_gnu_ld+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4149if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4150 lt_cv_prog_gnu_ld=yes
4151else
4152 lt_cv_prog_gnu_ld=no
4153fi
4154fi
4155echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4156echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4157with_gnu_ld=$lt_cv_prog_gnu_ld
4158
4159
4160echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4161echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4162if test "${lt_cv_ld_reload_flag+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165 lt_cv_ld_reload_flag='-r'
4166fi
4167echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4168echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4169reload_flag=$lt_cv_ld_reload_flag
4170case $reload_flag in
4171"" | " "*) ;;
4172*) reload_flag=" $reload_flag" ;;
4173esac
4174reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175
4176echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4177echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4178if test "${lt_cv_path_NM+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 if test -n "$NM"; then
4182 # Let the user override the test.
4183 lt_cv_path_NM="$NM"
4184else
4185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4187 IFS="$lt_save_ifs"
4188 test -z "$ac_dir" && ac_dir=.
4189 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4190 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4191 # Check to see if the nm accepts a BSD-compat flag.
4192 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4193 # nm: unknown option "B" ignored
4194 # Tru64's nm complains that /dev/null is an invalid object file
4195 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4196 lt_cv_path_NM="$tmp_nm -B"
4197 break
4198 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4199 lt_cv_path_NM="$tmp_nm -p"
4200 break
4201 else
4202 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4203 continue # so that we can try to find one that supports BSD flags
4204 fi
4205 fi
4206 done
4207 IFS="$lt_save_ifs"
4208 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4209fi
4210fi
4211echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4212echo "${ECHO_T}$lt_cv_path_NM" >&6
4213NM="$lt_cv_path_NM"
4214
4215echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4216echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4217if test "${lt_cv_path_SED+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 # Loop through the user's path and test for sed and gsed.
4221# Then use that list of sed's as ones to test for truncation.
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_prog in sed gsed; do
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4230 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4231 fi
4232 done
4233 done
4234done
4235
4236 # Create a temporary directory, and hook for its removal unless debugging.
4237$debug ||
4238{
4239 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4240 trap '{ (exit 1); exit 1; }' 1 2 13 15
4241}
4242
4243# Create a (secure) tmp directory for tmp files.
4244: ${TMPDIR=/tmp}
4245{
4246 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4247 test -n "$tmp" && test -d "$tmp"
4248} ||
4249{
4250 tmp=$TMPDIR/sed$$-$RANDOM
4251 (umask 077 && mkdir $tmp)
4252} ||
4253{
4254 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4255 { (exit 1); exit 1; }
4256}
4257 _max=0
4258 _count=0
4259 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4260 # along with /bin/sed that truncates output.
4261 for _sed in $_sed_list /usr/xpg4/bin/sed; do
4262 test ! -f ${_sed} && break
4263 cat /dev/null > "$tmp/sed.in"
4264 _count=0
4265 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
4266 # Check for GNU sed and select it if it is found.
4267 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4268 lt_cv_path_SED=${_sed}
4269 break;
4270 fi
4271 while true; do
4272 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4273 mv "$tmp/sed.tmp" "$tmp/sed.in"
4274 cp "$tmp/sed.in" "$tmp/sed.nl"
4275 echo >>"$tmp/sed.nl"
4276 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4277 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4278 # 10000 chars as input seems more than enough
4279 test $_count -gt 10 && break
4280 _count=`expr $_count + 1`
4281 if test $_count -gt $_max; then
4282 _max=$_count
4283 lt_cv_path_SED=$_sed
4284 fi
4285 done
4286 done
4287 rm -rf "$tmp"
4288
4289fi
4290
4291echo "$as_me:$LINENO: result: $SED" >&5
4292echo "${ECHO_T}$SED" >&6
4293
4294echo "$as_me:$LINENO: checking whether ln -s works" >&5
4295echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4296LN_S=$as_ln_s
4297if test "$LN_S" = "ln -s"; then
4298 echo "$as_me:$LINENO: result: yes" >&5
4299echo "${ECHO_T}yes" >&6
4300else
4301 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4302echo "${ECHO_T}no, using $LN_S" >&6
4303fi
4304
4305echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4306echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4307if test "${lt_cv_deplibs_check_method+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 lt_cv_file_magic_cmd='$MAGIC_CMD'
4311lt_cv_file_magic_test_file=
4312lt_cv_deplibs_check_method='unknown'
4313# Need to set the preceding variable on all platforms that support
4314# interlibrary dependencies.
4315# 'none' -- dependencies not supported.
4316# `unknown' -- same as none, but documents that we really don't know.
4317# 'pass_all' -- all dependencies passed with no checks.
4318# 'test_compile' -- check by making test program.
4319# 'file_magic [[regex]]' -- check by looking for files in library path
4320# which responds to the $file_magic_cmd with a given egrep regex.
4321# If you have `file' or equivalent on your system and you're not sure
4322# whether `pass_all' will *always* work, you probably want this one.
4323
4324case $host_os in
4325aix4* | aix5*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
4329beos*)
4330 lt_cv_deplibs_check_method=pass_all
4331 ;;
4332
4333bsdi4*)
4334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4335 lt_cv_file_magic_cmd='/usr/bin/file -L'
4336 lt_cv_file_magic_test_file=/shlib/libc.so
4337 ;;
4338
4339cygwin* | mingw* | pw32*)
4340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4341 lt_cv_file_magic_cmd='$OBJDUMP -f'
4342 ;;
4343
4344darwin* | rhapsody*)
4345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4346 lt_cv_file_magic_cmd='/usr/bin/file -L'
4347 case "$host_os" in
4348 rhapsody* | darwin1.[012])
4349 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4350 ;;
4351 *) # Darwin 1.3 on
4352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4353 ;;
4354 esac
4355 ;;
4356
4357freebsd*)
4358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4359 case $host_cpu in
4360 i*86 )
4361 # Not sure whether the presence of OpenBSD here was a mistake.
4362 # Let's accept both of them until this is cleared up.
4363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4364 lt_cv_file_magic_cmd=/usr/bin/file
4365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4366 ;;
4367 esac
4368 else
4369 lt_cv_deplibs_check_method=pass_all
4370 fi
4371 ;;
4372
4373gnu*)
4374 lt_cv_deplibs_check_method=pass_all
4375 ;;
4376
4377hpux10.20* | hpux11*)
4378 lt_cv_file_magic_cmd=/usr/bin/file
4379 if test "$host_cpu" = ia64; then
4380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4382 else
4383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4384 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4385 fi
4386 ;;
4387
4388irix5* | irix6* | nonstopux*)
4389 case $host_os in
4390 irix5* | nonstopux*)
4391 # this will be overridden with pass_all, but let us keep it just in case
4392 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4393 ;;
4394 *)
4395 case $LD in
4396 *-32|*"-32 ") libmagic=32-bit;;
4397 *-n32|*"-n32 ") libmagic=N32;;
4398 *-64|*"-64 ") libmagic=64-bit;;
4399 *) libmagic=never-match;;
4400 esac
4401 # this will be overridden with pass_all, but let us keep it just in case
4402 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4403 ;;
4404 esac
4405 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4406 lt_cv_deplibs_check_method=pass_all
4407 ;;
4408
4409# This must be Linux ELF.
4410linux*)
4411 case $host_cpu in
4412 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
4413 lt_cv_deplibs_check_method=pass_all ;;
4414 *)
4415 # glibc up to 2.1.1 does not perform some relocations on ARM
4416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4417 esac
4418 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4419 ;;
4420
4421netbsd*)
4422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4424 else
4425 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4426 fi
4427 ;;
4428
4429newos6*)
4430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4431 lt_cv_file_magic_cmd=/usr/bin/file
4432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4433 ;;
4434
4435nto-qnx)
4436 lt_cv_deplibs_check_method=unknown
4437 ;;
4438
4439openbsd*)
4440 lt_cv_file_magic_cmd=/usr/bin/file
4441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4444 else
4445 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4446 fi
4447 ;;
4448
4449osf3* | osf4* | osf5*)
4450 # this will be overridden with pass_all, but let us keep it just in case
4451 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4452 lt_cv_file_magic_test_file=/shlib/libc.so
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455
4456sco3.2v5*)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
4459
4460solaris*)
4461 lt_cv_deplibs_check_method=pass_all
4462 lt_cv_file_magic_test_file=/lib/libc.so
4463 ;;
4464
4465sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4466 case $host_vendor in
4467 motorola)
4468 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]'
4469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4470 ;;
4471 ncr)
4472 lt_cv_deplibs_check_method=pass_all
4473 ;;
4474 sequent)
4475 lt_cv_file_magic_cmd='/bin/file'
4476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4477 ;;
4478 sni)
4479 lt_cv_file_magic_cmd='/bin/file'
4480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4481 lt_cv_file_magic_test_file=/lib/libc.so
4482 ;;
4483 esac
4484 ;;
4485
4486sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4487 lt_cv_deplibs_check_method=pass_all
4488 ;;
4489esac
4490
4491fi
4492echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4493echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4494file_magic_cmd=$lt_cv_file_magic_cmd
4495deplibs_check_method=$lt_cv_deplibs_check_method
4496test -z "$deplibs_check_method" && deplibs_check_method=unknown
4497
4498
4499# If no C compiler was specified, use CC.
4500LTCC=${LTCC-"$CC"}
4501
4502# Allow CC to be a program name with arguments.
4503set dummy $CC
4504compiler="$2"
4505
4506
4507# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4508if test "${enable_libtool_lock+set}" = set; then
4509 enableval="$enable_libtool_lock"
4510
4511fi;
4512test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4513
4514# Some flags need to be propagated to the compiler or linker for good
4515# libtool support.
4516case $host in
4517ia64-*-hpux*)
4518 # Find out which ABI we are using.
4519 echo 'int i;' > conftest.$ac_ext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; then
4525 case `/usr/bin/file conftest.$ac_objext` in
4526 *ELF-32*)
4527 HPUX_IA64_MODE="32"
4528 ;;
4529 *ELF-64*)
4530 HPUX_IA64_MODE="64"
4531 ;;
4532 esac
4533 fi
4534 rm -rf conftest*
4535 ;;
4536*-*-irix6*)
4537 # Find out which ABI we are using.
4538 echo '#line 4538 "configure"' > conftest.$ac_ext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; then
4544 case `/usr/bin/file conftest.$ac_objext` in
4545 *32-bit*)
4546 LD="${LD-ld} -32"
4547 ;;
4548 *N32*)
4549 LD="${LD-ld} -n32"
4550 ;;
4551 *64-bit*)
4552 LD="${LD-ld} -64"
4553 ;;
4554 esac
4555 fi
4556 rm -rf conftest*
4557 ;;
4558
4559*-*-linux*)
4560 # Test if the compiler is 64bit
4561 echo 'int i;' > conftest.$ac_ext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
4567 case `/usr/bin/file conftest.$ac_objext` in
4568 *"ELF 32"*)
4569 LINUX_64_MODE="32"
4570 ;;
4571 *"ELF 64"*)
4572 LINUX_64_MODE="64"
4573 ;;
4574 esac
4575 fi
4576 rm -rf conftest*
4577 ;;
4578
4579*-*-sco3.2v5*)
4580 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4581 SAVE_CFLAGS="$CFLAGS"
4582 CFLAGS="$CFLAGS -belf"
4583 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4584echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4585if test "${lt_cv_cc_needs_belf+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 ac_ext=c
4589ac_cpp='$CPP $CPPFLAGS'
4590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594 cat >conftest.$ac_ext <<_ACEOF
4595#line $LINENO "configure"
4596#include "confdefs.h"
4597
4598#ifdef F77_DUMMY_MAIN
4599# ifdef __cplusplus
4600 extern "C"
4601# endif
4602 int F77_DUMMY_MAIN() { return 1; }
4603#endif
4604int
4605main ()
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -s conftest$ac_exeext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 lt_cv_cc_needs_belf=yes
4625else
4626 echo "$as_me: failed program was:" >&5
4627cat conftest.$ac_ext >&5
4628lt_cv_cc_needs_belf=no
4629fi
4630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4631 ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637fi
4638echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4639echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4642 CFLAGS="$SAVE_CFLAGS"
4643 fi
4644 ;;
4645
4646esac
4647
4648need_locks="$enable_libtool_lock"
4649
4650
4651
4652echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4653echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4654if test "${ac_cv_header_stdc+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 cat >conftest.$ac_ext <<_ACEOF
4658#line $LINENO "configure"
4659#include "confdefs.h"
4660#include <stdlib.h>
4661#include <stdarg.h>
4662#include <string.h>
4663#include <float.h>
4664
4665_ACEOF
4666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4668 ac_status=$?
4669 egrep -v '^ *\+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null; then
4674 if test -s conftest.err; then
4675 ac_cpp_err=$ac_c_preproc_warn_flag
4676 else
4677 ac_cpp_err=
4678 fi
4679else
4680 ac_cpp_err=yes
4681fi
4682if test -z "$ac_cpp_err"; then
4683 ac_cv_header_stdc=yes
4684else
4685 echo "$as_me: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4687 ac_cv_header_stdc=no
4688fi
4689rm -f conftest.err conftest.$ac_ext
4690
4691if test $ac_cv_header_stdc = yes; then
4692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4693 cat >conftest.$ac_ext <<_ACEOF
4694#line $LINENO "configure"
4695#include "confdefs.h"
4696#include <string.h>
4697
4698_ACEOF
4699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 egrep "memchr" >/dev/null 2>&1; then
4701 :
4702else
4703 ac_cv_header_stdc=no
4704fi
4705rm -f conftest*
4706
4707fi
4708
4709if test $ac_cv_header_stdc = yes; then
4710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4711 cat >conftest.$ac_ext <<_ACEOF
4712#line $LINENO "configure"
4713#include "confdefs.h"
4714#include <stdlib.h>
4715
4716_ACEOF
4717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718 egrep "free" >/dev/null 2>&1; then
4719 :
4720else
4721 ac_cv_header_stdc=no
4722fi
4723rm -f conftest*
4724
4725fi
4726
4727if test $ac_cv_header_stdc = yes; then
4728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4729 if test "$cross_compiling" = yes; then
4730 :
4731else
4732 cat >conftest.$ac_ext <<_ACEOF
4733#line $LINENO "configure"
4734#include "confdefs.h"
4735#include <ctype.h>
4736#if ((' ' & 0x0FF) == 0x020)
4737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4739#else
4740# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4741 || ('j' <= (c) && (c) <= 'r') \
4742 || ('s' <= (c) && (c) <= 'z'))
4743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4744#endif
4745
4746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4747int
4748main ()
4749{
4750 int i;
4751 for (i = 0; i < 256; i++)
4752 if (XOR (islower (i), ISLOWER (i))
4753 || toupper (i) != TOUPPER (i))
4754 exit(2);
4755 exit (0);
4756}
4757_ACEOF
4758rm -f conftest$ac_exeext
4759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 :
4770else
4771 echo "$as_me: program exited with status $ac_status" >&5
4772echo "$as_me: failed program was:" >&5
4773cat conftest.$ac_ext >&5
4774( exit $ac_status )
4775ac_cv_header_stdc=no
4776fi
4777rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778fi
4779fi
4780fi
4781echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4782echo "${ECHO_T}$ac_cv_header_stdc" >&6
4783if test $ac_cv_header_stdc = yes; then
4784
4785cat >>confdefs.h <<\_ACEOF
4786#define STDC_HEADERS 1
4787_ACEOF
4788
4789fi
4790
4791# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4802 inttypes.h stdint.h unistd.h
4803do
4804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805echo "$as_me:$LINENO: checking for $ac_header" >&5
4806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4807if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810 cat >conftest.$ac_ext <<_ACEOF
4811#line $LINENO "configure"
4812#include "confdefs.h"
4813$ac_includes_default
4814
4815#include <$ac_header>
4816_ACEOF
4817rm -f conftest.$ac_objext
4818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_Header=yes"
4830else
4831 echo "$as_me: failed program was:" >&5
4832cat conftest.$ac_ext >&5
4833eval "$as_ac_Header=no"
4834fi
4835rm -f conftest.$ac_objext conftest.$ac_ext
4836fi
4837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4839if test `eval echo '${'$as_ac_Header'}'` = yes; then
4840 cat >>confdefs.h <<_ACEOF
4841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4842_ACEOF
4843
4844fi
4845
4846done
4847
4848
4849
4850for ac_header in dlfcn.h
4851do
4852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853if eval "test \"\${$as_ac_Header+set}\" = set"; then
4854 echo "$as_me:$LINENO: checking for $ac_header" >&5
4855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4856if eval "test \"\${$as_ac_Header+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858fi
4859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4861else
4862 # Is the header compilable?
4863echo "$as_me:$LINENO: checking $ac_header usability" >&5
4864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4865cat >conftest.$ac_ext <<_ACEOF
4866#line $LINENO "configure"
4867#include "confdefs.h"
4868$ac_includes_default
4869#include <$ac_header>
4870_ACEOF
4871rm -f conftest.$ac_objext
4872if { (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); } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_header_compiler=yes
4884else
4885 echo "$as_me: failed program was:" >&5
4886cat conftest.$ac_ext >&5
4887ac_header_compiler=no
4888fi
4889rm -f conftest.$ac_objext conftest.$ac_ext
4890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4891echo "${ECHO_T}$ac_header_compiler" >&6
4892
4893# Is the header present?
4894echo "$as_me:$LINENO: checking $ac_header presence" >&5
4895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4896cat >conftest.$ac_ext <<_ACEOF
4897#line $LINENO "configure"
4898#include "confdefs.h"
4899#include <$ac_header>
4900_ACEOF
4901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4903 ac_status=$?
4904 egrep -v '^ *\+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } >/dev/null; then
4909 if test -s conftest.err; then
4910 ac_cpp_err=$ac_c_preproc_warn_flag
4911 else
4912 ac_cpp_err=
4913 fi
4914else
4915 ac_cpp_err=yes
4916fi
4917if test -z "$ac_cpp_err"; then
4918 ac_header_preproc=yes
4919else
4920 echo "$as_me: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 ac_header_preproc=no
4923fi
4924rm -f conftest.err conftest.$ac_ext
4925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926echo "${ECHO_T}$ac_header_preproc" >&6
4927
4928# So? What about this header?
4929case $ac_header_compiler:$ac_header_preproc in
4930 yes:no )
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4935 no:yes )
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4937echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4939echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4942esac
4943echo "$as_me:$LINENO: checking for $ac_header" >&5
4944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4945if eval "test \"\${$as_ac_Header+set}\" = set"; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 eval "$as_ac_Header=$ac_header_preproc"
4949fi
4950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4952
4953fi
4954if test `eval echo '${'$as_ac_Header'}'` = yes; then
4955 cat >>confdefs.h <<_ACEOF
4956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4957_ACEOF
4958
4959fi
4960
4961done
4962
4963ac_ext=cc
4964ac_cpp='$CXXCPP $CPPFLAGS'
4965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4969echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4970if test -z "$CXXCPP"; then
4971 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 # Double quotes because CXXCPP needs to be expanded
4975 for CXXCPP in "$CXX -E" "/lib/cpp"
4976 do
4977 ac_preproc_ok=false
4978for ac_cxx_preproc_warn_flag in '' yes
4979do
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat >conftest.$ac_ext <<_ACEOF
4985#line $LINENO "configure"
4986#include "confdefs.h"
4987#include <assert.h>
4988 Syntax error
4989_ACEOF
4990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 ac_status=$?
4993 egrep -v '^ *\+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null; then
4998 if test -s conftest.err; then
4999 ac_cpp_err=$ac_cxx_preproc_warn_flag
5000 else
5001 ac_cpp_err=
5002 fi
5003else
5004 ac_cpp_err=yes
5005fi
5006if test -z "$ac_cpp_err"; then
5007 :
5008else
5009 echo "$as_me: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 # Broken: fails on valid input.
5012continue
5013fi
5014rm -f conftest.err conftest.$ac_ext
5015
5016 # OK, works on sane cases. Now check whether non-existent headers
5017 # can be detected and how.
5018 cat >conftest.$ac_ext <<_ACEOF
5019#line $LINENO "configure"
5020#include "confdefs.h"
5021#include <ac_nonexistent.h>
5022_ACEOF
5023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5025 ac_status=$?
5026 egrep -v '^ *\+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } >/dev/null; then
5031 if test -s conftest.err; then
5032 ac_cpp_err=$ac_cxx_preproc_warn_flag
5033 else
5034 ac_cpp_err=
5035 fi
5036else
5037 ac_cpp_err=yes
5038fi
5039if test -z "$ac_cpp_err"; then
5040 # Broken: success on invalid input.
5041continue
5042else
5043 echo "$as_me: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 # Passes both tests.
5046ac_preproc_ok=:
5047break
5048fi
5049rm -f conftest.err conftest.$ac_ext
5050
5051done
5052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053rm -f conftest.err conftest.$ac_ext
5054if $ac_preproc_ok; then
5055 break
5056fi
5057
5058 done
5059 ac_cv_prog_CXXCPP=$CXXCPP
5060
5061fi
5062 CXXCPP=$ac_cv_prog_CXXCPP
5063else
5064 ac_cv_prog_CXXCPP=$CXXCPP
5065fi
5066echo "$as_me:$LINENO: result: $CXXCPP" >&5
5067echo "${ECHO_T}$CXXCPP" >&6
5068ac_preproc_ok=false
5069for ac_cxx_preproc_warn_flag in '' yes
5070do
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat >conftest.$ac_ext <<_ACEOF
5076#line $LINENO "configure"
5077#include "confdefs.h"
5078#include <assert.h>
5079 Syntax error
5080_ACEOF
5081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 ac_status=$?
5084 egrep -v '^ *\+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_cxx_preproc_warn_flag
5091 else
5092 ac_cpp_err=
5093 fi
5094else
5095 ac_cpp_err=yes
5096fi
5097if test -z "$ac_cpp_err"; then
5098 :
5099else
5100 echo "$as_me: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5102 # Broken: fails on valid input.
5103continue
5104fi
5105rm -f conftest.err conftest.$ac_ext
5106
5107 # OK, works on sane cases. Now check whether non-existent headers
5108 # can be detected and how.
5109 cat >conftest.$ac_ext <<_ACEOF
5110#line $LINENO "configure"
5111#include "confdefs.h"
5112#include <ac_nonexistent.h>
5113_ACEOF
5114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116 ac_status=$?
5117 egrep -v '^ *\+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null; then
5122 if test -s conftest.err; then
5123 ac_cpp_err=$ac_cxx_preproc_warn_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5136 # Passes both tests.
5137ac_preproc_ok=:
5138break
5139fi
5140rm -f conftest.err conftest.$ac_ext
5141
5142done
5143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144rm -f conftest.err conftest.$ac_ext
5145if $ac_preproc_ok; then
5146 :
5147else
5148 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
5149echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
5150 { (exit 1); exit 1; }; }
5151fi
5152
5153ac_ext=cc
5154ac_cpp='$CXXCPP $CPPFLAGS'
5155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5158
5159
5160# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5161
5162# find the maximum length of command line arguments
5163echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5164echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5165if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168 i=0
5169 testring="ABCD"
5170
5171 case $host_os in
5172 msdosdjgpp*)
5173 # On DJGPP, this test can blow up pretty badly due to problems in libc
5174 # (any single argument exceeding 2000 bytes causes a buffer overrun
5175 # during glob expansion). Even if it were fixed, the result of this
5176 # check would be larger than it should be.
5177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5178 ;;
5179
5180 gnu*)
5181 # Under GNU Hurd, this test is not required because there is
5182 # no limit to the length of command line arguments.
5183 # Libtool will interpret -1 as no limit whatsoever
5184 lt_cv_sys_max_cmd_len=-1;
5185 ;;
5186
5187 *)
5188 # If test is not a shell built-in, we'll probably end up computing a
5189 # maximum length that is only half of the actual maximum length, but
5190 # we can't tell.
5191 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5192 = "XX$testring") >/dev/null 2>&1 &&
5193 new_result=`expr "X$testring" : ".*" 2>&1` &&
5194 lt_cv_sys_max_cmd_len=$new_result &&
5195 test $i != 17 # 1/2 MB should be enough
5196 do
5197 i=`expr $i + 1`
5198 testring=$testring$testring
5199 done
5200 testring=
5201 # Add a significant safety factor because C++ compilers can tack on massive
5202 # amounts of additional arguments before passing them to the linker.
5203 # It appears as though 1/2 is a usable value.
5204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5205 ;;
5206 esac
5207
5208fi
5209
5210if test -n $lt_cv_sys_max_cmd_len ; then
5211 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5212echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5213else
5214 echo "$as_me:$LINENO: result: none" >&5
5215echo "${ECHO_T}none" >&6
5216fi
5217
5218
5219
5220
5221# Check for command to grab the raw symbol name followed by C symbol from nm.
5222echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5223echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5224if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227
5228# These are sane defaults that work on at least a few old systems.
5229# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5230
5231# Character class describing NM global symbol codes.
5232symcode='[BCDEGRST]'
5233
5234# Regexp to match symbols that can be accessed directly from C.
5235sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5236
5237# Transform the above into a raw symbol and a C symbol.
5238symxfrm='\1 \2\3 \3'
5239
5240# Transform an extracted symbol line into a proper C declaration
5241lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5242
5243# Transform an extracted symbol line into symbol name and symbol address
5244lt_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'"
5245
5246# Define system-specific variables.
5247case $host_os in
5248aix*)
5249 symcode='[BCDT]'
5250 ;;
5251cygwin* | mingw* | pw32*)
5252 symcode='[ABCDGISTW]'
5253 ;;
5254hpux*) # Its linker distinguishes data from code symbols
5255 if test "$host_cpu" = ia64; then
5256 symcode='[ABCDEGRST]'
5257 fi
5258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5259 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'"
5260 ;;
5261irix* | nonstopux*)
5262 symcode='[BCDEGRST]'
5263 ;;
5264solaris* | sysv5*)
5265 symcode='[BDT]'
5266 ;;
5267sysv4)
5268 symcode='[DFNSTU]'
5269 ;;
5270esac
5271
5272# Handle CRLF in mingw tool chain
5273opt_cr=
5274case $host_os in
5275mingw*)
5276 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5277 ;;
5278esac
5279
5280# If we're using GNU nm, then use its standard symbol codes.
5281if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5282 symcode='[ABCDGISTW]'
5283fi
5284
5285# Try without a prefix undercore, then with it.
5286for ac_symprfx in "" "_"; do
5287
5288 # Write the raw and C identifiers.
5289 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5290
5291 # Check to see that the pipe works correctly.
5292 pipe_works=no
5293
5294 rm -f conftest*
5295 cat > conftest.$ac_ext <<EOF
5296#ifdef __cplusplus
5297extern "C" {
5298#endif
5299char nm_test_var;
5300void nm_test_func(){}
5301#ifdef __cplusplus
5302}
5303#endif
5304int main(){nm_test_var='a';nm_test_func();return(0);}
5305EOF
5306
5307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308 (eval $ac_compile) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; then
5312 # Now try to grab the symbols.
5313 nlist=conftest.nm
5314 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5315 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && test -s "$nlist"; then
5319 # Try sorting and uniquifying the output.
5320 if sort "$nlist" | uniq > "$nlist"T; then
5321 mv -f "$nlist"T "$nlist"
5322 else
5323 rm -f "$nlist"T
5324 fi
5325
5326 # Make sure that we snagged all the symbols we need.
5327 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5328 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5329 cat <<EOF > conftest.$ac_ext
5330#ifdef __cplusplus
5331extern "C" {
5332#endif
5333
5334EOF
5335 # Now generate the symbol file.
5336 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5337
5338 cat <<EOF >> conftest.$ac_ext
5339#if defined (__STDC__) && __STDC__
5340# define lt_ptr_t void *
5341#else
5342# define lt_ptr_t char *
5343# define const
5344#endif
5345
5346/* The mapping between symbol names and symbols. */
5347const struct {
5348 const char *name;
5349 lt_ptr_t address;
5350}
5351lt_preloaded_symbols[] =
5352{
5353EOF
5354 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5355 cat <<\EOF >> conftest.$ac_ext
5356 {0, (lt_ptr_t) 0}
5357};
5358
5359#ifdef __cplusplus
5360}
5361#endif
5362EOF
5363 # Now try linking the two files.
5364 mv conftest.$ac_objext conftstm.$ac_objext
5365 lt_save_LIBS="$LIBS"
5366 lt_save_CFLAGS="$CFLAGS"
5367 LIBS="conftstm.$ac_objext"
5368 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5374 pipe_works=yes
5375 fi
5376 LIBS="$lt_save_LIBS"
5377 CFLAGS="$lt_save_CFLAGS"
5378 else
5379 echo "cannot find nm_test_func in $nlist" >&5
5380 fi
5381 else
5382 echo "cannot find nm_test_var in $nlist" >&5
5383 fi
5384 else
5385 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5386 fi
5387 else
5388 echo "$progname: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 fi
5391 rm -f conftest* conftst*
5392
5393 # Do not use the global_symbol_pipe unless it works.
5394 if test "$pipe_works" = yes; then
5395 break
5396 else
5397 lt_cv_sys_global_symbol_pipe=
5398 fi
5399done
5400
5401fi
5402
5403if test -z "$lt_cv_sys_global_symbol_pipe"; then
5404 lt_cv_sys_global_symbol_to_cdecl=
5405fi
5406if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5407 echo "$as_me:$LINENO: result: failed" >&5
5408echo "${ECHO_T}failed" >&6
5409else
5410 echo "$as_me:$LINENO: result: ok" >&5
5411echo "${ECHO_T}ok" >&6
5412fi
5413
5414echo "$as_me:$LINENO: checking for objdir" >&5
5415echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5416if test "${lt_cv_objdir+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419 rm -f .libs 2>/dev/null
5420mkdir .libs 2>/dev/null
5421if test -d .libs; then
5422 lt_cv_objdir=.libs
5423else
5424 # MS-DOS does not allow filenames that begin with a dot.
5425 lt_cv_objdir=_libs
5426fi
5427rmdir .libs 2>/dev/null
5428fi
5429echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5430echo "${ECHO_T}$lt_cv_objdir" >&6
5431objdir=$lt_cv_objdir
5432
5433
5434
5435
5436
5437case $host_os in
5438aix3*)
5439 # AIX sometimes has problems with the GCC collect2 program. For some
5440 # reason, if we set the COLLECT_NAMES environment variable, the problems
5441 # vanish in a puff of smoke.
5442 if test "X${COLLECT_NAMES+set}" != Xset; then
5443 COLLECT_NAMES=
5444 export COLLECT_NAMES
5445 fi
5446 ;;
5447esac
5448
5449# Sed substitution that helps us do robust quoting. It backslashifies
5450# metacharacters that are still active within double-quoted strings.
5451Xsed='sed -e s/^X//'
5452sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5453
5454# Same as above, but do not quote variable references.
5455double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5456
5457# Sed substitution to delay expansion of an escaped shell variable in a
5458# double_quote_subst'ed string.
5459delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5460
5461# Sed substitution to avoid accidental globbing in evaled expressions
5462no_glob_subst='s/\*/\\\*/g'
5463
5464# Constants:
5465rm="rm -f"
5466
5467# Global variables:
5468default_ofile=libtool
5469can_build_shared=yes
5470
5471# All known linkers require a `.a' archive for static linking (except M$VC,
5472# which needs '.lib').
5473libext=a
5474ltmain="$ac_aux_dir/ltmain.sh"
5475ofile="$default_ofile"
5476with_gnu_ld="$lt_cv_prog_gnu_ld"
5477
5478if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5480set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5481echo "$as_me:$LINENO: checking for $ac_word" >&5
5482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483if test "${ac_cv_prog_RANLIB+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 if test -n "$RANLIB"; then
5487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501done
5502
5503fi
5504fi
5505RANLIB=$ac_cv_prog_RANLIB
5506if test -n "$RANLIB"; then
5507 echo "$as_me:$LINENO: result: $RANLIB" >&5
5508echo "${ECHO_T}$RANLIB" >&6
5509else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512fi
5513
5514fi
5515if test -z "$ac_cv_prog_RANLIB"; then
5516 ac_ct_RANLIB=$RANLIB
5517 # Extract the first word of "ranlib", so it can be a program name with args.
5518set dummy ranlib; ac_word=$2
5519echo "$as_me:$LINENO: checking for $ac_word" >&5
5520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524 if test -n "$ac_ct_RANLIB"; then
5525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_RANLIB="ranlib"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538done
5539done
5540
5541 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5542fi
5543fi
5544ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5545if test -n "$ac_ct_RANLIB"; then
5546 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5547echo "${ECHO_T}$ac_ct_RANLIB" >&6
5548else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551fi
5552
5553 RANLIB=$ac_ct_RANLIB
5554else
5555 RANLIB="$ac_cv_prog_RANLIB"
5556fi
5557
5558if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5560set dummy ${ac_tool_prefix}strip; ac_word=$2
5561echo "$as_me:$LINENO: checking for $ac_word" >&5
5562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5563if test "${ac_cv_prog_STRIP+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566 if test -n "$STRIP"; then
5567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5568else
5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570for as_dir in $PATH
5571do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580done
5581done
5582
5583fi
5584fi
5585STRIP=$ac_cv_prog_STRIP
5586if test -n "$STRIP"; then
5587 echo "$as_me:$LINENO: result: $STRIP" >&5
5588echo "${ECHO_T}$STRIP" >&6
5589else
5590 echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592fi
5593
5594fi
5595if test -z "$ac_cv_prog_STRIP"; then
5596 ac_ct_STRIP=$STRIP
5597 # Extract the first word of "strip", so it can be a program name with args.
5598set dummy strip; ac_word=$2
5599echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 if test -n "$ac_ct_STRIP"; then
5605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_ac_ct_STRIP="strip"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619done
5620
5621 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5622fi
5623fi
5624ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5625if test -n "$ac_ct_STRIP"; then
5626 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5627echo "${ECHO_T}$ac_ct_STRIP" >&6
5628else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631fi
5632
5633 STRIP=$ac_ct_STRIP
5634else
5635 STRIP="$ac_cv_prog_STRIP"
5636fi
5637
5638
5639old_CC="$CC"
5640old_CFLAGS="$CFLAGS"
5641
5642# Set sane defaults for various variables
5643test -z "$AR" && AR=ar
5644test -z "$AR_FLAGS" && AR_FLAGS=cru
5645test -z "$AS" && AS=as
5646test -z "$CC" && CC=cc
5647test -z "$LTCC" && LTCC=$CC
5648test -z "$DLLTOOL" && DLLTOOL=dlltool
5649test -z "$LD" && LD=ld
5650test -z "$LN_S" && LN_S="ln -s"
5651test -z "$MAGIC_CMD" && MAGIC_CMD=file
5652test -z "$NM" && NM=nm
5653test -z "$SED" && SED=sed
5654test -z "$OBJDUMP" && OBJDUMP=objdump
5655test -z "$RANLIB" && RANLIB=:
5656test -z "$STRIP" && STRIP=:
5657test -z "$ac_objext" && ac_objext=o
5658
5659# Determine commands to create old-style static archives.
5660old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5661old_postinstall_cmds='chmod 644 $oldlib'
5662old_postuninstall_cmds=
5663
5664if test -n "$RANLIB"; then
5665 case $host_os in
5666 openbsd*)
5667 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5668 ;;
5669 *)
5670 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5671 ;;
5672 esac
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5674fi
5675
5676# Only perform the check for file, if the check method requires it
5677case $deplibs_check_method in
5678file_magic*)
5679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5680 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5681echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5682if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 case $MAGIC_CMD in
5686[\\/*] | ?:[\\/]*)
5687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5688 ;;
5689*)
5690 lt_save_MAGIC_CMD="$MAGIC_CMD"
5691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5693 for ac_dir in $ac_dummy; do
5694 IFS="$lt_save_ifs"
5695 test -z "$ac_dir" && ac_dir=.
5696 if test -f $ac_dir/${ac_tool_prefix}file; then
5697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5698 if test -n "$file_magic_test_file"; then
5699 case $deplibs_check_method in
5700 "file_magic "*)
5701 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5704 egrep "$file_magic_regex" > /dev/null; then
5705 :
5706 else
5707 cat <<EOF 1>&2
5708
5709*** Warning: the command libtool uses to detect shared libraries,
5710*** $file_magic_cmd, produces output that libtool cannot recognize.
5711*** The result is that libtool may fail to recognize shared libraries
5712*** as such. This will affect the creation of libtool libraries that
5713*** depend on shared libraries, but programs linked with such libtool
5714*** libraries will work regardless of this problem. Nevertheless, you
5715*** may want to report the problem to your system manager and/or to
5716*** bug-libtool@gnu.org
5717
5718EOF
5719 fi ;;
5720 esac
5721 fi
5722 break
5723 fi
5724 done
5725 IFS="$lt_save_ifs"
5726 MAGIC_CMD="$lt_save_MAGIC_CMD"
5727 ;;
5728esac
5729fi
5730
5731MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5732if test -n "$MAGIC_CMD"; then
5733 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5734echo "${ECHO_T}$MAGIC_CMD" >&6
5735else
5736 echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738fi
5739
5740if test -z "$lt_cv_path_MAGIC_CMD"; then
5741 if test -n "$ac_tool_prefix"; then
5742 echo "$as_me:$LINENO: checking for file" >&5
5743echo $ECHO_N "checking for file... $ECHO_C" >&6
5744if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 case $MAGIC_CMD in
5748[\\/*] | ?:[\\/]*)
5749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5750 ;;
5751*)
5752 lt_save_MAGIC_CMD="$MAGIC_CMD"
5753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5755 for ac_dir in $ac_dummy; do
5756 IFS="$lt_save_ifs"
5757 test -z "$ac_dir" && ac_dir=.
5758 if test -f $ac_dir/file; then
5759 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5760 if test -n "$file_magic_test_file"; then
5761 case $deplibs_check_method in
5762 "file_magic "*)
5763 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5766 egrep "$file_magic_regex" > /dev/null; then
5767 :
5768 else
5769 cat <<EOF 1>&2
5770
5771*** Warning: the command libtool uses to detect shared libraries,
5772*** $file_magic_cmd, produces output that libtool cannot recognize.
5773*** The result is that libtool may fail to recognize shared libraries
5774*** as such. This will affect the creation of libtool libraries that
5775*** depend on shared libraries, but programs linked with such libtool
5776*** libraries will work regardless of this problem. Nevertheless, you
5777*** may want to report the problem to your system manager and/or to
5778*** bug-libtool@gnu.org
5779
5780EOF
5781 fi ;;
5782 esac
5783 fi
5784 break
5785 fi
5786 done
5787 IFS="$lt_save_ifs"
5788 MAGIC_CMD="$lt_save_MAGIC_CMD"
5789 ;;
5790esac
5791fi
5792
5793MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5794if test -n "$MAGIC_CMD"; then
5795 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5796echo "${ECHO_T}$MAGIC_CMD" >&6
5797else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800fi
5801
5802 else
5803 MAGIC_CMD=:
5804 fi
5805fi
5806
5807 fi
5808 ;;
5809esac
5810
5811enable_dlopen=no
5812enable_win32_dll=no
5813
5814# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5815if test "${enable_libtool_lock+set}" = set; then
5816 enableval="$enable_libtool_lock"
5817
5818fi;
5819test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5820
5821
5822# Check whether --with-pic or --without-pic was given.
5823if test "${with_pic+set}" = set; then
5824 withval="$with_pic"
5825 pic_mode="$withval"
5826else
5827 pic_mode=default
5828fi;
5829test -z "$pic_mode" && pic_mode=default
5830
5831# Use C for the default configuration in the libtool script
5832tagname=
5833lt_save_CC="$CC"
5834ac_ext=c
5835ac_cpp='$CPP $CPPFLAGS'
5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840
5841# Source file extension for C test sources.
5842ac_ext=c
5843
5844# Object file extension for compiled C test sources.
5845objext=o
5846objext=$objext
5847
5848# Code to be used in simple compile tests
5849lt_simple_compile_test_code="int some_variable = 0;"
5850
5851# Code to be used in simple link tests
5852lt_simple_link_test_code='main(){return(0);}'
5853
5854
5855# If no C compiler was specified, use CC.
5856LTCC=${LTCC-"$CC"}
5857
5858# Allow CC to be a program name with arguments.
5859set dummy $CC
5860compiler="$2"
5861
5862
5863#
5864# Check for any special shared library compilation flags.
5865#
5866lt_prog_cc_shlib=
5867if test "$GCC" = no; then
5868 case $host_os in
5869 sco3.2v5*)
5870 lt_prog_cc_shlib='-belf'
5871 ;;
5872 esac
5873fi
5874if test -n "$lt_prog_cc_shlib"; then
5875 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5876echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5877 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5878 else
5879 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5880echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5881 lt_cv_prog_cc_can_build_shared=no
5882 fi
5883fi
5884
5885
5886#
5887# Check to make sure the static flag actually works.
5888#
5889echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5890echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5891if test "${lt_prog_compiler_static_works+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894 lt_prog_compiler_static_works=no
5895 save_LDFLAGS="$LDFLAGS"
5896 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5899 # The compiler can only warn and ignore the option if not recognized
5900 # So say no if there are warnings
5901 if test -s conftest.err; then
5902 # Append any errors to the config.log.
5903 cat conftest.err 1>&5
5904 else
5905 lt_prog_compiler_static_works=yes
5906 fi
5907 fi
5908 $rm conftest*
5909 LDFLAGS="$save_LDFLAGS"
5910
5911fi
5912echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5913echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5914
5915if test x"$lt_prog_compiler_static_works" = xyes; then
5916 :
5917else
5918 lt_prog_compiler_static=
5919fi
5920
5921
5922
5923
5924lt_prog_compiler_no_builtin_flag=
5925
5926if test "$GCC" = yes; then
5927 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5928
5929 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5930echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5931if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 lt_cv_prog_compiler_rtti_exceptions=no
5935 ac_outfile=conftest.$ac_objext
5936 save_CFLAGS="$CFLAGS"
5937 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5939 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5940 # The compiler can only warn and ignore the option if not recognized
5941 # So say no if there are warnings
5942 if test -s conftest.err; then
5943 # Append any errors to the config.log.
5944 cat conftest.err 1>&5
5945 else
5946 lt_cv_prog_compiler_rtti_exceptions=yes
5947 fi
5948 fi
5949 $rm conftest*
5950 CFLAGS="$save_CFLAGS"
5951
5952fi
5953echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5954echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5955
5956if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5957 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5958else
5959 :
5960fi
5961
5962fi
5963
5964lt_prog_compiler_wl=
5965lt_prog_compiler_pic=
5966lt_prog_compiler_static=
5967
5968echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5969echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5970
5971 if test "$GCC" = yes; then
5972 lt_prog_compiler_wl='-Wl,'
5973 lt_prog_compiler_static='-static'
5974
5975 case $host_os in
5976 aix*)
5977 # All AIX code is PIC.
5978 if test "$host_cpu" = ia64; then
5979 # AIX 5 now supports IA64 processor
5980 lt_prog_compiler_static='-Bstatic'
5981 fi
5982 ;;
5983
5984 amigaos*)
5985 # FIXME: we need at least 68020 code to build shared libraries, but
5986 # adding the `-m68020' flag to GCC prevents building anything better,
5987 # like `-m68040'.
5988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5989 ;;
5990
5991 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5992 # PIC is the default for these OSes.
5993 ;;
5994
5995 cygwin* | mingw* | pw32* | os2*)
5996 # This hack is so that the source file can tell whether it is being
5997 # built for inclusion in a dll (and should export symbols for example).
5998 lt_prog_compiler_pic='-DDLL_EXPORT'
5999 ;;
6000
6001 darwin* | rhapsody*)
6002 # PIC is the default on this platform
6003 # Common symbols not allowed in MH_DYLIB files
6004 lt_prog_compiler_pic='-fno-common'
6005 ;;
6006
6007 msdosdjgpp*)
6008 # Just because we use GCC doesn't mean we suddenly get shared libraries
6009 # on systems that don't support them.
6010 lt_prog_compiler_can_build_shared=no
6011 enable_shared=no
6012 ;;
6013
6014 sysv4*MP*)
6015 if test -d /usr/nec; then
6016 lt_prog_compiler_pic=-Kconform_pic
6017 fi
6018 ;;
6019
6020 hpux*)
6021 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
6022 if test "$host_cpu" != ia64; then
6023 lt_prog_compiler_pic='-fPIC'
6024 fi
6025 ;;
6026
6027 *)
6028 lt_prog_compiler_pic='-fPIC'
6029 ;;
6030 esac
6031 else
6032 # PORTME Check for flag to pass linker flags through the system compiler.
6033 case $host_os in
6034 aix*)
6035 lt_prog_compiler_wl='-Wl,'
6036 if test "$host_cpu" = ia64; then
6037 # AIX 5 now supports IA64 processor
6038 lt_prog_compiler_static='-Bstatic'
6039 else
6040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6041 fi
6042 ;;
6043
6044 cygwin* | mingw* | pw32* | os2*)
6045 # This hack is so that the source file can tell whether it is being
6046 # built for inclusion in a dll (and should export symbols for example).
6047 lt_prog_compiler_pic='-DDLL_EXPORT'
6048 ;;
6049
6050 hpux9* | hpux10* | hpux11*)
6051 lt_prog_compiler_wl='-Wl,'
6052 if test "$host_cpu" != ia64; then
6053 lt_prog_compiler_pic='+Z'
6054 fi
6055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6056 lt_prog_compiler_static='${wl}-a ${wl}archive'
6057 ;;
6058
6059 irix5* | irix6* | nonstopux*)
6060 lt_prog_compiler_wl='-Wl,'
6061 # PIC (with -KPIC) is the default.
6062 lt_prog_compiler_static='-non_shared'
6063 ;;
6064
6065 newsos6)
6066 lt_prog_compiler_pic='-KPIC'
6067 lt_prog_compiler_static='-Bstatic'
6068 ;;
6069
6070 osf3* | osf4* | osf5*)
6071 lt_prog_compiler_wl='-Wl,'
6072 # All OSF/1 code is PIC.
6073 lt_prog_compiler_static='-non_shared'
6074 ;;
6075
6076 sco3.2v5*)
6077 lt_prog_compiler_pic='-Kpic'
6078 lt_prog_compiler_static='-dn'
6079 ;;
6080
6081 solaris*)
6082 lt_prog_compiler_wl='-Wl,'
6083 lt_prog_compiler_pic='-KPIC'
6084 lt_prog_compiler_static='-Bstatic'
6085 ;;
6086
6087 sunos4*)
6088 lt_prog_compiler_wl='-Qoption ld '
6089 lt_prog_compiler_pic='-PIC'
6090 lt_prog_compiler_static='-Bstatic'
6091 ;;
6092
6093 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6094 if test "x$host_vendor" = xsni; then
6095 lt_prog_compiler_wl='-LD'
6096 else
6097 lt_prog_compiler_wl='-Wl,'
6098 fi
6099 lt_prog_compiler_pic='-KPIC'
6100 lt_prog_compiler_static='-Bstatic'
6101 ;;
6102
6103 sysv4*MP*)
6104 if test -d /usr/nec ;then
6105 lt_prog_compiler_pic='-Kconform_pic'
6106 lt_prog_compiler_static='-Bstatic'
6107 fi
6108 ;;
6109
6110 uts4*)
6111 lt_prog_compiler_pic='-pic'
6112 lt_prog_compiler_static='-Bstatic'
6113 ;;
6114
6115 *)
6116 lt_prog_compiler_can_build_shared=no
6117 ;;
6118 esac
6119 fi
6120
6121echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6122echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6123
6124#
6125# Check to make sure the PIC flag actually works.
6126#
6127if test -n "$lt_prog_compiler_pic"; then
6128 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6129echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6130if test "${lt_prog_compiler_pic_works+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133 lt_prog_compiler_pic_works=no
6134 ac_outfile=conftest.$ac_objext
6135 save_CFLAGS="$CFLAGS"
6136 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
6137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6138 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6139 # The compiler can only warn and ignore the option if not recognized
6140 # So say no if there are warnings
6141 if test -s conftest.err; then
6142 # Append any errors to the config.log.
6143 cat conftest.err 1>&5
6144 else
6145 lt_prog_compiler_pic_works=yes
6146 fi
6147 fi
6148 $rm conftest*
6149 CFLAGS="$save_CFLAGS"
6150
6151fi
6152echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6153echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6154
6155if test x"$lt_prog_compiler_pic_works" = xyes; then
6156 case $lt_prog_compiler_pic in
6157 "" | " "*) ;;
6158 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6159 esac
6160else
6161 lt_prog_compiler_pic=
6162 lt_prog_compiler_can_build_shared=no
6163fi
6164
6165fi
6166case "$host_os" in
6167 # For platforms which do not support PIC, -DPIC is meaningless:
6168 *djgpp*)
6169 lt_prog_compiler_pic=
6170 ;;
6171 *)
6172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6173 ;;
6174esac
6175
6176echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6177echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6178if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 lt_cv_prog_compiler_c_o=no
6182 $rm -r conftest 2>/dev/null
6183 mkdir conftest
6184 cd conftest
6185 mkdir out
6186 save_CFLAGS="$CFLAGS"
6187 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6189
6190 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6191 # that will create temporary files in the current directory regardless of
6192 # the output directory. Thus, making CWD read-only will cause this test
6193 # to fail, enabling locking or at least warning the user not to do parallel
6194 # builds.
6195 chmod -w .
6196
6197 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
6198 then
6199 # The compiler can only warn and ignore the option if not recognized
6200 # So say no if there are warnings
6201 if test -s out/conftest.err; then
6202 # Append any errors to the config.log.
6203 cat out/conftest.err 1>&5
6204 else
6205 lt_cv_prog_compiler_c_o=yes
6206 fi
6207 fi
6208 CFLAGS="$save_CFLAGS"
6209 chmod u+w .
6210 $rm conftest* out/*
6211 rmdir out
6212 cd ..
6213 rmdir conftest
6214 $rm conftest*
6215
6216fi
6217echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6218echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6219
6220
6221hard_links="nottested"
6222if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6223 # do not overwrite the value of need_locks provided by the user
6224 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6225echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6226 hard_links=yes
6227 $rm conftest*
6228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6229 touch conftest.a
6230 ln conftest.a conftest.b 2>&5 || hard_links=no
6231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6232 echo "$as_me:$LINENO: result: $hard_links" >&5
6233echo "${ECHO_T}$hard_links" >&6
6234 if test "$hard_links" = no; then
6235 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6236echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6237 need_locks=warn
6238 fi
6239else
6240 need_locks=no
6241fi
6242
6243echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6244echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6245
6246 runpath_var=
6247 allow_undefined_flag=
6248
6249 archive_cmds=
6250 archive_cmds_need_lc=
6251 archive_expsym_cmds=
6252 old_archive_From_new_cmds=
6253 old_archive_from_expsyms_cmds=
6254 export_dynamic_flag_spec=
6255 whole_archive_flag_spec=
6256 thread_safe_flag_spec=
6257 hardcode_libdir_flag_spec=
6258 hardcode_libdir_separator=
6259 hardcode_direct=no
6260 hardcode_minus_L=no
6261 hardcode_shlibpath_var=unsupported
6262 link_all_deplibs=unknown
6263 always_export_symbols=no
6264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6265 # include_expsyms should be a list of space-separated symbols to be *always*
6266 # included in the symbol list
6267 include_expsyms=
6268 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6271 # as well as any symbol that contains `d'.
6272 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6274 # platforms (ab)use it in PIC code, but their linkers get confused if
6275 # the symbol is explicitly referenced. Since portable code cannot
6276 # rely on this symbol name, it's probably fine to never include it in
6277 # preloaded symbol tables.
6278 extract_expsyms_cmds=
6279
6280 case $host_os in
6281 cygwin* | mingw* | pw32*)
6282 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6283 # When not using gcc, we currently assume that we are using
6284 # Microsoft Visual C++.
6285 if test "$GCC" != yes; then
6286 with_gnu_ld=no
6287 fi
6288 ;;
6289 openbsd*)
6290 with_gnu_ld=no
6291 ;;
6292 esac
6293
6294 ld_shlibs=yes
6295 if test "$with_gnu_ld" = yes; then
6296 # If archive_cmds runs LD, not CC, wlarc should be empty
6297 wlarc='${wl}'
6298
6299 # See if GNU ld supports shared libraries.
6300 case $host_os in
6301 aix3* | aix4* | aix5*)
6302 # On AIX/PPC, the GNU linker is very broken
6303 if test "$host_cpu" != ia64; then
6304 ld_shlibs=no
6305 cat <<EOF 1>&2
6306
6307*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6308*** to be unable to reliably create shared libraries on AIX.
6309*** Therefore, libtool is disabling shared libraries support. If you
6310*** really care for shared libraries, you may want to modify your PATH
6311*** so that a non-GNU linker is found, and then restart.
6312
6313EOF
6314 fi
6315 ;;
6316
6317 amigaos*)
6318 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)'
6319 hardcode_libdir_flag_spec='-L$libdir'
6320 hardcode_minus_L=yes
6321
6322 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6323 # that the semantics of dynamic libraries on AmigaOS, at least up
6324 # to version 4, is to share data among multiple programs linked
6325 # with the same dynamic library. Since this doesn't match the
6326 # behavior of shared libraries on other platforms, we can't use
6327 # them.
6328 ld_shlibs=no
6329 ;;
6330
6331 beos*)
6332 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6333 allow_undefined_flag=unsupported
6334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6335 # support --undefined. This deserves some investigation. FIXME
6336 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6337 else
6338 ld_shlibs=no
6339 fi
6340 ;;
6341
6342 cygwin* | mingw* | pw32*)
6343 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6344 # no search path for DLLs.
6345 hardcode_libdir_flag_spec='-L$libdir'
6346 allow_undefined_flag=unsupported
6347 always_export_symbols=yes
6348
6349 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6350 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6351 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6352 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6353 else $CC -o impgen impgen.c ; fi)~
6354 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6355
6356 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6357
6358 # cygwin and mingw dlls have different entry points and sets of symbols
6359 # to exclude.
6360 # FIXME: what about values for MSVC?
6361 dll_entry=__cygwin_dll_entry@12
6362 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6363 case $host_os in
6364 mingw*)
6365 # mingw values
6366 dll_entry=_DllMainCRTStartup@12
6367 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6368 ;;
6369 esac
6370
6371 # mingw and cygwin differ, and it's simplest to just exclude the union
6372 # of the two symbol sets.
6373 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6374
6375 # recent cygwin and mingw systems supply a stub DllMain which the user
6376 # can override, but on older systems we have to supply one (in ltdll.c)
6377 if test "x$lt_cv_need_dllmain" = "xyes"; then
6378 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6379 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6380 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6381 else
6382 ltdll_obj=
6383 ltdll_cmds=
6384 fi
6385
6386 # Extract the symbol export list from an `--export-all' def file,
6387 # then regenerate the def file from the symbol export list, so that
6388 # the compiled dll only exports the symbol export list.
6389 # Be careful not to strip the DATA tag left by newer dlltools.
6390 export_symbols_cmds="$ltdll_cmds"'
6391 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6392 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6393
6394 # If the export-symbols file already is a .def file (1st line
6395 # is EXPORTS), use it as is.
6396 # If DATA tags from a recent dlltool are present, honour them!
6397 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6398 cp $export_symbols $output_objdir/$soname-def;
6399 else
6400 echo EXPORTS > $output_objdir/$soname-def;
6401 _lt_hint=1;
6402 cat $export_symbols | while read symbol; do
6403 set dummy \$symbol;
6404 case \$# in
6405 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6406 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6407 esac;
6408 _lt_hint=`expr 1 + \$_lt_hint`;
6409 done;
6410 fi~
6411 '"$ltdll_cmds"'
6412 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6413 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6414 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6415 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6416 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6417 ;;
6418
6419 netbsd*)
6420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6421 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6422 wlarc=
6423 else
6424 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6425 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6426 fi
6427 ;;
6428
6429 solaris* | sysv5*)
6430 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6431 ld_shlibs=no
6432 cat <<EOF 1>&2
6433
6434*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6435*** create shared libraries on Solaris systems. Therefore, libtool
6436*** is disabling shared libraries support. We urge you to upgrade GNU
6437*** binutils to release 2.9.1 or newer. Another option is to modify
6438*** your PATH or compiler configuration so that the native linker is
6439*** used, and then restart.
6440
6441EOF
6442 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6445 else
6446 ld_shlibs=no
6447 fi
6448 ;;
6449
6450 sunos4*)
6451 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6452 wlarc=
6453 hardcode_direct=yes
6454 hardcode_shlibpath_var=no
6455 ;;
6456
6457 *)
6458 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6461 else
6462 ld_shlibs=no
6463 fi
6464 ;;
6465 esac
6466
6467 if test "$ld_shlibs" = yes; then
6468 runpath_var=LD_RUN_PATH
6469 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6470 export_dynamic_flag_spec='${wl}--export-dynamic'
6471 case $host_os in
6472 cygwin* | mingw* | pw32*)
6473 # dlltool doesn't understand --whole-archive et. al.
6474 whole_archive_flag_spec=
6475 ;;
6476 *)
6477 # ancient GNU ld didn't support --whole-archive et. al.
6478 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6479 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6480 else
6481 whole_archive_flag_spec=
6482 fi
6483 ;;
6484 esac
6485 fi
6486 else
6487 # PORTME fill in a description of your system's linker (not GNU ld)
6488 case $host_os in
6489 aix3*)
6490 allow_undefined_flag=unsupported
6491 always_export_symbols=yes
6492 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'
6493 # Note: this linker hardcodes the directories in LIBPATH if there
6494 # are no directories specified by -L.
6495 hardcode_minus_L=yes
6496 if test "$GCC" = yes && test -z "$link_static_flag"; then
6497 # Neither direct hardcoding nor static linking is supported with a
6498 # broken collect2.
6499 hardcode_direct=unsupported
6500 fi
6501 ;;
6502
6503 aix4* | aix5*)
6504 if test "$host_cpu" = ia64; then
6505 # On IA64, the linker does run time linking by default, so we don't
6506 # have to do anything special.
6507 aix_use_runtimelinking=no
6508 exp_sym_flag='-Bexport'
6509 no_entry_flag=""
6510 else
6511 # If we're using GNU nm, then we don't want the "-C" option.
6512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6513 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
6514 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'
6515 else
6516 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'
6517 fi
6518
6519 # KDE requires run time linking. Make it the default.
6520 aix_use_runtimelinking=yes
6521 exp_sym_flag='-bexport'
6522 no_entry_flag='-bnoentry'
6523 fi
6524
6525 # When large executables or shared objects are built, AIX ld can
6526 # have problems creating the table of contents. If linking a library
6527 # or program results in "error TOC overflow" add -mminimal-toc to
6528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6530
6531 archive_cmds=''
6532 hardcode_direct=yes
6533 hardcode_libdir_separator=':'
6534 link_all_deplibs=yes
6535
6536 if test "$GCC" = yes; then
6537 case $host_os in aix4.012|aix4.012.*)
6538 # We only want to do this on AIX 4.2 and lower, the check
6539 # below for broken collect2 doesn't work under 4.3+
6540 collect2name=`${CC} -print-prog-name=collect2`
6541 if test -f "$collect2name" && \
6542 strings "$collect2name" | grep resolve_lib_name >/dev/null
6543 then
6544 # We have reworked collect2
6545 hardcode_direct=yes
6546 else
6547 # We have old collect2
6548 hardcode_direct=unsupported
6549 # It fails to find uninstalled libraries when the uninstalled
6550 # path is not listed in the libpath. Setting hardcode_minus_L
6551 # to unsupported forces relinking
6552 hardcode_minus_L=yes
6553 hardcode_libdir_flag_spec='-L$libdir'
6554 hardcode_libdir_separator=
6555 fi
6556 esac
6557 shared_flag='-shared'
6558 else
6559 # not using gcc
6560 if test "$host_cpu" = ia64; then
6561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6562 # chokes on -Wl,-G. The following line is correct:
6563 shared_flag='-G'
6564 else
6565 if test "$aix_use_runtimelinking" = yes; then
6566 shared_flag='-qmkshrobj ${wl}-G'
6567 else
6568 shared_flag='-qmkshrobj'
6569 fi
6570 fi
6571 fi
6572
6573 # Let the compiler handle the export list.
6574 always_export_symbols=no
6575 if test "$aix_use_runtimelinking" = yes; then
6576 # Warning - without using the other runtime loading flags (-brtl),
6577 # -berok will link without error, but may produce a broken library.
6578 allow_undefined_flag='-berok'
6579 # Determine the default libpath from the value encoded in an empty executable.
6580 cat >conftest.$ac_ext <<_ACEOF
6581#line $LINENO "configure"
6582#include "confdefs.h"
6583
6584#ifdef F77_DUMMY_MAIN
6585# ifdef __cplusplus
6586 extern "C"
6587# endif
6588 int F77_DUMMY_MAIN() { return 1; }
6589#endif
6590int
6591main ()
6592{
6593
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610
6611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6612}'`
6613# Check for a 64-bit object if we didn't find anything.
6614if 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; }
6615}'`; fi
6616else
6617 echo "$as_me: failed program was:" >&5
6618cat conftest.$ac_ext >&5
6619fi
6620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6622
6623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6624 archive_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` '" $shared_flag"
6625 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}$exp_sym_flag:\$export_symbols $shared_flag"
6626 else
6627 if test "$host_cpu" = ia64; then
6628 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6629 allow_undefined_flag="-z nodefs"
6630 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"
6631 else
6632 # Determine the default libpath from the value encoded in an empty executable.
6633 cat >conftest.$ac_ext <<_ACEOF
6634#line $LINENO "configure"
6635#include "confdefs.h"
6636
6637#ifdef F77_DUMMY_MAIN
6638# ifdef __cplusplus
6639 extern "C"
6640# endif
6641 int F77_DUMMY_MAIN() { return 1; }
6642#endif
6643int
6644main ()
6645{
6646
6647 ;
6648 return 0;
6649}
6650_ACEOF
6651rm -f conftest.$ac_objext conftest$ac_exeext
6652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663
6664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6665}'`
6666# Check for a 64-bit object if we didn't find anything.
6667if 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; }
6668}'`; fi
6669else
6670 echo "$as_me: failed program was:" >&5
6671cat conftest.$ac_ext >&5
6672fi
6673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6675
6676 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6677 # Warning - without using the other run time loading flags,
6678 # -berok will link without error, but may produce a broken library.
6679 no_undefined_flag=' ${wl}-bernotok'
6680 allow_undefined_flag=' ${wl}-berok'
6681 # -bexpall does not export symbols beginning with underscore (_)
6682 always_export_symbols=yes
6683 # Exported symbols can be pulled into shared objects from archives
6684 whole_archive_flag_spec=' '
6685 archive_cmds_need_lc=yes
6686 # This is similar to how AIX traditionally builds it's shared libraries.
6687 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'
6688 fi
6689 fi
6690 ;;
6691
6692 amigaos*)
6693 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)'
6694 hardcode_libdir_flag_spec='-L$libdir'
6695 hardcode_minus_L=yes
6696 # see comment about different semantics on the GNU ld section
6697 ld_shlibs=no
6698 ;;
6699
6700 bsdi4*)
6701 export_dynamic_flag_spec=-rdynamic
6702 ;;
6703
6704 cygwin* | mingw* | pw32*)
6705 # When not using gcc, we currently assume that we are using
6706 # Microsoft Visual C++.
6707 # hardcode_libdir_flag_spec is actually meaningless, as there is
6708 # no search path for DLLs.
6709 hardcode_libdir_flag_spec=' '
6710 allow_undefined_flag=unsupported
6711 # Tell ltmain to make .lib files, not .a files.
6712 libext=lib
6713 # FIXME: Setting linknames here is a bad hack.
6714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6715 # The linker will automatically build a .lib file if we build a DLL.
6716 old_archive_From_new_cmds='true'
6717 # FIXME: Should let the user specify the lib program.
6718 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6719 fix_srcfile_path='`cygpath -w "$srcfile"`'
6720 ;;
6721
6722 darwin* | rhapsody*)
6723 case "$host_os" in
6724 rhapsody* | darwin1.[012])
6725 allow_undefined_flag='-undefined suppress'
6726 ;;
6727 *) # Darwin 1.3 on
6728 allow_undefined_flag='-flat_namespace -undefined suppress'
6729 ;;
6730 esac
6731
6732 # FIXME: Relying on posixy $() will cause problems for
6733 # cross-compilation, but unfortunately the echo tests do not
6734 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6735 # `"' quotes if we put them in here... so don't!
6736 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6737 # We need to add '_' to the symbols in $export_symbols first
6738 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6739 hardcode_direct=yes
6740 hardcode_shlibpath_var=no
6741 whole_archive_flag_spec='-all_load $convenience'
6742 ;;
6743
6744 dgux*)
6745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6746 hardcode_libdir_flag_spec='-L$libdir'
6747 hardcode_shlibpath_var=no
6748 ;;
6749
6750 freebsd1*)
6751 ld_shlibs=no
6752 ;;
6753
6754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6755 # support. Future versions do this automatically, but an explicit c++rt0.o
6756 # does not break anything, and helps significantly (at the cost of a little
6757 # extra space).
6758 freebsd2.2*)
6759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6760 hardcode_libdir_flag_spec='-R$libdir'
6761 hardcode_direct=yes
6762 hardcode_shlibpath_var=no
6763 ;;
6764
6765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6766 freebsd2*)
6767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6768 hardcode_direct=yes
6769 hardcode_minus_L=yes
6770 hardcode_shlibpath_var=no
6771 ;;
6772
6773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6774 freebsd*)
6775 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6776 hardcode_libdir_flag_spec='-R$libdir'
6777 hardcode_direct=yes
6778 hardcode_shlibpath_var=no
6779 ;;
6780
6781 hpux9* | hpux10* | hpux11*)
6782 if test "$GCC" = yes; then
6783 case $host_os in
6784 hpux9*)
6785 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'
6786 ;;
6787 *)
6788 if test "$host_cpu" = ia64; then
6789 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6790 else
6791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6792 fi
6793 ;;
6794 esac
6795 else
6796 case $host_os in
6797 hpux9*)
6798 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'
6799 ;;
6800 *)
6801 if test "$host_cpu" = ia64; then
6802 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6803 else
6804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6805 fi
6806 ;;
6807 esac
6808 fi
6809 if test "$host_cpu" = ia64; then
6810 hardcode_libdir_flag_spec='-L$libdir'
6811 hardcode_direct=no
6812 hardcode_shlibpath_var=no
6813 else
6814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6815 hardcode_libdir_separator=:
6816 hardcode_direct=yes
6817 fi
6818 # hardcode_minus_L: Not really in the search PATH,
6819 # but as the default location of the library.
6820 hardcode_minus_L=yes
6821 export_dynamic_flag_spec='${wl}-E'
6822 ;;
6823
6824 irix5* | irix6* | nonstopux*)
6825 if test "$GCC" = yes; then
6826 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'
6827 else
6828 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'
6829 fi
6830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831 hardcode_libdir_separator=:
6832 link_all_deplibs=yes
6833 ;;
6834
6835 netbsd*)
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6838 else
6839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6840 fi
6841 hardcode_libdir_flag_spec='-R$libdir'
6842 hardcode_direct=yes
6843 hardcode_shlibpath_var=no
6844 ;;
6845
6846 newsos6)
6847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848 hardcode_direct=yes
6849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850 hardcode_libdir_separator=:
6851 hardcode_shlibpath_var=no
6852 ;;
6853
6854 openbsd*)
6855 hardcode_direct=yes
6856 hardcode_shlibpath_var=no
6857
6858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6861 export_dynamic_flag_spec='${wl}-E'
6862 else
6863 case $host_os in
6864 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6866 hardcode_libdir_flag_spec='-R$libdir'
6867 ;;
6868 *)
6869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6871 ;;
6872 esac
6873 fi
6874 ;;
6875
6876 os2*)
6877 hardcode_libdir_flag_spec='-L$libdir'
6878 hardcode_minus_L=yes
6879 allow_undefined_flag=unsupported
6880 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'
6881 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6882 ;;
6883
6884 osf3*)
6885 if test "$GCC" = yes; then
6886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6887 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'
6888 else
6889 allow_undefined_flag=' -expect_unresolved \*'
6890 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'
6891 fi
6892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893 hardcode_libdir_separator=:
6894 ;;
6895
6896 osf4* | osf5*) # as osf3* with the addition of -msym flag
6897 if test "$GCC" = yes; then
6898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6899 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'
6900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6901 else
6902 allow_undefined_flag=' -expect_unresolved \*'
6903 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'
6904 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6905 $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'
6906
6907 # Both c and cxx compiler support -rpath directly
6908 hardcode_libdir_flag_spec='-rpath $libdir'
6909 fi
6910 hardcode_libdir_separator=:
6911 ;;
6912
6913 sco3.2v5*)
6914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6915 hardcode_shlibpath_var=no
6916 export_dynamic_flag_spec='${wl}-Bexport'
6917 runpath_var=LD_RUN_PATH
6918 hardcode_runpath_var=yes
6919 ;;
6920
6921 solaris*)
6922 no_undefined_flag=' -z text'
6923 if test "$GCC" = yes; then
6924 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6925 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6927 else
6928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6929 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6931 fi
6932 hardcode_libdir_flag_spec='-R$libdir'
6933 hardcode_shlibpath_var=no
6934 case $host_os in
6935 solaris2.[0-5] | solaris2.[0-5].*) ;;
6936 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6938 esac
6939 link_all_deplibs=yes
6940 ;;
6941
6942 sunos4*)
6943 if test "x$host_vendor" = xsequent; then
6944 # Use $CC to link under sequent, because it throws in some extra .o
6945 # files that make .init and .fini sections work.
6946 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6947 else
6948 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6949 fi
6950 hardcode_libdir_flag_spec='-L$libdir'
6951 hardcode_direct=yes
6952 hardcode_minus_L=yes
6953 hardcode_shlibpath_var=no
6954 ;;
6955
6956 sysv4)
6957 if test "x$host_vendor" = xsni; then
6958 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959 hardcode_direct=yes # is this really true???
6960 else
6961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6963 fi
6964 runpath_var='LD_RUN_PATH'
6965 hardcode_shlibpath_var=no
6966 ;;
6967
6968 sysv4.3*)
6969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_shlibpath_var=no
6971 export_dynamic_flag_spec='-Bexport'
6972 ;;
6973
6974 sysv4*MP*)
6975 if test -d /usr/nec; then
6976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6977 hardcode_shlibpath_var=no
6978 runpath_var=LD_RUN_PATH
6979 hardcode_runpath_var=yes
6980 ld_shlibs=yes
6981 fi
6982 ;;
6983
6984 sysv4.2uw2*)
6985 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6986 hardcode_direct=yes
6987 hardcode_minus_L=no
6988 hardcode_shlibpath_var=no
6989 hardcode_runpath_var=yes
6990 runpath_var=LD_RUN_PATH
6991 ;;
6992
6993 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6994 no_undefined_flag='${wl}-z ${wl}text'
6995 if test "$GCC" = yes; then
6996 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6997 else
6998 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6999 fi
7000 runpath_var='LD_RUN_PATH'
7001 hardcode_shlibpath_var=no
7002 ;;
7003
7004 sysv5*)
7005 no_undefined_flag=' -z text'
7006 # $CC -shared without GNU ld will not create a library from C++
7007 # object files and a static libstdc++, better avoid it by now
7008 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7009 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7011 hardcode_libdir_flag_spec=
7012 hardcode_shlibpath_var=no
7013 runpath_var='LD_RUN_PATH'
7014 ;;
7015
7016 uts4*)
7017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018 hardcode_libdir_flag_spec='-L$libdir'
7019 hardcode_shlibpath_var=no
7020 ;;
7021
7022 *)
7023 ld_shlibs=no
7024 ;;
7025 esac
7026 fi
7027
7028echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7029echo "${ECHO_T}$ld_shlibs" >&6
7030test "$ld_shlibs" = no && can_build_shared=no
7031
7032variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7033if test "$GCC" = yes; then
7034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7035fi
7036
7037#
7038# Do we need to explicitly link libc?
7039#
7040archive_cmds_need_lc=yes
7041if test "$enable_shared" = yes && test "$GCC" = yes; then
7042 case $archive_cmds in
7043 *'~'*)
7044 # FIXME: we may have to deal with multi-command sequences.
7045 ;;
7046 '$CC '*)
7047 # Test whether the compiler implicitly links with -lc since on some
7048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7049 # to ld, don't add -lc before -lgcc.
7050 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7051echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7052 $rm conftest*
7053 echo 'static int dummy;' > conftest.$ac_ext
7054
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } 2>conftest.err; then
7060 soname=conftest
7061 lib=conftest
7062 libobjs=conftest.$ac_objext
7063 deplibs=
7064 wl=$lt_prog_compiler_wl
7065 compiler_flags=-v
7066 linker_flags=-v
7067 verstring=
7068 output_objdir=.
7069 libname=conftest
7070 lt_save_allow_undefined_flag=$allow_undefined_flag
7071 allow_undefined_flag=
7072 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7073 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }
7077 then
7078 archive_cmds_need_lc=no
7079 else
7080 archive_cmds_need_lc=yes
7081 fi
7082 allow_undefined_flag=$lt_save_allow_undefined_flag
7083 else
7084 cat conftest.err 1>&5
7085 fi
7086 $rm conftest*
7087 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7088echo "${ECHO_T}$archive_cmds_need_lc" >&6
7089 ;;
7090 esac
7091fi
7092
7093echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7094echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7095hardcode_action=
7096if test -n "$hardcode_libdir_flag_spec" || \
7097 test -n "$runpath_var "; then
7098
7099 # We can hardcode non-existant directories.
7100 if test "$hardcode_direct" != no &&
7101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7102 # have to relink, otherwise we might link with an installed library
7103 # when we should be linking with a yet-to-be-installed one
7104 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7105 test "$hardcode_minus_L" != no; then
7106 # Linking always hardcodes the temporary library directory.
7107 hardcode_action=relink
7108 else
7109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7110 hardcode_action=immediate
7111 fi
7112else
7113 # We cannot hardcode anything, or else we can only hardcode existing
7114 # directories.
7115 hardcode_action=unsupported
7116fi
7117echo "$as_me:$LINENO: result: $hardcode_action" >&5
7118echo "${ECHO_T}$hardcode_action" >&6
7119
7120if test "$hardcode_action" = relink; then
7121 # Fast installation is not supported
7122 enable_fast_install=no
7123elif test "$shlibpath_overrides_runpath" = yes ||
7124 test "$enable_shared" = no; then
7125 # Fast installation is not necessary
7126 enable_fast_install=needless
7127fi
7128
7129striplib=
7130old_striplib=
7131echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7132echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7133if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7136 echo "$as_me:$LINENO: result: yes" >&5
7137echo "${ECHO_T}yes" >&6
7138else
7139 echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6
7141fi
7142
7143echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7144echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7145library_names_spec=
7146libname_spec='lib$name'
7147soname_spec=
7148postinstall_cmds=
7149postuninstall_cmds=
7150finish_cmds=
7151finish_eval=
7152shlibpath_var=
7153shlibpath_overrides_runpath=unknown
7154version_type=none
7155dynamic_linker="$host_os ld.so"
7156sys_lib_dlsearch_path_spec="/lib /usr/lib"
7157sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7158need_lib_prefix=unknown
7159hardcode_into_libs=no
7160
7161# when you set need_version to no, make sure it does not cause -set_version
7162# flags to be left without arguments
7163need_version=unknown
7164
7165case $host_os in
7166aix3*)
7167 version_type=linux
7168 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7169 shlibpath_var=LIBPATH
7170
7171 # AIX 3 has no versioning support, so we append a major version to the name.
7172 soname_spec='${libname}${release}.so$major'
7173 ;;
7174
7175aix4* | aix5*)
7176 version_type=linux
7177 if test "$host_cpu" = ia64; then
7178 # AIX 5 supports IA64
7179 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7180 shlibpath_var=LD_LIBRARY_PATH
7181 else
7182 # With GCC up to 2.95.x, collect2 would create an import file
7183 # for dependence libraries. The import file would start with
7184 # the line `#! .'. This would cause the generated library to
7185 # depend on `.', always an invalid library. This was fixed in
7186 # development snapshots of GCC prior to 3.0.
7187 case $host_os in
7188 aix4 | aix4.[01] | aix4.[01].*)
7189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7190 echo ' yes '
7191 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7192 :
7193 else
7194 can_build_shared=no
7195 fi
7196 ;;
7197 esac
7198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7199 # soname into executable. Probably we can add versioning support to
7200 # collect2, so additional links can be useful in future.
7201 if test "$aix_use_runtimelinking" = yes; then
7202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7203 # instead of lib<name>.a to let people know that these are not
7204 # typical AIX shared libraries.
7205 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7206 else
7207 # We preserve .a as extension for shared libraries through AIX4.2
7208 # and later when we are not doing run time linking.
7209 library_names_spec='${libname}${release}.a $libname.a'
7210 soname_spec='${libname}${release}.so$major'
7211 fi
7212 shlibpath_var=LIBPATH
7213 fi
7214 ;;
7215
7216amigaos*)
7217 library_names_spec='$libname.ixlibrary $libname.a'
7218 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7219 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'
7220 ;;
7221
7222beos*)
7223 library_names_spec='${libname}.so'
7224 dynamic_linker="$host_os ld.so"
7225 shlibpath_var=LIBRARY_PATH
7226 ;;
7227
7228bsdi4*)
7229 version_type=linux
7230 need_version=no
7231 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7232 soname_spec='${libname}${release}.so$major'
7233 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7234 shlibpath_var=LD_LIBRARY_PATH
7235 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7236 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7237 # the default ld.so.conf also contains /usr/contrib/lib and
7238 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7239 # libtool to hard-code these into programs
7240 ;;
7241
7242cygwin* | mingw* | pw32*)
7243 version_type=windows
7244 need_version=no
7245 need_lib_prefix=no
7246 case $GCC,$host_os in
7247 yes,cygwin*)
7248 library_names_spec='$libname.dll.a'
7249 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7250 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7251 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7252 dldir=$destdir/`dirname \$dlpath`~
7253 test -d \$dldir || mkdir -p \$dldir~
7254 $install_prog .libs/$dlname \$dldir/$dlname'
7255 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7256 dlpath=$dir/\$dldll~
7257 $rm \$dlpath'
7258 ;;
7259 yes,mingw*)
7260 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7262 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
7263 # It is most probably a Windows format PATH printed by
7264 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7265 # path with ; separators, and with drive letters. We can handle the
7266 # drive letters (cygwin fileutils understands them), so leave them,
7267 # especially as we might pass files found there to a mingw objdump,
7268 # which wouldn't understand a cygwinified path. Ahh.
7269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7270 else
7271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7272 fi
7273 ;;
7274 yes,pw32*)
7275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7276 ;;
7277 *)
7278 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7279 ;;
7280 esac
7281 dynamic_linker='Win32 ld.exe'
7282 # FIXME: first we should search . and the directory the executable is in
7283 shlibpath_var=PATH
7284 ;;
7285
7286darwin* | rhapsody*)
7287 dynamic_linker="$host_os dyld"
7288 version_type=darwin
7289 need_lib_prefix=no
7290 need_version=no
7291 # FIXME: Relying on posixy $() will cause problems for
7292 # cross-compilation, but unfortunately the echo tests do not
7293 # yet detect zsh echo's removal of \ escapes.
7294 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7295 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7296 shlibpath_overrides_runpath=yes
7297 shlibpath_var=DYLD_LIBRARY_PATH
7298 ;;
7299
7300dgux*)
7301 version_type=linux
7302 need_lib_prefix=no
7303 need_version=no
7304 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7305 soname_spec='${libname}${release}.so$major'
7306 shlibpath_var=LD_LIBRARY_PATH
7307 ;;
7308
7309freebsd1*)
7310 dynamic_linker=no
7311 ;;
7312
7313freebsd*)
7314 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7315 version_type=freebsd-$objformat
7316 case $version_type in
7317 freebsd-elf*)
7318 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7319 need_version=no
7320 need_lib_prefix=no
7321 ;;
7322 freebsd-*)
7323 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7324 need_version=yes
7325 ;;
7326 esac
7327 shlibpath_var=LD_LIBRARY_PATH
7328 case $host_os in
7329 freebsd2*)
7330 shlibpath_overrides_runpath=yes
7331 ;;
7332 freebsd3.01* | freebsdelf3.01*)
7333 shlibpath_overrides_runpath=yes
7334 hardcode_into_libs=yes
7335 ;;
7336 *) # from 3.2 on
7337 shlibpath_overrides_runpath=no
7338 hardcode_into_libs=yes
7339 ;;
7340 esac
7341 ;;
7342
7343gnu*)
7344 version_type=linux
7345 need_lib_prefix=no
7346 need_version=no
7347 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7348 soname_spec='${libname}${release}.so$major'
7349 shlibpath_var=LD_LIBRARY_PATH
7350 hardcode_into_libs=yes
7351 ;;
7352
7353hpux9* | hpux10* | hpux11*)
7354 # Give a soname corresponding to the major version so that dld.sl refuses to
7355 # link against other versions.
7356 version_type=sunos
7357 need_lib_prefix=no
7358 need_version=no
7359 if test "$host_cpu" = ia64; then
7360 hardcode_into_libs=yes
7361 dynamic_linker="$host_os dld.so"
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7364 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7365 soname_spec='${libname}${release}.so$major'
7366 if test "X$HPUX_IA64_MODE" = X32; then
7367 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7368 else
7369 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7370 fi
7371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7372 else
7373 dynamic_linker="$host_os dld.sl"
7374 shlibpath_var=SHLIB_PATH
7375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7376 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7377 soname_spec='${libname}${release}.sl$major'
7378 fi
7379 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7380 postinstall_cmds='chmod 555 $lib'
7381 ;;
7382
7383irix5* | irix6* | nonstopux*)
7384 case $host_os in
7385 nonstopux*) version_type=nonstopux ;;
7386 *) version_type=irix ;;
7387 esac
7388 need_lib_prefix=no
7389 need_version=no
7390 soname_spec='${libname}${release}.so$major'
7391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7392 case $host_os in
7393 irix5* | nonstopux*)
7394 libsuff= shlibsuff=
7395 ;;
7396 *)
7397 case $LD in # libtool.m4 will add one of these switches to LD
7398 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7399 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7400 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7401 *) libsuff= shlibsuff= libmagic=never-match;;
7402 esac
7403 ;;
7404 esac
7405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7406 shlibpath_overrides_runpath=no
7407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7409 ;;
7410
7411# No shared lib support for Linux oldld, aout, or coff.
7412linux*oldld* | linux*aout* | linux*coff*)
7413 dynamic_linker=no
7414 ;;
7415
7416# This must be Linux ELF.
7417linux*)
7418 version_type=linux
7419 need_lib_prefix=no
7420 need_version=no
7421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7422 soname_spec='${libname}${release}.so$major'
7423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7424 libsuff=
7425 if test "x$LINUX_64_MODE" = x64; then
7426 # Some platforms are per default 64-bit, so there's no /lib64
7427 if test -d /lib64; then
7428 libsuff=64
7429 fi
7430 fi
7431 shlibpath_var=LD_LIBRARY_PATH
7432 shlibpath_overrides_runpath=no
7433 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7434 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7435 # This implies no fast_install, which is unacceptable.
7436 # Some rework will be needed to allow for fast_install
7437 # before this can be enabled.
7438 hardcode_into_libs=yes
7439
7440 # We used to test for /lib/ld.so.1 and disable shared libraries on
7441 # powerpc, because MkLinux only supported shared libraries with the
7442 # GNU dynamic linker. Since this was broken with cross compilers,
7443 # most powerpc-linux boxes support dynamic linking these days and
7444 # people can always --disable-shared, the test was removed, and we
7445 # assume the GNU/Linux dynamic linker is in use.
7446 dynamic_linker='GNU/Linux ld.so'
7447 ;;
7448
7449netbsd*)
7450 version_type=sunos
7451 need_lib_prefix=no
7452 need_version=no
7453 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7454 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7456 dynamic_linker='NetBSD (a.out) ld.so'
7457 else
7458 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7459 soname_spec='${libname}${release}.so$major'
7460 dynamic_linker='NetBSD ld.elf_so'
7461 fi
7462 shlibpath_var=LD_LIBRARY_PATH
7463 shlibpath_overrides_runpath=yes
7464 hardcode_into_libs=yes
7465 ;;
7466
7467newsos6)
7468 version_type=linux
7469 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7470 shlibpath_var=LD_LIBRARY_PATH
7471 shlibpath_overrides_runpath=yes
7472 ;;
7473
7474nto-qnx)
7475 version_type=linux
7476 need_lib_prefix=no
7477 need_version=no
7478 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7479 soname_spec='${libname}${release}.so$major'
7480 shlibpath_var=LD_LIBRARY_PATH
7481 shlibpath_overrides_runpath=yes
7482 ;;
7483
7484openbsd*)
7485 version_type=sunos
7486 need_lib_prefix=no
7487 need_version=no
7488 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7490 shlibpath_var=LD_LIBRARY_PATH
7491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7492 case $host_os in
7493 openbsd2.[89] | openbsd2.[89].*)
7494 shlibpath_overrides_runpath=no
7495 ;;
7496 *)
7497 shlibpath_overrides_runpath=yes
7498 ;;
7499 esac
7500 else
7501 shlibpath_overrides_runpath=yes
7502 fi
7503 ;;
7504
7505os2*)
7506 libname_spec='$name'
7507 need_lib_prefix=no
7508 library_names_spec='$libname.dll $libname.a'
7509 dynamic_linker='OS/2 ld.exe'
7510 shlibpath_var=LIBPATH
7511 ;;
7512
7513osf3* | osf4* | osf5*)
7514 version_type=osf
7515 need_lib_prefix=no
7516 need_version=no
7517 soname_spec='${libname}${release}.so'
7518 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7519 shlibpath_var=LD_LIBRARY_PATH
7520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7522 ;;
7523
7524sco3.2v5*)
7525 version_type=osf
7526 soname_spec='${libname}${release}.so$major'
7527 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7528 shlibpath_var=LD_LIBRARY_PATH
7529 ;;
7530
7531solaris*)
7532 version_type=linux
7533 need_lib_prefix=no
7534 need_version=no
7535 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7536 soname_spec='${libname}${release}.so$major'
7537 shlibpath_var=LD_LIBRARY_PATH
7538 shlibpath_overrides_runpath=yes
7539 hardcode_into_libs=yes
7540 # ldd complains unless libraries are executable
7541 postinstall_cmds='chmod +x $lib'
7542 ;;
7543
7544sunos4*)
7545 version_type=sunos
7546 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7548 shlibpath_var=LD_LIBRARY_PATH
7549 shlibpath_overrides_runpath=yes
7550 if test "$with_gnu_ld" = yes; then
7551 need_lib_prefix=no
7552 fi
7553 need_version=yes
7554 ;;
7555
7556sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7557 version_type=linux
7558 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7559 soname_spec='${libname}${release}.so$major'
7560 shlibpath_var=LD_LIBRARY_PATH
7561 case $host_vendor in
7562 sni)
7563 shlibpath_overrides_runpath=no
7564 ;;
7565 motorola)
7566 need_lib_prefix=no
7567 need_version=no
7568 shlibpath_overrides_runpath=no
7569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7570 ;;
7571 esac
7572 ;;
7573
7574sysv4*MP*)
7575 if test -d /usr/nec ;then
7576 version_type=linux
7577 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7578 soname_spec='$libname.so.$major'
7579 shlibpath_var=LD_LIBRARY_PATH
7580 fi
7581 ;;
7582
7583uts4*)
7584 version_type=linux
7585 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7586 soname_spec='${libname}${release}.so$major'
7587 shlibpath_var=LD_LIBRARY_PATH
7588 ;;
7589
7590*)
7591 dynamic_linker=no
7592 ;;
7593esac
7594echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7595echo "${ECHO_T}$dynamic_linker" >&6
7596test "$dynamic_linker" = no && can_build_shared=no
7597
7598if test "x$enable_dlopen" != xyes; then
7599 enable_dlopen=unknown
7600 enable_dlopen_self=unknown
7601 enable_dlopen_self_static=unknown
7602else
7603 lt_cv_dlopen=no
7604 lt_cv_dlopen_libs=
7605
7606 case $host_os in
7607 beos*)
7608 lt_cv_dlopen="load_add_on"
7609 lt_cv_dlopen_libs=
7610 lt_cv_dlopen_self=yes
7611 ;;
7612
7613 cygwin* | mingw* | pw32*)
7614 lt_cv_dlopen="LoadLibrary"
7615 lt_cv_dlopen_libs=
7616 ;;
7617
7618 *)
7619 echo "$as_me:$LINENO: checking for shl_load" >&5
7620echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7621if test "${ac_cv_func_shl_load+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 cat >conftest.$ac_ext <<_ACEOF
7625#line $LINENO "configure"
7626#include "confdefs.h"
7627/* System header to define __stub macros and hopefully few prototypes,
7628 which can conflict with char shl_load (); below. */
7629#include <assert.h>
7630/* Override any gcc2 internal prototype to avoid an error. */
7631#ifdef __cplusplus
7632extern "C"
7633#endif
7634/* We use char because int might match the return type of a gcc2
7635 builtin and then its argument prototype would still apply. */
7636char shl_load ();
7637char (*f) ();
7638
7639#ifdef F77_DUMMY_MAIN
7640# ifdef __cplusplus
7641 extern "C"
7642# endif
7643 int F77_DUMMY_MAIN() { return 1; }
7644#endif
7645int
7646main ()
7647{
7648/* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651#if defined (__stub_shl_load) || defined (__stub___shl_load)
7652choke me
7653#else
7654f = shl_load;
7655#endif
7656
7657 ;
7658 return 0;
7659}
7660_ACEOF
7661rm -f conftest.$ac_objext conftest$ac_exeext
7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_func_shl_load=yes
7674else
7675 echo "$as_me: failed program was:" >&5
7676cat conftest.$ac_ext >&5
7677ac_cv_func_shl_load=no
7678fi
7679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680fi
7681echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7682echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7683if test $ac_cv_func_shl_load = yes; then
7684 lt_cv_dlopen="shl_load"
7685else
7686 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7687echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7688if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691 ac_check_lib_save_LIBS=$LIBS
7692LIBS="-ldld $LIBS"
7693cat >conftest.$ac_ext <<_ACEOF
7694#line $LINENO "configure"
7695#include "confdefs.h"
7696
7697/* Override any gcc2 internal prototype to avoid an error. */
7698#ifdef __cplusplus
7699extern "C"
7700#endif
7701/* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7703char shl_load ();
7704#ifdef F77_DUMMY_MAIN
7705# ifdef __cplusplus
7706 extern "C"
7707# endif
7708 int F77_DUMMY_MAIN() { return 1; }
7709#endif
7710int
7711main ()
7712{
7713shl_load ();
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext conftest$ac_exeext
7719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -s conftest$ac_exeext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_lib_dld_shl_load=yes
7731else
7732 echo "$as_me: failed program was:" >&5
7733cat conftest.$ac_ext >&5
7734ac_cv_lib_dld_shl_load=no
7735fi
7736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7737LIBS=$ac_check_lib_save_LIBS
7738fi
7739echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7740echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7741if test $ac_cv_lib_dld_shl_load = yes; then
7742 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7743else
7744 echo "$as_me:$LINENO: checking for dlopen" >&5
7745echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7746if test "${ac_cv_func_dlopen+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else
7749 cat >conftest.$ac_ext <<_ACEOF
7750#line $LINENO "configure"
7751#include "confdefs.h"
7752/* System header to define __stub macros and hopefully few prototypes,
7753 which can conflict with char dlopen (); below. */
7754#include <assert.h>
7755/* Override any gcc2 internal prototype to avoid an error. */
7756#ifdef __cplusplus
7757extern "C"
7758#endif
7759/* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761char dlopen ();
7762char (*f) ();
7763
7764#ifdef F77_DUMMY_MAIN
7765# ifdef __cplusplus
7766 extern "C"
7767# endif
7768 int F77_DUMMY_MAIN() { return 1; }
7769#endif
7770int
7771main ()
7772{
7773/* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776#if defined (__stub_dlopen) || defined (__stub___dlopen)
7777choke me
7778#else
7779f = dlopen;
7780#endif
7781
7782 ;
7783 return 0;
7784}
7785_ACEOF
7786rm -f conftest.$ac_objext conftest$ac_exeext
7787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7788 (eval $ac_link) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_func_dlopen=yes
7799else
7800 echo "$as_me: failed program was:" >&5
7801cat conftest.$ac_ext >&5
7802ac_cv_func_dlopen=no
7803fi
7804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7805fi
7806echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7807echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7808if test $ac_cv_func_dlopen = yes; then
7809 lt_cv_dlopen="dlopen"
7810else
7811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7812echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7813if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816 ac_check_lib_save_LIBS=$LIBS
7817LIBS="-ldl $LIBS"
7818cat >conftest.$ac_ext <<_ACEOF
7819#line $LINENO "configure"
7820#include "confdefs.h"
7821
7822/* Override any gcc2 internal prototype to avoid an error. */
7823#ifdef __cplusplus
7824extern "C"
7825#endif
7826/* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828char dlopen ();
7829#ifdef F77_DUMMY_MAIN
7830# ifdef __cplusplus
7831 extern "C"
7832# endif
7833 int F77_DUMMY_MAIN() { return 1; }
7834#endif
7835int
7836main ()
7837{
7838dlopen ();
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843rm -f conftest.$ac_objext conftest$ac_exeext
7844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_lib_dl_dlopen=yes
7856else
7857 echo "$as_me: failed program was:" >&5
7858cat conftest.$ac_ext >&5
7859ac_cv_lib_dl_dlopen=no
7860fi
7861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862LIBS=$ac_check_lib_save_LIBS
7863fi
7864echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7865echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7866if test $ac_cv_lib_dl_dlopen = yes; then
7867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7868else
7869 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7870echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7871if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874 ac_check_lib_save_LIBS=$LIBS
7875LIBS="-lsvld $LIBS"
7876cat >conftest.$ac_ext <<_ACEOF
7877#line $LINENO "configure"
7878#include "confdefs.h"
7879
7880/* Override any gcc2 internal prototype to avoid an error. */
7881#ifdef __cplusplus
7882extern "C"
7883#endif
7884/* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886char dlopen ();
7887#ifdef F77_DUMMY_MAIN
7888# ifdef __cplusplus
7889 extern "C"
7890# endif
7891 int F77_DUMMY_MAIN() { return 1; }
7892#endif
7893int
7894main ()
7895{
7896dlopen ();
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext conftest$ac_exeext
7902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_lib_svld_dlopen=yes
7914else
7915 echo "$as_me: failed program was:" >&5
7916cat conftest.$ac_ext >&5
7917ac_cv_lib_svld_dlopen=no
7918fi
7919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7920LIBS=$ac_check_lib_save_LIBS
7921fi
7922echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7923echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7924if test $ac_cv_lib_svld_dlopen = yes; then
7925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7926else
7927 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7928echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7929if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931else
7932 ac_check_lib_save_LIBS=$LIBS
7933LIBS="-ldld $LIBS"
7934cat >conftest.$ac_ext <<_ACEOF
7935#line $LINENO "configure"
7936#include "confdefs.h"
7937
7938/* Override any gcc2 internal prototype to avoid an error. */
7939#ifdef __cplusplus
7940extern "C"
7941#endif
7942/* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944char dld_link ();
7945#ifdef F77_DUMMY_MAIN
7946# ifdef __cplusplus
7947 extern "C"
7948# endif
7949 int F77_DUMMY_MAIN() { return 1; }
7950#endif
7951int
7952main ()
7953{
7954dld_link ();
7955 ;
7956 return 0;
7957}
7958_ACEOF
7959rm -f conftest.$ac_objext conftest$ac_exeext
7960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7961 (eval $ac_link) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_lib_dld_dld_link=yes
7972else
7973 echo "$as_me: failed program was:" >&5
7974cat conftest.$ac_ext >&5
7975ac_cv_lib_dld_dld_link=no
7976fi
7977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7978LIBS=$ac_check_lib_save_LIBS
7979fi
7980echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7981echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7982if test $ac_cv_lib_dld_dld_link = yes; then
7983 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7984fi
7985
7986
7987fi
7988
7989
7990fi
7991
7992
7993fi
7994
7995
7996fi
7997
7998
7999fi
8000
8001 ;;
8002 esac
8003
8004 if test "x$lt_cv_dlopen" != xno; then
8005 enable_dlopen=yes
8006 else
8007 enable_dlopen=no
8008 fi
8009
8010 case $lt_cv_dlopen in
8011 dlopen)
8012 save_CPPFLAGS="$CPPFLAGS"
8013 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8014
8015 save_LDFLAGS="$LDFLAGS"
8016 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8017
8018 save_LIBS="$LIBS"
8019 LIBS="$lt_cv_dlopen_libs $LIBS"
8020
8021 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8022echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8023if test "${lt_cv_dlopen_self+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 if test "$cross_compiling" = yes; then :
8027 lt_cv_dlopen_self=cross
8028else
8029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8030 lt_status=$lt_dlunknown
8031 cat > conftest.$ac_ext <<EOF
8032#line 8032 "configure"
8033#include "confdefs.h"
8034
8035#if HAVE_DLFCN_H
8036#include <dlfcn.h>
8037#endif
8038
8039#include <stdio.h>
8040
8041#ifdef RTLD_GLOBAL
8042# define LT_DLGLOBAL RTLD_GLOBAL
8043#else
8044# ifdef DL_GLOBAL
8045# define LT_DLGLOBAL DL_GLOBAL
8046# else
8047# define LT_DLGLOBAL 0
8048# endif
8049#endif
8050
8051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8052 find out it does not work in some platform. */
8053#ifndef LT_DLLAZY_OR_NOW
8054# ifdef RTLD_LAZY
8055# define LT_DLLAZY_OR_NOW RTLD_LAZY
8056# else
8057# ifdef DL_LAZY
8058# define LT_DLLAZY_OR_NOW DL_LAZY
8059# else
8060# ifdef RTLD_NOW
8061# define LT_DLLAZY_OR_NOW RTLD_NOW
8062# else
8063# ifdef DL_NOW
8064# define LT_DLLAZY_OR_NOW DL_NOW
8065# else
8066# define LT_DLLAZY_OR_NOW 0
8067# endif
8068# endif
8069# endif
8070# endif
8071#endif
8072
8073#ifdef __cplusplus
8074extern "C" void exit (int);
8075#endif
8076
8077void fnord() { int i=42;}
8078int main ()
8079{
8080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8081 int status = $lt_dlunknown;
8082
8083 if (self)
8084 {
8085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8087 /* dlclose (self); */
8088 }
8089
8090 exit (status);
8091}
8092EOF
8093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094 (eval $ac_link) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8098 (./conftest; exit; ) 2>/dev/null
8099 lt_status=$?
8100 case x$lt_status in
8101 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8102 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8103 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8104 esac
8105 else :
8106 # compilation failed
8107 lt_cv_dlopen_self=no
8108 fi
8109fi
8110rm -fr conftest*
8111
8112
8113fi
8114echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8115echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8116
8117 if test "x$lt_cv_dlopen_self" = xyes; then
8118 LDFLAGS="$LDFLAGS $link_static_flag"
8119 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8120echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8121if test "${lt_cv_dlopen_self_static+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124 if test "$cross_compiling" = yes; then :
8125 lt_cv_dlopen_self_static=cross
8126else
8127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8128 lt_status=$lt_dlunknown
8129 cat > conftest.$ac_ext <<EOF
8130#line 8130 "configure"
8131#include "confdefs.h"
8132
8133#if HAVE_DLFCN_H
8134#include <dlfcn.h>
8135#endif
8136
8137#include <stdio.h>
8138
8139#ifdef RTLD_GLOBAL
8140# define LT_DLGLOBAL RTLD_GLOBAL
8141#else
8142# ifdef DL_GLOBAL
8143# define LT_DLGLOBAL DL_GLOBAL
8144# else
8145# define LT_DLGLOBAL 0
8146# endif
8147#endif
8148
8149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8150 find out it does not work in some platform. */
8151#ifndef LT_DLLAZY_OR_NOW
8152# ifdef RTLD_LAZY
8153# define LT_DLLAZY_OR_NOW RTLD_LAZY
8154# else
8155# ifdef DL_LAZY
8156# define LT_DLLAZY_OR_NOW DL_LAZY
8157# else
8158# ifdef RTLD_NOW
8159# define LT_DLLAZY_OR_NOW RTLD_NOW
8160# else
8161# ifdef DL_NOW
8162# define LT_DLLAZY_OR_NOW DL_NOW
8163# else
8164# define LT_DLLAZY_OR_NOW 0
8165# endif
8166# endif
8167# endif
8168# endif
8169#endif
8170
8171#ifdef __cplusplus
8172extern "C" void exit (int);
8173#endif
8174
8175void fnord() { int i=42;}
8176int main ()
8177{
8178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8179 int status = $lt_dlunknown;
8180
8181 if (self)
8182 {
8183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8185 /* dlclose (self); */
8186 }
8187
8188 exit (status);
8189}
8190EOF
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8196 (./conftest; exit; ) 2>/dev/null
8197 lt_status=$?
8198 case x$lt_status in
8199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8201 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8202 esac
8203 else :
8204 # compilation failed
8205 lt_cv_dlopen_self_static=no
8206 fi
8207fi
8208rm -fr conftest*
8209
8210
8211fi
8212echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8213echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8214 fi
8215
8216 CPPFLAGS="$save_CPPFLAGS"
8217 LDFLAGS="$save_LDFLAGS"
8218 LIBS="$save_LIBS"
8219 ;;
8220 esac
8221
8222 case $lt_cv_dlopen_self in
8223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8224 *) enable_dlopen_self=unknown ;;
8225 esac
8226
8227 case $lt_cv_dlopen_self_static in
8228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8229 *) enable_dlopen_self_static=unknown ;;
8230 esac
8231fi
8232
8233
8234# Report which librarie types wil actually be built
8235echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8236echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8237echo "$as_me:$LINENO: result: $can_build_shared" >&5
8238echo "${ECHO_T}$can_build_shared" >&6
8239
8240echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8241echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8242test "$can_build_shared" = "no" && enable_shared=no
8243
8244# On AIX, shared libraries and static libraries use the same namespace, and
8245# are all built from PIC.
8246case "$host_os" in
8247aix3*)
8248 test "$enable_shared" = yes && enable_static=no
8249 if test -n "$RANLIB"; then
8250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8251 postinstall_cmds='$RANLIB $lib'
8252 fi
8253 ;;
8254
8255aix4*)
8256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8257 test "$enable_shared" = yes && enable_static=no
8258 fi
8259 ;;
8260esac
8261echo "$as_me:$LINENO: result: $enable_shared" >&5
8262echo "${ECHO_T}$enable_shared" >&6
8263
8264echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8265echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8266# Make sure either enable_shared or enable_static is yes.
8267test "$enable_shared" = yes || enable_static=yes
8268echo "$as_me:$LINENO: result: $enable_static" >&5
8269echo "${ECHO_T}$enable_static" >&6
8270
8271# The else clause should only fire when bootstrapping the
8272# libtool distribution, otherwise you forgot to ship ltmain.sh
8273# with your package, and you will get complaints that there are
8274# no rules to generate ltmain.sh.
8275if test -f "$ltmain"; then
8276 # Now quote all the things that may contain metacharacters while being
8277 # careful not to overquote the AC_SUBSTed values. We take copies of the
8278 # variables and quote the copies for generation of the libtool script.
8279 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8282 deplibs_check_method reload_flag reload_cmds need_locks \
8283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8284 lt_cv_sys_global_symbol_to_c_name_address \
8285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8286 old_postinstall_cmds old_postuninstall_cmds \
8287 compiler \
8288 CC \
8289 LD \
8290 lt_prog_compiler_wl \
8291 lt_prog_compiler_pic \
8292 lt_prog_compiler_static \
8293 lt_prog_compiler_no_builtin_flag \
8294 export_dynamic_flag_spec \
8295 thread_safe_flag_spec \
8296 whole_archive_flag_spec \
8297 old_archive_cmds \
8298 old_archive_from_new_cmds \
8299 predep_objects \
8300 postdep_objects \
8301 predeps \
8302 postdeps \
8303 compiler_lib_search_path \
8304 archive_cmds \
8305 archive_expsym_cmds \
8306 postinstall_cmds \
8307 postuninstall_cmds \
8308 old_archive_from_expsyms_cmds \
8309 allow_undefined_flag \
8310 no_undefined_flag \
8311 export_symbols_cmds \
8312 hardcode_libdir_flag_spec \
8313 hardcode_libdir_separator \
8314 lt_cv_prog_compiler_c_o \
8315 exclude_expsyms \
8316 include_expsyms; do
8317
8318 case $var in
8319 old_archive_cmds | \
8320 old_archive_from_new_cmds | \
8321 archive_cmds | \
8322 archive_expsym_cmds | \
8323 old_archive_from_expsyms_cmds | \
8324 export_symbols_cmds | \
8325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8326 postinstall_cmds | postuninstall_cmds | \
8327 old_postinstall_cmds | old_postuninstall_cmds | \
8328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8329 # Double-quote double-evaled strings.
8330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8331 ;;
8332 *)
8333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8334 ;;
8335 esac
8336 done
8337
8338 case $lt_echo in
8339 *'\$0 --fallback-echo"')
8340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8341 ;;
8342 esac
8343
8344cfgfile="${ofile}T"
8345 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8346 $rm -f "$cfgfile"
8347 { echo "$as_me:$LINENO: creating $ofile" >&5
8348echo "$as_me: creating $ofile" >&6;}
8349
8350 cat <<__EOF__ >> "$cfgfile"
8351#! $SHELL
8352
8353# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8354# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8355# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8356#
8357# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8358# Free Software Foundation, Inc.
8359#
8360# This file is part of GNU Libtool:
8361# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8362#
8363# This program is free software; you can redistribute it and/or modify
8364# it under the terms of the GNU General Public License as published by
8365# the Free Software Foundation; either version 2 of the License, or
8366# (at your option) any later version.
8367#
8368# This program is distributed in the hope that it will be useful, but
8369# WITHOUT ANY WARRANTY; without even the implied warranty of
8370# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8371# General Public License for more details.
8372#
8373# You should have received a copy of the GNU General Public License
8374# along with this program; if not, write to the Free Software
8375# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8376#
8377# As a special exception to the GNU General Public License, if you
8378# distribute this file as part of a program that contains a
8379# configuration script generated by Autoconf, you may include it under
8380# the same distribution terms that you use for the rest of that program.
8381
8382# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8383Xsed="sed -e s/^X//"
8384
8385# The HP-UX ksh and POSIX shell print the target directory to stdout
8386# if CDPATH is set.
8387if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8388
8389# The names of the tagged configurations supported by this script.
8390available_tags=
8391
8392# ### BEGIN LIBTOOL CONFIG
8393
8394# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8395
8396# Shell to use when invoking shell scripts.
8397SHELL=$lt_SHELL
8398
8399# Whether or not to build shared libraries.
8400build_libtool_libs=$enable_shared
8401
8402# Whether or not to build static libraries.
8403build_old_libs=$enable_static
8404
8405# Whether or not to add -lc for building shared libraries.
8406build_libtool_need_lc=$archive_cmds_need_lc
8407
8408# Whether or not to optimize for fast installation.
8409fast_install=$enable_fast_install
8410
8411# The host system.
8412host_alias=$host_alias
8413host=$host
8414
8415# An echo program that does not interpret backslashes.
8416echo=$lt_echo
8417
8418# The archiver.
8419AR=$lt_AR
8420AR_FLAGS=$lt_AR_FLAGS
8421
8422# A C compiler.
8423LTCC=$lt_LTCC
8424
8425# A language-specific compiler.
8426CC=$lt_compiler
8427
8428# Is the compiler the GNU C compiler?
8429with_gcc=$GCC
8430
8431# The linker used to build libraries.
8432LD=$lt_LD
8433
8434# Whether we need hard or soft links.
8435LN_S=$lt_LN_S
8436
8437# A BSD-compatible nm program.
8438NM=$lt_NM
8439
8440# A sed program that does not truncate output.
8441SED=$lt_SED
8442
8443# A symbol stripping program
8444STRIP=$STRIP
8445
8446# Used to examine libraries when file_magic_cmd begins "file"
8447MAGIC_CMD=$MAGIC_CMD
8448
8449# Used on cygwin: DLL creation program.
8450DLLTOOL="$DLLTOOL"
8451
8452# Used on cygwin: object dumper.
8453OBJDUMP="$OBJDUMP"
8454
8455# Used on cygwin: assembler.
8456AS="$AS"
8457
8458# The name of the directory that contains temporary libtool files.
8459objdir=$objdir
8460
8461# How to create reloadable object files.
8462reload_flag=$lt_reload_flag
8463reload_cmds=$lt_reload_cmds
8464
8465# How to pass a linker flag through the compiler.
8466wl=$lt_lt_prog_compiler_wl
8467
8468# Object file suffix (normally "o").
8469objext="$ac_objext"
8470
8471# Old archive suffix (normally "a").
8472libext="$libext"
8473
8474# Executable file suffix (normally "").
8475exeext="$exeext"
8476
8477# Additional compiler flags for building library objects.
8478pic_flag=$lt_lt_prog_compiler_pic
8479pic_mode=$pic_mode
8480
8481# What is the maximum length of a command?
8482max_cmd_len=$lt_cv_sys_max_cmd_len
8483
8484# Does compiler simultaneously support -c and -o options?
8485compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8486
8487# Must we lock files when doing compilation ?
8488need_locks=$lt_need_locks
8489
8490# Do we need the lib prefix for modules?
8491need_lib_prefix=$need_lib_prefix
8492
8493# Do we need a version for libraries?
8494need_version=$need_version
8495
8496# Whether dlopen is supported.
8497dlopen_support=$enable_dlopen
8498
8499# Whether dlopen of programs is supported.
8500dlopen_self=$enable_dlopen_self
8501
8502# Whether dlopen of statically linked programs is supported.
8503dlopen_self_static=$enable_dlopen_self_static
8504
8505# Compiler flag to prevent dynamic linking.
8506link_static_flag=$lt_lt_prog_compiler_static
8507
8508# Compiler flag to turn off builtin functions.
8509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8510
8511# Compiler flag to allow reflexive dlopens.
8512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8513
8514# Compiler flag to generate shared objects directly from archives.
8515whole_archive_flag_spec=$lt_whole_archive_flag_spec
8516
8517# Compiler flag to generate thread-safe objects.
8518thread_safe_flag_spec=$lt_thread_safe_flag_spec
8519
8520# Library versioning type.
8521version_type=$version_type
8522
8523# Format of library name prefix.
8524libname_spec=$lt_libname_spec
8525
8526# List of archive names. First name is the real one, the rest are links.
8527# The last name is the one that the linker finds with -lNAME.
8528library_names_spec=$lt_library_names_spec
8529
8530# The coded name of the library, if different from the real name.
8531soname_spec=$lt_soname_spec
8532
8533# Commands used to build and install an old-style archive.
8534RANLIB=$lt_RANLIB
8535old_archive_cmds=$lt_old_archive_cmds
8536old_postinstall_cmds=$lt_old_postinstall_cmds
8537old_postuninstall_cmds=$lt_old_postuninstall_cmds
8538
8539# Create an old-style archive from a shared archive.
8540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8541
8542# Create a temporary old-style archive to link instead of a shared archive.
8543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8544
8545# Commands used to build and install a shared archive.
8546archive_cmds=$lt_archive_cmds
8547archive_expsym_cmds=$lt_archive_expsym_cmds
8548postinstall_cmds=$lt_postinstall_cmds
8549postuninstall_cmds=$lt_postuninstall_cmds
8550
8551# Commands to strip libraries.
8552old_striplib=$lt_old_striplib
8553striplib=$lt_striplib
8554
8555# Dependencies to place before the objects being linked to create a
8556# shared library.
8557predep_objects=$lt_predep_objects
8558
8559# Dependencies to place after the objects being linked to create a
8560# shared library.
8561postdep_objects=$lt_postdep_objects
8562
8563# Dependencies to place before the objects being linked to create a
8564# shared library.
8565predeps=$lt_predeps
8566
8567# Dependencies to place after the objects being linked to create a
8568# shared library.
8569postdeps=$lt_postdeps
8570
8571# The library search path used internally by the compiler when linking
8572# a shared library.
8573compiler_lib_search_path=$lt_compiler_lib_search_path
8574
8575# Method to check whether dependent libraries are shared objects.
8576deplibs_check_method=$lt_deplibs_check_method
8577
8578# Command to use when deplibs_check_method == file_magic.
8579file_magic_cmd=$lt_file_magic_cmd
8580
8581# Flag that allows shared libraries with undefined symbols to be built.
8582allow_undefined_flag=$lt_allow_undefined_flag
8583
8584# Flag that forces no undefined symbols.
8585no_undefined_flag=$lt_no_undefined_flag
8586
8587# Commands used to finish a libtool library installation in a directory.
8588finish_cmds=$lt_finish_cmds
8589
8590# Same as above, but a single script fragment to be evaled but not shown.
8591finish_eval=$lt_finish_eval
8592
8593# Take the output of nm and produce a listing of raw symbols and C names.
8594global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8595
8596# Transform the output of nm in a proper C declaration
8597global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8598
8599# Transform the output of nm in a C name address pair
8600global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8601
8602# This is the shared library runtime path variable.
8603runpath_var=$runpath_var
8604
8605# This is the shared library path variable.
8606shlibpath_var=$shlibpath_var
8607
8608# Is shlibpath searched before the hard-coded library search path?
8609shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8610
8611# How to hardcode a shared library path into an executable.
8612hardcode_action=$hardcode_action
8613
8614# Whether we should hardcode library paths into libraries.
8615hardcode_into_libs=$hardcode_into_libs
8616
8617# Flag to hardcode \$libdir into a binary during linking.
8618# This must work even if \$libdir does not exist.
8619hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8620
8621# Whether we need a single -rpath flag with a separated argument.
8622hardcode_libdir_separator=$lt_hardcode_libdir_separator
8623
8624# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8625# resulting binary.
8626hardcode_direct=$hardcode_direct
8627
8628# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8629# resulting binary.
8630hardcode_minus_L=$hardcode_minus_L
8631
8632# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8633# the resulting binary.
8634hardcode_shlibpath_var=$hardcode_shlibpath_var
8635
8636# Variables whose values should be saved in libtool wrapper scripts and
8637# restored at relink time.
8638variables_saved_for_relink="$variables_saved_for_relink"
8639
8640# Whether libtool must link a program against all its dependency libraries.
8641link_all_deplibs=$link_all_deplibs
8642
8643# Compile-time system search path for libraries
8644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8645
8646# Run-time system search path for libraries
8647sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8648
8649# Fix the shell variable \$srcfile for the compiler.
8650fix_srcfile_path="$fix_srcfile_path"
8651
8652# Set to yes if exported symbols are required.
8653always_export_symbols=$always_export_symbols
8654
8655# The commands to list exported symbols.
8656export_symbols_cmds=$lt_export_symbols_cmds
8657
8658# The commands to extract the exported symbol list from a shared archive.
8659extract_expsyms_cmds=$lt_extract_expsyms_cmds
8660
8661# Symbols that should not be listed in the preloaded symbols.
8662exclude_expsyms=$lt_exclude_expsyms
8663
8664# Symbols that must always be exported.
8665include_expsyms=$lt_include_expsyms
8666
8667# ### END LIBTOOL CONFIG
8668
8669__EOF__
8670
8671
8672 case $host_os in
8673 aix3*)
8674 cat <<\EOF >> "$cfgfile"
8675
8676# AIX sometimes has problems with the GCC collect2 program. For some
8677# reason, if we set the COLLECT_NAMES environment variable, the problems
8678# vanish in a puff of smoke.
8679if test "X${COLLECT_NAMES+set}" != Xset; then
8680 COLLECT_NAMES=
8681 export COLLECT_NAMES
8682fi
8683EOF
8684 ;;
8685
8686 cygwin* | mingw* | pw32* | os2*)
8687 cat <<'EOF' >> "$cfgfile"
8688 # This is a source program that is used to create dlls on Windows
8689 # Don't remove nor modify the starting and closing comments
8690
8691# /* ltdll.c starts here */
8692# #define WIN32_LEAN_AND_MEAN
8693# #include <windows.h>
8694# #undef WIN32_LEAN_AND_MEAN
8695# #include <stdio.h>
8696#
8697# #ifndef __CYGWIN__
8698# # ifdef __CYGWIN32__
8699# # define __CYGWIN__ __CYGWIN32__
8700# # endif
8701# #endif
8702#
8703# #ifdef __cplusplus
8704# extern "C" {
8705# #endif
8706# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8707# #ifdef __cplusplus
8708# }
8709# #endif
8710#
8711# #ifdef __CYGWIN__
8712# #include <cygwin/cygwin_dll.h>
8713# DECLARE_CYGWIN_DLL( DllMain );
8714# #endif
8715# HINSTANCE __hDllInstance_base;
8716#
8717# BOOL APIENTRY
8718# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8719# {
8720# __hDllInstance_base = hInst;
8721# return TRUE;
8722# }
8723# /* ltdll.c ends here */
8724
8725 # This is a source program that is used to create import libraries
8726 # on Windows for dlls which lack them. Don't remove nor modify the
8727 # starting and closing comments
8728
8729# /* impgen.c starts here */
8730# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8731#
8732# This file is part of GNU libtool.
8733#
8734# This program is free software; you can redistribute it and/or modify
8735# it under the terms of the GNU General Public License as published by
8736# the Free Software Foundation; either version 2 of the License, or
8737# (at your option) any later version.
8738#
8739# This program is distributed in the hope that it will be useful,
8740# but WITHOUT ANY WARRANTY; without even the implied warranty of
8741# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8742# GNU General Public License for more details.
8743#
8744# You should have received a copy of the GNU General Public License
8745# along with this program; if not, write to the Free Software
8746# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8747# */
8748#
8749# #include <stdio.h> /* for printf() */
8750# #include <unistd.h> /* for open(), lseek(), read() */
8751# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8752# #include <string.h> /* for strdup() */
8753#
8754# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8755# #ifndef O_BINARY
8756# #define O_BINARY 0
8757# #endif
8758#
8759# static unsigned int
8760# pe_get16 (fd, offset)
8761# int fd;
8762# int offset;
8763# {
8764# unsigned char b[2];
8765# lseek (fd, offset, SEEK_SET);
8766# read (fd, b, 2);
8767# return b[0] + (b[1]<<8);
8768# }
8769#
8770# static unsigned int
8771# pe_get32 (fd, offset)
8772# int fd;
8773# int offset;
8774# {
8775# unsigned char b[4];
8776# lseek (fd, offset, SEEK_SET);
8777# read (fd, b, 4);
8778# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8779# }
8780#
8781# static unsigned int
8782# pe_as32 (ptr)
8783# void *ptr;
8784# {
8785# unsigned char *b = ptr;
8786# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8787# }
8788#
8789# int
8790# main (argc, argv)
8791# int argc;
8792# char *argv[];
8793# {
8794# int dll;
8795# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8796# unsigned long export_rva, export_size, nsections, secptr, expptr;
8797# unsigned long name_rvas, nexp;
8798# unsigned char *expdata, *erva;
8799# char *filename, *dll_name;
8800#
8801# filename = argv[1];
8802#
8803# dll = open(filename, O_RDONLY|O_BINARY);
8804# if (dll < 1)
8805# return 1;
8806#
8807# dll_name = filename;
8808#
8809# for (i=0; filename[i]; i++)
8810# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8811# dll_name = filename + i +1;
8812#
8813# pe_header_offset = pe_get32 (dll, 0x3c);
8814# opthdr_ofs = pe_header_offset + 4 + 20;
8815# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8816#
8817# if (num_entries < 1) /* no exports */
8818# return 1;
8819#
8820# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8821# export_size = pe_get32 (dll, opthdr_ofs + 100);
8822# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8823# secptr = (pe_header_offset + 4 + 20 +
8824# pe_get16 (dll, pe_header_offset + 4 + 16));
8825#
8826# expptr = 0;
8827# for (i = 0; i < nsections; i++)
8828# {
8829# char sname[8];
8830# unsigned long secptr1 = secptr + 40 * i;
8831# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8832# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8833# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8834# lseek(dll, secptr1, SEEK_SET);
8835# read(dll, sname, 8);
8836# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8837# {
8838# expptr = fptr + (export_rva - vaddr);
8839# if (export_rva + export_size > vaddr + vsize)
8840# export_size = vsize - (export_rva - vaddr);
8841# break;
8842# }
8843# }
8844#
8845# expdata = (unsigned char*)malloc(export_size);
8846# lseek (dll, expptr, SEEK_SET);
8847# read (dll, expdata, export_size);
8848# erva = expdata - export_rva;
8849#
8850# nexp = pe_as32 (expdata+24);
8851# name_rvas = pe_as32 (expdata+32);
8852#
8853# printf ("EXPORTS\n");
8854# for (i = 0; i<nexp; i++)
8855# {
8856# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8857# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8858# }
8859#
8860# return 0;
8861# }
8862# /* impgen.c ends here */
8863
8864EOF
8865 ;;
8866 esac
8867
8868 # We use sed instead of cat because bash on DJGPP gets confused if
8869 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8870 # text mode, it properly converts lines to CR/LF. This bash problem
8871 # is reportedly fixed, but why not run on old versions too?
8872 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8873
8874 mv -f "$cfgfile" "$ofile" || \
8875 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8876 chmod +x "$ofile"
8877
8878else
8879 # If there is no Makefile yet, we rely on a make rule to execute
8880 # `config.status --recheck' to rerun these tests and create the
8881 # libtool script then.
8882 test -f Makefile && make "$ltmain"
8883fi
8884
8885
8886ac_ext=c
8887ac_cpp='$CPP $CPPFLAGS'
8888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890ac_compiler_gnu=$ac_cv_c_compiler_gnu
8891
8892CC="$lt_save_CC"
8893
8894
8895# Check whether --with-tags or --without-tags was given.
8896if test "${with_tags+set}" = set; then
8897 withval="$with_tags"
8898 tagnames="$withval"
8899else
8900 tagnames="CXX,GCJ"
8901 case $host_os in
8902 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8903 esac
8904fi;
8905
8906if test -f "$ltmain" && test -n "$tagnames"; then
8907 if test ! -f "${ofile}"; then
8908 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8909echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8910 fi
8911
8912 if test -z "$LTCC"; then
8913 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8914 if test -z "$LTCC"; then
8915 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8916echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8917 else
8918 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8919echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8920 fi
8921 fi
8922
8923 # Extract list of available tagged configurations in $ofile.
8924 # Note that this assumes the entire list is on one line.
8925 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8926
8927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8928 for tagname in $tagnames; do
8929 IFS="$lt_save_ifs"
8930 # Check whether tagname contains only valid characters
8931 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8932 "") ;;
8933 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8934echo "$as_me: error: invalid tag name: $tagname" >&2;}
8935 { (exit 1); exit 1; }; }
8936 ;;
8937 esac
8938
8939 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8940 then
8941 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8942echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8943 { (exit 1); exit 1; }; }
8944 fi
8945
8946 # Update the list of available tags.
8947 if test -n "$tagname"; then
8948 echo appending configuration tag \"$tagname\" to $ofile
8949
8950 case $tagname in
8951 CXX)
8952 ac_ext=cc
8953ac_cpp='$CXXCPP $CPPFLAGS'
8954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8957
8958
8959
8960
8961archive_cmds_need_lc_CXX=no
8962allow_undefined_flag_CXX=
8963always_export_symbols_CXX=no
8964archive_expsym_cmds_CXX=
8965export_dynamic_flag_spec_CXX=
8966hardcode_direct_CXX=no
8967hardcode_libdir_flag_spec_CXX=
8968hardcode_libdir_separator_CXX=
8969hardcode_minus_L_CXX=no
8970link_all_deplibs_CXX=unknown
8971old_archive_cmds_CXX=$old_archive_cmds
8972no_undefined_flag_CXX=
8973whole_archive_flag_spec_CXX=
8974
8975# Dependencies to place before and after the object being linked:
8976predep_objects_CXX=
8977postdep_objects_CXX=
8978predeps_CXX=
8979postdeps_CXX=
8980compiler_lib_search_path_CXX=
8981
8982# Source file extension for C test sources.
8983ac_ext=cc
8984
8985# Object file extension for compiled C test sources.
8986objext=o
8987objext_CXX=$objext
8988
8989# Code to be used in simple compile tests
8990lt_simple_compile_test_code="int some_variable = 0;"
8991
8992# Code to be used in simple link tests
8993lt_simple_link_test_code='int main(int char *) { return(0); }'
8994
8995# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8996
8997# If no C compiler was specified, use CC.
8998LTCC=${LTCC-"$CC"}
8999
9000# Allow CC to be a program name with arguments.
9001set dummy $CC
9002compiler="$2"
9003
9004
9005# Allow CC to be a program name with arguments.
9006lt_save_CC="$CC"
9007CC=${CXX-"c++"}
9008set dummy $CC
9009compiler="$2"
9010compiler_CXX=$CC
9011cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9012
9013# We don't want -fno-exception wen compiling C++ code, so set the
9014# no_builtin_flag separately
9015if test "$GXX" = yes; then
9016 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9017else
9018 lt_prog_compiler_no_builtin_flag_CXX=
9019fi
9020
9021if test "$GXX" = yes; then
9022 # Set up default GNU C++ configuration
9023
9024 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9025 # archiving commands below assume that GNU ld is being used.
9026 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
9027 egrep 'GNU ld' > /dev/null; then
9028 with_gnu_ld=yes
9029
9030 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 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'
9032
9033 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9035
9036 # If archive_cmds runs LD, not CC, wlarc should be empty
9037 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9038 # investigate it a little bit more. (MM)
9039 wlarc='${wl}'
9040
9041 # ancient GNU ld didn't support --whole-archive et. al.
9042 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9043 egrep 'no-whole-archive' > /dev/null; then
9044 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9045 else
9046 whole_archive_flag_spec_CXX=
9047 fi
9048 else
9049 with_gnu_ld=no
9050 wlarc=
9051
9052 # A generic and very simple default shared library creation
9053 # command for GNU C++ for the case where it uses the native
9054 # linker, instead of GNU ld. If possible, this setting should
9055 # overridden to take advantage of the native linker features on
9056 # the platform it is being used on.
9057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9058 fi
9059
9060 # Commands to make compiler produce verbose output that lists
9061 # what "hidden" libraries, object files and flags are used when
9062 # linking a shared library.
9063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9064
9065else
9066 GXX=no
9067 with_gnu_ld=no
9068 wlarc=
9069fi
9070
9071# PORTME: fill in a description of your system's C++ link characteristics
9072echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9073echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9074ld_shlibs_CXX=yes
9075case $host_os in
9076 aix3*)
9077 # FIXME: insert proper C++ library support
9078 ld_shlibs_CXX=no
9079 ;;
9080 aix4* | aix5*)
9081 if test "$host_cpu" = ia64; then
9082 # On IA64, the linker does run time linking by default, so we don't
9083 # have to do anything special.
9084 aix_use_runtimelinking=no
9085 exp_sym_flag='-Bexport'
9086 no_entry_flag=""
9087 else
9088 # KDE requires run time linking. Make it the default.
9089 aix_use_runtimelinking=yes
9090 exp_sym_flag='-bexport'
9091 no_entry_flag='-bnoentry'
9092 fi
9093
9094 # When large executables or shared objects are built, AIX ld can
9095 # have problems creating the table of contents. If linking a library
9096 # or program results in "error TOC overflow" add -mminimal-toc to
9097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9099
9100 archive_cmds_CXX=''
9101 hardcode_direct_CXX=yes
9102 hardcode_libdir_separator_CXX=':'
9103 link_all_deplibs_CXX=yes
9104
9105 if test "$GXX" = yes; then
9106 case $host_os in aix4.012|aix4.012.*)
9107 # We only want to do this on AIX 4.2 and lower, the check
9108 # below for broken collect2 doesn't work under 4.3+
9109 collect2name=`${CC} -print-prog-name=collect2`
9110 if test -f "$collect2name" && \
9111 strings "$collect2name" | grep resolve_lib_name >/dev/null
9112 then
9113 # We have reworked collect2
9114 hardcode_direct_CXX=yes
9115 else
9116 # We have old collect2
9117 hardcode_direct_CXX=unsupported
9118 # It fails to find uninstalled libraries when the uninstalled
9119 # path is not listed in the libpath. Setting hardcode_minus_L
9120 # to unsupported forces relinking
9121 hardcode_minus_L_CXX=yes
9122 hardcode_libdir_flag_spec_CXX='-L$libdir'
9123 hardcode_libdir_separator_CXX=
9124 fi
9125 esac
9126 shared_flag='-shared'
9127 else
9128 # not using gcc
9129 if test "$host_cpu" = ia64; then
9130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9131 # chokes on -Wl,-G. The following line is correct:
9132 shared_flag='-G'
9133 else
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag='-qmkshrobj ${wl}-G'
9136 else
9137 shared_flag='-qmkshrobj'
9138 fi
9139 fi
9140 fi
9141
9142 # Let the compiler handle the export list.
9143 always_export_symbols_CXX=no
9144 if test "$aix_use_runtimelinking" = yes; then
9145 # Warning - without using the other runtime loading flags (-brtl),
9146 # -berok will link without error, but may produce a broken library.
9147 allow_undefined_flag_CXX='-berok'
9148 # Determine the default libpath from the value encoded in an empty executable.
9149 cat >conftest.$ac_ext <<_ACEOF
9150#line $LINENO "configure"
9151#include "confdefs.h"
9152
9153#ifdef F77_DUMMY_MAIN
9154# ifdef __cplusplus
9155 extern "C"
9156# endif
9157 int F77_DUMMY_MAIN() { return 1; }
9158#endif
9159int
9160main ()
9161{
9162
9163 ;
9164 return 0;
9165}
9166_ACEOF
9167rm -f conftest.$ac_objext conftest$ac_exeext
9168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169 (eval $ac_link) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -s conftest$ac_exeext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179
9180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9181}'`
9182# Check for a 64-bit object if we didn't find anything.
9183if 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; }
9184}'`; fi
9185else
9186 echo "$as_me: failed program was:" >&5
9187cat conftest.$ac_ext >&5
9188fi
9189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9190if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9191
9192 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9193
9194 archive_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` '" $shared_flag"
9195 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}$exp_sym_flag:\$export_symbols $shared_flag"
9196 else
9197 if test "$host_cpu" = ia64; then
9198 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9199 allow_undefined_flag_CXX="-z nodefs"
9200 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"
9201 else
9202 # Determine the default libpath from the value encoded in an empty executable.
9203 cat >conftest.$ac_ext <<_ACEOF
9204#line $LINENO "configure"
9205#include "confdefs.h"
9206
9207#ifdef F77_DUMMY_MAIN
9208# ifdef __cplusplus
9209 extern "C"
9210# endif
9211 int F77_DUMMY_MAIN() { return 1; }
9212#endif
9213int
9214main ()
9215{
9216
9217 ;
9218 return 0;
9219}
9220_ACEOF
9221rm -f conftest.$ac_objext conftest$ac_exeext
9222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9223 (eval $ac_link) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233
9234aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9235}'`
9236# Check for a 64-bit object if we didn't find anything.
9237if 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; }
9238}'`; fi
9239else
9240 echo "$as_me: failed program was:" >&5
9241cat conftest.$ac_ext >&5
9242fi
9243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9244if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9245
9246 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9247 # Warning - without using the other run time loading flags,
9248 # -berok will link without error, but may produce a broken library.
9249 no_undefined_flag_CXX=' ${wl}-bernotok'
9250 allow_undefined_flag_CXX=' ${wl}-berok'
9251 # -bexpall does not export symbols beginning with underscore (_)
9252 always_export_symbols_CXX=yes
9253 # Exported symbols can be pulled into shared objects from archives
9254 whole_archive_flag_spec_CXX=' '
9255 archive_cmds_need_lc_CXX=yes
9256 # This is similar to how AIX traditionally builds it's shared libraries.
9257 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'
9258 fi
9259 fi
9260 ;;
9261 chorus*)
9262 case $cc_basename in
9263 *)
9264 # FIXME: insert proper C++ library support
9265 ld_shlibs_CXX=no
9266 ;;
9267 esac
9268 ;;
9269 dgux*)
9270 case $cc_basename in
9271 ec++)
9272 # FIXME: insert proper C++ library support
9273 ld_shlibs_CXX=no
9274 ;;
9275 ghcx)
9276 # Green Hills C++ Compiler
9277 # FIXME: insert proper C++ library support
9278 ld_shlibs_CXX=no
9279 ;;
9280 *)
9281 # FIXME: insert proper C++ library support
9282 ld_shlibs_CXX=no
9283 ;;
9284 esac
9285 ;;
9286 freebsd12*)
9287 # C++ shared libraries reported to be fairly broken before switch to ELF
9288 ld_shlibs_CXX=no
9289 ;;
9290 freebsd-elf*)
9291 archive_cmds_need_lc_CXX=no
9292 ;;
9293 freebsd*)
9294 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9295 # conventions
9296 ld_shlibs_CXX=yes
9297 ;;
9298 gnu*)
9299 ;;
9300 hpux*)
9301 if test $with_gnu_ld = no; then
9302 if test "$host_cpu" = ia64; then
9303 hardcode_libdir_flag_spec_CXX='-L$libdir'
9304 else
9305 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9306 hardcode_libdir_separator_CXX=:
9307 export_dynamic_flag_spec_CXX='${wl}-E'
9308 fi
9309 fi
9310 if test "$host_cpu" = ia64; then
9311 hardcode_direct_CXX=no
9312 hardcode_shlibpath_var_CXX=no
9313 else
9314 hardcode_direct_CXX=yes
9315 fi
9316 hardcode_minus_L_CXX=yes # Not in the search PATH,
9317 # but as the default
9318 # location of the library.
9319
9320 case $cc_basename in
9321 CC)
9322 # FIXME: insert proper C++ library support
9323 ld_shlibs_CXX=no
9324 ;;
9325 aCC)
9326 case $host_os in
9327 hpux9*)
9328 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'
9329 ;;
9330 *)
9331 if test "$host_cpu" = ia64; then
9332 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9333 else
9334 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9335 fi
9336 ;;
9337 esac
9338 # Commands to make compiler produce verbose output that lists
9339 # what "hidden" libraries, object files and flags are used when
9340 # linking a shared library.
9341 #
9342 # There doesn't appear to be a way to prevent this compiler from
9343 # explicitly linking system object files so we need to strip them
9344 # from the output so that they don't get included in the library
9345 # dependencies.
9346 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'
9347 ;;
9348 *)
9349 if test "$GXX" = yes; then
9350 if test $with_gnu_ld = no; then
9351 case $host_os in
9352 hpux9*)
9353 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'
9354 ;;
9355 *)
9356 if test "$host_cpu" = ia64; then
9357 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9358 else
9359 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'
9360 fi
9361 ;;
9362 esac
9363 fi
9364 else
9365 # FIXME: insert proper C++ library support
9366 ld_shlibs_CXX=no
9367 fi
9368 ;;
9369 esac
9370 ;;
9371 irix5* | irix6*)
9372 case $cc_basename in
9373 CC)
9374 # SGI C++
9375 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'
9376
9377 # Archives containing C++ object files must be created using
9378 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9379 # necessary to make sure instantiated templates are included
9380 # in the archive.
9381 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9382 ;;
9383 *)
9384 if test "$GXX" = yes; then
9385 if test "$with_gnu_ld" = no; then
9386 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'
9387 else
9388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9389 fi
9390 fi
9391 link_all_deplibs_CXX=yes
9392 ;;
9393 esac
9394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9395 hardcode_libdir_separator_CXX=:
9396 ;;
9397 linux*)
9398 case $cc_basename in
9399 KCC)
9400 # Kuck and Associates, Inc. (KAI) C++ Compiler
9401
9402 # KCC will only create a shared library if the output file
9403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9404 # to its proper name (with version) after linking.
9405 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9406 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9407
9408 # Commands to make compiler produce verbose output that lists
9409 # what "hidden" libraries, object files and flags are used when
9410 # linking a shared library.
9411 #
9412 # There doesn't appear to be a way to prevent this compiler from
9413 # explicitly linking system object files so we need to strip them
9414 # from the output so that they don't get included in the library
9415 # dependencies.
9416 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9417
9418 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9420
9421 # Archives containing C++ object files must be created using
9422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9423 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9424 ;;
9425 cxx)
9426 # Compaq C++
9427 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 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'
9429
9430 runpath_var=LD_RUN_PATH
9431 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9432 hardcode_libdir_separator_CXX=:
9433
9434 # Commands to make compiler produce verbose output that lists
9435 # what "hidden" libraries, object files and flags are used when
9436 # linking a shared library.
9437 #
9438 # There doesn't appear to be a way to prevent this compiler from
9439 # explicitly linking system object files so we need to strip them
9440 # from the output so that they don't get included in the library
9441 # dependencies.
9442 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'
9443 ;;
9444 esac
9445 ;;
9446 lynxos*)
9447 # FIXME: insert proper C++ library support
9448 ld_shlibs_CXX=no
9449 ;;
9450 m88k*)
9451 # FIXME: insert proper C++ library support
9452 ld_shlibs_CXX=no
9453 ;;
9454 mvs*)
9455 case $cc_basename in
9456 cxx)
9457 # FIXME: insert proper C++ library support
9458 ld_shlibs_CXX=no
9459 ;;
9460 *)
9461 # FIXME: insert proper C++ library support
9462 ld_shlibs_CXX=no
9463 ;;
9464 esac
9465 ;;
9466 netbsd*)
9467 # NetBSD uses g++ - do we need to do anything?
9468 ;;
9469 osf3*)
9470 case $cc_basename in
9471 KCC)
9472 # Kuck and Associates, Inc. (KAI) C++ Compiler
9473
9474 # KCC will only create a shared library if the output file
9475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9476 # to its proper name (with version) after linking.
9477 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9478
9479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9480 hardcode_libdir_separator_CXX=:
9481
9482 # Archives containing C++ object files must be created using
9483 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9484 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9485
9486 ;;
9487 RCC)
9488 # Rational C++ 2.4.1
9489 # FIXME: insert proper C++ library support
9490 ld_shlibs_CXX=no
9491 ;;
9492 cxx)
9493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9494 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'
9495
9496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9497 hardcode_libdir_separator_CXX=:
9498
9499 # Commands to make compiler produce verbose output that lists
9500 # what "hidden" libraries, object files and flags are used when
9501 # linking a shared library.
9502 #
9503 # There doesn't appear to be a way to prevent this compiler from
9504 # explicitly linking system object files so we need to strip them
9505 # from the output so that they don't get included in the library
9506 # dependencies.
9507 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'
9508 ;;
9509 *)
9510 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9511 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9512 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'
9513
9514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9515 hardcode_libdir_separator_CXX=:
9516
9517 # Commands to make compiler produce verbose output that lists
9518 # what "hidden" libraries, object files and flags are used when
9519 # linking a shared library.
9520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9521
9522 else
9523 # FIXME: insert proper C++ library support
9524 ld_shlibs_CXX=no
9525 fi
9526 ;;
9527 esac
9528 ;;
9529 osf4* | osf5*)
9530 case $cc_basename in
9531 KCC)
9532 # Kuck and Associates, Inc. (KAI) C++ Compiler
9533
9534 # KCC will only create a shared library if the output file
9535 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9536 # to its proper name (with version) after linking.
9537 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9538
9539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9540 hardcode_libdir_separator_CXX=:
9541
9542 # Archives containing C++ object files must be created using
9543 # the KAI C++ compiler.
9544 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9545 ;;
9546 RCC)
9547 # Rational C++ 2.4.1
9548 # FIXME: insert proper C++ library support
9549 ld_shlibs_CXX=no
9550 ;;
9551 cxx)
9552 allow_undefined_flag_CXX=' -expect_unresolved \*'
9553 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'
9554 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9555 echo "-hidden">> $lib.exp~
9556 $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~
9557 $rm $lib.exp'
9558
9559 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9560 hardcode_libdir_separator_CXX=:
9561
9562 # Commands to make compiler produce verbose output that lists
9563 # what "hidden" libraries, object files and flags are used when
9564 # linking a shared library.
9565 #
9566 # There doesn't appear to be a way to prevent this compiler from
9567 # explicitly linking system object files so we need to strip them
9568 # from the output so that they don't get included in the library
9569 # dependencies.
9570 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'
9571 ;;
9572 *)
9573 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9575 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'
9576
9577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator_CXX=:
9579
9580 # Commands to make compiler produce verbose output that lists
9581 # what "hidden" libraries, object files and flags are used when
9582 # linking a shared library.
9583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9584
9585 else
9586 # FIXME: insert proper C++ library support
9587 ld_shlibs_CXX=no
9588 fi
9589 ;;
9590 esac
9591 ;;
9592 psos*)
9593 # FIXME: insert proper C++ library support
9594 ld_shlibs_CXX=no
9595 ;;
9596 sco*)
9597 archive_cmds_need_lc_CXX=no
9598 case $cc_basename in
9599 CC)
9600 # FIXME: insert proper C++ library support
9601 ld_shlibs_CXX=no
9602 ;;
9603 *)
9604 # FIXME: insert proper C++ library support
9605 ld_shlibs_CXX=no
9606 ;;
9607 esac
9608 ;;
9609 sunos4*)
9610 case $cc_basename in
9611 CC)
9612 # Sun C++ 4.x
9613 # FIXME: insert proper C++ library support
9614 ld_shlibs_CXX=no
9615 ;;
9616 lcc)
9617 # Lucid
9618 # FIXME: insert proper C++ library support
9619 ld_shlibs_CXX=no
9620 ;;
9621 *)
9622 # FIXME: insert proper C++ library support
9623 ld_shlibs_CXX=no
9624 ;;
9625 esac
9626 ;;
9627 solaris*)
9628 case $cc_basename in
9629 CC)
9630 # Sun C++ 4.2, 5.x and Centerline C++
9631 no_undefined_flag_CXX=' -zdefs'
9632 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9633 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9634 $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'
9635
9636 hardcode_libdir_flag_spec_CXX='-R$libdir'
9637 hardcode_shlibpath_var_CXX=no
9638 case $host_os in
9639 solaris2.0-5 | solaris2.0-5.*) ;;
9640 *)
9641 # The C++ compiler is used as linker so we must use $wl
9642 # flag to pass the commands to the underlying system
9643 # linker.
9644 # Supported since Solaris 2.6 (maybe 2.5.1?)
9645 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9646 ;;
9647 esac
9648 link_all_deplibs_CXX=yes
9649
9650 # Commands to make compiler produce verbose output that lists
9651 # what "hidden" libraries, object files and flags are used when
9652 # linking a shared library.
9653 #
9654 # There doesn't appear to be a way to prevent this compiler from
9655 # explicitly linking system object files so we need to strip them
9656 # from the output so that they don't get included in the library
9657 # dependencies.
9658 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9659
9660 # Archives containing C++ object files must be created using
9661 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9662 # necessary to make sure instantiated templates are included
9663 # in the archive.
9664 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9665 ;;
9666 gcx)
9667 # Green Hills C++ Compiler
9668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9669
9670 # The C++ compiler must be used to create the archive.
9671 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9672 ;;
9673 *)
9674 # GNU C++ compiler with Solaris linker
9675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9676 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9677 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9678 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9679 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9680 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9681
9682 # Commands to make compiler produce verbose output that lists
9683 # what "hidden" libraries, object files and flags are used when
9684 # linking a shared library.
9685 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9686 else
9687 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9688 # platform.
9689 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9690 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9691 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9692
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9696 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9697 fi
9698
9699 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9700 fi
9701 ;;
9702 esac
9703 ;;
9704 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9705 archive_cmds_need_lc_CXX=no
9706 ;;
9707 tandem*)
9708 case $cc_basename in
9709 NCC)
9710 # NonStop-UX NCC 3.20
9711 # FIXME: insert proper C++ library support
9712 ld_shlibs_CXX=no
9713 ;;
9714 *)
9715 # FIXME: insert proper C++ library support
9716 ld_shlibs_CXX=no
9717 ;;
9718 esac
9719 ;;
9720 vxworks*)
9721 # FIXME: insert proper C++ library support
9722 ld_shlibs_CXX=no
9723 ;;
9724 *)
9725 # FIXME: insert proper C++ library support
9726 ld_shlibs_CXX=no
9727 ;;
9728esac
9729echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9730echo "${ECHO_T}$ld_shlibs_CXX" >&6
9731test "$ld_shlibs_CXX" = no && can_build_shared=no
9732
9733# Figure out "hidden" C++ library dependencies from verbose
9734# compiler output whening linking a shared library.
9735cat > conftest.$ac_ext <<EOF
9736class Foo
9737{
9738public:
9739 Foo (void) { a = 0; }
9740private:
9741 int a;
9742};
9743EOF
9744
9745
9746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; then
9751 # Parse the compiler output and extract the necessary
9752 # objects, libraries and library flags.
9753
9754 # Sentinel used to keep track of whether or not we are before
9755 # the conftest object file.
9756 pre_test_object_deps_done=no
9757
9758 # The `*' in the case matches for architectures that use `case' in
9759 # $output_verbose_cmd can trigger glob expansion during the loop
9760 # eval without this substitution.
9761 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9762
9763 for p in `eval $output_verbose_link_cmd`; do
9764 case $p in
9765
9766 -L* | -R* | -l*)
9767 # Some compilers place space between "-{L,R}" and the path.
9768 # Remove the space.
9769 if test $p = "-L" \
9770 || test $p = "-R"; then
9771 prev=$p
9772 continue
9773 else
9774 prev=
9775 fi
9776
9777 if test "$pre_test_object_deps_done" = no; then
9778 case $p in
9779 -L* | -R*)
9780 # Internal compiler library paths should come after those
9781 # provided the user. The postdeps already come after the
9782 # user supplied libs so there is no need to process them.
9783 if test -z "$compiler_lib_search_path_CXX"; then
9784 compiler_lib_search_path_CXX="${prev}${p}"
9785 else
9786 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9787 fi
9788 ;;
9789 # The "-l" case would never come before the object being
9790 # linked, so don't bother handling this case.
9791 esac
9792 else
9793 if test -z "$postdeps_CXX"; then
9794 postdeps_CXX="${prev}${p}"
9795 else
9796 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9797 fi
9798 fi
9799 ;;
9800
9801 *.$objext|*.$libext)
9802 # This assumes that the test object file only shows up
9803 # once in the compiler output.
9804 if test "$p" = "conftest.$objext"; then
9805 pre_test_object_deps_done=yes
9806 continue
9807 fi
9808
9809 if test "$pre_test_object_deps_done" = no; then
9810 if test -z "$predep_objects_CXX"; then
9811 predep_objects_CXX="$p"
9812 else
9813 predep_objects_CXX="$predep_objects_CXX $p"
9814 fi
9815 else
9816 if test -z "$postdep_objects_CXX"; then
9817 postdep_objects_CXX="$p"
9818 else
9819 postdep_objects_CXX="$postdep_objects_CXX $p"
9820 fi
9821 fi
9822 ;;
9823
9824 *) ;; # Ignore the rest.
9825
9826 esac
9827 done
9828
9829 # Clean up.
9830 rm -f a.out
9831else
9832 echo "libtool.m4: error: problem compiling C++ test program"
9833fi
9834
9835$rm -f confest.$objext
9836
9837case " $postdeps_CXX " in
9838*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9839*) archive_cmds_need_lc_CXX=yes ;;
9840esac
9841
9842GCC_CXX="$GXX"
9843LD_CXX="$LD"
9844
9845lt_prog_compiler_wl_CXX=
9846lt_prog_compiler_pic_CXX=
9847lt_prog_compiler_static_CXX=
9848
9849echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9850echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9851
9852 # C++ specific cases for pic, static, wl, etc.
9853 if test "$GXX" = yes; then
9854 lt_prog_compiler_wl_CXX='-Wl,'
9855 lt_prog_compiler_static_CXX='-static'
9856
9857 case $host_os in
9858 aix*)
9859 # All AIX code is PIC.
9860 if test "$host_cpu" = ia64; then
9861 # AIX 5 now supports IA64 processor
9862 lt_prog_compiler_static_CXX='-Bstatic'
9863 fi
9864 ;;
9865 amigaos*)
9866 # FIXME: we need at least 68020 code to build shared libraries, but
9867 # adding the `-m68020' flag to GCC prevents building anything better,
9868 # like `-m68040'.
9869 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9870 ;;
9871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9872 # PIC is the default for these OSes.
9873 ;;
9874 cygwin* | mingw* | os2*)
9875 # This hack is so that the source file can tell whether it is being
9876 # built for inclusion in a dll (and should export symbols for example).
9877 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9878 ;;
9879 darwin* | rhapsody*)
9880 # PIC is the default on this platform
9881 # Common symbols not allowed in MH_DYLIB files
9882 lt_prog_compiler_pic_CXX='-fno-common'
9883 ;;
9884 *djgpp*)
9885 # DJGPP does not support shared libraries at all
9886 lt_prog_compiler_pic_CXX=
9887 ;;
9888 sysv4*MP*)
9889 if test -d /usr/nec; then
9890 lt_prog_compiler_pic_CXX=-Kconform_pic
9891 fi
9892 ;;
9893 hpux*)
9894 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9895 if test "$host_cpu" != ia64; then
9896 lt_prog_compiler_pic_CXX='-fPIC'
9897 fi
9898 ;;
9899 *)
9900 lt_prog_compiler_pic_CXX='-fPIC'
9901 ;;
9902 esac
9903 else
9904 case $host_os in
9905 aix4* | aix5*)
9906 # All AIX code is PIC.
9907 if test "$host_cpu" = ia64; then
9908 # AIX 5 now supports IA64 processor
9909 lt_prog_compiler_static_CXX='-Bstatic'
9910 else
9911 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9912 fi
9913 ;;
9914 chorus*)
9915 case $cc_basename in
9916 cxch68)
9917 # Green Hills C++ Compiler
9918 # _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"
9919 ;;
9920 esac
9921 ;;
9922 dgux*)
9923 case $cc_basename in
9924 ec++)
9925 lt_prog_compiler_pic_CXX='-KPIC'
9926 ;;
9927 ghcx)
9928 # Green Hills C++ Compiler
9929 lt_prog_compiler_pic_CXX='-pic'
9930 ;;
9931 *)
9932 ;;
9933 esac
9934 ;;
9935 freebsd*)
9936 # FreeBSD uses GNU C++
9937 ;;
9938 hpux9* | hpux10* | hpux11*)
9939 case $cc_basename in
9940 CC)
9941 lt_prog_compiler_wl_CXX='-Wl,'
9942 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9943 if test "$host_cpu" != ia64; then
9944 lt_prog_compiler_pic_CXX='+Z'
9945 fi
9946 ;;
9947 aCC)
9948 lt_prog_compiler_wl_CXX='-Wl,'
9949 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9950 if test "$host_cpu" != ia64; then
9951 lt_prog_compiler_pic_CXX='+Z'
9952 fi
9953 ;;
9954 *)
9955 ;;
9956 esac
9957 ;;
9958 irix5* | irix6* | nonstopux*)
9959 case $cc_basename in
9960 CC)
9961 lt_prog_compiler_wl_CXX='-Wl,'
9962 lt_prog_compiler_static_CXX='-non_shared'
9963 # CC pic flag -KPIC is the default.
9964 ;;
9965 *)
9966 ;;
9967 esac
9968 ;;
9969 linux*)
9970 case $cc_basename in
9971 KCC)
9972 # KAI C++ Compiler
9973 lt_prog_compiler_wl_CXX='--backend -Wl,'
9974 lt_prog_compiler_pic_CXX='-fPIC'
9975 ;;
9976 cxx)
9977 # Compaq C++
9978 # Make sure the PIC flag is empty. It appears that all Alpha
9979 # Linux and Compaq Tru64 Unix objects are PIC.
9980 lt_prog_compiler_pic_CXX=
9981 lt_prog_compiler_static_CXX='-non_shared'
9982 ;;
9983 *)
9984 ;;
9985 esac
9986 ;;
9987 lynxos*)
9988 ;;
9989 m88k*)
9990 ;;
9991 mvs*)
9992 case $cc_basename in
9993 cxx)
9994 lt_prog_compiler_pic_CXX='-W c,exportall'
9995 ;;
9996 *)
9997 ;;
9998 esac
9999 ;;
10000 netbsd*)
10001 ;;
10002 osf3* | osf4* | osf5*)
10003 case $cc_basename in
10004 KCC)
10005 lt_prog_compiler_wl_CXX='--backend -Wl,'
10006 ;;
10007 RCC)
10008 # Rational C++ 2.4.1
10009 lt_prog_compiler_pic_CXX='-pic'
10010 ;;
10011 cxx)
10012 # Digital/Compaq C++
10013 lt_prog_compiler_wl_CXX='-Wl,'
10014 # Make sure the PIC flag is empty. It appears that all Alpha
10015 # Linux and Compaq Tru64 Unix objects are PIC.
10016 lt_prog_compiler_pic_CXX=
10017 lt_prog_compiler_static_CXX='-non_shared'
10018 ;;
10019 *)
10020 ;;
10021 esac
10022 ;;
10023 psos*)
10024 ;;
10025 sco*)
10026 case $cc_basename in
10027 CC)
10028 lt_prog_compiler_pic_CXX='-fPIC'
10029 ;;
10030 *)
10031 ;;
10032 esac
10033 ;;
10034 solaris*)
10035 case $cc_basename in
10036 CC)
10037 # Sun C++ 4.2, 5.x and Centerline C++
10038 lt_prog_compiler_pic_CXX='-KPIC'
10039 lt_prog_compiler_static_CXX='-Bstatic'
10040 lt_prog_compiler_wl_CXX='-Qoption ld '
10041 ;;
10042 gcx)
10043 # Green Hills C++ Compiler
10044 lt_prog_compiler_pic_CXX='-PIC'
10045 ;;
10046 *)
10047 ;;
10048 esac
10049 ;;
10050 sunos4*)
10051 case $cc_basename in
10052 CC)
10053 # Sun C++ 4.x
10054 lt_prog_compiler_pic_CXX='-pic'
10055 lt_prog_compiler_static_CXX='-Bstatic'
10056 ;;
10057 lcc)
10058 # Lucid
10059 lt_prog_compiler_pic_CXX='-pic'
10060 ;;
10061 *)
10062 ;;
10063 esac
10064 ;;
10065 tandem*)
10066 case $cc_basename in
10067 NCC)
10068 # NonStop-UX NCC 3.20
10069 lt_prog_compiler_pic_CXX='-KPIC'
10070 ;;
10071 *)
10072 ;;
10073 esac
10074 ;;
10075 unixware*)
10076 ;;
10077 vxworks*)
10078 ;;
10079 *)
10080 lt_prog_compiler_can_build_shared_CXX=no
10081 ;;
10082 esac
10083 fi
10084
10085echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10086echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10087
10088#
10089# Check to make sure the PIC flag actually works.
10090#
10091if test -n "$lt_prog_compiler_pic_CXX"; then
10092 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10093echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10094if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097 lt_prog_compiler_pic_works_CXX=no
10098 ac_outfile=conftest.$ac_objext
10099 save_CFLAGS="$CFLAGS"
10100 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
10101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10102 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10103 # The compiler can only warn and ignore the option if not recognized
10104 # So say no if there are warnings
10105 if test -s conftest.err; then
10106 # Append any errors to the config.log.
10107 cat conftest.err 1>&5
10108 else
10109 lt_prog_compiler_pic_works_CXX=yes
10110 fi
10111 fi
10112 $rm conftest*
10113 CFLAGS="$save_CFLAGS"
10114
10115fi
10116echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10117echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10118
10119if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10120 case $lt_prog_compiler_pic_CXX in
10121 "" | " "*) ;;
10122 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10123 esac
10124else
10125 lt_prog_compiler_pic_CXX=
10126 lt_prog_compiler_can_build_shared_CXX=no
10127fi
10128
10129fi
10130case "$host_os" in
10131 # For platforms which do not support PIC, -DPIC is meaningless:
10132 *djgpp*)
10133 lt_prog_compiler_pic_CXX=
10134 ;;
10135 *)
10136 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10137 ;;
10138esac
10139
10140echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10141echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10142if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144else
10145 lt_cv_prog_compiler_c_o_CXX=no
10146 $rm -r conftest 2>/dev/null
10147 mkdir conftest
10148 cd conftest
10149 mkdir out
10150 save_CXXFLAGS="$CXXFLAGS"
10151 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
10152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10153
10154 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10155 # that will create temporary files in the current directory regardless of
10156 # the output directory. Thus, making CWD read-only will cause this test
10157 # to fail, enabling locking or at least warning the user not to do parallel
10158 # builds.
10159 chmod -w .
10160
10161 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10162 then
10163 # The compiler can only warn and ignore the option if not recognized
10164 # So say no if there are warnings
10165 if test -s out/conftest.err; then
10166 # Append any errors to the config.log.
10167 cat out/conftest.err 1>&5
10168 else
10169 lt_cv_prog_compiler_c_o_CXX=yes
10170 fi
10171 fi
10172 CXXFLAGS="$save_CXXFLAGS"
10173 chmod u+w .
10174 $rm conftest* out/*
10175 rmdir out
10176 cd ..
10177 rmdir conftest
10178 $rm conftest*
10179
10180fi
10181echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10182echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10183
10184
10185hard_links="nottested"
10186if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10187 # do not overwrite the value of need_locks provided by the user
10188 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10189echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10190 hard_links=yes
10191 $rm conftest*
10192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10193 touch conftest.a
10194 ln conftest.a conftest.b 2>&5 || hard_links=no
10195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10196 echo "$as_me:$LINENO: result: $hard_links" >&5
10197echo "${ECHO_T}$hard_links" >&6
10198 if test "$hard_links" = no; then
10199 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10200echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10201 need_locks=warn
10202 fi
10203else
10204 need_locks=no
10205fi
10206
10207echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10208echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10209
10210 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10211 case $host_os in
10212 aix4* | aix5*)
10213 # If we're using GNU nm, then we don't want the "-C" option.
10214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10215 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10216 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'
10217 else
10218 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'
10219 fi
10220 ;;
10221 cygwin* | mingw* | pw32*)
10222 export_symbols_cmds_CXX="$ltdll_cmds"
10223 ;;
10224 *)
10225 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10226 ;;
10227 esac
10228
10229echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10230echo "${ECHO_T}$ld_shlibs_CXX" >&6
10231test "$ld_shlibs_CXX" = no && can_build_shared=no
10232
10233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10234if test "$GCC" = yes; then
10235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10236fi
10237
10238#
10239# Do we need to explicitly link libc?
10240#
10241archive_cmds_need_lc_CXX=yes
10242if test "$enable_shared" = yes && test "$GCC" = yes; then
10243 case $archive_cmds_CXX in
10244 *'~'*)
10245 # FIXME: we may have to deal with multi-command sequences.
10246 ;;
10247 '$CC '*)
10248 # Test whether the compiler implicitly links with -lc since on some
10249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10250 # to ld, don't add -lc before -lgcc.
10251 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10252echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10253 $rm conftest*
10254 echo 'static int dummy;' > conftest.$ac_ext
10255
10256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } 2>conftest.err; then
10261 soname=conftest
10262 lib=conftest
10263 libobjs=conftest.$ac_objext
10264 deplibs=
10265 wl=$lt_prog_compiler_wl_CXX
10266 compiler_flags=-v
10267 linker_flags=-v
10268 verstring=
10269 output_objdir=.
10270 libname=conftest
10271 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10272 allow_undefined_flag_CXX=
10273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10274 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }
10278 then
10279 archive_cmds_need_lc_CXX=no
10280 else
10281 archive_cmds_need_lc_CXX=yes
10282 fi
10283 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10284 else
10285 cat conftest.err 1>&5
10286 fi
10287 $rm conftest*
10288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10289echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10290 ;;
10291 esac
10292fi
10293
10294echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10295echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10296hardcode_action_CXX=
10297if test -n "$hardcode_libdir_flag_spec_CXX" || \
10298 test -n "$runpath_var CXX"; then
10299
10300 # We can hardcode non-existant directories.
10301 if test "$hardcode_direct_CXX" != no &&
10302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10303 # have to relink, otherwise we might link with an installed library
10304 # when we should be linking with a yet-to-be-installed one
10305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10306 test "$hardcode_minus_L_CXX" != no; then
10307 # Linking always hardcodes the temporary library directory.
10308 hardcode_action_CXX=relink
10309 else
10310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10311 hardcode_action_CXX=immediate
10312 fi
10313else
10314 # We cannot hardcode anything, or else we can only hardcode existing
10315 # directories.
10316 hardcode_action_CXX=unsupported
10317fi
10318echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10319echo "${ECHO_T}$hardcode_action_CXX" >&6
10320
10321if test "$hardcode_action_CXX" = relink; then
10322 # Fast installation is not supported
10323 enable_fast_install=no
10324elif test "$shlibpath_overrides_runpath" = yes ||
10325 test "$enable_shared" = no; then
10326 # Fast installation is not necessary
10327 enable_fast_install=needless
10328fi
10329
10330striplib=
10331old_striplib=
10332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10334if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10337 echo "$as_me:$LINENO: result: yes" >&5
10338echo "${ECHO_T}yes" >&6
10339else
10340 echo "$as_me:$LINENO: result: no" >&5
10341echo "${ECHO_T}no" >&6
10342fi
10343
10344echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10345echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10346library_names_spec=
10347libname_spec='lib$name'
10348soname_spec=
10349postinstall_cmds=
10350postuninstall_cmds=
10351finish_cmds=
10352finish_eval=
10353shlibpath_var=
10354shlibpath_overrides_runpath=unknown
10355version_type=none
10356dynamic_linker="$host_os ld.so"
10357sys_lib_dlsearch_path_spec="/lib /usr/lib"
10358sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10359need_lib_prefix=unknown
10360hardcode_into_libs=no
10361
10362# when you set need_version to no, make sure it does not cause -set_version
10363# flags to be left without arguments
10364need_version=unknown
10365
10366case $host_os in
10367aix3*)
10368 version_type=linux
10369 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10370 shlibpath_var=LIBPATH
10371
10372 # AIX 3 has no versioning support, so we append a major version to the name.
10373 soname_spec='${libname}${release}.so$major'
10374 ;;
10375
10376aix4* | aix5*)
10377 version_type=linux
10378 if test "$host_cpu" = ia64; then
10379 # AIX 5 supports IA64
10380 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 else
10383 # With GCC up to 2.95.x, collect2 would create an import file
10384 # for dependence libraries. The import file would start with
10385 # the line `#! .'. This would cause the generated library to
10386 # depend on `.', always an invalid library. This was fixed in
10387 # development snapshots of GCC prior to 3.0.
10388 case $host_os in
10389 aix4 | aix4.[01] | aix4.[01].*)
10390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10391 echo ' yes '
10392 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10393 :
10394 else
10395 can_build_shared=no
10396 fi
10397 ;;
10398 esac
10399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10400 # soname into executable. Probably we can add versioning support to
10401 # collect2, so additional links can be useful in future.
10402 if test "$aix_use_runtimelinking" = yes; then
10403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10404 # instead of lib<name>.a to let people know that these are not
10405 # typical AIX shared libraries.
10406 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10407 else
10408 # We preserve .a as extension for shared libraries through AIX4.2
10409 # and later when we are not doing run time linking.
10410 library_names_spec='${libname}${release}.a $libname.a'
10411 soname_spec='${libname}${release}.so$major'
10412 fi
10413 shlibpath_var=LIBPATH
10414 fi
10415 ;;
10416
10417amigaos*)
10418 library_names_spec='$libname.ixlibrary $libname.a'
10419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10420 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'
10421 ;;
10422
10423beos*)
10424 library_names_spec='${libname}.so'
10425 dynamic_linker="$host_os ld.so"
10426 shlibpath_var=LIBRARY_PATH
10427 ;;
10428
10429bsdi4*)
10430 version_type=linux
10431 need_version=no
10432 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10433 soname_spec='${libname}${release}.so$major'
10434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10438 # the default ld.so.conf also contains /usr/contrib/lib and
10439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10440 # libtool to hard-code these into programs
10441 ;;
10442
10443cygwin* | mingw* | pw32*)
10444 version_type=windows
10445 need_version=no
10446 need_lib_prefix=no
10447 case $GCC,$host_os in
10448 yes,cygwin*)
10449 library_names_spec='$libname.dll.a'
10450 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10452 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10453 dldir=$destdir/`dirname \$dlpath`~
10454 test -d \$dldir || mkdir -p \$dldir~
10455 $install_prog .libs/$dlname \$dldir/$dlname'
10456 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10457 dlpath=$dir/\$dldll~
10458 $rm \$dlpath'
10459 ;;
10460 yes,mingw*)
10461 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10462 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10463 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10464 # It is most probably a Windows format PATH printed by
10465 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10466 # path with ; separators, and with drive letters. We can handle the
10467 # drive letters (cygwin fileutils understands them), so leave them,
10468 # especially as we might pass files found there to a mingw objdump,
10469 # which wouldn't understand a cygwinified path. Ahh.
10470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10471 else
10472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10473 fi
10474 ;;
10475 yes,pw32*)
10476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10477 ;;
10478 *)
10479 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10480 ;;
10481 esac
10482 dynamic_linker='Win32 ld.exe'
10483 # FIXME: first we should search . and the directory the executable is in
10484 shlibpath_var=PATH
10485 ;;
10486
10487darwin* | rhapsody*)
10488 dynamic_linker="$host_os dyld"
10489 version_type=darwin
10490 need_lib_prefix=no
10491 need_version=no
10492 # FIXME: Relying on posixy $() will cause problems for
10493 # cross-compilation, but unfortunately the echo tests do not
10494 # yet detect zsh echo's removal of \ escapes.
10495 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10496 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10497 shlibpath_overrides_runpath=yes
10498 shlibpath_var=DYLD_LIBRARY_PATH
10499 ;;
10500
10501dgux*)
10502 version_type=linux
10503 need_lib_prefix=no
10504 need_version=no
10505 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10506 soname_spec='${libname}${release}.so$major'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 ;;
10509
10510freebsd1*)
10511 dynamic_linker=no
10512 ;;
10513
10514freebsd*)
10515 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10516 version_type=freebsd-$objformat
10517 case $version_type in
10518 freebsd-elf*)
10519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10520 need_version=no
10521 need_lib_prefix=no
10522 ;;
10523 freebsd-*)
10524 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10525 need_version=yes
10526 ;;
10527 esac
10528 shlibpath_var=LD_LIBRARY_PATH
10529 case $host_os in
10530 freebsd2*)
10531 shlibpath_overrides_runpath=yes
10532 ;;
10533 freebsd3.01* | freebsdelf3.01*)
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 ;;
10537 *) # from 3.2 on
10538 shlibpath_overrides_runpath=no
10539 hardcode_into_libs=yes
10540 ;;
10541 esac
10542 ;;
10543
10544gnu*)
10545 version_type=linux
10546 need_lib_prefix=no
10547 need_version=no
10548 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10549 soname_spec='${libname}${release}.so$major'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 hardcode_into_libs=yes
10552 ;;
10553
10554hpux9* | hpux10* | hpux11*)
10555 # Give a soname corresponding to the major version so that dld.sl refuses to
10556 # link against other versions.
10557 version_type=sunos
10558 need_lib_prefix=no
10559 need_version=no
10560 if test "$host_cpu" = ia64; then
10561 hardcode_into_libs=yes
10562 dynamic_linker="$host_os dld.so"
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10565 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10566 soname_spec='${libname}${release}.so$major'
10567 if test "X$HPUX_IA64_MODE" = X32; then
10568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10569 else
10570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10571 fi
10572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10573 else
10574 dynamic_linker="$host_os dld.sl"
10575 shlibpath_var=SHLIB_PATH
10576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10577 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10578 soname_spec='${libname}${release}.sl$major'
10579 fi
10580 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10581 postinstall_cmds='chmod 555 $lib'
10582 ;;
10583
10584irix5* | irix6* | nonstopux*)
10585 case $host_os in
10586 nonstopux*) version_type=nonstopux ;;
10587 *) version_type=irix ;;
10588 esac
10589 need_lib_prefix=no
10590 need_version=no
10591 soname_spec='${libname}${release}.so$major'
10592 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10593 case $host_os in
10594 irix5* | nonstopux*)
10595 libsuff= shlibsuff=
10596 ;;
10597 *)
10598 case $LD in # libtool.m4 will add one of these switches to LD
10599 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10600 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10601 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10602 *) libsuff= shlibsuff= libmagic=never-match;;
10603 esac
10604 ;;
10605 esac
10606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10607 shlibpath_overrides_runpath=no
10608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10610 ;;
10611
10612# No shared lib support for Linux oldld, aout, or coff.
10613linux*oldld* | linux*aout* | linux*coff*)
10614 dynamic_linker=no
10615 ;;
10616
10617# This must be Linux ELF.
10618linux*)
10619 version_type=linux
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10623 soname_spec='${libname}${release}.so$major'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10625 libsuff=
10626 if test "x$LINUX_64_MODE" = x64; then
10627 # Some platforms are per default 64-bit, so there's no /lib64
10628 if test -d /lib64; then
10629 libsuff=64
10630 fi
10631 fi
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10635 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10636 # This implies no fast_install, which is unacceptable.
10637 # Some rework will be needed to allow for fast_install
10638 # before this can be enabled.
10639 hardcode_into_libs=yes
10640
10641 # We used to test for /lib/ld.so.1 and disable shared libraries on
10642 # powerpc, because MkLinux only supported shared libraries with the
10643 # GNU dynamic linker. Since this was broken with cross compilers,
10644 # most powerpc-linux boxes support dynamic linking these days and
10645 # people can always --disable-shared, the test was removed, and we
10646 # assume the GNU/Linux dynamic linker is in use.
10647 dynamic_linker='GNU/Linux ld.so'
10648 ;;
10649
10650netbsd*)
10651 version_type=sunos
10652 need_lib_prefix=no
10653 need_version=no
10654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10655 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657 dynamic_linker='NetBSD (a.out) ld.so'
10658 else
10659 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10660 soname_spec='${libname}${release}.so$major'
10661 dynamic_linker='NetBSD ld.elf_so'
10662 fi
10663 shlibpath_var=LD_LIBRARY_PATH
10664 shlibpath_overrides_runpath=yes
10665 hardcode_into_libs=yes
10666 ;;
10667
10668newsos6)
10669 version_type=linux
10670 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 ;;
10674
10675nto-qnx)
10676 version_type=linux
10677 need_lib_prefix=no
10678 need_version=no
10679 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10680 soname_spec='${libname}${release}.so$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes
10683 ;;
10684
10685openbsd*)
10686 version_type=sunos
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10693 case $host_os in
10694 openbsd2.[89] | openbsd2.[89].*)
10695 shlibpath_overrides_runpath=no
10696 ;;
10697 *)
10698 shlibpath_overrides_runpath=yes
10699 ;;
10700 esac
10701 else
10702 shlibpath_overrides_runpath=yes
10703 fi
10704 ;;
10705
10706os2*)
10707 libname_spec='$name'
10708 need_lib_prefix=no
10709 library_names_spec='$libname.dll $libname.a'
10710 dynamic_linker='OS/2 ld.exe'
10711 shlibpath_var=LIBPATH
10712 ;;
10713
10714osf3* | osf4* | osf5*)
10715 version_type=osf
10716 need_lib_prefix=no
10717 need_version=no
10718 soname_spec='${libname}${release}.so'
10719 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10723 ;;
10724
10725sco3.2v5*)
10726 version_type=osf
10727 soname_spec='${libname}${release}.so$major'
10728 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 ;;
10731
10732solaris*)
10733 version_type=linux
10734 need_lib_prefix=no
10735 need_version=no
10736 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10737 soname_spec='${libname}${release}.so$major'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 shlibpath_overrides_runpath=yes
10740 hardcode_into_libs=yes
10741 # ldd complains unless libraries are executable
10742 postinstall_cmds='chmod +x $lib'
10743 ;;
10744
10745sunos4*)
10746 version_type=sunos
10747 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10748 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10751 if test "$with_gnu_ld" = yes; then
10752 need_lib_prefix=no
10753 fi
10754 need_version=yes
10755 ;;
10756
10757sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10758 version_type=linux
10759 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10760 soname_spec='${libname}${release}.so$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 case $host_vendor in
10763 sni)
10764 shlibpath_overrides_runpath=no
10765 ;;
10766 motorola)
10767 need_lib_prefix=no
10768 need_version=no
10769 shlibpath_overrides_runpath=no
10770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10771 ;;
10772 esac
10773 ;;
10774
10775sysv4*MP*)
10776 if test -d /usr/nec ;then
10777 version_type=linux
10778 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10779 soname_spec='$libname.so.$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 fi
10782 ;;
10783
10784uts4*)
10785 version_type=linux
10786 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10787 soname_spec='${libname}${release}.so$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 ;;
10790
10791*)
10792 dynamic_linker=no
10793 ;;
10794esac
10795echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10796echo "${ECHO_T}$dynamic_linker" >&6
10797test "$dynamic_linker" = no && can_build_shared=no
10798
10799if test "x$enable_dlopen" != xyes; then
10800 enable_dlopen=unknown
10801 enable_dlopen_self=unknown
10802 enable_dlopen_self_static=unknown
10803else
10804 lt_cv_dlopen=no
10805 lt_cv_dlopen_libs=
10806
10807 case $host_os in
10808 beos*)
10809 lt_cv_dlopen="load_add_on"
10810 lt_cv_dlopen_libs=
10811 lt_cv_dlopen_self=yes
10812 ;;
10813
10814 cygwin* | mingw* | pw32*)
10815 lt_cv_dlopen="LoadLibrary"
10816 lt_cv_dlopen_libs=
10817 ;;
10818
10819 *)
10820 echo "$as_me:$LINENO: checking for shl_load" >&5
10821echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10822if test "${ac_cv_func_shl_load+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 cat >conftest.$ac_ext <<_ACEOF
10826#line $LINENO "configure"
10827#include "confdefs.h"
10828/* System header to define __stub macros and hopefully few prototypes,
10829 which can conflict with char shl_load (); below. */
10830#include <assert.h>
10831/* Override any gcc2 internal prototype to avoid an error. */
10832#ifdef __cplusplus
10833extern "C"
10834#endif
10835/* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10837char shl_load ();
10838char (*f) ();
10839
10840#ifdef F77_DUMMY_MAIN
10841# ifdef __cplusplus
10842 extern "C"
10843# endif
10844 int F77_DUMMY_MAIN() { return 1; }
10845#endif
10846int
10847main ()
10848{
10849/* The GNU C library defines this for functions which it implements
10850 to always fail with ENOSYS. Some functions are actually named
10851 something starting with __ and the normal name is an alias. */
10852#if defined (__stub_shl_load) || defined (__stub___shl_load)
10853choke me
10854#else
10855f = shl_load;
10856#endif
10857
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862rm -f conftest.$ac_objext conftest$ac_exeext
10863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -s conftest$ac_exeext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_func_shl_load=yes
10875else
10876 echo "$as_me: failed program was:" >&5
10877cat conftest.$ac_ext >&5
10878ac_cv_func_shl_load=no
10879fi
10880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10881fi
10882echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10883echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10884if test $ac_cv_func_shl_load = yes; then
10885 lt_cv_dlopen="shl_load"
10886else
10887 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10888echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10889if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891else
10892 ac_check_lib_save_LIBS=$LIBS
10893LIBS="-ldld $LIBS"
10894cat >conftest.$ac_ext <<_ACEOF
10895#line $LINENO "configure"
10896#include "confdefs.h"
10897
10898/* Override any gcc2 internal prototype to avoid an error. */
10899#ifdef __cplusplus
10900extern "C"
10901#endif
10902/* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10904char shl_load ();
10905#ifdef F77_DUMMY_MAIN
10906# ifdef __cplusplus
10907 extern "C"
10908# endif
10909 int F77_DUMMY_MAIN() { return 1; }
10910#endif
10911int
10912main ()
10913{
10914shl_load ();
10915 ;
10916 return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext conftest$ac_exeext
10920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921 (eval $ac_link) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_cv_lib_dld_shl_load=yes
10932else
10933 echo "$as_me: failed program was:" >&5
10934cat conftest.$ac_ext >&5
10935ac_cv_lib_dld_shl_load=no
10936fi
10937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10938LIBS=$ac_check_lib_save_LIBS
10939fi
10940echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10941echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10942if test $ac_cv_lib_dld_shl_load = yes; then
10943 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10944else
10945 echo "$as_me:$LINENO: checking for dlopen" >&5
10946echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10947if test "${ac_cv_func_dlopen+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949else
10950 cat >conftest.$ac_ext <<_ACEOF
10951#line $LINENO "configure"
10952#include "confdefs.h"
10953/* System header to define __stub macros and hopefully few prototypes,
10954 which can conflict with char dlopen (); below. */
10955#include <assert.h>
10956/* Override any gcc2 internal prototype to avoid an error. */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960/* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962char dlopen ();
10963char (*f) ();
10964
10965#ifdef F77_DUMMY_MAIN
10966# ifdef __cplusplus
10967 extern "C"
10968# endif
10969 int F77_DUMMY_MAIN() { return 1; }
10970#endif
10971int
10972main ()
10973{
10974/* The GNU C library defines this for functions which it implements
10975 to always fail with ENOSYS. Some functions are actually named
10976 something starting with __ and the normal name is an alias. */
10977#if defined (__stub_dlopen) || defined (__stub___dlopen)
10978choke me
10979#else
10980f = dlopen;
10981#endif
10982
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987rm -f conftest.$ac_objext conftest$ac_exeext
10988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -s conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_func_dlopen=yes
11000else
11001 echo "$as_me: failed program was:" >&5
11002cat conftest.$ac_ext >&5
11003ac_cv_func_dlopen=no
11004fi
11005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11006fi
11007echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11008echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11009if test $ac_cv_func_dlopen = yes; then
11010 lt_cv_dlopen="dlopen"
11011else
11012 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11013echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11014if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016else
11017 ac_check_lib_save_LIBS=$LIBS
11018LIBS="-ldl $LIBS"
11019cat >conftest.$ac_ext <<_ACEOF
11020#line $LINENO "configure"
11021#include "confdefs.h"
11022
11023/* Override any gcc2 internal prototype to avoid an error. */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027/* We use char because int might match the return type of a gcc2
11028 builtin and then its argument prototype would still apply. */
11029char dlopen ();
11030#ifdef F77_DUMMY_MAIN
11031# ifdef __cplusplus
11032 extern "C"
11033# endif
11034 int F77_DUMMY_MAIN() { return 1; }
11035#endif
11036int
11037main ()
11038{
11039dlopen ();
11040 ;
11041 return 0;
11042}
11043_ACEOF
11044rm -f conftest.$ac_objext conftest$ac_exeext
11045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11046 (eval $ac_link) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -s conftest$ac_exeext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_cv_lib_dl_dlopen=yes
11057else
11058 echo "$as_me: failed program was:" >&5
11059cat conftest.$ac_ext >&5
11060ac_cv_lib_dl_dlopen=no
11061fi
11062rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11063LIBS=$ac_check_lib_save_LIBS
11064fi
11065echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11066echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11067if test $ac_cv_lib_dl_dlopen = yes; then
11068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11069else
11070 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11071echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11072if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else
11075 ac_check_lib_save_LIBS=$LIBS
11076LIBS="-lsvld $LIBS"
11077cat >conftest.$ac_ext <<_ACEOF
11078#line $LINENO "configure"
11079#include "confdefs.h"
11080
11081/* Override any gcc2 internal prototype to avoid an error. */
11082#ifdef __cplusplus
11083extern "C"
11084#endif
11085/* We use char because int might match the return type of a gcc2
11086 builtin and then its argument prototype would still apply. */
11087char dlopen ();
11088#ifdef F77_DUMMY_MAIN
11089# ifdef __cplusplus
11090 extern "C"
11091# endif
11092 int F77_DUMMY_MAIN() { return 1; }
11093#endif
11094int
11095main ()
11096{
11097dlopen ();
11098 ;
11099 return 0;
11100}
11101_ACEOF
11102rm -f conftest.$ac_objext conftest$ac_exeext
11103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try='test -s conftest$ac_exeext'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_cv_lib_svld_dlopen=yes
11115else
11116 echo "$as_me: failed program was:" >&5
11117cat conftest.$ac_ext >&5
11118ac_cv_lib_svld_dlopen=no
11119fi
11120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11121LIBS=$ac_check_lib_save_LIBS
11122fi
11123echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11124echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11125if test $ac_cv_lib_svld_dlopen = yes; then
11126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11127else
11128 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11129echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11130if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 ac_check_lib_save_LIBS=$LIBS
11134LIBS="-ldld $LIBS"
11135cat >conftest.$ac_ext <<_ACEOF
11136#line $LINENO "configure"
11137#include "confdefs.h"
11138
11139/* Override any gcc2 internal prototype to avoid an error. */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
11143/* We use char because int might match the return type of a gcc2
11144 builtin and then its argument prototype would still apply. */
11145char dld_link ();
11146#ifdef F77_DUMMY_MAIN
11147# ifdef __cplusplus
11148 extern "C"
11149# endif
11150 int F77_DUMMY_MAIN() { return 1; }
11151#endif
11152int
11153main ()
11154{
11155dld_link ();
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160rm -f conftest.$ac_objext conftest$ac_exeext
11161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11162 (eval $ac_link) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -s conftest$ac_exeext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_lib_dld_dld_link=yes
11173else
11174 echo "$as_me: failed program was:" >&5
11175cat conftest.$ac_ext >&5
11176ac_cv_lib_dld_dld_link=no
11177fi
11178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179LIBS=$ac_check_lib_save_LIBS
11180fi
11181echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11182echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11183if test $ac_cv_lib_dld_dld_link = yes; then
11184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193
11194fi
11195
11196
11197fi
11198
11199
11200fi
11201
11202 ;;
11203 esac
11204
11205 if test "x$lt_cv_dlopen" != xno; then
11206 enable_dlopen=yes
11207 else
11208 enable_dlopen=no
11209 fi
11210
11211 case $lt_cv_dlopen in
11212 dlopen)
11213 save_CPPFLAGS="$CPPFLAGS"
11214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11215
11216 save_LDFLAGS="$LDFLAGS"
11217 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11218
11219 save_LIBS="$LIBS"
11220 LIBS="$lt_cv_dlopen_libs $LIBS"
11221
11222 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11223echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11224if test "${lt_cv_dlopen_self+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227 if test "$cross_compiling" = yes; then :
11228 lt_cv_dlopen_self=cross
11229else
11230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11231 lt_status=$lt_dlunknown
11232 cat > conftest.$ac_ext <<EOF
11233#line 11233 "configure"
11234#include "confdefs.h"
11235
11236#if HAVE_DLFCN_H
11237#include <dlfcn.h>
11238#endif
11239
11240#include <stdio.h>
11241
11242#ifdef RTLD_GLOBAL
11243# define LT_DLGLOBAL RTLD_GLOBAL
11244#else
11245# ifdef DL_GLOBAL
11246# define LT_DLGLOBAL DL_GLOBAL
11247# else
11248# define LT_DLGLOBAL 0
11249# endif
11250#endif
11251
11252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11253 find out it does not work in some platform. */
11254#ifndef LT_DLLAZY_OR_NOW
11255# ifdef RTLD_LAZY
11256# define LT_DLLAZY_OR_NOW RTLD_LAZY
11257# else
11258# ifdef DL_LAZY
11259# define LT_DLLAZY_OR_NOW DL_LAZY
11260# else
11261# ifdef RTLD_NOW
11262# define LT_DLLAZY_OR_NOW RTLD_NOW
11263# else
11264# ifdef DL_NOW
11265# define LT_DLLAZY_OR_NOW DL_NOW
11266# else
11267# define LT_DLLAZY_OR_NOW 0
11268# endif
11269# endif
11270# endif
11271# endif
11272#endif
11273
11274#ifdef __cplusplus
11275extern "C" void exit (int);
11276#endif
11277
11278void fnord() { int i=42;}
11279int main ()
11280{
11281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11282 int status = $lt_dlunknown;
11283
11284 if (self)
11285 {
11286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11288 /* dlclose (self); */
11289 }
11290
11291 exit (status);
11292}
11293EOF
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); } && test -s conftest${ac_exeext} 2>/dev/null; then
11299 (./conftest; exit; ) 2>/dev/null
11300 lt_status=$?
11301 case x$lt_status in
11302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11304 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11305 esac
11306 else :
11307 # compilation failed
11308 lt_cv_dlopen_self=no
11309 fi
11310fi
11311rm -fr conftest*
11312
11313
11314fi
11315echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11316echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11317
11318 if test "x$lt_cv_dlopen_self" = xyes; then
11319 LDFLAGS="$LDFLAGS $link_static_flag"
11320 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11321echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11322if test "${lt_cv_dlopen_self_static+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 if test "$cross_compiling" = yes; then :
11326 lt_cv_dlopen_self_static=cross
11327else
11328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11329 lt_status=$lt_dlunknown
11330 cat > conftest.$ac_ext <<EOF
11331#line 11331 "configure"
11332#include "confdefs.h"
11333
11334#if HAVE_DLFCN_H
11335#include <dlfcn.h>
11336#endif
11337
11338#include <stdio.h>
11339
11340#ifdef RTLD_GLOBAL
11341# define LT_DLGLOBAL RTLD_GLOBAL
11342#else
11343# ifdef DL_GLOBAL
11344# define LT_DLGLOBAL DL_GLOBAL
11345# else
11346# define LT_DLGLOBAL 0
11347# endif
11348#endif
11349
11350/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11351 find out it does not work in some platform. */
11352#ifndef LT_DLLAZY_OR_NOW
11353# ifdef RTLD_LAZY
11354# define LT_DLLAZY_OR_NOW RTLD_LAZY
11355# else
11356# ifdef DL_LAZY
11357# define LT_DLLAZY_OR_NOW DL_LAZY
11358# else
11359# ifdef RTLD_NOW
11360# define LT_DLLAZY_OR_NOW RTLD_NOW
11361# else
11362# ifdef DL_NOW
11363# define LT_DLLAZY_OR_NOW DL_NOW
11364# else
11365# define LT_DLLAZY_OR_NOW 0
11366# endif
11367# endif
11368# endif
11369# endif
11370#endif
11371
11372#ifdef __cplusplus
11373extern "C" void exit (int);
11374#endif
11375
11376void fnord() { int i=42;}
11377int main ()
11378{
11379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11380 int status = $lt_dlunknown;
11381
11382 if (self)
11383 {
11384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11386 /* dlclose (self); */
11387 }
11388
11389 exit (status);
11390}
11391EOF
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11397 (./conftest; exit; ) 2>/dev/null
11398 lt_status=$?
11399 case x$lt_status in
11400 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11401 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11402 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11403 esac
11404 else :
11405 # compilation failed
11406 lt_cv_dlopen_self_static=no
11407 fi
11408fi
11409rm -fr conftest*
11410
11411
11412fi
11413echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11414echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11415 fi
11416
11417 CPPFLAGS="$save_CPPFLAGS"
11418 LDFLAGS="$save_LDFLAGS"
11419 LIBS="$save_LIBS"
11420 ;;
11421 esac
11422
11423 case $lt_cv_dlopen_self in
11424 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11425 *) enable_dlopen_self=unknown ;;
11426 esac
11427
11428 case $lt_cv_dlopen_self_static in
11429 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11430 *) enable_dlopen_self_static=unknown ;;
11431 esac
11432fi
11433
11434
11435# The else clause should only fire when bootstrapping the
11436# libtool distribution, otherwise you forgot to ship ltmain.sh
11437# with your package, and you will get complaints that there are
11438# no rules to generate ltmain.sh.
11439if test -f "$ltmain"; then
11440 # Now quote all the things that may contain metacharacters while being
11441 # careful not to overquote the AC_SUBSTed values. We take copies of the
11442 # variables and quote the copies for generation of the libtool script.
11443 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11444 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11445 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11446 deplibs_check_method reload_flag reload_cmds need_locks \
11447 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11448 lt_cv_sys_global_symbol_to_c_name_address \
11449 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11450 old_postinstall_cmds old_postuninstall_cmds \
11451 compiler_CXX \
11452 CC_CXX \
11453 LD_CXX \
11454 lt_prog_compiler_wl_CXX \
11455 lt_prog_compiler_pic_CXX \
11456 lt_prog_compiler_static_CXX \
11457 lt_prog_compiler_no_builtin_flag_CXX \
11458 export_dynamic_flag_spec_CXX \
11459 thread_safe_flag_spec_CXX \
11460 whole_archive_flag_spec_CXX \
11461 old_archive_cmds_CXX \
11462 old_archive_from_new_cmds_CXX \
11463 predep_objects_CXX \
11464 postdep_objects_CXX \
11465 predeps_CXX \
11466 postdeps_CXX \
11467 compiler_lib_search_path_CXX \
11468 archive_cmds_CXX \
11469 archive_expsym_cmds_CXX \
11470 postinstall_cmds_CXX \
11471 postuninstall_cmds_CXX \
11472 old_archive_from_expsyms_cmds_CXX \
11473 allow_undefined_flag_CXX \
11474 no_undefined_flag_CXX \
11475 export_symbols_cmds_CXX \
11476 hardcode_libdir_flag_spec_CXX \
11477 hardcode_libdir_separator_CXX \
11478 lt_cv_prog_compiler_c_o_CXX \
11479 exclude_expsyms_CXX \
11480 include_expsyms_CXX; do
11481
11482 case $var in
11483 old_archive_cmds_CXX | \
11484 old_archive_from_new_cmds_CXX | \
11485 archive_cmds_CXX | \
11486 archive_expsym_cmds_CXX | \
11487 old_archive_from_expsyms_cmds_CXX | \
11488 export_symbols_cmds_CXX | \
11489 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11490 postinstall_cmds | postuninstall_cmds | \
11491 old_postinstall_cmds | old_postuninstall_cmds | \
11492 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11493 # Double-quote double-evaled strings.
11494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11495 ;;
11496 *)
11497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11498 ;;
11499 esac
11500 done
11501
11502 case $lt_echo in
11503 *'\$0 --fallback-echo"')
11504 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11505 ;;
11506 esac
11507
11508cfgfile="$ofile"
11509
11510 cat <<__EOF__ >> "$cfgfile"
11511# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11512
11513# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11514
11515# Shell to use when invoking shell scripts.
11516SHELL=$lt_SHELL
11517
11518# Whether or not to build shared libraries.
11519build_libtool_libs=$enable_shared
11520
11521# Whether or not to build static libraries.
11522build_old_libs=$enable_static
11523
11524# Whether or not to add -lc for building shared libraries.
11525build_libtool_need_lc=$archive_cmds_need_lc_CXX
11526
11527# Whether or not to optimize for fast installation.
11528fast_install=$enable_fast_install
11529
11530# The host system.
11531host_alias=$host_alias
11532host=$host
11533
11534# An echo program that does not interpret backslashes.
11535echo=$lt_echo
11536
11537# The archiver.
11538AR=$lt_AR
11539AR_FLAGS=$lt_AR_FLAGS
11540
11541# A C compiler.
11542LTCC=$lt_LTCC
11543
11544# A language-specific compiler.
11545CC=$lt_compiler_CXX
11546
11547# Is the compiler the GNU C compiler?
11548with_gcc=$GCC_CXX
11549
11550# The linker used to build libraries.
11551LD=$lt_LD_CXX
11552
11553# Whether we need hard or soft links.
11554LN_S=$lt_LN_S
11555
11556# A BSD-compatible nm program.
11557NM=$lt_NM
11558
11559# A sed program that does not truncate output.
11560SED=$lt_SED
11561
11562# A symbol stripping program
11563STRIP=$STRIP
11564
11565# Used to examine libraries when file_magic_cmd begins "file"
11566MAGIC_CMD=$MAGIC_CMD
11567
11568# Used on cygwin: DLL creation program.
11569DLLTOOL="$DLLTOOL"
11570
11571# Used on cygwin: object dumper.
11572OBJDUMP="$OBJDUMP"
11573
11574# Used on cygwin: assembler.
11575AS="$AS"
11576
11577# The name of the directory that contains temporary libtool files.
11578objdir=$objdir
11579
11580# How to create reloadable object files.
11581reload_flag=$lt_reload_flag
11582reload_cmds=$lt_reload_cmds
11583
11584# How to pass a linker flag through the compiler.
11585wl=$lt_lt_prog_compiler_wl_CXX
11586
11587# Object file suffix (normally "o").
11588objext="$ac_objext"
11589
11590# Old archive suffix (normally "a").
11591libext="$libext"
11592
11593# Executable file suffix (normally "").
11594exeext="$exeext"
11595
11596# Additional compiler flags for building library objects.
11597pic_flag=$lt_lt_prog_compiler_pic_CXX
11598pic_mode=$pic_mode
11599
11600# What is the maximum length of a command?
11601max_cmd_len=$lt_cv_sys_max_cmd_len
11602
11603# Does compiler simultaneously support -c and -o options?
11604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11605
11606# Must we lock files when doing compilation ?
11607need_locks=$lt_need_locks
11608
11609# Do we need the lib prefix for modules?
11610need_lib_prefix=$need_lib_prefix
11611
11612# Do we need a version for libraries?
11613need_version=$need_version
11614
11615# Whether dlopen is supported.
11616dlopen_support=$enable_dlopen
11617
11618# Whether dlopen of programs is supported.
11619dlopen_self=$enable_dlopen_self
11620
11621# Whether dlopen of statically linked programs is supported.
11622dlopen_self_static=$enable_dlopen_self_static
11623
11624# Compiler flag to prevent dynamic linking.
11625link_static_flag=$lt_lt_prog_compiler_static_CXX
11626
11627# Compiler flag to turn off builtin functions.
11628no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11629
11630# Compiler flag to allow reflexive dlopens.
11631export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11632
11633# Compiler flag to generate shared objects directly from archives.
11634whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11635
11636# Compiler flag to generate thread-safe objects.
11637thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11638
11639# Library versioning type.
11640version_type=$version_type
11641
11642# Format of library name prefix.
11643libname_spec=$lt_libname_spec
11644
11645# List of archive names. First name is the real one, the rest are links.
11646# The last name is the one that the linker finds with -lNAME.
11647library_names_spec=$lt_library_names_spec
11648
11649# The coded name of the library, if different from the real name.
11650soname_spec=$lt_soname_spec
11651
11652# Commands used to build and install an old-style archive.
11653RANLIB=$lt_RANLIB
11654old_archive_cmds=$lt_old_archive_cmds_CXX
11655old_postinstall_cmds=$lt_old_postinstall_cmds
11656old_postuninstall_cmds=$lt_old_postuninstall_cmds
11657
11658# Create an old-style archive from a shared archive.
11659old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11660
11661# Create a temporary old-style archive to link instead of a shared archive.
11662old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11663
11664# Commands used to build and install a shared archive.
11665archive_cmds=$lt_archive_cmds_CXX
11666archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11667postinstall_cmds=$lt_postinstall_cmds
11668postuninstall_cmds=$lt_postuninstall_cmds
11669
11670# Commands to strip libraries.
11671old_striplib=$lt_old_striplib
11672striplib=$lt_striplib
11673
11674# Dependencies to place before the objects being linked to create a
11675# shared library.
11676predep_objects=$lt_predep_objects_CXX
11677
11678# Dependencies to place after the objects being linked to create a
11679# shared library.
11680postdep_objects=$lt_postdep_objects_CXX
11681
11682# Dependencies to place before the objects being linked to create a
11683# shared library.
11684predeps=$lt_predeps_CXX
11685
11686# Dependencies to place after the objects being linked to create a
11687# shared library.
11688postdeps=$lt_postdeps_CXX
11689
11690# The library search path used internally by the compiler when linking
11691# a shared library.
11692compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11693
11694# Method to check whether dependent libraries are shared objects.
11695deplibs_check_method=$lt_deplibs_check_method
11696
11697# Command to use when deplibs_check_method == file_magic.
11698file_magic_cmd=$lt_file_magic_cmd
11699
11700# Flag that allows shared libraries with undefined symbols to be built.
11701allow_undefined_flag=$lt_allow_undefined_flag_CXX
11702
11703# Flag that forces no undefined symbols.
11704no_undefined_flag=$lt_no_undefined_flag_CXX
11705
11706# Commands used to finish a libtool library installation in a directory.
11707finish_cmds=$lt_finish_cmds
11708
11709# Same as above, but a single script fragment to be evaled but not shown.
11710finish_eval=$lt_finish_eval
11711
11712# Take the output of nm and produce a listing of raw symbols and C names.
11713global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11714
11715# Transform the output of nm in a proper C declaration
11716global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11717
11718# Transform the output of nm in a C name address pair
11719global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11720
11721# This is the shared library runtime path variable.
11722runpath_var=$runpath_var
11723
11724# This is the shared library path variable.
11725shlibpath_var=$shlibpath_var
11726
11727# Is shlibpath searched before the hard-coded library search path?
11728shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11729
11730# How to hardcode a shared library path into an executable.
11731hardcode_action=$hardcode_action_CXX
11732
11733# Whether we should hardcode library paths into libraries.
11734hardcode_into_libs=$hardcode_into_libs
11735
11736# Flag to hardcode \$libdir into a binary during linking.
11737# This must work even if \$libdir does not exist.
11738hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11739
11740# Whether we need a single -rpath flag with a separated argument.
11741hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11742
11743# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11744# resulting binary.
11745hardcode_direct=$hardcode_direct_CXX
11746
11747# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11748# resulting binary.
11749hardcode_minus_L=$hardcode_minus_L_CXX
11750
11751# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11752# the resulting binary.
11753hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11754
11755# Variables whose values should be saved in libtool wrapper scripts and
11756# restored at relink time.
11757variables_saved_for_relink="$variables_saved_for_relink"
11758
11759# Whether libtool must link a program against all its dependency libraries.
11760link_all_deplibs=$link_all_deplibs_CXX
11761
11762# Compile-time system search path for libraries
11763sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11764
11765# Run-time system search path for libraries
11766sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11767
11768# Fix the shell variable \$srcfile for the compiler.
11769fix_srcfile_path="$fix_srcfile_path_CXX"
11770
11771# Set to yes if exported symbols are required.
11772always_export_symbols=$always_export_symbols_CXX
11773
11774# The commands to list exported symbols.
11775export_symbols_cmds=$lt_export_symbols_cmds_CXX
11776
11777# The commands to extract the exported symbol list from a shared archive.
11778extract_expsyms_cmds=$lt_extract_expsyms_cmds
11779
11780# Symbols that should not be listed in the preloaded symbols.
11781exclude_expsyms=$lt_exclude_expsyms_CXX
11782
11783# Symbols that must always be exported.
11784include_expsyms=$lt_include_expsyms_CXX
11785
11786# ### END LIBTOOL TAG CONFIG: $tagname
11787
11788__EOF__
11789
11790
11791else
11792 # If there is no Makefile yet, we rely on a make rule to execute
11793 # `config.status --recheck' to rerun these tests and create the
11794 # libtool script then.
11795 test -f Makefile && make "$ltmain"
11796fi
11797
11798
11799ac_ext=c
11800ac_cpp='$CPP $CPPFLAGS'
11801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
11805CC="$lt_save_CC"
11806
11807 ;;
11808
11809 GCJ)
11810
11811
11812
11813# Source file extension for C test sources.
11814ac_ext=java
11815
11816# Object file extension for compiled C test sources.
11817objext=o
11818objext_GCJ=$objext
11819
11820# Code to be used in simple compile tests
11821lt_simple_compile_test_code="class foo {}"
11822
11823# Code to be used in simple link tests
11824lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
11825
11826# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11827
11828# If no C compiler was specified, use CC.
11829LTCC=${LTCC-"$CC"}
11830
11831# Allow CC to be a program name with arguments.
11832set dummy $CC
11833compiler="$2"
11834
11835
11836# Allow CC to be a program name with arguments.
11837lt_save_CC="$CC"
11838CC=${GCJ-"gcj"}
11839set dummy $CC
11840compiler="$2"
11841compiler_GCJ=$CC
11842
11843# GCJ did not exist at the time GCC didn't implicitly link libc in.
11844archive_cmds_need_lc_GCJ=no
11845
11846
11847lt_prog_compiler_no_builtin_flag_GCJ=
11848
11849if test "$GCC" = yes; then
11850 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
11851
11852 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11853echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11854if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 lt_cv_prog_compiler_rtti_exceptions=no
11858 ac_outfile=conftest.$ac_objext
11859 save_CFLAGS="$CFLAGS"
11860 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11862 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11863 # The compiler can only warn and ignore the option if not recognized
11864 # So say no if there are warnings
11865 if test -s conftest.err; then
11866 # Append any errors to the config.log.
11867 cat conftest.err 1>&5
11868 else
11869 lt_cv_prog_compiler_rtti_exceptions=yes
11870 fi
11871 fi
11872 $rm conftest*
11873 CFLAGS="$save_CFLAGS"
11874
11875fi
11876echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11877echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11878
11879if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11880 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11881else
11882 :
11883fi
11884
11885fi
11886
11887lt_prog_compiler_wl_GCJ=
11888lt_prog_compiler_pic_GCJ=
11889lt_prog_compiler_static_GCJ=
11890
11891echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11893
11894 if test "$GCC" = yes; then
11895 lt_prog_compiler_wl_GCJ='-Wl,'
11896 lt_prog_compiler_static_GCJ='-static'
11897
11898 case $host_os in
11899 aix*)
11900 # All AIX code is PIC.
11901 if test "$host_cpu" = ia64; then
11902 # AIX 5 now supports IA64 processor
11903 lt_prog_compiler_static_GCJ='-Bstatic'
11904 fi
11905 ;;
11906
11907 amigaos*)
11908 # FIXME: we need at least 68020 code to build shared libraries, but
11909 # adding the `-m68020' flag to GCC prevents building anything better,
11910 # like `-m68040'.
11911 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11912 ;;
11913
11914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11915 # PIC is the default for these OSes.
11916 ;;
11917
11918 cygwin* | mingw* | pw32* | os2*)
11919 # This hack is so that the source file can tell whether it is being
11920 # built for inclusion in a dll (and should export symbols for example).
11921 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11922 ;;
11923
11924 darwin* | rhapsody*)
11925 # PIC is the default on this platform
11926 # Common symbols not allowed in MH_DYLIB files
11927 lt_prog_compiler_pic_GCJ='-fno-common'
11928 ;;
11929
11930 msdosdjgpp*)
11931 # Just because we use GCC doesn't mean we suddenly get shared libraries
11932 # on systems that don't support them.
11933 lt_prog_compiler_can_build_shared_GCJ=no
11934 enable_shared=no
11935 ;;
11936
11937 sysv4*MP*)
11938 if test -d /usr/nec; then
11939 lt_prog_compiler_pic_GCJ=-Kconform_pic
11940 fi
11941 ;;
11942
11943 hpux*)
11944 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11945 if test "$host_cpu" != ia64; then
11946 lt_prog_compiler_pic_GCJ='-fPIC'
11947 fi
11948 ;;
11949
11950 *)
11951 lt_prog_compiler_pic_GCJ='-fPIC'
11952 ;;
11953 esac
11954 else
11955 # PORTME Check for flag to pass linker flags through the system compiler.
11956 case $host_os in
11957 aix*)
11958 lt_prog_compiler_wl_GCJ='-Wl,'
11959 if test "$host_cpu" = ia64; then
11960 # AIX 5 now supports IA64 processor
11961 lt_prog_compiler_static_GCJ='-Bstatic'
11962 else
11963 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11964 fi
11965 ;;
11966
11967 cygwin* | mingw* | pw32* | os2*)
11968 # This hack is so that the source file can tell whether it is being
11969 # built for inclusion in a dll (and should export symbols for example).
11970 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11971 ;;
11972
11973 hpux9* | hpux10* | hpux11*)
11974 lt_prog_compiler_wl_GCJ='-Wl,'
11975 if test "$host_cpu" != ia64; then
11976 lt_prog_compiler_pic_GCJ='+Z'
11977 fi
11978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11979 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11980 ;;
11981
11982 irix5* | irix6* | nonstopux*)
11983 lt_prog_compiler_wl_GCJ='-Wl,'
11984 # PIC (with -KPIC) is the default.
11985 lt_prog_compiler_static_GCJ='-non_shared'
11986 ;;
11987
11988 newsos6)
11989 lt_prog_compiler_pic_GCJ='-KPIC'
11990 lt_prog_compiler_static_GCJ='-Bstatic'
11991 ;;
11992
11993 osf3* | osf4* | osf5*)
11994 lt_prog_compiler_wl_GCJ='-Wl,'
11995 # All OSF/1 code is PIC.
11996 lt_prog_compiler_static_GCJ='-non_shared'
11997 ;;
11998
11999 sco3.2v5*)
12000 lt_prog_compiler_pic_GCJ='-Kpic'
12001 lt_prog_compiler_static_GCJ='-dn'
12002 ;;
12003
12004 solaris*)
12005 lt_prog_compiler_wl_GCJ='-Wl,'
12006 lt_prog_compiler_pic_GCJ='-KPIC'
12007 lt_prog_compiler_static_GCJ='-Bstatic'
12008 ;;
12009
12010 sunos4*)
12011 lt_prog_compiler_wl_GCJ='-Qoption ld '
12012 lt_prog_compiler_pic_GCJ='-PIC'
12013 lt_prog_compiler_static_GCJ='-Bstatic'
12014 ;;
12015
12016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12017 if test "x$host_vendor" = xsni; then
12018 lt_prog_compiler_wl_GCJ='-LD'
12019 else
12020 lt_prog_compiler_wl_GCJ='-Wl,'
12021 fi
12022 lt_prog_compiler_pic_GCJ='-KPIC'
12023 lt_prog_compiler_static_GCJ='-Bstatic'
12024 ;;
12025
12026 sysv4*MP*)
12027 if test -d /usr/nec ;then
12028 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12029 lt_prog_compiler_static_GCJ='-Bstatic'
12030 fi
12031 ;;
12032
12033 uts4*)
12034 lt_prog_compiler_pic_GCJ='-pic'
12035 lt_prog_compiler_static_GCJ='-Bstatic'
12036 ;;
12037
12038 *)
12039 lt_prog_compiler_can_build_shared_GCJ=no
12040 ;;
12041 esac
12042 fi
12043
12044echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12045echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12046
12047#
12048# Check to make sure the PIC flag actually works.
12049#
12050if test -n "$lt_prog_compiler_pic_GCJ"; then
12051 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12052echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12053if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055else
12056 lt_prog_compiler_pic_works_GCJ=no
12057 ac_outfile=conftest.$ac_objext
12058 save_CFLAGS="$CFLAGS"
12059 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
12060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12061 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12062 # The compiler can only warn and ignore the option if not recognized
12063 # So say no if there are warnings
12064 if test -s conftest.err; then
12065 # Append any errors to the config.log.
12066 cat conftest.err 1>&5
12067 else
12068 lt_prog_compiler_pic_works_GCJ=yes
12069 fi
12070 fi
12071 $rm conftest*
12072 CFLAGS="$save_CFLAGS"
12073
12074fi
12075echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12076echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
12077
12078if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12079 case $lt_prog_compiler_pic_GCJ in
12080 "" | " "*) ;;
12081 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12082 esac
12083else
12084 lt_prog_compiler_pic_GCJ=
12085 lt_prog_compiler_can_build_shared_GCJ=no
12086fi
12087
12088fi
12089case "$host_os" in
12090 # For platforms which do not support PIC, -DPIC is meaningless:
12091 *djgpp*)
12092 lt_prog_compiler_pic_GCJ=
12093 ;;
12094 *)
12095 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
12096 ;;
12097esac
12098
12099echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12100echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12101if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 lt_cv_prog_compiler_c_o_GCJ=no
12105 $rm -r conftest 2>/dev/null
12106 mkdir conftest
12107 cd conftest
12108 mkdir out
12109 save_GCJFLAGS="$GCJFLAGS"
12110 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
12111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12112
12113 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12114 # that will create temporary files in the current directory regardless of
12115 # the output directory. Thus, making CWD read-only will cause this test
12116 # to fail, enabling locking or at least warning the user not to do parallel
12117 # builds.
12118 chmod -w .
12119
12120 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12121 then
12122 # The compiler can only warn and ignore the option if not recognized
12123 # So say no if there are warnings
12124 if test -s out/conftest.err; then
12125 # Append any errors to the config.log.
12126 cat out/conftest.err 1>&5
12127 else
12128 lt_cv_prog_compiler_c_o_GCJ=yes
12129 fi
12130 fi
12131 GCJFLAGS="$save_GCJFLAGS"
12132 chmod u+w .
12133 $rm conftest* out/*
12134 rmdir out
12135 cd ..
12136 rmdir conftest
12137 $rm conftest*
12138
12139fi
12140echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12141echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
12142
12143
12144hard_links="nottested"
12145if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12146 # do not overwrite the value of need_locks provided by the user
12147 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12148echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12149 hard_links=yes
12150 $rm conftest*
12151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12152 touch conftest.a
12153 ln conftest.a conftest.b 2>&5 || hard_links=no
12154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12155 echo "$as_me:$LINENO: result: $hard_links" >&5
12156echo "${ECHO_T}$hard_links" >&6
12157 if test "$hard_links" = no; then
12158 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12159echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12160 need_locks=warn
12161 fi
12162else
12163 need_locks=no
12164fi
12165
12166echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12167echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12168
12169 runpath_var=
12170 allow_undefined_flag_GCJ=
12171
12172 archive_cmds_GCJ=
12173 archive_cmds_need_lc_GCJ=
12174 archive_expsym_cmds_GCJ=
12175 old_archive_From_new_cmds_GCJ=
12176 old_archive_from_expsyms_cmds_GCJ=
12177 export_dynamic_flag_spec_GCJ=
12178 whole_archive_flag_spec_GCJ=
12179 thread_safe_flag_spec_GCJ=
12180 hardcode_libdir_flag_spec_GCJ=
12181 hardcode_libdir_separator_GCJ=
12182 hardcode_direct_GCJ=no
12183 hardcode_minus_L_GCJ=no
12184 hardcode_shlibpath_var_GCJ=unsupported
12185 link_all_deplibs_GCJ=unknown
12186 always_export_symbols_GCJ=no
12187 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12188 # include_expsyms should be a list of space-separated symbols to be *always*
12189 # included in the symbol list
12190 include_expsyms_GCJ=
12191 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12194 # as well as any symbol that contains `d'.
12195 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12197 # platforms (ab)use it in PIC code, but their linkers get confused if
12198 # the symbol is explicitly referenced. Since portable code cannot
12199 # rely on this symbol name, it's probably fine to never include it in
12200 # preloaded symbol tables.
12201 extract_expsyms_cmds=
12202
12203 case $host_os in
12204 cygwin* | mingw* | pw32*)
12205 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12206 # When not using gcc, we currently assume that we are using
12207 # Microsoft Visual C++.
12208 if test "$GCC" != yes; then
12209 with_gnu_ld=no
12210 fi
12211 ;;
12212 openbsd*)
12213 with_gnu_ld=no
12214 ;;
12215 esac
12216
12217 ld_shlibs_GCJ=yes
12218 if test "$with_gnu_ld" = yes; then
12219 # If archive_cmds runs LD, not CC, wlarc should be empty
12220 wlarc='${wl}'
12221
12222 # See if GNU ld supports shared libraries.
12223 case $host_os in
12224 aix3* | aix4* | aix5*)
12225 # On AIX/PPC, the GNU linker is very broken
12226 if test "$host_cpu" != ia64; then
12227 ld_shlibs_GCJ=no
12228 cat <<EOF 1>&2
12229
12230*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12231*** to be unable to reliably create shared libraries on AIX.
12232*** Therefore, libtool is disabling shared libraries support. If you
12233*** really care for shared libraries, you may want to modify your PATH
12234*** so that a non-GNU linker is found, and then restart.
12235
12236EOF
12237 fi
12238 ;;
12239
12240 amigaos*)
12241 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)'
12242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12243 hardcode_minus_L_GCJ=yes
12244
12245 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12246 # that the semantics of dynamic libraries on AmigaOS, at least up
12247 # to version 4, is to share data among multiple programs linked
12248 # with the same dynamic library. Since this doesn't match the
12249 # behavior of shared libraries on other platforms, we can't use
12250 # them.
12251 ld_shlibs_GCJ=no
12252 ;;
12253
12254 beos*)
12255 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12256 allow_undefined_flag_GCJ=unsupported
12257 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12258 # support --undefined. This deserves some investigation. FIXME
12259 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260 else
12261 ld_shlibs_GCJ=no
12262 fi
12263 ;;
12264
12265 cygwin* | mingw* | pw32*)
12266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12267 # no search path for DLLs.
12268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12269 allow_undefined_flag_GCJ=unsupported
12270 always_export_symbols_GCJ=yes
12271
12272 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12273 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12274 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12275 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12276 else $CC -o impgen impgen.c ; fi)~
12277 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12278
12279 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12280
12281 # cygwin and mingw dlls have different entry points and sets of symbols
12282 # to exclude.
12283 # FIXME: what about values for MSVC?
12284 dll_entry=__cygwin_dll_entry@12
12285 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
12286 case $host_os in
12287 mingw*)
12288 # mingw values
12289 dll_entry=_DllMainCRTStartup@12
12290 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
12291 ;;
12292 esac
12293
12294 # mingw and cygwin differ, and it's simplest to just exclude the union
12295 # of the two symbol sets.
12296 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12297
12298 # recent cygwin and mingw systems supply a stub DllMain which the user
12299 # can override, but on older systems we have to supply one (in ltdll.c)
12300 if test "x$lt_cv_need_dllmain" = "xyes"; then
12301 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12302 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12303 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12304 else
12305 ltdll_obj=
12306 ltdll_cmds=
12307 fi
12308
12309 # Extract the symbol export list from an `--export-all' def file,
12310 # then regenerate the def file from the symbol export list, so that
12311 # the compiled dll only exports the symbol export list.
12312 # Be careful not to strip the DATA tag left by newer dlltools.
12313 export_symbols_cmds_GCJ="$ltdll_cmds"'
12314 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12315 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12316
12317 # If the export-symbols file already is a .def file (1st line
12318 # is EXPORTS), use it as is.
12319 # If DATA tags from a recent dlltool are present, honour them!
12320 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12321 cp $export_symbols $output_objdir/$soname-def;
12322 else
12323 echo EXPORTS > $output_objdir/$soname-def;
12324 _lt_hint=1;
12325 cat $export_symbols | while read symbol; do
12326 set dummy \$symbol;
12327 case \$# in
12328 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12329 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12330 esac;
12331 _lt_hint=`expr 1 + \$_lt_hint`;
12332 done;
12333 fi~
12334 '"$ltdll_cmds"'
12335 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12336 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12337 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12338 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12339 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12340 ;;
12341
12342 netbsd*)
12343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12344 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12345 wlarc=
12346 else
12347 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12348 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12349 fi
12350 ;;
12351
12352 solaris* | sysv5*)
12353 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12354 ld_shlibs_GCJ=no
12355 cat <<EOF 1>&2
12356
12357*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12358*** create shared libraries on Solaris systems. Therefore, libtool
12359*** is disabling shared libraries support. We urge you to upgrade GNU
12360*** binutils to release 2.9.1 or newer. Another option is to modify
12361*** your PATH or compiler configuration so that the native linker is
12362*** used, and then restart.
12363
12364EOF
12365 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12366 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12367 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12368 else
12369 ld_shlibs_GCJ=no
12370 fi
12371 ;;
12372
12373 sunos4*)
12374 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12375 wlarc=
12376 hardcode_direct_GCJ=yes
12377 hardcode_shlibpath_var_GCJ=no
12378 ;;
12379
12380 *)
12381 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12384 else
12385 ld_shlibs_GCJ=no
12386 fi
12387 ;;
12388 esac
12389
12390 if test "$ld_shlibs_GCJ" = yes; then
12391 runpath_var=LD_RUN_PATH
12392 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12393 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12394 case $host_os in
12395 cygwin* | mingw* | pw32*)
12396 # dlltool doesn't understand --whole-archive et. al.
12397 whole_archive_flag_spec_GCJ=
12398 ;;
12399 *)
12400 # ancient GNU ld didn't support --whole-archive et. al.
12401 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12402 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12403 else
12404 whole_archive_flag_spec_GCJ=
12405 fi
12406 ;;
12407 esac
12408 fi
12409 else
12410 # PORTME fill in a description of your system's linker (not GNU ld)
12411 case $host_os in
12412 aix3*)
12413 allow_undefined_flag_GCJ=unsupported
12414 always_export_symbols_GCJ=yes
12415 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'
12416 # Note: this linker hardcodes the directories in LIBPATH if there
12417 # are no directories specified by -L.
12418 hardcode_minus_L_GCJ=yes
12419 if test "$GCC" = yes && test -z "$link_static_flag"; then
12420 # Neither direct hardcoding nor static linking is supported with a
12421 # broken collect2.
12422 hardcode_direct_GCJ=unsupported
12423 fi
12424 ;;
12425
12426 aix4* | aix5*)
12427 if test "$host_cpu" = ia64; then
12428 # On IA64, the linker does run time linking by default, so we don't
12429 # have to do anything special.
12430 aix_use_runtimelinking=no
12431 exp_sym_flag='-Bexport'
12432 no_entry_flag=""
12433 else
12434 # If we're using GNU nm, then we don't want the "-C" option.
12435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12436 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12437 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'
12438 else
12439 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'
12440 fi
12441
12442 # KDE requires run time linking. Make it the default.
12443 aix_use_runtimelinking=yes
12444 exp_sym_flag='-bexport'
12445 no_entry_flag='-bnoentry'
12446 fi
12447
12448 # When large executables or shared objects are built, AIX ld can
12449 # have problems creating the table of contents. If linking a library
12450 # or program results in "error TOC overflow" add -mminimal-toc to
12451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12453
12454 archive_cmds_GCJ=''
12455 hardcode_direct_GCJ=yes
12456 hardcode_libdir_separator_GCJ=':'
12457 link_all_deplibs_GCJ=yes
12458
12459 if test "$GCC" = yes; then
12460 case $host_os in aix4.012|aix4.012.*)
12461 # We only want to do this on AIX 4.2 and lower, the check
12462 # below for broken collect2 doesn't work under 4.3+
12463 collect2name=`${CC} -print-prog-name=collect2`
12464 if test -f "$collect2name" && \
12465 strings "$collect2name" | grep resolve_lib_name >/dev/null
12466 then
12467 # We have reworked collect2
12468 hardcode_direct_GCJ=yes
12469 else
12470 # We have old collect2
12471 hardcode_direct_GCJ=unsupported
12472 # It fails to find uninstalled libraries when the uninstalled
12473 # path is not listed in the libpath. Setting hardcode_minus_L
12474 # to unsupported forces relinking
12475 hardcode_minus_L_GCJ=yes
12476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12477 hardcode_libdir_separator_GCJ=
12478 fi
12479 esac
12480 shared_flag='-shared'
12481 else
12482 # not using gcc
12483 if test "$host_cpu" = ia64; then
12484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12485 # chokes on -Wl,-G. The following line is correct:
12486 shared_flag='-G'
12487 else
12488 if test "$aix_use_runtimelinking" = yes; then
12489 shared_flag='-qmkshrobj ${wl}-G'
12490 else
12491 shared_flag='-qmkshrobj'
12492 fi
12493 fi
12494 fi
12495
12496 # Let the compiler handle the export list.
12497 always_export_symbols_GCJ=no
12498 if test "$aix_use_runtimelinking" = yes; then
12499 # Warning - without using the other runtime loading flags (-brtl),
12500 # -berok will link without error, but may produce a broken library.
12501 allow_undefined_flag_GCJ='-berok'
12502 # Determine the default libpath from the value encoded in an empty executable.
12503 cat >conftest.$ac_ext <<_ACEOF
12504#line $LINENO "configure"
12505#include "confdefs.h"
12506
12507#ifdef F77_DUMMY_MAIN
12508# ifdef __cplusplus
12509 extern "C"
12510# endif
12511 int F77_DUMMY_MAIN() { return 1; }
12512#endif
12513int
12514main ()
12515{
12516
12517 ;
12518 return 0;
12519}
12520_ACEOF
12521rm -f conftest.$ac_objext conftest$ac_exeext
12522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533
12534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12535}'`
12536# Check for a 64-bit object if we didn't find anything.
12537if 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; }
12538}'`; fi
12539else
12540 echo "$as_me: failed program was:" >&5
12541cat conftest.$ac_ext >&5
12542fi
12543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12545
12546 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12547 archive_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` '" $shared_flag"
12548 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}$exp_sym_flag:\$export_symbols $shared_flag"
12549 else
12550 if test "$host_cpu" = ia64; then
12551 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
12552 allow_undefined_flag_GCJ="-z nodefs"
12553 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"
12554 else
12555 # Determine the default libpath from the value encoded in an empty executable.
12556 cat >conftest.$ac_ext <<_ACEOF
12557#line $LINENO "configure"
12558#include "confdefs.h"
12559
12560#ifdef F77_DUMMY_MAIN
12561# ifdef __cplusplus
12562 extern "C"
12563# endif
12564 int F77_DUMMY_MAIN() { return 1; }
12565#endif
12566int
12567main ()
12568{
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574rm -f conftest.$ac_objext conftest$ac_exeext
12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576 (eval $ac_link) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586
12587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12588}'`
12589# Check for a 64-bit object if we didn't find anything.
12590if 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; }
12591}'`; fi
12592else
12593 echo "$as_me: failed program was:" >&5
12594cat conftest.$ac_ext >&5
12595fi
12596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12598
12599 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12600 # Warning - without using the other run time loading flags,
12601 # -berok will link without error, but may produce a broken library.
12602 no_undefined_flag_GCJ=' ${wl}-bernotok'
12603 allow_undefined_flag_GCJ=' ${wl}-berok'
12604 # -bexpall does not export symbols beginning with underscore (_)
12605 always_export_symbols_GCJ=yes
12606 # Exported symbols can be pulled into shared objects from archives
12607 whole_archive_flag_spec_GCJ=' '
12608 archive_cmds_need_lc_GCJ=yes
12609 # This is similar to how AIX traditionally builds it's shared libraries.
12610 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'
12611 fi
12612 fi
12613 ;;
12614
12615 amigaos*)
12616 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)'
12617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12618 hardcode_minus_L_GCJ=yes
12619 # see comment about different semantics on the GNU ld section
12620 ld_shlibs_GCJ=no
12621 ;;
12622
12623 bsdi4*)
12624 export_dynamic_flag_spec_GCJ=-rdynamic
12625 ;;
12626
12627 cygwin* | mingw* | pw32*)
12628 # When not using gcc, we currently assume that we are using
12629 # Microsoft Visual C++.
12630 # hardcode_libdir_flag_spec is actually meaningless, as there is
12631 # no search path for DLLs.
12632 hardcode_libdir_flag_spec_GCJ=' '
12633 allow_undefined_flag_GCJ=unsupported
12634 # Tell ltmain to make .lib files, not .a files.
12635 libext=lib
12636 # FIXME: Setting linknames here is a bad hack.
12637 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12638 # The linker will automatically build a .lib file if we build a DLL.
12639 old_archive_From_new_cmds_GCJ='true'
12640 # FIXME: Should let the user specify the lib program.
12641 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
12642 fix_srcfile_path='`cygpath -w "$srcfile"`'
12643 ;;
12644
12645 darwin* | rhapsody*)
12646 case "$host_os" in
12647 rhapsody* | darwin1.[012])
12648 allow_undefined_flag_GCJ='-undefined suppress'
12649 ;;
12650 *) # Darwin 1.3 on
12651 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
12652 ;;
12653 esac
12654
12655 # FIXME: Relying on posixy $() will cause problems for
12656 # cross-compilation, but unfortunately the echo tests do not
12657 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12658 # `"' quotes if we put them in here... so don't!
12659 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12660 # We need to add '_' to the symbols in $export_symbols first
12661 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12662 hardcode_direct_GCJ=yes
12663 hardcode_shlibpath_var_GCJ=no
12664 whole_archive_flag_spec_GCJ='-all_load $convenience'
12665 ;;
12666
12667 dgux*)
12668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12670 hardcode_shlibpath_var_GCJ=no
12671 ;;
12672
12673 freebsd1*)
12674 ld_shlibs_GCJ=no
12675 ;;
12676
12677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12678 # support. Future versions do this automatically, but an explicit c++rt0.o
12679 # does not break anything, and helps significantly (at the cost of a little
12680 # extra space).
12681 freebsd2.2*)
12682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12684 hardcode_direct_GCJ=yes
12685 hardcode_shlibpath_var_GCJ=no
12686 ;;
12687
12688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12689 freebsd2*)
12690 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12691 hardcode_direct_GCJ=yes
12692 hardcode_minus_L_GCJ=yes
12693 hardcode_shlibpath_var_GCJ=no
12694 ;;
12695
12696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12697 freebsd*)
12698 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12700 hardcode_direct_GCJ=yes
12701 hardcode_shlibpath_var_GCJ=no
12702 ;;
12703
12704 hpux9* | hpux10* | hpux11*)
12705 if test "$GCC" = yes; then
12706 case $host_os in
12707 hpux9*)
12708 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'
12709 ;;
12710 *)
12711 if test "$host_cpu" = ia64; then
12712 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12713 else
12714 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12715 fi
12716 ;;
12717 esac
12718 else
12719 case $host_os in
12720 hpux9*)
12721 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'
12722 ;;
12723 *)
12724 if test "$host_cpu" = ia64; then
12725 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12726 else
12727 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12728 fi
12729 ;;
12730 esac
12731 fi
12732 if test "$host_cpu" = ia64; then
12733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12734 hardcode_direct_GCJ=no
12735 hardcode_shlibpath_var_GCJ=no
12736 else
12737 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
12738 hardcode_libdir_separator_GCJ=:
12739 hardcode_direct_GCJ=yes
12740 fi
12741 # hardcode_minus_L: Not really in the search PATH,
12742 # but as the default location of the library.
12743 hardcode_minus_L_GCJ=yes
12744 export_dynamic_flag_spec_GCJ='${wl}-E'
12745 ;;
12746
12747 irix5* | irix6* | nonstopux*)
12748 if test "$GCC" = yes; then
12749 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'
12750 else
12751 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'
12752 fi
12753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12754 hardcode_libdir_separator_GCJ=:
12755 link_all_deplibs_GCJ=yes
12756 ;;
12757
12758 netbsd*)
12759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12761 else
12762 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12763 fi
12764 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12765 hardcode_direct_GCJ=yes
12766 hardcode_shlibpath_var_GCJ=no
12767 ;;
12768
12769 newsos6)
12770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct_GCJ=yes
12772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12773 hardcode_libdir_separator_GCJ=:
12774 hardcode_shlibpath_var_GCJ=no
12775 ;;
12776
12777 openbsd*)
12778 hardcode_direct_GCJ=yes
12779 hardcode_shlibpath_var_GCJ=no
12780
12781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12782 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12784 export_dynamic_flag_spec_GCJ='${wl}-E'
12785 else
12786 case $host_os in
12787 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12788 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12789 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12790 ;;
12791 *)
12792 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12793 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12794 ;;
12795 esac
12796 fi
12797 ;;
12798
12799 os2*)
12800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12801 hardcode_minus_L_GCJ=yes
12802 allow_undefined_flag_GCJ=unsupported
12803 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'
12804 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12805 ;;
12806
12807 osf3*)
12808 if test "$GCC" = yes; then
12809 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12810 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'
12811 else
12812 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12813 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'
12814 fi
12815 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12816 hardcode_libdir_separator_GCJ=:
12817 ;;
12818
12819 osf4* | osf5*) # as osf3* with the addition of -msym flag
12820 if test "$GCC" = yes; then
12821 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12822 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'
12823 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12824 else
12825 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12826 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'
12827 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12828 $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'
12829
12830 # Both c and cxx compiler support -rpath directly
12831 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
12832 fi
12833 hardcode_libdir_separator_GCJ=:
12834 ;;
12835
12836 sco3.2v5*)
12837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12838 hardcode_shlibpath_var_GCJ=no
12839 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
12840 runpath_var=LD_RUN_PATH
12841 hardcode_runpath_var=yes
12842 ;;
12843
12844 solaris*)
12845 no_undefined_flag_GCJ=' -z text'
12846 if test "$GCC" = yes; then
12847 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12849 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12850 else
12851 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12854 fi
12855 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12856 hardcode_shlibpath_var_GCJ=no
12857 case $host_os in
12858 solaris2.[0-5] | solaris2.[0-5].*) ;;
12859 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12860 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
12861 esac
12862 link_all_deplibs_GCJ=yes
12863 ;;
12864
12865 sunos4*)
12866 if test "x$host_vendor" = xsequent; then
12867 # Use $CC to link under sequent, because it throws in some extra .o
12868 # files that make .init and .fini sections work.
12869 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12870 else
12871 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12872 fi
12873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12874 hardcode_direct_GCJ=yes
12875 hardcode_minus_L_GCJ=yes
12876 hardcode_shlibpath_var_GCJ=no
12877 ;;
12878
12879 sysv4)
12880 if test "x$host_vendor" = xsni; then
12881 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_direct_GCJ=yes # is this really true???
12883 else
12884 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
12886 fi
12887 runpath_var='LD_RUN_PATH'
12888 hardcode_shlibpath_var_GCJ=no
12889 ;;
12890
12891 sysv4.3*)
12892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12893 hardcode_shlibpath_var_GCJ=no
12894 export_dynamic_flag_spec_GCJ='-Bexport'
12895 ;;
12896
12897 sysv4*MP*)
12898 if test -d /usr/nec; then
12899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_shlibpath_var_GCJ=no
12901 runpath_var=LD_RUN_PATH
12902 hardcode_runpath_var=yes
12903 ld_shlibs_GCJ=yes
12904 fi
12905 ;;
12906
12907 sysv4.2uw2*)
12908 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_direct_GCJ=yes
12910 hardcode_minus_L_GCJ=no
12911 hardcode_shlibpath_var_GCJ=no
12912 hardcode_runpath_var=yes
12913 runpath_var=LD_RUN_PATH
12914 ;;
12915
12916 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12917 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12918 if test "$GCC" = yes; then
12919 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12920 else
12921 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12922 fi
12923 runpath_var='LD_RUN_PATH'
12924 hardcode_shlibpath_var_GCJ=no
12925 ;;
12926
12927 sysv5*)
12928 no_undefined_flag_GCJ=' -z text'
12929 # $CC -shared without GNU ld will not create a library from C++
12930 # object files and a static libstdc++, better avoid it by now
12931 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12934 hardcode_libdir_flag_spec_GCJ=
12935 hardcode_shlibpath_var_GCJ=no
12936 runpath_var='LD_RUN_PATH'
12937 ;;
12938
12939 uts4*)
12940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12942 hardcode_shlibpath_var_GCJ=no
12943 ;;
12944
12945 *)
12946 ld_shlibs_GCJ=no
12947 ;;
12948 esac
12949 fi
12950
12951echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12952echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12953test "$ld_shlibs_GCJ" = no && can_build_shared=no
12954
12955variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12956if test "$GCC" = yes; then
12957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12958fi
12959
12960#
12961# Do we need to explicitly link libc?
12962#
12963archive_cmds_need_lc_GCJ=yes
12964if test "$enable_shared" = yes && test "$GCC" = yes; then
12965 case $archive_cmds_GCJ in
12966 *'~'*)
12967 # FIXME: we may have to deal with multi-command sequences.
12968 ;;
12969 '$CC '*)
12970 # Test whether the compiler implicitly links with -lc since on some
12971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12972 # to ld, don't add -lc before -lgcc.
12973 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12974echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12975 $rm conftest*
12976 echo 'static int dummy;' > conftest.$ac_ext
12977
12978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12979 (eval $ac_compile) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } 2>conftest.err; then
12983 soname=conftest
12984 lib=conftest
12985 libobjs=conftest.$ac_objext
12986 deplibs=
12987 wl=$lt_prog_compiler_wl_GCJ
12988 compiler_flags=-v
12989 linker_flags=-v
12990 verstring=
12991 output_objdir=.
12992 libname=conftest
12993 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12994 allow_undefined_flag_GCJ=
12995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12996 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }
13000 then
13001 archive_cmds_need_lc_GCJ=no
13002 else
13003 archive_cmds_need_lc_GCJ=yes
13004 fi
13005 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
13006 else
13007 cat conftest.err 1>&5
13008 fi
13009 $rm conftest*
13010 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
13011echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
13012 ;;
13013 esac
13014fi
13015
13016echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13017echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13018hardcode_action_GCJ=
13019if test -n "$hardcode_libdir_flag_spec_GCJ" || \
13020 test -n "$runpath_var GCJ"; then
13021
13022 # We can hardcode non-existant directories.
13023 if test "$hardcode_direct_GCJ" != no &&
13024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13025 # have to relink, otherwise we might link with an installed library
13026 # when we should be linking with a yet-to-be-installed one
13027 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
13028 test "$hardcode_minus_L_GCJ" != no; then
13029 # Linking always hardcodes the temporary library directory.
13030 hardcode_action_GCJ=relink
13031 else
13032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13033 hardcode_action_GCJ=immediate
13034 fi
13035else
13036 # We cannot hardcode anything, or else we can only hardcode existing
13037 # directories.
13038 hardcode_action_GCJ=unsupported
13039fi
13040echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
13041echo "${ECHO_T}$hardcode_action_GCJ" >&6
13042
13043if test "$hardcode_action_GCJ" = relink; then
13044 # Fast installation is not supported
13045 enable_fast_install=no
13046elif test "$shlibpath_overrides_runpath" = yes ||
13047 test "$enable_shared" = no; then
13048 # Fast installation is not necessary
13049 enable_fast_install=needless
13050fi
13051
13052striplib=
13053old_striplib=
13054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13055echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13058 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13059 echo "$as_me:$LINENO: result: yes" >&5
13060echo "${ECHO_T}yes" >&6
13061else
13062 echo "$as_me:$LINENO: result: no" >&5
13063echo "${ECHO_T}no" >&6
13064fi
13065
13066echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13067echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13068library_names_spec=
13069libname_spec='lib$name'
13070soname_spec=
13071postinstall_cmds=
13072postuninstall_cmds=
13073finish_cmds=
13074finish_eval=
13075shlibpath_var=
13076shlibpath_overrides_runpath=unknown
13077version_type=none
13078dynamic_linker="$host_os ld.so"
13079sys_lib_dlsearch_path_spec="/lib /usr/lib"
13080sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13081need_lib_prefix=unknown
13082hardcode_into_libs=no
13083
13084# when you set need_version to no, make sure it does not cause -set_version
13085# flags to be left without arguments
13086need_version=unknown
13087
13088case $host_os in
13089aix3*)
13090 version_type=linux
13091 library_names_spec='${libname}${release}.so$versuffix $libname.a'
13092 shlibpath_var=LIBPATH
13093
13094 # AIX 3 has no versioning support, so we append a major version to the name.
13095 soname_spec='${libname}${release}.so$major'
13096 ;;
13097
13098aix4* | aix5*)
13099 version_type=linux
13100 if test "$host_cpu" = ia64; then
13101 # AIX 5 supports IA64
13102 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 else
13105 # With GCC up to 2.95.x, collect2 would create an import file
13106 # for dependence libraries. The import file would start with
13107 # the line `#! .'. This would cause the generated library to
13108 # depend on `.', always an invalid library. This was fixed in
13109 # development snapshots of GCC prior to 3.0.
13110 case $host_os in
13111 aix4 | aix4.[01] | aix4.[01].*)
13112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13113 echo ' yes '
13114 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13115 :
13116 else
13117 can_build_shared=no
13118 fi
13119 ;;
13120 esac
13121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13122 # soname into executable. Probably we can add versioning support to
13123 # collect2, so additional links can be useful in future.
13124 if test "$aix_use_runtimelinking" = yes; then
13125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13126 # instead of lib<name>.a to let people know that these are not
13127 # typical AIX shared libraries.
13128 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13129 else
13130 # We preserve .a as extension for shared libraries through AIX4.2
13131 # and later when we are not doing run time linking.
13132 library_names_spec='${libname}${release}.a $libname.a'
13133 soname_spec='${libname}${release}.so$major'
13134 fi
13135 shlibpath_var=LIBPATH
13136 fi
13137 ;;
13138
13139amigaos*)
13140 library_names_spec='$libname.ixlibrary $libname.a'
13141 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13142 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'
13143 ;;
13144
13145beos*)
13146 library_names_spec='${libname}.so'
13147 dynamic_linker="$host_os ld.so"
13148 shlibpath_var=LIBRARY_PATH
13149 ;;
13150
13151bsdi4*)
13152 version_type=linux
13153 need_version=no
13154 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13155 soname_spec='${libname}${release}.so$major'
13156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13160 # the default ld.so.conf also contains /usr/contrib/lib and
13161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13162 # libtool to hard-code these into programs
13163 ;;
13164
13165cygwin* | mingw* | pw32*)
13166 version_type=windows
13167 need_version=no
13168 need_lib_prefix=no
13169 case $GCC,$host_os in
13170 yes,cygwin*)
13171 library_names_spec='$libname.dll.a'
13172 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13174 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13175 dldir=$destdir/`dirname \$dlpath`~
13176 test -d \$dldir || mkdir -p \$dldir~
13177 $install_prog .libs/$dlname \$dldir/$dlname'
13178 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13179 dlpath=$dir/\$dldll~
13180 $rm \$dlpath'
13181 ;;
13182 yes,mingw*)
13183 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13185 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
13186 # It is most probably a Windows format PATH printed by
13187 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13188 # path with ; separators, and with drive letters. We can handle the
13189 # drive letters (cygwin fileutils understands them), so leave them,
13190 # especially as we might pass files found there to a mingw objdump,
13191 # which wouldn't understand a cygwinified path. Ahh.
13192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13193 else
13194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13195 fi
13196 ;;
13197 yes,pw32*)
13198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13199 ;;
13200 *)
13201 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13202 ;;
13203 esac
13204 dynamic_linker='Win32 ld.exe'
13205 # FIXME: first we should search . and the directory the executable is in
13206 shlibpath_var=PATH
13207 ;;
13208
13209darwin* | rhapsody*)
13210 dynamic_linker="$host_os dyld"
13211 version_type=darwin
13212 need_lib_prefix=no
13213 need_version=no
13214 # FIXME: Relying on posixy $() will cause problems for
13215 # cross-compilation, but unfortunately the echo tests do not
13216 # yet detect zsh echo's removal of \ escapes.
13217 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13218 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13219 shlibpath_overrides_runpath=yes
13220 shlibpath_var=DYLD_LIBRARY_PATH
13221 ;;
13222
13223dgux*)
13224 version_type=linux
13225 need_lib_prefix=no
13226 need_version=no
13227 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13228 soname_spec='${libname}${release}.so$major'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 ;;
13231
13232freebsd1*)
13233 dynamic_linker=no
13234 ;;
13235
13236freebsd*)
13237 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13238 version_type=freebsd-$objformat
13239 case $version_type in
13240 freebsd-elf*)
13241 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13242 need_version=no
13243 need_lib_prefix=no
13244 ;;
13245 freebsd-*)
13246 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13247 need_version=yes
13248 ;;
13249 esac
13250 shlibpath_var=LD_LIBRARY_PATH
13251 case $host_os in
13252 freebsd2*)
13253 shlibpath_overrides_runpath=yes
13254 ;;
13255 freebsd3.01* | freebsdelf3.01*)
13256 shlibpath_overrides_runpath=yes
13257 hardcode_into_libs=yes
13258 ;;
13259 *) # from 3.2 on
13260 shlibpath_overrides_runpath=no
13261 hardcode_into_libs=yes
13262 ;;
13263 esac
13264 ;;
13265
13266gnu*)
13267 version_type=linux
13268 need_lib_prefix=no
13269 need_version=no
13270 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13271 soname_spec='${libname}${release}.so$major'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 hardcode_into_libs=yes
13274 ;;
13275
13276hpux9* | hpux10* | hpux11*)
13277 # Give a soname corresponding to the major version so that dld.sl refuses to
13278 # link against other versions.
13279 version_type=sunos
13280 need_lib_prefix=no
13281 need_version=no
13282 if test "$host_cpu" = ia64; then
13283 hardcode_into_libs=yes
13284 dynamic_linker="$host_os dld.so"
13285 shlibpath_var=LD_LIBRARY_PATH
13286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13287 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13288 soname_spec='${libname}${release}.so$major'
13289 if test "X$HPUX_IA64_MODE" = X32; then
13290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13291 else
13292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13293 fi
13294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13295 else
13296 dynamic_linker="$host_os dld.sl"
13297 shlibpath_var=SHLIB_PATH
13298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13299 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13300 soname_spec='${libname}${release}.sl$major'
13301 fi
13302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13303 postinstall_cmds='chmod 555 $lib'
13304 ;;
13305
13306irix5* | irix6* | nonstopux*)
13307 case $host_os in
13308 nonstopux*) version_type=nonstopux ;;
13309 *) version_type=irix ;;
13310 esac
13311 need_lib_prefix=no
13312 need_version=no
13313 soname_spec='${libname}${release}.so$major'
13314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13315 case $host_os in
13316 irix5* | nonstopux*)
13317 libsuff= shlibsuff=
13318 ;;
13319 *)
13320 case $LD in # libtool.m4 will add one of these switches to LD
13321 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13322 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13323 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13324 *) libsuff= shlibsuff= libmagic=never-match;;
13325 esac
13326 ;;
13327 esac
13328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13329 shlibpath_overrides_runpath=no
13330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13332 ;;
13333
13334# No shared lib support for Linux oldld, aout, or coff.
13335linux*oldld* | linux*aout* | linux*coff*)
13336 dynamic_linker=no
13337 ;;
13338
13339# This must be Linux ELF.
13340linux*)
13341 version_type=linux
13342 need_lib_prefix=no
13343 need_version=no
13344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13345 soname_spec='${libname}${release}.so$major'
13346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13347 libsuff=
13348 if test "x$LINUX_64_MODE" = x64; then
13349 # Some platforms are per default 64-bit, so there's no /lib64
13350 if test -d /lib64; then
13351 libsuff=64
13352 fi
13353 fi
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=no
13356 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13357 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13358 # This implies no fast_install, which is unacceptable.
13359 # Some rework will be needed to allow for fast_install
13360 # before this can be enabled.
13361 hardcode_into_libs=yes
13362
13363 # We used to test for /lib/ld.so.1 and disable shared libraries on
13364 # powerpc, because MkLinux only supported shared libraries with the
13365 # GNU dynamic linker. Since this was broken with cross compilers,
13366 # most powerpc-linux boxes support dynamic linking these days and
13367 # people can always --disable-shared, the test was removed, and we
13368 # assume the GNU/Linux dynamic linker is in use.
13369 dynamic_linker='GNU/Linux ld.so'
13370 ;;
13371
13372netbsd*)
13373 version_type=sunos
13374 need_lib_prefix=no
13375 need_version=no
13376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13377 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13379 dynamic_linker='NetBSD (a.out) ld.so'
13380 else
13381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13382 soname_spec='${libname}${release}.so$major'
13383 dynamic_linker='NetBSD ld.elf_so'
13384 fi
13385 shlibpath_var=LD_LIBRARY_PATH
13386 shlibpath_overrides_runpath=yes
13387 hardcode_into_libs=yes
13388 ;;
13389
13390newsos6)
13391 version_type=linux
13392 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 shlibpath_overrides_runpath=yes
13395 ;;
13396
13397nto-qnx)
13398 version_type=linux
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13402 soname_spec='${libname}${release}.so$major'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 shlibpath_overrides_runpath=yes
13405 ;;
13406
13407openbsd*)
13408 version_type=sunos
13409 need_lib_prefix=no
13410 need_version=no
13411 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13413 shlibpath_var=LD_LIBRARY_PATH
13414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13415 case $host_os in
13416 openbsd2.[89] | openbsd2.[89].*)
13417 shlibpath_overrides_runpath=no
13418 ;;
13419 *)
13420 shlibpath_overrides_runpath=yes
13421 ;;
13422 esac
13423 else
13424 shlibpath_overrides_runpath=yes
13425 fi
13426 ;;
13427
13428os2*)
13429 libname_spec='$name'
13430 need_lib_prefix=no
13431 library_names_spec='$libname.dll $libname.a'
13432 dynamic_linker='OS/2 ld.exe'
13433 shlibpath_var=LIBPATH
13434 ;;
13435
13436osf3* | osf4* | osf5*)
13437 version_type=osf
13438 need_lib_prefix=no
13439 need_version=no
13440 soname_spec='${libname}${release}.so'
13441 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13445 ;;
13446
13447sco3.2v5*)
13448 version_type=osf
13449 soname_spec='${libname}${release}.so$major'
13450 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13451 shlibpath_var=LD_LIBRARY_PATH
13452 ;;
13453
13454solaris*)
13455 version_type=linux
13456 need_lib_prefix=no
13457 need_version=no
13458 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13459 soname_spec='${libname}${release}.so$major'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=yes
13462 hardcode_into_libs=yes
13463 # ldd complains unless libraries are executable
13464 postinstall_cmds='chmod +x $lib'
13465 ;;
13466
13467sunos4*)
13468 version_type=sunos
13469 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 shlibpath_overrides_runpath=yes
13473 if test "$with_gnu_ld" = yes; then
13474 need_lib_prefix=no
13475 fi
13476 need_version=yes
13477 ;;
13478
13479sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13480 version_type=linux
13481 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13482 soname_spec='${libname}${release}.so$major'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 case $host_vendor in
13485 sni)
13486 shlibpath_overrides_runpath=no
13487 ;;
13488 motorola)
13489 need_lib_prefix=no
13490 need_version=no
13491 shlibpath_overrides_runpath=no
13492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13493 ;;
13494 esac
13495 ;;
13496
13497sysv4*MP*)
13498 if test -d /usr/nec ;then
13499 version_type=linux
13500 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13501 soname_spec='$libname.so.$major'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 fi
13504 ;;
13505
13506uts4*)
13507 version_type=linux
13508 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13509 soname_spec='${libname}${release}.so$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 ;;
13512
13513*)
13514 dynamic_linker=no
13515 ;;
13516esac
13517echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13518echo "${ECHO_T}$dynamic_linker" >&6
13519test "$dynamic_linker" = no && can_build_shared=no
13520
13521if test "x$enable_dlopen" != xyes; then
13522 enable_dlopen=unknown
13523 enable_dlopen_self=unknown
13524 enable_dlopen_self_static=unknown
13525else
13526 lt_cv_dlopen=no
13527 lt_cv_dlopen_libs=
13528
13529 case $host_os in
13530 beos*)
13531 lt_cv_dlopen="load_add_on"
13532 lt_cv_dlopen_libs=
13533 lt_cv_dlopen_self=yes
13534 ;;
13535
13536 cygwin* | mingw* | pw32*)
13537 lt_cv_dlopen="LoadLibrary"
13538 lt_cv_dlopen_libs=
13539 ;;
13540
13541 *)
13542 echo "$as_me:$LINENO: checking for shl_load" >&5
13543echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13544if test "${ac_cv_func_shl_load+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 cat >conftest.$ac_ext <<_ACEOF
13548#line $LINENO "configure"
13549#include "confdefs.h"
13550/* System header to define __stub macros and hopefully few prototypes,
13551 which can conflict with char shl_load (); below. */
13552#include <assert.h>
13553/* Override any gcc2 internal prototype to avoid an error. */
13554#ifdef __cplusplus
13555extern "C"
13556#endif
13557/* We use char because int might match the return type of a gcc2
13558 builtin and then its argument prototype would still apply. */
13559char shl_load ();
13560char (*f) ();
13561
13562#ifdef F77_DUMMY_MAIN
13563# ifdef __cplusplus
13564 extern "C"
13565# endif
13566 int F77_DUMMY_MAIN() { return 1; }
13567#endif
13568int
13569main ()
13570{
13571/* The GNU C library defines this for functions which it implements
13572 to always fail with ENOSYS. Some functions are actually named
13573 something starting with __ and the normal name is an alias. */
13574#if defined (__stub_shl_load) || defined (__stub___shl_load)
13575choke me
13576#else
13577f = shl_load;
13578#endif
13579
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584rm -f conftest.$ac_objext conftest$ac_exeext
13585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_func_shl_load=yes
13597else
13598 echo "$as_me: failed program was:" >&5
13599cat conftest.$ac_ext >&5
13600ac_cv_func_shl_load=no
13601fi
13602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13603fi
13604echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13605echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13606if test $ac_cv_func_shl_load = yes; then
13607 lt_cv_dlopen="shl_load"
13608else
13609 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13610echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13611if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614 ac_check_lib_save_LIBS=$LIBS
13615LIBS="-ldld $LIBS"
13616cat >conftest.$ac_ext <<_ACEOF
13617#line $LINENO "configure"
13618#include "confdefs.h"
13619
13620/* Override any gcc2 internal prototype to avoid an error. */
13621#ifdef __cplusplus
13622extern "C"
13623#endif
13624/* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626char shl_load ();
13627#ifdef F77_DUMMY_MAIN
13628# ifdef __cplusplus
13629 extern "C"
13630# endif
13631 int F77_DUMMY_MAIN() { return 1; }
13632#endif
13633int
13634main ()
13635{
13636shl_load ();
13637 ;
13638 return 0;
13639}
13640_ACEOF
13641rm -f conftest.$ac_objext conftest$ac_exeext
13642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643 (eval $ac_link) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -s conftest$ac_exeext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_lib_dld_shl_load=yes
13654else
13655 echo "$as_me: failed program was:" >&5
13656cat conftest.$ac_ext >&5
13657ac_cv_lib_dld_shl_load=no
13658fi
13659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13660LIBS=$ac_check_lib_save_LIBS
13661fi
13662echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13663echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13664if test $ac_cv_lib_dld_shl_load = yes; then
13665 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13666else
13667 echo "$as_me:$LINENO: checking for dlopen" >&5
13668echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13669if test "${ac_cv_func_dlopen+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 cat >conftest.$ac_ext <<_ACEOF
13673#line $LINENO "configure"
13674#include "confdefs.h"
13675/* System header to define __stub macros and hopefully few prototypes,
13676 which can conflict with char dlopen (); below. */
13677#include <assert.h>
13678/* Override any gcc2 internal prototype to avoid an error. */
13679#ifdef __cplusplus
13680extern "C"
13681#endif
13682/* We use char because int might match the return type of a gcc2
13683 builtin and then its argument prototype would still apply. */
13684char dlopen ();
13685char (*f) ();
13686
13687#ifdef F77_DUMMY_MAIN
13688# ifdef __cplusplus
13689 extern "C"
13690# endif
13691 int F77_DUMMY_MAIN() { return 1; }
13692#endif
13693int
13694main ()
13695{
13696/* The GNU C library defines this for functions which it implements
13697 to always fail with ENOSYS. Some functions are actually named
13698 something starting with __ and the normal name is an alias. */
13699#if defined (__stub_dlopen) || defined (__stub___dlopen)
13700choke me
13701#else
13702f = dlopen;
13703#endif
13704
13705 ;
13706 return 0;
13707}
13708_ACEOF
13709rm -f conftest.$ac_objext conftest$ac_exeext
13710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711 (eval $ac_link) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_func_dlopen=yes
13722else
13723 echo "$as_me: failed program was:" >&5
13724cat conftest.$ac_ext >&5
13725ac_cv_func_dlopen=no
13726fi
13727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13728fi
13729echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13730echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13731if test $ac_cv_func_dlopen = yes; then
13732 lt_cv_dlopen="dlopen"
13733else
13734 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13735echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13736if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13738else
13739 ac_check_lib_save_LIBS=$LIBS
13740LIBS="-ldl $LIBS"
13741cat >conftest.$ac_ext <<_ACEOF
13742#line $LINENO "configure"
13743#include "confdefs.h"
13744
13745/* Override any gcc2 internal prototype to avoid an error. */
13746#ifdef __cplusplus
13747extern "C"
13748#endif
13749/* We use char because int might match the return type of a gcc2
13750 builtin and then its argument prototype would still apply. */
13751char dlopen ();
13752#ifdef F77_DUMMY_MAIN
13753# ifdef __cplusplus
13754 extern "C"
13755# endif
13756 int F77_DUMMY_MAIN() { return 1; }
13757#endif
13758int
13759main ()
13760{
13761dlopen ();
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext conftest$ac_exeext
13767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768 (eval $ac_link) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -s conftest$ac_exeext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_cv_lib_dl_dlopen=yes
13779else
13780 echo "$as_me: failed program was:" >&5
13781cat conftest.$ac_ext >&5
13782ac_cv_lib_dl_dlopen=no
13783fi
13784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13785LIBS=$ac_check_lib_save_LIBS
13786fi
13787echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13788echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13789if test $ac_cv_lib_dl_dlopen = yes; then
13790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13791else
13792 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13793echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13794if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797 ac_check_lib_save_LIBS=$LIBS
13798LIBS="-lsvld $LIBS"
13799cat >conftest.$ac_ext <<_ACEOF
13800#line $LINENO "configure"
13801#include "confdefs.h"
13802
13803/* Override any gcc2 internal prototype to avoid an error. */
13804#ifdef __cplusplus
13805extern "C"
13806#endif
13807/* We use char because int might match the return type of a gcc2
13808 builtin and then its argument prototype would still apply. */
13809char dlopen ();
13810#ifdef F77_DUMMY_MAIN
13811# ifdef __cplusplus
13812 extern "C"
13813# endif
13814 int F77_DUMMY_MAIN() { return 1; }
13815#endif
13816int
13817main ()
13818{
13819dlopen ();
13820 ;
13821 return 0;
13822}
13823_ACEOF
13824rm -f conftest.$ac_objext conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_lib_svld_dlopen=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839cat conftest.$ac_ext >&5
13840ac_cv_lib_svld_dlopen=no
13841fi
13842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13843LIBS=$ac_check_lib_save_LIBS
13844fi
13845echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13846echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13847if test $ac_cv_lib_svld_dlopen = yes; then
13848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13849else
13850 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13851echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13852if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855 ac_check_lib_save_LIBS=$LIBS
13856LIBS="-ldld $LIBS"
13857cat >conftest.$ac_ext <<_ACEOF
13858#line $LINENO "configure"
13859#include "confdefs.h"
13860
13861/* Override any gcc2 internal prototype to avoid an error. */
13862#ifdef __cplusplus
13863extern "C"
13864#endif
13865/* We use char because int might match the return type of a gcc2
13866 builtin and then its argument prototype would still apply. */
13867char dld_link ();
13868#ifdef F77_DUMMY_MAIN
13869# ifdef __cplusplus
13870 extern "C"
13871# endif
13872 int F77_DUMMY_MAIN() { return 1; }
13873#endif
13874int
13875main ()
13876{
13877dld_link ();
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882rm -f conftest.$ac_objext conftest$ac_exeext
13883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884 (eval $ac_link) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_cv_lib_dld_dld_link=yes
13895else
13896 echo "$as_me: failed program was:" >&5
13897cat conftest.$ac_ext >&5
13898ac_cv_lib_dld_dld_link=no
13899fi
13900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13901LIBS=$ac_check_lib_save_LIBS
13902fi
13903echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13904echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13905if test $ac_cv_lib_dld_dld_link = yes; then
13906 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13907fi
13908
13909
13910fi
13911
13912
13913fi
13914
13915
13916fi
13917
13918
13919fi
13920
13921
13922fi
13923
13924 ;;
13925 esac
13926
13927 if test "x$lt_cv_dlopen" != xno; then
13928 enable_dlopen=yes
13929 else
13930 enable_dlopen=no
13931 fi
13932
13933 case $lt_cv_dlopen in
13934 dlopen)
13935 save_CPPFLAGS="$CPPFLAGS"
13936 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13937
13938 save_LDFLAGS="$LDFLAGS"
13939 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13940
13941 save_LIBS="$LIBS"
13942 LIBS="$lt_cv_dlopen_libs $LIBS"
13943
13944 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13945echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13946if test "${lt_cv_dlopen_self+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948else
13949 if test "$cross_compiling" = yes; then :
13950 lt_cv_dlopen_self=cross
13951else
13952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13953 lt_status=$lt_dlunknown
13954 cat > conftest.$ac_ext <<EOF
13955#line 13955 "configure"
13956#include "confdefs.h"
13957
13958#if HAVE_DLFCN_H
13959#include <dlfcn.h>
13960#endif
13961
13962#include <stdio.h>
13963
13964#ifdef RTLD_GLOBAL
13965# define LT_DLGLOBAL RTLD_GLOBAL
13966#else
13967# ifdef DL_GLOBAL
13968# define LT_DLGLOBAL DL_GLOBAL
13969# else
13970# define LT_DLGLOBAL 0
13971# endif
13972#endif
13973
13974/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13975 find out it does not work in some platform. */
13976#ifndef LT_DLLAZY_OR_NOW
13977# ifdef RTLD_LAZY
13978# define LT_DLLAZY_OR_NOW RTLD_LAZY
13979# else
13980# ifdef DL_LAZY
13981# define LT_DLLAZY_OR_NOW DL_LAZY
13982# else
13983# ifdef RTLD_NOW
13984# define LT_DLLAZY_OR_NOW RTLD_NOW
13985# else
13986# ifdef DL_NOW
13987# define LT_DLLAZY_OR_NOW DL_NOW
13988# else
13989# define LT_DLLAZY_OR_NOW 0
13990# endif
13991# endif
13992# endif
13993# endif
13994#endif
13995
13996#ifdef __cplusplus
13997extern "C" void exit (int);
13998#endif
13999
14000void fnord() { int i=42;}
14001int main ()
14002{
14003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14004 int status = $lt_dlunknown;
14005
14006 if (self)
14007 {
14008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14010 /* dlclose (self); */
14011 }
14012
14013 exit (status);
14014}
14015EOF
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14021 (./conftest; exit; ) 2>/dev/null
14022 lt_status=$?
14023 case x$lt_status in
14024 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14025 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14026 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14027 esac
14028 else :
14029 # compilation failed
14030 lt_cv_dlopen_self=no
14031 fi
14032fi
14033rm -fr conftest*
14034
14035
14036fi
14037echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14038echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14039
14040 if test "x$lt_cv_dlopen_self" = xyes; then
14041 LDFLAGS="$LDFLAGS $link_static_flag"
14042 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14043echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14044if test "${lt_cv_dlopen_self_static+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046else
14047 if test "$cross_compiling" = yes; then :
14048 lt_cv_dlopen_self_static=cross
14049else
14050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14051 lt_status=$lt_dlunknown
14052 cat > conftest.$ac_ext <<EOF
14053#line 14053 "configure"
14054#include "confdefs.h"
14055
14056#if HAVE_DLFCN_H
14057#include <dlfcn.h>
14058#endif
14059
14060#include <stdio.h>
14061
14062#ifdef RTLD_GLOBAL
14063# define LT_DLGLOBAL RTLD_GLOBAL
14064#else
14065# ifdef DL_GLOBAL
14066# define LT_DLGLOBAL DL_GLOBAL
14067# else
14068# define LT_DLGLOBAL 0
14069# endif
14070#endif
14071
14072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14073 find out it does not work in some platform. */
14074#ifndef LT_DLLAZY_OR_NOW
14075# ifdef RTLD_LAZY
14076# define LT_DLLAZY_OR_NOW RTLD_LAZY
14077# else
14078# ifdef DL_LAZY
14079# define LT_DLLAZY_OR_NOW DL_LAZY
14080# else
14081# ifdef RTLD_NOW
14082# define LT_DLLAZY_OR_NOW RTLD_NOW
14083# else
14084# ifdef DL_NOW
14085# define LT_DLLAZY_OR_NOW DL_NOW
14086# else
14087# define LT_DLLAZY_OR_NOW 0
14088# endif
14089# endif
14090# endif
14091# endif
14092#endif
14093
14094#ifdef __cplusplus
14095extern "C" void exit (int);
14096#endif
14097
14098void fnord() { int i=42;}
14099int main ()
14100{
14101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14102 int status = $lt_dlunknown;
14103
14104 if (self)
14105 {
14106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14107 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14108 /* dlclose (self); */
14109 }
14110
14111 exit (status);
14112}
14113EOF
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115 (eval $ac_link) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14119 (./conftest; exit; ) 2>/dev/null
14120 lt_status=$?
14121 case x$lt_status in
14122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14124 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14125 esac
14126 else :
14127 # compilation failed
14128 lt_cv_dlopen_self_static=no
14129 fi
14130fi
14131rm -fr conftest*
14132
14133
14134fi
14135echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14136echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14137 fi
14138
14139 CPPFLAGS="$save_CPPFLAGS"
14140 LDFLAGS="$save_LDFLAGS"
14141 LIBS="$save_LIBS"
14142 ;;
14143 esac
14144
14145 case $lt_cv_dlopen_self in
14146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14147 *) enable_dlopen_self=unknown ;;
14148 esac
14149
14150 case $lt_cv_dlopen_self_static in
14151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14152 *) enable_dlopen_self_static=unknown ;;
14153 esac
14154fi
14155
14156
14157# The else clause should only fire when bootstrapping the
14158# libtool distribution, otherwise you forgot to ship ltmain.sh
14159# with your package, and you will get complaints that there are
14160# no rules to generate ltmain.sh.
14161if test -f "$ltmain"; then
14162 # Now quote all the things that may contain metacharacters while being
14163 # careful not to overquote the AC_SUBSTed values. We take copies of the
14164 # variables and quote the copies for generation of the libtool script.
14165 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14166 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14167 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14168 deplibs_check_method reload_flag reload_cmds need_locks \
14169 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14170 lt_cv_sys_global_symbol_to_c_name_address \
14171 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14172 old_postinstall_cmds old_postuninstall_cmds \
14173 compiler_GCJ \
14174 CC_GCJ \
14175 LD_GCJ \
14176 lt_prog_compiler_wl_GCJ \
14177 lt_prog_compiler_pic_GCJ \
14178 lt_prog_compiler_static_GCJ \
14179 lt_prog_compiler_no_builtin_flag_GCJ \
14180 export_dynamic_flag_spec_GCJ \
14181 thread_safe_flag_spec_GCJ \
14182 whole_archive_flag_spec_GCJ \
14183 old_archive_cmds_GCJ \
14184 old_archive_from_new_cmds_GCJ \
14185 predep_objects_GCJ \
14186 postdep_objects_GCJ \
14187 predeps_GCJ \
14188 postdeps_GCJ \
14189 compiler_lib_search_path_GCJ \
14190 archive_cmds_GCJ \
14191 archive_expsym_cmds_GCJ \
14192 postinstall_cmds_GCJ \
14193 postuninstall_cmds_GCJ \
14194 old_archive_from_expsyms_cmds_GCJ \
14195 allow_undefined_flag_GCJ \
14196 no_undefined_flag_GCJ \
14197 export_symbols_cmds_GCJ \
14198 hardcode_libdir_flag_spec_GCJ \
14199 hardcode_libdir_separator_GCJ \
14200 lt_cv_prog_compiler_c_o_GCJ \
14201 exclude_expsyms_GCJ \
14202 include_expsyms_GCJ; do
14203
14204 case $var in
14205 old_archive_cmds_GCJ | \
14206 old_archive_from_new_cmds_GCJ | \
14207 archive_cmds_GCJ | \
14208 archive_expsym_cmds_GCJ | \
14209 old_archive_from_expsyms_cmds_GCJ | \
14210 export_symbols_cmds_GCJ | \
14211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14212 postinstall_cmds | postuninstall_cmds | \
14213 old_postinstall_cmds | old_postuninstall_cmds | \
14214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14215 # Double-quote double-evaled strings.
14216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14217 ;;
14218 *)
14219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14220 ;;
14221 esac
14222 done
14223
14224 case $lt_echo in
14225 *'\$0 --fallback-echo"')
14226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14227 ;;
14228 esac
14229
14230cfgfile="$ofile"
14231
14232 cat <<__EOF__ >> "$cfgfile"
14233# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14234
14235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14236
14237# Shell to use when invoking shell scripts.
14238SHELL=$lt_SHELL
14239
14240# Whether or not to build shared libraries.
14241build_libtool_libs=$enable_shared
14242
14243# Whether or not to build static libraries.
14244build_old_libs=$enable_static
14245
14246# Whether or not to add -lc for building shared libraries.
14247build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14248
14249# Whether or not to optimize for fast installation.
14250fast_install=$enable_fast_install
14251
14252# The host system.
14253host_alias=$host_alias
14254host=$host
14255
14256# An echo program that does not interpret backslashes.
14257echo=$lt_echo
14258
14259# The archiver.
14260AR=$lt_AR
14261AR_FLAGS=$lt_AR_FLAGS
14262
14263# A C compiler.
14264LTCC=$lt_LTCC
14265
14266# A language-specific compiler.
14267CC=$lt_compiler_GCJ
14268
14269# Is the compiler the GNU C compiler?
14270with_gcc=$GCC_GCJ
14271
14272# The linker used to build libraries.
14273LD=$lt_LD_GCJ
14274
14275# Whether we need hard or soft links.
14276LN_S=$lt_LN_S
14277
14278# A BSD-compatible nm program.
14279NM=$lt_NM
14280
14281# A sed program that does not truncate output.
14282SED=$lt_SED
14283
14284# A symbol stripping program
14285STRIP=$STRIP
14286
14287# Used to examine libraries when file_magic_cmd begins "file"
14288MAGIC_CMD=$MAGIC_CMD
14289
14290# Used on cygwin: DLL creation program.
14291DLLTOOL="$DLLTOOL"
14292
14293# Used on cygwin: object dumper.
14294OBJDUMP="$OBJDUMP"
14295
14296# Used on cygwin: assembler.
14297AS="$AS"
14298
14299# The name of the directory that contains temporary libtool files.
14300objdir=$objdir
14301
14302# How to create reloadable object files.
14303reload_flag=$lt_reload_flag
14304reload_cmds=$lt_reload_cmds
14305
14306# How to pass a linker flag through the compiler.
14307wl=$lt_lt_prog_compiler_wl_GCJ
14308
14309# Object file suffix (normally "o").
14310objext="$ac_objext"
14311
14312# Old archive suffix (normally "a").
14313libext="$libext"
14314
14315# Executable file suffix (normally "").
14316exeext="$exeext"
14317
14318# Additional compiler flags for building library objects.
14319pic_flag=$lt_lt_prog_compiler_pic_GCJ
14320pic_mode=$pic_mode
14321
14322# What is the maximum length of a command?
14323max_cmd_len=$lt_cv_sys_max_cmd_len
14324
14325# Does compiler simultaneously support -c and -o options?
14326compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14327
14328# Must we lock files when doing compilation ?
14329need_locks=$lt_need_locks
14330
14331# Do we need the lib prefix for modules?
14332need_lib_prefix=$need_lib_prefix
14333
14334# Do we need a version for libraries?
14335need_version=$need_version
14336
14337# Whether dlopen is supported.
14338dlopen_support=$enable_dlopen
14339
14340# Whether dlopen of programs is supported.
14341dlopen_self=$enable_dlopen_self
14342
14343# Whether dlopen of statically linked programs is supported.
14344dlopen_self_static=$enable_dlopen_self_static
14345
14346# Compiler flag to prevent dynamic linking.
14347link_static_flag=$lt_lt_prog_compiler_static_GCJ
14348
14349# Compiler flag to turn off builtin functions.
14350no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14351
14352# Compiler flag to allow reflexive dlopens.
14353export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14354
14355# Compiler flag to generate shared objects directly from archives.
14356whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14357
14358# Compiler flag to generate thread-safe objects.
14359thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14360
14361# Library versioning type.
14362version_type=$version_type
14363
14364# Format of library name prefix.
14365libname_spec=$lt_libname_spec
14366
14367# List of archive names. First name is the real one, the rest are links.
14368# The last name is the one that the linker finds with -lNAME.
14369library_names_spec=$lt_library_names_spec
14370
14371# The coded name of the library, if different from the real name.
14372soname_spec=$lt_soname_spec
14373
14374# Commands used to build and install an old-style archive.
14375RANLIB=$lt_RANLIB
14376old_archive_cmds=$lt_old_archive_cmds_GCJ
14377old_postinstall_cmds=$lt_old_postinstall_cmds
14378old_postuninstall_cmds=$lt_old_postuninstall_cmds
14379
14380# Create an old-style archive from a shared archive.
14381old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14382
14383# Create a temporary old-style archive to link instead of a shared archive.
14384old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14385
14386# Commands used to build and install a shared archive.
14387archive_cmds=$lt_archive_cmds_GCJ
14388archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14389postinstall_cmds=$lt_postinstall_cmds
14390postuninstall_cmds=$lt_postuninstall_cmds
14391
14392# Commands to strip libraries.
14393old_striplib=$lt_old_striplib
14394striplib=$lt_striplib
14395
14396# Dependencies to place before the objects being linked to create a
14397# shared library.
14398predep_objects=$lt_predep_objects_GCJ
14399
14400# Dependencies to place after the objects being linked to create a
14401# shared library.
14402postdep_objects=$lt_postdep_objects_GCJ
14403
14404# Dependencies to place before the objects being linked to create a
14405# shared library.
14406predeps=$lt_predeps_GCJ
14407
14408# Dependencies to place after the objects being linked to create a
14409# shared library.
14410postdeps=$lt_postdeps_GCJ
14411
14412# The library search path used internally by the compiler when linking
14413# a shared library.
14414compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14415
14416# Method to check whether dependent libraries are shared objects.
14417deplibs_check_method=$lt_deplibs_check_method
14418
14419# Command to use when deplibs_check_method == file_magic.
14420file_magic_cmd=$lt_file_magic_cmd
14421
14422# Flag that allows shared libraries with undefined symbols to be built.
14423allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14424
14425# Flag that forces no undefined symbols.
14426no_undefined_flag=$lt_no_undefined_flag_GCJ
14427
14428# Commands used to finish a libtool library installation in a directory.
14429finish_cmds=$lt_finish_cmds
14430
14431# Same as above, but a single script fragment to be evaled but not shown.
14432finish_eval=$lt_finish_eval
14433
14434# Take the output of nm and produce a listing of raw symbols and C names.
14435global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14436
14437# Transform the output of nm in a proper C declaration
14438global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14439
14440# Transform the output of nm in a C name address pair
14441global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14442
14443# This is the shared library runtime path variable.
14444runpath_var=$runpath_var
14445
14446# This is the shared library path variable.
14447shlibpath_var=$shlibpath_var
14448
14449# Is shlibpath searched before the hard-coded library search path?
14450shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14451
14452# How to hardcode a shared library path into an executable.
14453hardcode_action=$hardcode_action_GCJ
14454
14455# Whether we should hardcode library paths into libraries.
14456hardcode_into_libs=$hardcode_into_libs
14457
14458# Flag to hardcode \$libdir into a binary during linking.
14459# This must work even if \$libdir does not exist.
14460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14461
14462# Whether we need a single -rpath flag with a separated argument.
14463hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14464
14465# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14466# resulting binary.
14467hardcode_direct=$hardcode_direct_GCJ
14468
14469# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14470# resulting binary.
14471hardcode_minus_L=$hardcode_minus_L_GCJ
14472
14473# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14474# the resulting binary.
14475hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14476
14477# Variables whose values should be saved in libtool wrapper scripts and
14478# restored at relink time.
14479variables_saved_for_relink="$variables_saved_for_relink"
14480
14481# Whether libtool must link a program against all its dependency libraries.
14482link_all_deplibs=$link_all_deplibs_GCJ
14483
14484# Compile-time system search path for libraries
14485sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14486
14487# Run-time system search path for libraries
14488sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14489
14490# Fix the shell variable \$srcfile for the compiler.
14491fix_srcfile_path="$fix_srcfile_path_GCJ"
14492
14493# Set to yes if exported symbols are required.
14494always_export_symbols=$always_export_symbols_GCJ
14495
14496# The commands to list exported symbols.
14497export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14498
14499# The commands to extract the exported symbol list from a shared archive.
14500extract_expsyms_cmds=$lt_extract_expsyms_cmds
14501
14502# Symbols that should not be listed in the preloaded symbols.
14503exclude_expsyms=$lt_exclude_expsyms_GCJ
14504
14505# Symbols that must always be exported.
14506include_expsyms=$lt_include_expsyms_GCJ
14507
14508# ### END LIBTOOL TAG CONFIG: $tagname
14509
14510__EOF__
14511
14512
14513else
14514 # If there is no Makefile yet, we rely on a make rule to execute
14515 # `config.status --recheck' to rerun these tests and create the
14516 # libtool script then.
14517 test -f Makefile && make "$ltmain"
14518fi
14519
14520
14521ac_ext=c
14522ac_cpp='$CPP $CPPFLAGS'
14523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525ac_compiler_gnu=$ac_cv_c_compiler_gnu
14526
14527CC="$lt_save_CC"
14528
14529 ;;
14530
14531 RC)
14532
14533
14534
14535# Source file extension for RC test sources.
14536ac_ext=rc
14537
14538# Object file extension for compiled RC test sources.
14539objext=o
14540objext_RC=$objext
14541
14542# Code to be used in simple compile tests
14543lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14544
14545# Code to be used in simple link tests
14546lt_simple_link_test_code="$lt_simple_compile_test_code"
14547
14548# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14549
14550# If no C compiler was specified, use CC.
14551LTCC=${LTCC-"$CC"}
14552
14553# Allow CC to be a program name with arguments.
14554set dummy $CC
14555compiler="$2"
14556
14557
14558# Allow CC to be a program name with arguments.
14559lt_save_CC="$CC"
14560CC=${RC-"windres"}
14561set dummy $CC
14562compiler="$2"
14563compiler_RC=$CC
14564lt_cv_prog_compiler_c_o_RC=yes
14565
14566# The else clause should only fire when bootstrapping the
14567# libtool distribution, otherwise you forgot to ship ltmain.sh
14568# with your package, and you will get complaints that there are
14569# no rules to generate ltmain.sh.
14570if test -f "$ltmain"; then
14571 # Now quote all the things that may contain metacharacters while being
14572 # careful not to overquote the AC_SUBSTed values. We take copies of the
14573 # variables and quote the copies for generation of the libtool script.
14574 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14577 deplibs_check_method reload_flag reload_cmds need_locks \
14578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14579 lt_cv_sys_global_symbol_to_c_name_address \
14580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14581 old_postinstall_cmds old_postuninstall_cmds \
14582 compiler_RC \
14583 CC_RC \
14584 LD_RC \
14585 lt_prog_compiler_wl_RC \
14586 lt_prog_compiler_pic_RC \
14587 lt_prog_compiler_static_RC \
14588 lt_prog_compiler_no_builtin_flag_RC \
14589 export_dynamic_flag_spec_RC \
14590 thread_safe_flag_spec_RC \
14591 whole_archive_flag_spec_RC \
14592 old_archive_cmds_RC \
14593 old_archive_from_new_cmds_RC \
14594 predep_objects_RC \
14595 postdep_objects_RC \
14596 predeps_RC \
14597 postdeps_RC \
14598 compiler_lib_search_path_RC \
14599 archive_cmds_RC \
14600 archive_expsym_cmds_RC \
14601 postinstall_cmds_RC \
14602 postuninstall_cmds_RC \
14603 old_archive_from_expsyms_cmds_RC \
14604 allow_undefined_flag_RC \
14605 no_undefined_flag_RC \
14606 export_symbols_cmds_RC \
14607 hardcode_libdir_flag_spec_RC \
14608 hardcode_libdir_separator_RC \
14609 lt_cv_prog_compiler_c_o_RC \
14610 exclude_expsyms_RC \
14611 include_expsyms_RC; do
14612
14613 case $var in
14614 old_archive_cmds_RC | \
14615 old_archive_from_new_cmds_RC | \
14616 archive_cmds_RC | \
14617 archive_expsym_cmds_RC | \
14618 old_archive_from_expsyms_cmds_RC | \
14619 export_symbols_cmds_RC | \
14620 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14621 postinstall_cmds | postuninstall_cmds | \
14622 old_postinstall_cmds | old_postuninstall_cmds | \
14623 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14624 # Double-quote double-evaled strings.
14625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14626 ;;
14627 *)
14628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14629 ;;
14630 esac
14631 done
14632
14633 case $lt_echo in
14634 *'\$0 --fallback-echo"')
14635 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14636 ;;
14637 esac
14638
14639cfgfile="$ofile"
14640
14641 cat <<__EOF__ >> "$cfgfile"
14642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14643
14644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14645
14646# Shell to use when invoking shell scripts.
14647SHELL=$lt_SHELL
14648
14649# Whether or not to build shared libraries.
14650build_libtool_libs=$enable_shared
14651
14652# Whether or not to build static libraries.
14653build_old_libs=$enable_static
14654
14655# Whether or not to add -lc for building shared libraries.
14656build_libtool_need_lc=$archive_cmds_need_lc_RC
14657
14658# Whether or not to optimize for fast installation.
14659fast_install=$enable_fast_install
14660
14661# The host system.
14662host_alias=$host_alias
14663host=$host
14664
14665# An echo program that does not interpret backslashes.
14666echo=$lt_echo
14667
14668# The archiver.
14669AR=$lt_AR
14670AR_FLAGS=$lt_AR_FLAGS
14671
14672# A C compiler.
14673LTCC=$lt_LTCC
14674
14675# A language-specific compiler.
14676CC=$lt_compiler_RC
14677
14678# Is the compiler the GNU C compiler?
14679with_gcc=$GCC_RC
14680
14681# The linker used to build libraries.
14682LD=$lt_LD_RC
14683
14684# Whether we need hard or soft links.
14685LN_S=$lt_LN_S
14686
14687# A BSD-compatible nm program.
14688NM=$lt_NM
14689
14690# A sed program that does not truncate output.
14691SED=$lt_SED
14692
14693# A symbol stripping program
14694STRIP=$STRIP
14695
14696# Used to examine libraries when file_magic_cmd begins "file"
14697MAGIC_CMD=$MAGIC_CMD
14698
14699# Used on cygwin: DLL creation program.
14700DLLTOOL="$DLLTOOL"
14701
14702# Used on cygwin: object dumper.
14703OBJDUMP="$OBJDUMP"
14704
14705# Used on cygwin: assembler.
14706AS="$AS"
14707
14708# The name of the directory that contains temporary libtool files.
14709objdir=$objdir
14710
14711# How to create reloadable object files.
14712reload_flag=$lt_reload_flag
14713reload_cmds=$lt_reload_cmds
14714
14715# How to pass a linker flag through the compiler.
14716wl=$lt_lt_prog_compiler_wl_RC
14717
14718# Object file suffix (normally "o").
14719objext="$ac_objext"
14720
14721# Old archive suffix (normally "a").
14722libext="$libext"
14723
14724# Executable file suffix (normally "").
14725exeext="$exeext"
14726
14727# Additional compiler flags for building library objects.
14728pic_flag=$lt_lt_prog_compiler_pic_RC
14729pic_mode=$pic_mode
14730
14731# What is the maximum length of a command?
14732max_cmd_len=$lt_cv_sys_max_cmd_len
14733
14734# Does compiler simultaneously support -c and -o options?
14735compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14736
14737# Must we lock files when doing compilation ?
14738need_locks=$lt_need_locks
14739
14740# Do we need the lib prefix for modules?
14741need_lib_prefix=$need_lib_prefix
14742
14743# Do we need a version for libraries?
14744need_version=$need_version
14745
14746# Whether dlopen is supported.
14747dlopen_support=$enable_dlopen
14748
14749# Whether dlopen of programs is supported.
14750dlopen_self=$enable_dlopen_self
14751
14752# Whether dlopen of statically linked programs is supported.
14753dlopen_self_static=$enable_dlopen_self_static
14754
14755# Compiler flag to prevent dynamic linking.
14756link_static_flag=$lt_lt_prog_compiler_static_RC
14757
14758# Compiler flag to turn off builtin functions.
14759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14760
14761# Compiler flag to allow reflexive dlopens.
14762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14763
14764# Compiler flag to generate shared objects directly from archives.
14765whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14766
14767# Compiler flag to generate thread-safe objects.
14768thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14769
14770# Library versioning type.
14771version_type=$version_type
14772
14773# Format of library name prefix.
14774libname_spec=$lt_libname_spec
14775
14776# List of archive names. First name is the real one, the rest are links.
14777# The last name is the one that the linker finds with -lNAME.
14778library_names_spec=$lt_library_names_spec
14779
14780# The coded name of the library, if different from the real name.
14781soname_spec=$lt_soname_spec
14782
14783# Commands used to build and install an old-style archive.
14784RANLIB=$lt_RANLIB
14785old_archive_cmds=$lt_old_archive_cmds_RC
14786old_postinstall_cmds=$lt_old_postinstall_cmds
14787old_postuninstall_cmds=$lt_old_postuninstall_cmds
14788
14789# Create an old-style archive from a shared archive.
14790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14791
14792# Create a temporary old-style archive to link instead of a shared archive.
14793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14794
14795# Commands used to build and install a shared archive.
14796archive_cmds=$lt_archive_cmds_RC
14797archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14798postinstall_cmds=$lt_postinstall_cmds
14799postuninstall_cmds=$lt_postuninstall_cmds
14800
14801# Commands to strip libraries.
14802old_striplib=$lt_old_striplib
14803striplib=$lt_striplib
14804
14805# Dependencies to place before the objects being linked to create a
14806# shared library.
14807predep_objects=$lt_predep_objects_RC
14808
14809# Dependencies to place after the objects being linked to create a
14810# shared library.
14811postdep_objects=$lt_postdep_objects_RC
14812
14813# Dependencies to place before the objects being linked to create a
14814# shared library.
14815predeps=$lt_predeps_RC
14816
14817# Dependencies to place after the objects being linked to create a
14818# shared library.
14819postdeps=$lt_postdeps_RC
14820
14821# The library search path used internally by the compiler when linking
14822# a shared library.
14823compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14824
14825# Method to check whether dependent libraries are shared objects.
14826deplibs_check_method=$lt_deplibs_check_method
14827
14828# Command to use when deplibs_check_method == file_magic.
14829file_magic_cmd=$lt_file_magic_cmd
14830
14831# Flag that allows shared libraries with undefined symbols to be built.
14832allow_undefined_flag=$lt_allow_undefined_flag_RC
14833
14834# Flag that forces no undefined symbols.
14835no_undefined_flag=$lt_no_undefined_flag_RC
14836
14837# Commands used to finish a libtool library installation in a directory.
14838finish_cmds=$lt_finish_cmds
14839
14840# Same as above, but a single script fragment to be evaled but not shown.
14841finish_eval=$lt_finish_eval
14842
14843# Take the output of nm and produce a listing of raw symbols and C names.
14844global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14845
14846# Transform the output of nm in a proper C declaration
14847global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14848
14849# Transform the output of nm in a C name address pair
14850global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14851
14852# This is the shared library runtime path variable.
14853runpath_var=$runpath_var
14854
14855# This is the shared library path variable.
14856shlibpath_var=$shlibpath_var
14857
14858# Is shlibpath searched before the hard-coded library search path?
14859shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14860
14861# How to hardcode a shared library path into an executable.
14862hardcode_action=$hardcode_action_RC
14863
14864# Whether we should hardcode library paths into libraries.
14865hardcode_into_libs=$hardcode_into_libs
14866
14867# Flag to hardcode \$libdir into a binary during linking.
14868# This must work even if \$libdir does not exist.
14869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14870
14871# Whether we need a single -rpath flag with a separated argument.
14872hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14873
14874# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14875# resulting binary.
14876hardcode_direct=$hardcode_direct_RC
14877
14878# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14879# resulting binary.
14880hardcode_minus_L=$hardcode_minus_L_RC
14881
14882# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14883# the resulting binary.
14884hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14885
14886# Variables whose values should be saved in libtool wrapper scripts and
14887# restored at relink time.
14888variables_saved_for_relink="$variables_saved_for_relink"
14889
14890# Whether libtool must link a program against all its dependency libraries.
14891link_all_deplibs=$link_all_deplibs_RC
14892
14893# Compile-time system search path for libraries
14894sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14895
14896# Run-time system search path for libraries
14897sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14898
14899# Fix the shell variable \$srcfile for the compiler.
14900fix_srcfile_path="$fix_srcfile_path_RC"
14901
14902# Set to yes if exported symbols are required.
14903always_export_symbols=$always_export_symbols_RC
14904
14905# The commands to list exported symbols.
14906export_symbols_cmds=$lt_export_symbols_cmds_RC
14907
14908# The commands to extract the exported symbol list from a shared archive.
14909extract_expsyms_cmds=$lt_extract_expsyms_cmds
14910
14911# Symbols that should not be listed in the preloaded symbols.
14912exclude_expsyms=$lt_exclude_expsyms_RC
14913
14914# Symbols that must always be exported.
14915include_expsyms=$lt_include_expsyms_RC
14916
14917# ### END LIBTOOL TAG CONFIG: $tagname
14918
14919__EOF__
14920
14921
14922else
14923 # If there is no Makefile yet, we rely on a make rule to execute
14924 # `config.status --recheck' to rerun these tests and create the
14925 # libtool script then.
14926 test -f Makefile && make "$ltmain"
14927fi
14928
14929
14930ac_ext=c
14931ac_cpp='$CPP $CPPFLAGS'
14932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934ac_compiler_gnu=$ac_cv_c_compiler_gnu
14935
14936CC="$lt_save_CC"
14937
14938 ;;
14939
14940 *)
14941 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14942echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14943 { (exit 1); exit 1; }; }
14944 ;;
14945 esac
14946
14947 # Append the new tag name to the list of available tags.
14948 available_tags="$available_tags $tagname"
14949 fi
14950 done
14951 IFS="$lt_save_ifs"
14952
14953 # Now substitute the updated list of available tags.
14954 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14955 mv "${ofile}T" "$ofile"
14956 chmod +x "$ofile"
14957 else
14958 rm -f "${ofile}T"
14959 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14960echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14961 { (exit 1); exit 1; }; }
14962 fi
14963fi
14964
14965
14966
14967# This can be used to rebuild libtool when needed
14968LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14969
14970# Always use our own libtool.
14971LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
14972
14973# Prevent multiple expansion
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988ac_ext=c
14989ac_cpp='$CPP $CPPFLAGS'
14990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993
14994
14995
14996ac_ext=c
14997ac_cpp='$CPP $CPPFLAGS'
14998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000ac_compiler_gnu=$ac_cv_c_compiler_gnu
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
15012
15013# find the maximum length of command line arguments
15014echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
15015echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
15016if test "${lt_cv_sys_max_cmd_len+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018else
15019 i=0
15020 testring="ABCD"
15021
15022 case $host_os in
15023 msdosdjgpp*)
15024 # On DJGPP, this test can blow up pretty badly due to problems in libc
15025 # (any single argument exceeding 2000 bytes causes a buffer overrun
15026 # during glob expansion). Even if it were fixed, the result of this
15027 # check would be larger than it should be.
15028 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15029 ;;
15030
15031 gnu*)
15032 # Under GNU Hurd, this test is not required because there is
15033 # no limit to the length of command line arguments.
15034 # Libtool will interpret -1 as no limit whatsoever
15035 lt_cv_sys_max_cmd_len=-1;
15036 ;;
15037
15038 *)
15039 # If test is not a shell built-in, we'll probably end up computing a
15040 # maximum length that is only half of the actual maximum length, but
15041 # we can't tell.
15042 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
15043 = "XX$testring") >/dev/null 2>&1 &&
15044 new_result=`expr "X$testring" : ".*" 2>&1` &&
15045 lt_cv_sys_max_cmd_len=$new_result &&
15046 test $i != 17 # 1/2 MB should be enough
15047 do
15048 i=`expr $i + 1`
15049 testring=$testring$testring
15050 done
15051 testring=
15052 # Add a significant safety factor because C++ compilers can tack on massive
15053 # amounts of additional arguments before passing them to the linker.
15054 # It appears as though 1/2 is a usable value.
15055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15056 ;;
15057 esac
15058
15059fi
15060
15061if test -n $lt_cv_sys_max_cmd_len ; then
15062 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15063echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
15064else
15065 echo "$as_me:$LINENO: result: none" >&5
15066echo "${ECHO_T}none" >&6
15067fi
15068
15069
15070
15071
15072# Check for command to grab the raw symbol name followed by C symbol from nm.
15073echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15074echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15075if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077else
15078
15079# These are sane defaults that work on at least a few old systems.
15080# [They come from Ultrix. What could be older than Ultrix?!! ;)]
15081
15082# Character class describing NM global symbol codes.
15083symcode='[BCDEGRST]'
15084
15085# Regexp to match symbols that can be accessed directly from C.
15086sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15087
15088# Transform the above into a raw symbol and a C symbol.
15089symxfrm='\1 \2\3 \3'
15090
15091# Transform an extracted symbol line into a proper C declaration
15092lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
15093
15094# Transform an extracted symbol line into symbol name and symbol address
15095lt_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'"
15096
15097# Define system-specific variables.
15098case $host_os in
15099aix*)
15100 symcode='[BCDT]'
15101 ;;
15102cygwin* | mingw* | pw32*)
15103 symcode='[ABCDGISTW]'
15104 ;;
15105hpux*) # Its linker distinguishes data from code symbols
15106 if test "$host_cpu" = ia64; then
15107 symcode='[ABCDEGRST]'
15108 fi
15109 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15110 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'"
15111 ;;
15112irix* | nonstopux*)
15113 symcode='[BCDEGRST]'
15114 ;;
15115solaris* | sysv5*)
15116 symcode='[BDT]'
15117 ;;
15118sysv4)
15119 symcode='[DFNSTU]'
15120 ;;
15121esac
15122
15123# Handle CRLF in mingw tool chain
15124opt_cr=
15125case $host_os in
15126mingw*)
15127 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15128 ;;
15129esac
15130
15131# If we're using GNU nm, then use its standard symbol codes.
15132if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
15133 symcode='[ABCDGISTW]'
15134fi
15135
15136# Try without a prefix undercore, then with it.
15137for ac_symprfx in "" "_"; do
15138
15139 # Write the raw and C identifiers.
15140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
15141
15142 # Check to see that the pipe works correctly.
15143 pipe_works=no
15144
15145 rm -f conftest*
15146 cat > conftest.$ac_ext <<EOF
15147#ifdef __cplusplus
15148extern "C" {
15149#endif
15150char nm_test_var;
15151void nm_test_func(){}
15152#ifdef __cplusplus
15153}
15154#endif
15155int main(){nm_test_var='a';nm_test_func();return(0);}
15156EOF
15157
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; then
15163 # Now try to grab the symbols.
15164 nlist=conftest.nm
15165 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15166 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } && test -s "$nlist"; then
15170 # Try sorting and uniquifying the output.
15171 if sort "$nlist" | uniq > "$nlist"T; then
15172 mv -f "$nlist"T "$nlist"
15173 else
15174 rm -f "$nlist"T
15175 fi
15176
15177 # Make sure that we snagged all the symbols we need.
15178 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
15179 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
15180 cat <<EOF > conftest.$ac_ext
15181#ifdef __cplusplus
15182extern "C" {
15183#endif
15184
15185EOF
15186 # Now generate the symbol file.
15187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
15188
15189 cat <<EOF >> conftest.$ac_ext
15190#if defined (__STDC__) && __STDC__
15191# define lt_ptr_t void *
15192#else
15193# define lt_ptr_t char *
15194# define const
15195#endif
15196
15197/* The mapping between symbol names and symbols. */
15198const struct {
15199 const char *name;
15200 lt_ptr_t address;
15201}
15202lt_preloaded_symbols[] =
15203{
15204EOF
15205 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
15206 cat <<\EOF >> conftest.$ac_ext
15207 {0, (lt_ptr_t) 0}
15208};
15209
15210#ifdef __cplusplus
15211}
15212#endif
15213EOF
15214 # Now try linking the two files.
15215 mv conftest.$ac_objext conftstm.$ac_objext
15216 lt_save_LIBS="$LIBS"
15217 lt_save_CFLAGS="$CFLAGS"
15218 LIBS="conftstm.$ac_objext"
15219 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221 (eval $ac_link) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15225 pipe_works=yes
15226 fi
15227 LIBS="$lt_save_LIBS"
15228 CFLAGS="$lt_save_CFLAGS"
15229 else
15230 echo "cannot find nm_test_func in $nlist" >&5
15231 fi
15232 else
15233 echo "cannot find nm_test_var in $nlist" >&5
15234 fi
15235 else
15236 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15237 fi
15238 else
15239 echo "$progname: failed program was:" >&5
15240 cat conftest.$ac_ext >&5
15241 fi
15242 rm -f conftest* conftst*
15243
15244 # Do not use the global_symbol_pipe unless it works.
15245 if test "$pipe_works" = yes; then
15246 break
15247 else
15248 lt_cv_sys_global_symbol_pipe=
15249 fi
15250done
15251
15252fi
15253
15254if test -z "$lt_cv_sys_global_symbol_pipe"; then
15255 lt_cv_sys_global_symbol_to_cdecl=
15256fi
15257if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15258 echo "$as_me:$LINENO: result: failed" >&5
15259echo "${ECHO_T}failed" >&6
15260else
15261 echo "$as_me:$LINENO: result: ok" >&5
15262echo "${ECHO_T}ok" >&6
15263fi
15264
15265echo "$as_me:$LINENO: checking for objdir" >&5
15266echo $ECHO_N "checking for objdir... $ECHO_C" >&6
15267if test "${lt_cv_objdir+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269else
15270 rm -f .libs 2>/dev/null
15271mkdir .libs 2>/dev/null
15272if test -d .libs; then
15273 lt_cv_objdir=.libs
15274else
15275 # MS-DOS does not allow filenames that begin with a dot.
15276 lt_cv_objdir=_libs
15277fi
15278rmdir .libs 2>/dev/null
15279fi
15280echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15281echo "${ECHO_T}$lt_cv_objdir" >&6
15282objdir=$lt_cv_objdir
15283
15284
15285
15286
15287
15288case $host_os in
15289aix3*)
15290 # AIX sometimes has problems with the GCC collect2 program. For some
15291 # reason, if we set the COLLECT_NAMES environment variable, the problems
15292 # vanish in a puff of smoke.
15293 if test "X${COLLECT_NAMES+set}" != Xset; then
15294 COLLECT_NAMES=
15295 export COLLECT_NAMES
15296 fi
15297 ;;
15298esac
15299
15300# Sed substitution that helps us do robust quoting. It backslashifies
15301# metacharacters that are still active within double-quoted strings.
15302Xsed='sed -e s/^X//'
15303sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
15304
15305# Same as above, but do not quote variable references.
15306double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
15307
15308# Sed substitution to delay expansion of an escaped shell variable in a
15309# double_quote_subst'ed string.
15310delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15311
15312# Sed substitution to avoid accidental globbing in evaled expressions
15313no_glob_subst='s/\*/\\\*/g'
15314
15315# Constants:
15316rm="rm -f"
15317
15318# Global variables:
15319default_ofile=libtool
15320can_build_shared=yes
15321
15322# All known linkers require a `.a' archive for static linking (except M$VC,
15323# which needs '.lib').
15324libext=a
15325ltmain="$ac_aux_dir/ltmain.sh"
15326ofile="$default_ofile"
15327with_gnu_ld="$lt_cv_prog_gnu_ld"
15328
15329if test -n "$ac_tool_prefix"; then
15330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15332echo "$as_me:$LINENO: checking for $ac_word" >&5
15333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15334if test "${ac_cv_prog_RANLIB+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else
15337 if test -n "$RANLIB"; then
15338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15339else
15340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15341for as_dir in $PATH
15342do
15343 IFS=$as_save_IFS
15344 test -z "$as_dir" && as_dir=.
15345 for ac_exec_ext in '' $ac_executable_extensions; do
15346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15349 break 2
15350 fi
15351done
15352done
15353
15354fi
15355fi
15356RANLIB=$ac_cv_prog_RANLIB
15357if test -n "$RANLIB"; then
15358 echo "$as_me:$LINENO: result: $RANLIB" >&5
15359echo "${ECHO_T}$RANLIB" >&6
15360else
15361 echo "$as_me:$LINENO: result: no" >&5
15362echo "${ECHO_T}no" >&6
15363fi
15364
15365fi
15366if test -z "$ac_cv_prog_RANLIB"; then
15367 ac_ct_RANLIB=$RANLIB
15368 # Extract the first word of "ranlib", so it can be a program name with args.
15369set dummy ranlib; ac_word=$2
15370echo "$as_me:$LINENO: checking for $ac_word" >&5
15371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15372if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374else
15375 if test -n "$ac_ct_RANLIB"; then
15376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15377else
15378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379for as_dir in $PATH
15380do
15381 IFS=$as_save_IFS
15382 test -z "$as_dir" && as_dir=.
15383 for ac_exec_ext in '' $ac_executable_extensions; do
15384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15385 ac_cv_prog_ac_ct_RANLIB="ranlib"
15386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15387 break 2
15388 fi
15389done
15390done
15391
15392 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15393fi
15394fi
15395ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15396if test -n "$ac_ct_RANLIB"; then
15397 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15398echo "${ECHO_T}$ac_ct_RANLIB" >&6
15399else
15400 echo "$as_me:$LINENO: result: no" >&5
15401echo "${ECHO_T}no" >&6
15402fi
15403
15404 RANLIB=$ac_ct_RANLIB
15405else
15406 RANLIB="$ac_cv_prog_RANLIB"
15407fi
15408
15409if test -n "$ac_tool_prefix"; then
15410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15411set dummy ${ac_tool_prefix}strip; ac_word=$2
15412echo "$as_me:$LINENO: checking for $ac_word" >&5
15413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15414if test "${ac_cv_prog_STRIP+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416else
15417 if test -n "$STRIP"; then
15418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15419else
15420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421for as_dir in $PATH
15422do
15423 IFS=$as_save_IFS
15424 test -z "$as_dir" && as_dir=.
15425 for ac_exec_ext in '' $ac_executable_extensions; do
15426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15429 break 2
15430 fi
15431done
15432done
15433
15434fi
15435fi
15436STRIP=$ac_cv_prog_STRIP
15437if test -n "$STRIP"; then
15438 echo "$as_me:$LINENO: result: $STRIP" >&5
15439echo "${ECHO_T}$STRIP" >&6
15440else
15441 echo "$as_me:$LINENO: result: no" >&5
15442echo "${ECHO_T}no" >&6
15443fi
15444
15445fi
15446if test -z "$ac_cv_prog_STRIP"; then
15447 ac_ct_STRIP=$STRIP
15448 # Extract the first word of "strip", so it can be a program name with args.
15449set dummy strip; ac_word=$2
15450echo "$as_me:$LINENO: checking for $ac_word" >&5
15451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15452if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454else
15455 if test -n "$ac_ct_STRIP"; then
15456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15457else
15458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459for as_dir in $PATH
15460do
15461 IFS=$as_save_IFS
15462 test -z "$as_dir" && as_dir=.
15463 for ac_exec_ext in '' $ac_executable_extensions; do
15464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15465 ac_cv_prog_ac_ct_STRIP="strip"
15466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15467 break 2
15468 fi
15469done
15470done
15471
15472 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15473fi
15474fi
15475ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15476if test -n "$ac_ct_STRIP"; then
15477 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15478echo "${ECHO_T}$ac_ct_STRIP" >&6
15479else
15480 echo "$as_me:$LINENO: result: no" >&5
15481echo "${ECHO_T}no" >&6
15482fi
15483
15484 STRIP=$ac_ct_STRIP
15485else
15486 STRIP="$ac_cv_prog_STRIP"
15487fi
15488
15489
15490old_CC="$CC"
15491old_CFLAGS="$CFLAGS"
15492
15493# Set sane defaults for various variables
15494test -z "$AR" && AR=ar
15495test -z "$AR_FLAGS" && AR_FLAGS=cru
15496test -z "$AS" && AS=as
15497test -z "$CC" && CC=cc
15498test -z "$LTCC" && LTCC=$CC
15499test -z "$DLLTOOL" && DLLTOOL=dlltool
15500test -z "$LD" && LD=ld
15501test -z "$LN_S" && LN_S="ln -s"
15502test -z "$MAGIC_CMD" && MAGIC_CMD=file
15503test -z "$NM" && NM=nm
15504test -z "$SED" && SED=sed
15505test -z "$OBJDUMP" && OBJDUMP=objdump
15506test -z "$RANLIB" && RANLIB=:
15507test -z "$STRIP" && STRIP=:
15508test -z "$ac_objext" && ac_objext=o
15509
15510# Determine commands to create old-style static archives.
15511old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15512old_postinstall_cmds='chmod 644 $oldlib'
15513old_postuninstall_cmds=
15514
15515if test -n "$RANLIB"; then
15516 case $host_os in
15517 openbsd*)
15518 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
15519 ;;
15520 *)
15521 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
15522 ;;
15523 esac
15524 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15525fi
15526
15527# Only perform the check for file, if the check method requires it
15528case $deplibs_check_method in
15529file_magic*)
15530 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15531 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15532echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15533if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15535else
15536 case $MAGIC_CMD in
15537[\\/*] | ?:[\\/]*)
15538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15539 ;;
15540*)
15541 lt_save_MAGIC_CMD="$MAGIC_CMD"
15542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15544 for ac_dir in $ac_dummy; do
15545 IFS="$lt_save_ifs"
15546 test -z "$ac_dir" && ac_dir=.
15547 if test -f $ac_dir/${ac_tool_prefix}file; then
15548 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15549 if test -n "$file_magic_test_file"; then
15550 case $deplibs_check_method in
15551 "file_magic "*)
15552 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
15553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15555 egrep "$file_magic_regex" > /dev/null; then
15556 :
15557 else
15558 cat <<EOF 1>&2
15559
15560*** Warning: the command libtool uses to detect shared libraries,
15561*** $file_magic_cmd, produces output that libtool cannot recognize.
15562*** The result is that libtool may fail to recognize shared libraries
15563*** as such. This will affect the creation of libtool libraries that
15564*** depend on shared libraries, but programs linked with such libtool
15565*** libraries will work regardless of this problem. Nevertheless, you
15566*** may want to report the problem to your system manager and/or to
15567*** bug-libtool@gnu.org
15568
15569EOF
15570 fi ;;
15571 esac
15572 fi
15573 break
15574 fi
15575 done
15576 IFS="$lt_save_ifs"
15577 MAGIC_CMD="$lt_save_MAGIC_CMD"
15578 ;;
15579esac
15580fi
15581
15582MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15583if test -n "$MAGIC_CMD"; then
15584 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15585echo "${ECHO_T}$MAGIC_CMD" >&6
15586else
15587 echo "$as_me:$LINENO: result: no" >&5
15588echo "${ECHO_T}no" >&6
15589fi
15590
15591if test -z "$lt_cv_path_MAGIC_CMD"; then
15592 if test -n "$ac_tool_prefix"; then
15593 echo "$as_me:$LINENO: checking for file" >&5
15594echo $ECHO_N "checking for file... $ECHO_C" >&6
15595if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597else
15598 case $MAGIC_CMD in
15599[\\/*] | ?:[\\/]*)
15600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15601 ;;
15602*)
15603 lt_save_MAGIC_CMD="$MAGIC_CMD"
15604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15606 for ac_dir in $ac_dummy; do
15607 IFS="$lt_save_ifs"
15608 test -z "$ac_dir" && ac_dir=.
15609 if test -f $ac_dir/file; then
15610 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15611 if test -n "$file_magic_test_file"; then
15612 case $deplibs_check_method in
15613 "file_magic "*)
15614 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
15615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15617 egrep "$file_magic_regex" > /dev/null; then
15618 :
15619 else
15620 cat <<EOF 1>&2
15621
15622*** Warning: the command libtool uses to detect shared libraries,
15623*** $file_magic_cmd, produces output that libtool cannot recognize.
15624*** The result is that libtool may fail to recognize shared libraries
15625*** as such. This will affect the creation of libtool libraries that
15626*** depend on shared libraries, but programs linked with such libtool
15627*** libraries will work regardless of this problem. Nevertheless, you
15628*** may want to report the problem to your system manager and/or to
15629*** bug-libtool@gnu.org
15630
15631EOF
15632 fi ;;
15633 esac
15634 fi
15635 break
15636 fi
15637 done
15638 IFS="$lt_save_ifs"
15639 MAGIC_CMD="$lt_save_MAGIC_CMD"
15640 ;;
15641esac
15642fi
15643
15644MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15645if test -n "$MAGIC_CMD"; then
15646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15647echo "${ECHO_T}$MAGIC_CMD" >&6
15648else
15649 echo "$as_me:$LINENO: result: no" >&5
15650echo "${ECHO_T}no" >&6
15651fi
15652
15653 else
15654 MAGIC_CMD=:
15655 fi
15656fi
15657
15658 fi
15659 ;;
15660esac
15661
15662enable_dlopen=no
15663enable_win32_dll=no
15664
15665# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15666if test "${enable_libtool_lock+set}" = set; then
15667 enableval="$enable_libtool_lock"
15668
15669fi;
15670test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15671
15672
15673# Check whether --with-pic or --without-pic was given.
15674if test "${with_pic+set}" = set; then
15675 withval="$with_pic"
15676 pic_mode="$withval"
15677else
15678 pic_mode=default
15679fi;
15680test -z "$pic_mode" && pic_mode=default
15681
15682# Use C for the default configuration in the libtool script
15683tagname=
15684lt_save_CC="$CC"
15685ac_ext=c
15686ac_cpp='$CPP $CPPFLAGS'
15687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15689ac_compiler_gnu=$ac_cv_c_compiler_gnu
15690
15691
15692# Source file extension for C test sources.
15693ac_ext=c
15694
15695# Object file extension for compiled C test sources.
15696objext=o
15697objext=$objext
15698
15699# Code to be used in simple compile tests
15700lt_simple_compile_test_code="int some_variable = 0;"
15701
15702# Code to be used in simple link tests
15703lt_simple_link_test_code='main(){return(0);}'
15704
15705
15706# If no C compiler was specified, use CC.
15707LTCC=${LTCC-"$CC"}
15708
15709# Allow CC to be a program name with arguments.
15710set dummy $CC
15711compiler="$2"
15712
15713
15714#
15715# Check for any special shared library compilation flags.
15716#
15717lt_prog_cc_shlib=
15718if test "$GCC" = no; then
15719 case $host_os in
15720 sco3.2v5*)
15721 lt_prog_cc_shlib='-belf'
15722 ;;
15723 esac
15724fi
15725if test -n "$lt_prog_cc_shlib"; then
15726 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
15727echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
15728 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
15729 else
15730 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
15731echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
15732 lt_cv_prog_cc_can_build_shared=no
15733 fi
15734fi
15735
15736
15737#
15738# Check to make sure the static flag actually works.
15739#
15740echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
15741echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
15742if test "${lt_prog_compiler_static_works+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744else
15745 lt_prog_compiler_static_works=no
15746 save_LDFLAGS="$LDFLAGS"
15747 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
15748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15750 # The compiler can only warn and ignore the option if not recognized
15751 # So say no if there are warnings
15752 if test -s conftest.err; then
15753 # Append any errors to the config.log.
15754 cat conftest.err 1>&5
15755 else
15756 lt_prog_compiler_static_works=yes
15757 fi
15758 fi
15759 $rm conftest*
15760 LDFLAGS="$save_LDFLAGS"
15761
15762fi
15763echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15764echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
15765
15766if test x"$lt_prog_compiler_static_works" = xyes; then
15767 :
15768else
15769 lt_prog_compiler_static=
15770fi
15771
15772
15773
15774
15775lt_prog_compiler_no_builtin_flag=
15776
15777if test "$GCC" = yes; then
15778 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15779
15780 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15781echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15782if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784else
15785 lt_cv_prog_compiler_rtti_exceptions=no
15786 ac_outfile=conftest.$ac_objext
15787 save_CFLAGS="$CFLAGS"
15788 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
15789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15790 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
15791 # The compiler can only warn and ignore the option if not recognized
15792 # So say no if there are warnings
15793 if test -s conftest.err; then
15794 # Append any errors to the config.log.
15795 cat conftest.err 1>&5
15796 else
15797 lt_cv_prog_compiler_rtti_exceptions=yes
15798 fi
15799 fi
15800 $rm conftest*
15801 CFLAGS="$save_CFLAGS"
15802
15803fi
15804echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15805echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15806
15807if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15809else
15810 :
15811fi
15812
15813fi
15814
15815lt_prog_compiler_wl=
15816lt_prog_compiler_pic=
15817lt_prog_compiler_static=
15818
15819echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15820echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15821
15822 if test "$GCC" = yes; then
15823 lt_prog_compiler_wl='-Wl,'
15824 lt_prog_compiler_static='-static'
15825
15826 case $host_os in
15827 aix*)
15828 # All AIX code is PIC.
15829 if test "$host_cpu" = ia64; then
15830 # AIX 5 now supports IA64 processor
15831 lt_prog_compiler_static='-Bstatic'
15832 fi
15833 ;;
15834
15835 amigaos*)
15836 # FIXME: we need at least 68020 code to build shared libraries, but
15837 # adding the `-m68020' flag to GCC prevents building anything better,
15838 # like `-m68040'.
15839 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15840 ;;
15841
15842 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15843 # PIC is the default for these OSes.
15844 ;;
15845
15846 cygwin* | mingw* | pw32* | os2*)
15847 # This hack is so that the source file can tell whether it is being
15848 # built for inclusion in a dll (and should export symbols for example).
15849 lt_prog_compiler_pic='-DDLL_EXPORT'
15850 ;;
15851
15852 darwin* | rhapsody*)
15853 # PIC is the default on this platform
15854 # Common symbols not allowed in MH_DYLIB files
15855 lt_prog_compiler_pic='-fno-common'
15856 ;;
15857
15858 msdosdjgpp*)
15859 # Just because we use GCC doesn't mean we suddenly get shared libraries
15860 # on systems that don't support them.
15861 lt_prog_compiler_can_build_shared=no
15862 enable_shared=no
15863 ;;
15864
15865 sysv4*MP*)
15866 if test -d /usr/nec; then
15867 lt_prog_compiler_pic=-Kconform_pic
15868 fi
15869 ;;
15870
15871 hpux*)
15872 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
15873 if test "$host_cpu" != ia64; then
15874 lt_prog_compiler_pic='-fPIC'
15875 fi
15876 ;;
15877
15878 *)
15879 lt_prog_compiler_pic='-fPIC'
15880 ;;
15881 esac
15882 else
15883 # PORTME Check for flag to pass linker flags through the system compiler.
15884 case $host_os in
15885 aix*)
15886 lt_prog_compiler_wl='-Wl,'
15887 if test "$host_cpu" = ia64; then
15888 # AIX 5 now supports IA64 processor
15889 lt_prog_compiler_static='-Bstatic'
15890 else
15891 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15892 fi
15893 ;;
15894
15895 cygwin* | mingw* | pw32* | os2*)
15896 # This hack is so that the source file can tell whether it is being
15897 # built for inclusion in a dll (and should export symbols for example).
15898 lt_prog_compiler_pic='-DDLL_EXPORT'
15899 ;;
15900
15901 hpux9* | hpux10* | hpux11*)
15902 lt_prog_compiler_wl='-Wl,'
15903 if test "$host_cpu" != ia64; then
15904 lt_prog_compiler_pic='+Z'
15905 fi
15906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15907 lt_prog_compiler_static='${wl}-a ${wl}archive'
15908 ;;
15909
15910 irix5* | irix6* | nonstopux*)
15911 lt_prog_compiler_wl='-Wl,'
15912 # PIC (with -KPIC) is the default.
15913 lt_prog_compiler_static='-non_shared'
15914 ;;
15915
15916 newsos6)
15917 lt_prog_compiler_pic='-KPIC'
15918 lt_prog_compiler_static='-Bstatic'
15919 ;;
15920
15921 osf3* | osf4* | osf5*)
15922 lt_prog_compiler_wl='-Wl,'
15923 # All OSF/1 code is PIC.
15924 lt_prog_compiler_static='-non_shared'
15925 ;;
15926
15927 sco3.2v5*)
15928 lt_prog_compiler_pic='-Kpic'
15929 lt_prog_compiler_static='-dn'
15930 ;;
15931
15932 solaris*)
15933 lt_prog_compiler_wl='-Wl,'
15934 lt_prog_compiler_pic='-KPIC'
15935 lt_prog_compiler_static='-Bstatic'
15936 ;;
15937
15938 sunos4*)
15939 lt_prog_compiler_wl='-Qoption ld '
15940 lt_prog_compiler_pic='-PIC'
15941 lt_prog_compiler_static='-Bstatic'
15942 ;;
15943
15944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15945 if test "x$host_vendor" = xsni; then
15946 lt_prog_compiler_wl='-LD'
15947 else
15948 lt_prog_compiler_wl='-Wl,'
15949 fi
15950 lt_prog_compiler_pic='-KPIC'
15951 lt_prog_compiler_static='-Bstatic'
15952 ;;
15953
15954 sysv4*MP*)
15955 if test -d /usr/nec ;then
15956 lt_prog_compiler_pic='-Kconform_pic'
15957 lt_prog_compiler_static='-Bstatic'
15958 fi
15959 ;;
15960
15961 uts4*)
15962 lt_prog_compiler_pic='-pic'
15963 lt_prog_compiler_static='-Bstatic'
15964 ;;
15965
15966 *)
15967 lt_prog_compiler_can_build_shared=no
15968 ;;
15969 esac
15970 fi
15971
15972echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15973echo "${ECHO_T}$lt_prog_compiler_pic" >&6
15974
15975#
15976# Check to make sure the PIC flag actually works.
15977#
15978if test -n "$lt_prog_compiler_pic"; then
15979 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15980echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
15981if test "${lt_prog_compiler_pic_works+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983else
15984 lt_prog_compiler_pic_works=no
15985 ac_outfile=conftest.$ac_objext
15986 save_CFLAGS="$CFLAGS"
15987 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
15988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15989 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
15990 # The compiler can only warn and ignore the option if not recognized
15991 # So say no if there are warnings
15992 if test -s conftest.err; then
15993 # Append any errors to the config.log.
15994 cat conftest.err 1>&5
15995 else
15996 lt_prog_compiler_pic_works=yes
15997 fi
15998 fi
15999 $rm conftest*
16000 CFLAGS="$save_CFLAGS"
16001
16002fi
16003echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16004echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16005
16006if test x"$lt_prog_compiler_pic_works" = xyes; then
16007 case $lt_prog_compiler_pic in
16008 "" | " "*) ;;
16009 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16010 esac
16011else
16012 lt_prog_compiler_pic=
16013 lt_prog_compiler_can_build_shared=no
16014fi
16015
16016fi
16017case "$host_os" in
16018 # For platforms which do not support PIC, -DPIC is meaningless:
16019 *djgpp*)
16020 lt_prog_compiler_pic=
16021 ;;
16022 *)
16023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16024 ;;
16025esac
16026
16027echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16028echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16029if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031else
16032 lt_cv_prog_compiler_c_o=no
16033 $rm -r conftest 2>/dev/null
16034 mkdir conftest
16035 cd conftest
16036 mkdir out
16037 save_CFLAGS="$CFLAGS"
16038 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
16039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16040
16041 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16042 # that will create temporary files in the current directory regardless of
16043 # the output directory. Thus, making CWD read-only will cause this test
16044 # to fail, enabling locking or at least warning the user not to do parallel
16045 # builds.
16046 chmod -w .
16047
16048 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
16049 then
16050 # The compiler can only warn and ignore the option if not recognized
16051 # So say no if there are warnings
16052 if test -s out/conftest.err; then
16053 # Append any errors to the config.log.
16054 cat out/conftest.err 1>&5
16055 else
16056 lt_cv_prog_compiler_c_o=yes
16057 fi
16058 fi
16059 CFLAGS="$save_CFLAGS"
16060 chmod u+w .
16061 $rm conftest* out/*
16062 rmdir out
16063 cd ..
16064 rmdir conftest
16065 $rm conftest*
16066
16067fi
16068echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16069echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16070
16071
16072hard_links="nottested"
16073if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16074 # do not overwrite the value of need_locks provided by the user
16075 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16076echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16077 hard_links=yes
16078 $rm conftest*
16079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16080 touch conftest.a
16081 ln conftest.a conftest.b 2>&5 || hard_links=no
16082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16083 echo "$as_me:$LINENO: result: $hard_links" >&5
16084echo "${ECHO_T}$hard_links" >&6
16085 if test "$hard_links" = no; then
16086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16087echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16088 need_locks=warn
16089 fi
16090else
16091 need_locks=no
16092fi
16093
16094echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16096
16097 runpath_var=
16098 allow_undefined_flag=
16099
16100 archive_cmds=
16101 archive_cmds_need_lc=
16102 archive_expsym_cmds=
16103 old_archive_From_new_cmds=
16104 old_archive_from_expsyms_cmds=
16105 export_dynamic_flag_spec=
16106 whole_archive_flag_spec=
16107 thread_safe_flag_spec=
16108 hardcode_libdir_flag_spec=
16109 hardcode_libdir_separator=
16110 hardcode_direct=no
16111 hardcode_minus_L=no
16112 hardcode_shlibpath_var=unsupported
16113 link_all_deplibs=unknown
16114 always_export_symbols=no
16115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
16116 # include_expsyms should be a list of space-separated symbols to be *always*
16117 # included in the symbol list
16118 include_expsyms=
16119 # exclude_expsyms can be an egrep regular expression of symbols to exclude
16120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16122 # as well as any symbol that contains `d'.
16123 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16125 # platforms (ab)use it in PIC code, but their linkers get confused if
16126 # the symbol is explicitly referenced. Since portable code cannot
16127 # rely on this symbol name, it's probably fine to never include it in
16128 # preloaded symbol tables.
16129 extract_expsyms_cmds=
16130
16131 case $host_os in
16132 cygwin* | mingw* | pw32*)
16133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16134 # When not using gcc, we currently assume that we are using
16135 # Microsoft Visual C++.
16136 if test "$GCC" != yes; then
16137 with_gnu_ld=no
16138 fi
16139 ;;
16140 openbsd*)
16141 with_gnu_ld=no
16142 ;;
16143 esac
16144
16145 ld_shlibs=yes
16146 if test "$with_gnu_ld" = yes; then
16147 # If archive_cmds runs LD, not CC, wlarc should be empty
16148 wlarc='${wl}'
16149
16150 # See if GNU ld supports shared libraries.
16151 case $host_os in
16152 aix3* | aix4* | aix5*)
16153 # On AIX/PPC, the GNU linker is very broken
16154 if test "$host_cpu" != ia64; then
16155 ld_shlibs=no
16156 cat <<EOF 1>&2
16157
16158*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16159*** to be unable to reliably create shared libraries on AIX.
16160*** Therefore, libtool is disabling shared libraries support. If you
16161*** really care for shared libraries, you may want to modify your PATH
16162*** so that a non-GNU linker is found, and then restart.
16163
16164EOF
16165 fi
16166 ;;
16167
16168 amigaos*)
16169 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)'
16170 hardcode_libdir_flag_spec='-L$libdir'
16171 hardcode_minus_L=yes
16172
16173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16174 # that the semantics of dynamic libraries on AmigaOS, at least up
16175 # to version 4, is to share data among multiple programs linked
16176 # with the same dynamic library. Since this doesn't match the
16177 # behavior of shared libraries on other platforms, we can't use
16178 # them.
16179 ld_shlibs=no
16180 ;;
16181
16182 beos*)
16183 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16184 allow_undefined_flag=unsupported
16185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16186 # support --undefined. This deserves some investigation. FIXME
16187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16188 else
16189 ld_shlibs=no
16190 fi
16191 ;;
16192
16193 cygwin* | mingw* | pw32*)
16194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
16195 # no search path for DLLs.
16196 hardcode_libdir_flag_spec='-L$libdir'
16197 allow_undefined_flag=unsupported
16198 always_export_symbols=yes
16199
16200 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
16201 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
16202 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
16203 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
16204 else $CC -o impgen impgen.c ; fi)~
16205 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
16206
16207 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
16208
16209 # cygwin and mingw dlls have different entry points and sets of symbols
16210 # to exclude.
16211 # FIXME: what about values for MSVC?
16212 dll_entry=__cygwin_dll_entry@12
16213 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
16214 case $host_os in
16215 mingw*)
16216 # mingw values
16217 dll_entry=_DllMainCRTStartup@12
16218 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
16219 ;;
16220 esac
16221
16222 # mingw and cygwin differ, and it's simplest to just exclude the union
16223 # of the two symbol sets.
16224 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
16225
16226 # recent cygwin and mingw systems supply a stub DllMain which the user
16227 # can override, but on older systems we have to supply one (in ltdll.c)
16228 if test "x$lt_cv_need_dllmain" = "xyes"; then
16229 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
16230 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
16231 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
16232 else
16233 ltdll_obj=
16234 ltdll_cmds=
16235 fi
16236
16237 # Extract the symbol export list from an `--export-all' def file,
16238 # then regenerate the def file from the symbol export list, so that
16239 # the compiled dll only exports the symbol export list.
16240 # Be careful not to strip the DATA tag left by newer dlltools.
16241 export_symbols_cmds="$ltdll_cmds"'
16242 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
16243 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
16244
16245 # If the export-symbols file already is a .def file (1st line
16246 # is EXPORTS), use it as is.
16247 # If DATA tags from a recent dlltool are present, honour them!
16248 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
16249 cp $export_symbols $output_objdir/$soname-def;
16250 else
16251 echo EXPORTS > $output_objdir/$soname-def;
16252 _lt_hint=1;
16253 cat $export_symbols | while read symbol; do
16254 set dummy \$symbol;
16255 case \$# in
16256 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
16257 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
16258 esac;
16259 _lt_hint=`expr 1 + \$_lt_hint`;
16260 done;
16261 fi~
16262 '"$ltdll_cmds"'
16263 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
16264 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
16265 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
16266 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
16267 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
16268 ;;
16269
16270 netbsd*)
16271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16273 wlarc=
16274 else
16275 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16276 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16277 fi
16278 ;;
16279
16280 solaris* | sysv5*)
16281 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
16282 ld_shlibs=no
16283 cat <<EOF 1>&2
16284
16285*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16286*** create shared libraries on Solaris systems. Therefore, libtool
16287*** is disabling shared libraries support. We urge you to upgrade GNU
16288*** binutils to release 2.9.1 or newer. Another option is to modify
16289*** your PATH or compiler configuration so that the native linker is
16290*** used, and then restart.
16291
16292EOF
16293 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16296 else
16297 ld_shlibs=no
16298 fi
16299 ;;
16300
16301 sunos4*)
16302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16303 wlarc=
16304 hardcode_direct=yes
16305 hardcode_shlibpath_var=no
16306 ;;
16307
16308 *)
16309 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16312 else
16313 ld_shlibs=no
16314 fi
16315 ;;
16316 esac
16317
16318 if test "$ld_shlibs" = yes; then
16319 runpath_var=LD_RUN_PATH
16320 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
16321 export_dynamic_flag_spec='${wl}--export-dynamic'
16322 case $host_os in
16323 cygwin* | mingw* | pw32*)
16324 # dlltool doesn't understand --whole-archive et. al.
16325 whole_archive_flag_spec=
16326 ;;
16327 *)
16328 # ancient GNU ld didn't support --whole-archive et. al.
16329 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
16330 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16331 else
16332 whole_archive_flag_spec=
16333 fi
16334 ;;
16335 esac
16336 fi
16337 else
16338 # PORTME fill in a description of your system's linker (not GNU ld)
16339 case $host_os in
16340 aix3*)
16341 allow_undefined_flag=unsupported
16342 always_export_symbols=yes
16343 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'
16344 # Note: this linker hardcodes the directories in LIBPATH if there
16345 # are no directories specified by -L.
16346 hardcode_minus_L=yes
16347 if test "$GCC" = yes && test -z "$link_static_flag"; then
16348 # Neither direct hardcoding nor static linking is supported with a
16349 # broken collect2.
16350 hardcode_direct=unsupported
16351 fi
16352 ;;
16353
16354 aix4* | aix5*)
16355 if test "$host_cpu" = ia64; then
16356 # On IA64, the linker does run time linking by default, so we don't
16357 # have to do anything special.
16358 aix_use_runtimelinking=no
16359 exp_sym_flag='-Bexport'
16360 no_entry_flag=""
16361 else
16362 # If we're using GNU nm, then we don't want the "-C" option.
16363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16364 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
16365 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'
16366 else
16367 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'
16368 fi
16369
16370 # KDE requires run time linking. Make it the default.
16371 aix_use_runtimelinking=yes
16372 exp_sym_flag='-bexport'
16373 no_entry_flag='-bnoentry'
16374 fi
16375
16376 # When large executables or shared objects are built, AIX ld can
16377 # have problems creating the table of contents. If linking a library
16378 # or program results in "error TOC overflow" add -mminimal-toc to
16379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16381
16382 archive_cmds=''
16383 hardcode_direct=yes
16384 hardcode_libdir_separator=':'
16385 link_all_deplibs=yes
16386
16387 if test "$GCC" = yes; then
16388 case $host_os in aix4.012|aix4.012.*)
16389 # We only want to do this on AIX 4.2 and lower, the check
16390 # below for broken collect2 doesn't work under 4.3+
16391 collect2name=`${CC} -print-prog-name=collect2`
16392 if test -f "$collect2name" && \
16393 strings "$collect2name" | grep resolve_lib_name >/dev/null
16394 then
16395 # We have reworked collect2
16396 hardcode_direct=yes
16397 else
16398 # We have old collect2
16399 hardcode_direct=unsupported
16400 # It fails to find uninstalled libraries when the uninstalled
16401 # path is not listed in the libpath. Setting hardcode_minus_L
16402 # to unsupported forces relinking
16403 hardcode_minus_L=yes
16404 hardcode_libdir_flag_spec='-L$libdir'
16405 hardcode_libdir_separator=
16406 fi
16407 esac
16408 shared_flag='-shared'
16409 else
16410 # not using gcc
16411 if test "$host_cpu" = ia64; then
16412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16413 # chokes on -Wl,-G. The following line is correct:
16414 shared_flag='-G'
16415 else
16416 if test "$aix_use_runtimelinking" = yes; then
16417 shared_flag='-qmkshrobj ${wl}-G'
16418 else
16419 shared_flag='-qmkshrobj'
16420 fi
16421 fi
16422 fi
16423
16424 # Let the compiler handle the export list.
16425 always_export_symbols=no
16426 if test "$aix_use_runtimelinking" = yes; then
16427 # Warning - without using the other runtime loading flags (-brtl),
16428 # -berok will link without error, but may produce a broken library.
16429 allow_undefined_flag='-berok'
16430 # Determine the default libpath from the value encoded in an empty executable.
16431 cat >conftest.$ac_ext <<_ACEOF
16432#line $LINENO "configure"
16433#include "confdefs.h"
16434
16435#ifdef F77_DUMMY_MAIN
16436# ifdef __cplusplus
16437 extern "C"
16438# endif
16439 int F77_DUMMY_MAIN() { return 1; }
16440#endif
16441int
16442main ()
16443{
16444
16445 ;
16446 return 0;
16447}
16448_ACEOF
16449rm -f conftest.$ac_objext conftest$ac_exeext
16450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451 (eval $ac_link) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461
16462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16463}'`
16464# Check for a 64-bit object if we didn't find anything.
16465if 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; }
16466}'`; fi
16467else
16468 echo "$as_me: failed program was:" >&5
16469cat conftest.$ac_ext >&5
16470fi
16471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16473
16474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16475 archive_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` '" $shared_flag"
16476 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}$exp_sym_flag:\$export_symbols $shared_flag"
16477 else
16478 if test "$host_cpu" = ia64; then
16479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16480 allow_undefined_flag="-z nodefs"
16481 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"
16482 else
16483 # Determine the default libpath from the value encoded in an empty executable.
16484 cat >conftest.$ac_ext <<_ACEOF
16485#line $LINENO "configure"
16486#include "confdefs.h"
16487
16488#ifdef F77_DUMMY_MAIN
16489# ifdef __cplusplus
16490 extern "C"
16491# endif
16492 int F77_DUMMY_MAIN() { return 1; }
16493#endif
16494int
16495main ()
16496{
16497
16498 ;
16499 return 0;
16500}
16501_ACEOF
16502rm -f conftest.$ac_objext conftest$ac_exeext
16503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16504 (eval $ac_link) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -s conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514
16515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16516}'`
16517# Check for a 64-bit object if we didn't find anything.
16518if 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; }
16519}'`; fi
16520else
16521 echo "$as_me: failed program was:" >&5
16522cat conftest.$ac_ext >&5
16523fi
16524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16526
16527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16528 # Warning - without using the other run time loading flags,
16529 # -berok will link without error, but may produce a broken library.
16530 no_undefined_flag=' ${wl}-bernotok'
16531 allow_undefined_flag=' ${wl}-berok'
16532 # -bexpall does not export symbols beginning with underscore (_)
16533 always_export_symbols=yes
16534 # Exported symbols can be pulled into shared objects from archives
16535 whole_archive_flag_spec=' '
16536 archive_cmds_need_lc=yes
16537 # This is similar to how AIX traditionally builds it's shared libraries.
16538 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'
16539 fi
16540 fi
16541 ;;
16542
16543 amigaos*)
16544 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)'
16545 hardcode_libdir_flag_spec='-L$libdir'
16546 hardcode_minus_L=yes
16547 # see comment about different semantics on the GNU ld section
16548 ld_shlibs=no
16549 ;;
16550
16551 bsdi4*)
16552 export_dynamic_flag_spec=-rdynamic
16553 ;;
16554
16555 cygwin* | mingw* | pw32*)
16556 # When not using gcc, we currently assume that we are using
16557 # Microsoft Visual C++.
16558 # hardcode_libdir_flag_spec is actually meaningless, as there is
16559 # no search path for DLLs.
16560 hardcode_libdir_flag_spec=' '
16561 allow_undefined_flag=unsupported
16562 # Tell ltmain to make .lib files, not .a files.
16563 libext=lib
16564 # FIXME: Setting linknames here is a bad hack.
16565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16566 # The linker will automatically build a .lib file if we build a DLL.
16567 old_archive_From_new_cmds='true'
16568 # FIXME: Should let the user specify the lib program.
16569 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
16570 fix_srcfile_path='`cygpath -w "$srcfile"`'
16571 ;;
16572
16573 darwin* | rhapsody*)
16574 case "$host_os" in
16575 rhapsody* | darwin1.[012])
16576 allow_undefined_flag='-undefined suppress'
16577 ;;
16578 *) # Darwin 1.3 on
16579 allow_undefined_flag='-flat_namespace -undefined suppress'
16580 ;;
16581 esac
16582
16583 # FIXME: Relying on posixy $() will cause problems for
16584 # cross-compilation, but unfortunately the echo tests do not
16585 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16586 # `"' quotes if we put them in here... so don't!
16587 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
16588 # We need to add '_' to the symbols in $export_symbols first
16589 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
16590 hardcode_direct=yes
16591 hardcode_shlibpath_var=no
16592 whole_archive_flag_spec='-all_load $convenience'
16593 ;;
16594
16595 dgux*)
16596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_libdir_flag_spec='-L$libdir'
16598 hardcode_shlibpath_var=no
16599 ;;
16600
16601 freebsd1*)
16602 ld_shlibs=no
16603 ;;
16604
16605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16606 # support. Future versions do this automatically, but an explicit c++rt0.o
16607 # does not break anything, and helps significantly (at the cost of a little
16608 # extra space).
16609 freebsd2.2*)
16610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16611 hardcode_libdir_flag_spec='-R$libdir'
16612 hardcode_direct=yes
16613 hardcode_shlibpath_var=no
16614 ;;
16615
16616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16617 freebsd2*)
16618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_direct=yes
16620 hardcode_minus_L=yes
16621 hardcode_shlibpath_var=no
16622 ;;
16623
16624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16625 freebsd*)
16626 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16627 hardcode_libdir_flag_spec='-R$libdir'
16628 hardcode_direct=yes
16629 hardcode_shlibpath_var=no
16630 ;;
16631
16632 hpux9* | hpux10* | hpux11*)
16633 if test "$GCC" = yes; then
16634 case $host_os in
16635 hpux9*)
16636 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'
16637 ;;
16638 *)
16639 if test "$host_cpu" = ia64; then
16640 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16641 else
16642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16643 fi
16644 ;;
16645 esac
16646 else
16647 case $host_os in
16648 hpux9*)
16649 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'
16650 ;;
16651 *)
16652 if test "$host_cpu" = ia64; then
16653 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 else
16655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16656 fi
16657 ;;
16658 esac
16659 fi
16660 if test "$host_cpu" = ia64; then
16661 hardcode_libdir_flag_spec='-L$libdir'
16662 hardcode_direct=no
16663 hardcode_shlibpath_var=no
16664 else
16665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16666 hardcode_libdir_separator=:
16667 hardcode_direct=yes
16668 fi
16669 # hardcode_minus_L: Not really in the search PATH,
16670 # but as the default location of the library.
16671 hardcode_minus_L=yes
16672 export_dynamic_flag_spec='${wl}-E'
16673 ;;
16674
16675 irix5* | irix6* | nonstopux*)
16676 if test "$GCC" = yes; then
16677 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'
16678 else
16679 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'
16680 fi
16681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16682 hardcode_libdir_separator=:
16683 link_all_deplibs=yes
16684 ;;
16685
16686 netbsd*)
16687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16689 else
16690 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16691 fi
16692 hardcode_libdir_flag_spec='-R$libdir'
16693 hardcode_direct=yes
16694 hardcode_shlibpath_var=no
16695 ;;
16696
16697 newsos6)
16698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct=yes
16700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16701 hardcode_libdir_separator=:
16702 hardcode_shlibpath_var=no
16703 ;;
16704
16705 openbsd*)
16706 hardcode_direct=yes
16707 hardcode_shlibpath_var=no
16708
16709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16712 export_dynamic_flag_spec='${wl}-E'
16713 else
16714 case $host_os in
16715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec='-R$libdir'
16718 ;;
16719 *)
16720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16722 ;;
16723 esac
16724 fi
16725 ;;
16726
16727 os2*)
16728 hardcode_libdir_flag_spec='-L$libdir'
16729 hardcode_minus_L=yes
16730 allow_undefined_flag=unsupported
16731 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'
16732 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16733 ;;
16734
16735 osf3*)
16736 if test "$GCC" = yes; then
16737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16738 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'
16739 else
16740 allow_undefined_flag=' -expect_unresolved \*'
16741 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'
16742 fi
16743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator=:
16745 ;;
16746
16747 osf4* | osf5*) # as osf3* with the addition of -msym flag
16748 if test "$GCC" = yes; then
16749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16750 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'
16751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16752 else
16753 allow_undefined_flag=' -expect_unresolved \*'
16754 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'
16755 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16756 $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'
16757
16758 # Both c and cxx compiler support -rpath directly
16759 hardcode_libdir_flag_spec='-rpath $libdir'
16760 fi
16761 hardcode_libdir_separator=:
16762 ;;
16763
16764 sco3.2v5*)
16765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766 hardcode_shlibpath_var=no
16767 export_dynamic_flag_spec='${wl}-Bexport'
16768 runpath_var=LD_RUN_PATH
16769 hardcode_runpath_var=yes
16770 ;;
16771
16772 solaris*)
16773 no_undefined_flag=' -z text'
16774 if test "$GCC" = yes; then
16775 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16776 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16777 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16778 else
16779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16782 fi
16783 hardcode_libdir_flag_spec='-R$libdir'
16784 hardcode_shlibpath_var=no
16785 case $host_os in
16786 solaris2.[0-5] | solaris2.[0-5].*) ;;
16787 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16788 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16789 esac
16790 link_all_deplibs=yes
16791 ;;
16792
16793 sunos4*)
16794 if test "x$host_vendor" = xsequent; then
16795 # Use $CC to link under sequent, because it throws in some extra .o
16796 # files that make .init and .fini sections work.
16797 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16798 else
16799 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16800 fi
16801 hardcode_libdir_flag_spec='-L$libdir'
16802 hardcode_direct=yes
16803 hardcode_minus_L=yes
16804 hardcode_shlibpath_var=no
16805 ;;
16806
16807 sysv4)
16808 if test "x$host_vendor" = xsni; then
16809 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
16810 hardcode_direct=yes # is this really true???
16811 else
16812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16813 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16814 fi
16815 runpath_var='LD_RUN_PATH'
16816 hardcode_shlibpath_var=no
16817 ;;
16818
16819 sysv4.3*)
16820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821 hardcode_shlibpath_var=no
16822 export_dynamic_flag_spec='-Bexport'
16823 ;;
16824
16825 sysv4*MP*)
16826 if test -d /usr/nec; then
16827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828 hardcode_shlibpath_var=no
16829 runpath_var=LD_RUN_PATH
16830 hardcode_runpath_var=yes
16831 ld_shlibs=yes
16832 fi
16833 ;;
16834
16835 sysv4.2uw2*)
16836 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_direct=yes
16838 hardcode_minus_L=no
16839 hardcode_shlibpath_var=no
16840 hardcode_runpath_var=yes
16841 runpath_var=LD_RUN_PATH
16842 ;;
16843
16844 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16845 no_undefined_flag='${wl}-z ${wl}text'
16846 if test "$GCC" = yes; then
16847 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16848 else
16849 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16850 fi
16851 runpath_var='LD_RUN_PATH'
16852 hardcode_shlibpath_var=no
16853 ;;
16854
16855 sysv5*)
16856 no_undefined_flag=' -z text'
16857 # $CC -shared without GNU ld will not create a library from C++
16858 # object files and a static libstdc++, better avoid it by now
16859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16862 hardcode_libdir_flag_spec=
16863 hardcode_shlibpath_var=no
16864 runpath_var='LD_RUN_PATH'
16865 ;;
16866
16867 uts4*)
16868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16869 hardcode_libdir_flag_spec='-L$libdir'
16870 hardcode_shlibpath_var=no
16871 ;;
16872
16873 *)
16874 ld_shlibs=no
16875 ;;
16876 esac
16877 fi
16878
16879echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16880echo "${ECHO_T}$ld_shlibs" >&6
16881test "$ld_shlibs" = no && can_build_shared=no
16882
16883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16884if test "$GCC" = yes; then
16885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16886fi
16887
16888#
16889# Do we need to explicitly link libc?
16890#
16891archive_cmds_need_lc=yes
16892if test "$enable_shared" = yes && test "$GCC" = yes; then
16893 case $archive_cmds in
16894 *'~'*)
16895 # FIXME: we may have to deal with multi-command sequences.
16896 ;;
16897 '$CC '*)
16898 # Test whether the compiler implicitly links with -lc since on some
16899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16900 # to ld, don't add -lc before -lgcc.
16901 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16902echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16903 $rm conftest*
16904 echo 'static int dummy;' > conftest.$ac_ext
16905
16906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16907 (eval $ac_compile) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } 2>conftest.err; then
16911 soname=conftest
16912 lib=conftest
16913 libobjs=conftest.$ac_objext
16914 deplibs=
16915 wl=$lt_prog_compiler_wl
16916 compiler_flags=-v
16917 linker_flags=-v
16918 verstring=
16919 output_objdir=.
16920 libname=conftest
16921 lt_save_allow_undefined_flag=$allow_undefined_flag
16922 allow_undefined_flag=
16923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16924 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }
16928 then
16929 archive_cmds_need_lc=no
16930 else
16931 archive_cmds_need_lc=yes
16932 fi
16933 allow_undefined_flag=$lt_save_allow_undefined_flag
16934 else
16935 cat conftest.err 1>&5
16936 fi
16937 $rm conftest*
16938 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16939echo "${ECHO_T}$archive_cmds_need_lc" >&6
16940 ;;
16941 esac
16942fi
16943
16944echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16945echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16946hardcode_action=
16947if test -n "$hardcode_libdir_flag_spec" || \
16948 test -n "$runpath_var "; then
16949
16950 # We can hardcode non-existant directories.
16951 if test "$hardcode_direct" != no &&
16952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16953 # have to relink, otherwise we might link with an installed library
16954 # when we should be linking with a yet-to-be-installed one
16955 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16956 test "$hardcode_minus_L" != no; then
16957 # Linking always hardcodes the temporary library directory.
16958 hardcode_action=relink
16959 else
16960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16961 hardcode_action=immediate
16962 fi
16963else
16964 # We cannot hardcode anything, or else we can only hardcode existing
16965 # directories.
16966 hardcode_action=unsupported
16967fi
16968echo "$as_me:$LINENO: result: $hardcode_action" >&5
16969echo "${ECHO_T}$hardcode_action" >&6
16970
16971if test "$hardcode_action" = relink; then
16972 # Fast installation is not supported
16973 enable_fast_install=no
16974elif test "$shlibpath_overrides_runpath" = yes ||
16975 test "$enable_shared" = no; then
16976 # Fast installation is not necessary
16977 enable_fast_install=needless
16978fi
16979
16980striplib=
16981old_striplib=
16982echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16983echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16984if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16986 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16987 echo "$as_me:$LINENO: result: yes" >&5
16988echo "${ECHO_T}yes" >&6
16989else
16990 echo "$as_me:$LINENO: result: no" >&5
16991echo "${ECHO_T}no" >&6
16992fi
16993
16994echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16995echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16996library_names_spec=
16997libname_spec='lib$name'
16998soname_spec=
16999postinstall_cmds=
17000postuninstall_cmds=
17001finish_cmds=
17002finish_eval=
17003shlibpath_var=
17004shlibpath_overrides_runpath=unknown
17005version_type=none
17006dynamic_linker="$host_os ld.so"
17007sys_lib_dlsearch_path_spec="/lib /usr/lib"
17008sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17009need_lib_prefix=unknown
17010hardcode_into_libs=no
17011
17012# when you set need_version to no, make sure it does not cause -set_version
17013# flags to be left without arguments
17014need_version=unknown
17015
17016case $host_os in
17017aix3*)
17018 version_type=linux
17019 library_names_spec='${libname}${release}.so$versuffix $libname.a'
17020 shlibpath_var=LIBPATH
17021
17022 # AIX 3 has no versioning support, so we append a major version to the name.
17023 soname_spec='${libname}${release}.so$major'
17024 ;;
17025
17026aix4* | aix5*)
17027 version_type=linux
17028 if test "$host_cpu" = ia64; then
17029 # AIX 5 supports IA64
17030 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
17031 shlibpath_var=LD_LIBRARY_PATH
17032 else
17033 # With GCC up to 2.95.x, collect2 would create an import file
17034 # for dependence libraries. The import file would start with
17035 # the line `#! .'. This would cause the generated library to
17036 # depend on `.', always an invalid library. This was fixed in
17037 # development snapshots of GCC prior to 3.0.
17038 case $host_os in
17039 aix4 | aix4.[01] | aix4.[01].*)
17040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17041 echo ' yes '
17042 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17043 :
17044 else
17045 can_build_shared=no
17046 fi
17047 ;;
17048 esac
17049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17050 # soname into executable. Probably we can add versioning support to
17051 # collect2, so additional links can be useful in future.
17052 if test "$aix_use_runtimelinking" = yes; then
17053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17054 # instead of lib<name>.a to let people know that these are not
17055 # typical AIX shared libraries.
17056 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17057 else
17058 # We preserve .a as extension for shared libraries through AIX4.2
17059 # and later when we are not doing run time linking.
17060 library_names_spec='${libname}${release}.a $libname.a'
17061 soname_spec='${libname}${release}.so$major'
17062 fi
17063 shlibpath_var=LIBPATH
17064 fi
17065 ;;
17066
17067amigaos*)
17068 library_names_spec='$libname.ixlibrary $libname.a'
17069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17070 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'
17071 ;;
17072
17073beos*)
17074 library_names_spec='${libname}.so'
17075 dynamic_linker="$host_os ld.so"
17076 shlibpath_var=LIBRARY_PATH
17077 ;;
17078
17079bsdi4*)
17080 version_type=linux
17081 need_version=no
17082 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17083 soname_spec='${libname}${release}.so$major'
17084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17088 # the default ld.so.conf also contains /usr/contrib/lib and
17089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17090 # libtool to hard-code these into programs
17091 ;;
17092
17093cygwin* | mingw* | pw32*)
17094 version_type=windows
17095 need_version=no
17096 need_lib_prefix=no
17097 case $GCC,$host_os in
17098 yes,cygwin*)
17099 library_names_spec='$libname.dll.a'
17100 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
17102 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
17103 dldir=$destdir/`dirname \$dlpath`~
17104 test -d \$dldir || mkdir -p \$dldir~
17105 $install_prog .libs/$dlname \$dldir/$dlname'
17106 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
17107 dlpath=$dir/\$dldll~
17108 $rm \$dlpath'
17109 ;;
17110 yes,mingw*)
17111 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
17112 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
17113 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
17114 # It is most probably a Windows format PATH printed by
17115 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17116 # path with ; separators, and with drive letters. We can handle the
17117 # drive letters (cygwin fileutils understands them), so leave them,
17118 # especially as we might pass files found there to a mingw objdump,
17119 # which wouldn't understand a cygwinified path. Ahh.
17120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
17121 else
17122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
17123 fi
17124 ;;
17125 yes,pw32*)
17126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
17127 ;;
17128 *)
17129 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
17130 ;;
17131 esac
17132 dynamic_linker='Win32 ld.exe'
17133 # FIXME: first we should search . and the directory the executable is in
17134 shlibpath_var=PATH
17135 ;;
17136
17137darwin* | rhapsody*)
17138 dynamic_linker="$host_os dyld"
17139 version_type=darwin
17140 need_lib_prefix=no
17141 need_version=no
17142 # FIXME: Relying on posixy $() will cause problems for
17143 # cross-compilation, but unfortunately the echo tests do not
17144 # yet detect zsh echo's removal of \ escapes.
17145 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
17146 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
17147 shlibpath_overrides_runpath=yes
17148 shlibpath_var=DYLD_LIBRARY_PATH
17149 ;;
17150
17151dgux*)
17152 version_type=linux
17153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17156 soname_spec='${libname}${release}.so$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 ;;
17159
17160freebsd1*)
17161 dynamic_linker=no
17162 ;;
17163
17164freebsd*)
17165 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17166 version_type=freebsd-$objformat
17167 case $version_type in
17168 freebsd-elf*)
17169 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
17170 need_version=no
17171 need_lib_prefix=no
17172 ;;
17173 freebsd-*)
17174 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
17175 need_version=yes
17176 ;;
17177 esac
17178 shlibpath_var=LD_LIBRARY_PATH
17179 case $host_os in
17180 freebsd2*)
17181 shlibpath_overrides_runpath=yes
17182 ;;
17183 freebsd3.01* | freebsdelf3.01*)
17184 shlibpath_overrides_runpath=yes
17185 hardcode_into_libs=yes
17186 ;;
17187 *) # from 3.2 on
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17190 ;;
17191 esac
17192 ;;
17193
17194gnu*)
17195 version_type=linux
17196 need_lib_prefix=no
17197 need_version=no
17198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
17199 soname_spec='${libname}${release}.so$major'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 hardcode_into_libs=yes
17202 ;;
17203
17204hpux9* | hpux10* | hpux11*)
17205 # Give a soname corresponding to the major version so that dld.sl refuses to
17206 # link against other versions.
17207 version_type=sunos
17208 need_lib_prefix=no
17209 need_version=no
17210 if test "$host_cpu" = ia64; then
17211 hardcode_into_libs=yes
17212 dynamic_linker="$host_os dld.so"
17213 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17215 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17216 soname_spec='${libname}${release}.so$major'
17217 if test "X$HPUX_IA64_MODE" = X32; then
17218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17219 else
17220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17221 fi
17222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17223 else
17224 dynamic_linker="$host_os dld.sl"
17225 shlibpath_var=SHLIB_PATH
17226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17227 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
17228 soname_spec='${libname}${release}.sl$major'
17229 fi
17230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17231 postinstall_cmds='chmod 555 $lib'
17232 ;;
17233
17234irix5* | irix6* | nonstopux*)
17235 case $host_os in
17236 nonstopux*) version_type=nonstopux ;;
17237 *) version_type=irix ;;
17238 esac
17239 need_lib_prefix=no
17240 need_version=no
17241 soname_spec='${libname}${release}.so$major'
17242 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
17243 case $host_os in
17244 irix5* | nonstopux*)
17245 libsuff= shlibsuff=
17246 ;;
17247 *)
17248 case $LD in # libtool.m4 will add one of these switches to LD
17249 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
17250 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
17251 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
17252 *) libsuff= shlibsuff= libmagic=never-match;;
17253 esac
17254 ;;
17255 esac
17256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17257 shlibpath_overrides_runpath=no
17258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17260 ;;
17261
17262# No shared lib support for Linux oldld, aout, or coff.
17263linux*oldld* | linux*aout* | linux*coff*)
17264 dynamic_linker=no
17265 ;;
17266
17267# This must be Linux ELF.
17268linux*)
17269 version_type=linux
17270 need_lib_prefix=no
17271 need_version=no
17272 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17273 soname_spec='${libname}${release}.so$major'
17274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17275 libsuff=
17276 if test "x$LINUX_64_MODE" = x64; then
17277 # Some platforms are per default 64-bit, so there's no /lib64
17278 if test -d /lib64; then
17279 libsuff=64
17280 fi
17281 fi
17282 shlibpath_var=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath=no
17284 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17285 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17286 # This implies no fast_install, which is unacceptable.
17287 # Some rework will be needed to allow for fast_install
17288 # before this can be enabled.
17289 hardcode_into_libs=yes
17290
17291 # We used to test for /lib/ld.so.1 and disable shared libraries on
17292 # powerpc, because MkLinux only supported shared libraries with the
17293 # GNU dynamic linker. Since this was broken with cross compilers,
17294 # most powerpc-linux boxes support dynamic linking these days and
17295 # people can always --disable-shared, the test was removed, and we
17296 # assume the GNU/Linux dynamic linker is in use.
17297 dynamic_linker='GNU/Linux ld.so'
17298 ;;
17299
17300netbsd*)
17301 version_type=sunos
17302 need_lib_prefix=no
17303 need_version=no
17304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17305 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17307 dynamic_linker='NetBSD (a.out) ld.so'
17308 else
17309 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
17310 soname_spec='${libname}${release}.so$major'
17311 dynamic_linker='NetBSD ld.elf_so'
17312 fi
17313 shlibpath_var=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath=yes
17315 hardcode_into_libs=yes
17316 ;;
17317
17318newsos6)
17319 version_type=linux
17320 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 shlibpath_overrides_runpath=yes
17323 ;;
17324
17325nto-qnx)
17326 version_type=linux
17327 need_lib_prefix=no
17328 need_version=no
17329 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17330 soname_spec='${libname}${release}.so$major'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath=yes
17333 ;;
17334
17335openbsd*)
17336 version_type=sunos
17337 need_lib_prefix=no
17338 need_version=no
17339 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17343 case $host_os in
17344 openbsd2.[89] | openbsd2.[89].*)
17345 shlibpath_overrides_runpath=no
17346 ;;
17347 *)
17348 shlibpath_overrides_runpath=yes
17349 ;;
17350 esac
17351 else
17352 shlibpath_overrides_runpath=yes
17353 fi
17354 ;;
17355
17356os2*)
17357 libname_spec='$name'
17358 need_lib_prefix=no
17359 library_names_spec='$libname.dll $libname.a'
17360 dynamic_linker='OS/2 ld.exe'
17361 shlibpath_var=LIBPATH
17362 ;;
17363
17364osf3* | osf4* | osf5*)
17365 version_type=osf
17366 need_lib_prefix=no
17367 need_version=no
17368 soname_spec='${libname}${release}.so'
17369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17373 ;;
17374
17375sco3.2v5*)
17376 version_type=osf
17377 soname_spec='${libname}${release}.so$major'
17378 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 ;;
17381
17382solaris*)
17383 version_type=linux
17384 need_lib_prefix=no
17385 need_version=no
17386 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17387 soname_spec='${libname}${release}.so$major'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17390 hardcode_into_libs=yes
17391 # ldd complains unless libraries are executable
17392 postinstall_cmds='chmod +x $lib'
17393 ;;
17394
17395sunos4*)
17396 version_type=sunos
17397 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=yes
17401 if test "$with_gnu_ld" = yes; then
17402 need_lib_prefix=no
17403 fi
17404 need_version=yes
17405 ;;
17406
17407sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17408 version_type=linux
17409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17410 soname_spec='${libname}${release}.so$major'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 case $host_vendor in
17413 sni)
17414 shlibpath_overrides_runpath=no
17415 ;;
17416 motorola)
17417 need_lib_prefix=no
17418 need_version=no
17419 shlibpath_overrides_runpath=no
17420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17421 ;;
17422 esac
17423 ;;
17424
17425sysv4*MP*)
17426 if test -d /usr/nec ;then
17427 version_type=linux
17428 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
17429 soname_spec='$libname.so.$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 fi
17432 ;;
17433
17434uts4*)
17435 version_type=linux
17436 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17437 soname_spec='${libname}${release}.so$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 ;;
17440
17441*)
17442 dynamic_linker=no
17443 ;;
17444esac
17445echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17446echo "${ECHO_T}$dynamic_linker" >&6
17447test "$dynamic_linker" = no && can_build_shared=no
17448
17449if test "x$enable_dlopen" != xyes; then
17450 enable_dlopen=unknown
17451 enable_dlopen_self=unknown
17452 enable_dlopen_self_static=unknown
17453else
17454 lt_cv_dlopen=no
17455 lt_cv_dlopen_libs=
17456
17457 case $host_os in
17458 beos*)
17459 lt_cv_dlopen="load_add_on"
17460 lt_cv_dlopen_libs=
17461 lt_cv_dlopen_self=yes
17462 ;;
17463
17464 cygwin* | mingw* | pw32*)
17465 lt_cv_dlopen="LoadLibrary"
17466 lt_cv_dlopen_libs=
17467 ;;
17468
17469 *)
17470 echo "$as_me:$LINENO: checking for shl_load" >&5
17471echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17472if test "${ac_cv_func_shl_load+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
17476#line $LINENO "configure"
17477#include "confdefs.h"
17478/* System header to define __stub macros and hopefully few prototypes,
17479 which can conflict with char shl_load (); below. */
17480#include <assert.h>
17481/* Override any gcc2 internal prototype to avoid an error. */
17482#ifdef __cplusplus
17483extern "C"
17484#endif
17485/* We use char because int might match the return type of a gcc2
17486 builtin and then its argument prototype would still apply. */
17487char shl_load ();
17488char (*f) ();
17489
17490#ifdef F77_DUMMY_MAIN
17491# ifdef __cplusplus
17492 extern "C"
17493# endif
17494 int F77_DUMMY_MAIN() { return 1; }
17495#endif
17496int
17497main ()
17498{
17499/* The GNU C library defines this for functions which it implements
17500 to always fail with ENOSYS. Some functions are actually named
17501 something starting with __ and the normal name is an alias. */
17502#if defined (__stub_shl_load) || defined (__stub___shl_load)
17503choke me
17504#else
17505f = shl_load;
17506#endif
17507
17508 ;
17509 return 0;
17510}
17511_ACEOF
17512rm -f conftest.$ac_objext conftest$ac_exeext
17513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17514 (eval $ac_link) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -s conftest$ac_exeext'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_func_shl_load=yes
17525else
17526 echo "$as_me: failed program was:" >&5
17527cat conftest.$ac_ext >&5
17528ac_cv_func_shl_load=no
17529fi
17530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17531fi
17532echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17533echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17534if test $ac_cv_func_shl_load = yes; then
17535 lt_cv_dlopen="shl_load"
17536else
17537 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17538echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17539if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541else
17542 ac_check_lib_save_LIBS=$LIBS
17543LIBS="-ldld $LIBS"
17544cat >conftest.$ac_ext <<_ACEOF
17545#line $LINENO "configure"
17546#include "confdefs.h"
17547
17548/* Override any gcc2 internal prototype to avoid an error. */
17549#ifdef __cplusplus
17550extern "C"
17551#endif
17552/* We use char because int might match the return type of a gcc2
17553 builtin and then its argument prototype would still apply. */
17554char shl_load ();
17555#ifdef F77_DUMMY_MAIN
17556# ifdef __cplusplus
17557 extern "C"
17558# endif
17559 int F77_DUMMY_MAIN() { return 1; }
17560#endif
17561int
17562main ()
17563{
17564shl_load ();
17565 ;
17566 return 0;
17567}
17568_ACEOF
17569rm -f conftest.$ac_objext conftest$ac_exeext
17570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_cv_lib_dld_shl_load=yes
17582else
17583 echo "$as_me: failed program was:" >&5
17584cat conftest.$ac_ext >&5
17585ac_cv_lib_dld_shl_load=no
17586fi
17587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17588LIBS=$ac_check_lib_save_LIBS
17589fi
17590echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17591echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17592if test $ac_cv_lib_dld_shl_load = yes; then
17593 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17594else
17595 echo "$as_me:$LINENO: checking for dlopen" >&5
17596echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17597if test "${ac_cv_func_dlopen+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17599else
17600 cat >conftest.$ac_ext <<_ACEOF
17601#line $LINENO "configure"
17602#include "confdefs.h"
17603/* System header to define __stub macros and hopefully few prototypes,
17604 which can conflict with char dlopen (); below. */
17605#include <assert.h>
17606/* Override any gcc2 internal prototype to avoid an error. */
17607#ifdef __cplusplus
17608extern "C"
17609#endif
17610/* We use char because int might match the return type of a gcc2
17611 builtin and then its argument prototype would still apply. */
17612char dlopen ();
17613char (*f) ();
17614
17615#ifdef F77_DUMMY_MAIN
17616# ifdef __cplusplus
17617 extern "C"
17618# endif
17619 int F77_DUMMY_MAIN() { return 1; }
17620#endif
17621int
17622main ()
17623{
17624/* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627#if defined (__stub_dlopen) || defined (__stub___dlopen)
17628choke me
17629#else
17630f = dlopen;
17631#endif
17632
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext conftest$ac_exeext
17638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -s conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_func_dlopen=yes
17650else
17651 echo "$as_me: failed program was:" >&5
17652cat conftest.$ac_ext >&5
17653ac_cv_func_dlopen=no
17654fi
17655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17656fi
17657echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17658echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17659if test $ac_cv_func_dlopen = yes; then
17660 lt_cv_dlopen="dlopen"
17661else
17662 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17663echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17664if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666else
17667 ac_check_lib_save_LIBS=$LIBS
17668LIBS="-ldl $LIBS"
17669cat >conftest.$ac_ext <<_ACEOF
17670#line $LINENO "configure"
17671#include "confdefs.h"
17672
17673/* Override any gcc2 internal prototype to avoid an error. */
17674#ifdef __cplusplus
17675extern "C"
17676#endif
17677/* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679char dlopen ();
17680#ifdef F77_DUMMY_MAIN
17681# ifdef __cplusplus
17682 extern "C"
17683# endif
17684 int F77_DUMMY_MAIN() { return 1; }
17685#endif
17686int
17687main ()
17688{
17689dlopen ();
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext conftest$ac_exeext
17695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696 (eval $ac_link) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -s conftest$ac_exeext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_lib_dl_dlopen=yes
17707else
17708 echo "$as_me: failed program was:" >&5
17709cat conftest.$ac_ext >&5
17710ac_cv_lib_dl_dlopen=no
17711fi
17712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17713LIBS=$ac_check_lib_save_LIBS
17714fi
17715echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17716echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17717if test $ac_cv_lib_dl_dlopen = yes; then
17718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17719else
17720 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17721echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17722if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724else
17725 ac_check_lib_save_LIBS=$LIBS
17726LIBS="-lsvld $LIBS"
17727cat >conftest.$ac_ext <<_ACEOF
17728#line $LINENO "configure"
17729#include "confdefs.h"
17730
17731/* Override any gcc2 internal prototype to avoid an error. */
17732#ifdef __cplusplus
17733extern "C"
17734#endif
17735/* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17737char dlopen ();
17738#ifdef F77_DUMMY_MAIN
17739# ifdef __cplusplus
17740 extern "C"
17741# endif
17742 int F77_DUMMY_MAIN() { return 1; }
17743#endif
17744int
17745main ()
17746{
17747dlopen ();
17748 ;
17749 return 0;
17750}
17751_ACEOF
17752rm -f conftest.$ac_objext conftest$ac_exeext
17753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_lib_svld_dlopen=yes
17765else
17766 echo "$as_me: failed program was:" >&5
17767cat conftest.$ac_ext >&5
17768ac_cv_lib_svld_dlopen=no
17769fi
17770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17771LIBS=$ac_check_lib_save_LIBS
17772fi
17773echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17774echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17775if test $ac_cv_lib_svld_dlopen = yes; then
17776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17777else
17778 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17779echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17780if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 ac_check_lib_save_LIBS=$LIBS
17784LIBS="-ldld $LIBS"
17785cat >conftest.$ac_ext <<_ACEOF
17786#line $LINENO "configure"
17787#include "confdefs.h"
17788
17789/* Override any gcc2 internal prototype to avoid an error. */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793/* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17795char dld_link ();
17796#ifdef F77_DUMMY_MAIN
17797# ifdef __cplusplus
17798 extern "C"
17799# endif
17800 int F77_DUMMY_MAIN() { return 1; }
17801#endif
17802int
17803main ()
17804{
17805dld_link ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext conftest$ac_exeext
17811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_lib_dld_dld_link=yes
17823else
17824 echo "$as_me: failed program was:" >&5
17825cat conftest.$ac_ext >&5
17826ac_cv_lib_dld_dld_link=no
17827fi
17828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17829LIBS=$ac_check_lib_save_LIBS
17830fi
17831echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17832echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17833if test $ac_cv_lib_dld_dld_link = yes; then
17834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17835fi
17836
17837
17838fi
17839
17840
17841fi
17842
17843
17844fi
17845
17846
17847fi
17848
17849
17850fi
17851
17852 ;;
17853 esac
17854
17855 if test "x$lt_cv_dlopen" != xno; then
17856 enable_dlopen=yes
17857 else
17858 enable_dlopen=no
17859 fi
17860
17861 case $lt_cv_dlopen in
17862 dlopen)
17863 save_CPPFLAGS="$CPPFLAGS"
17864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17865
17866 save_LDFLAGS="$LDFLAGS"
17867 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17868
17869 save_LIBS="$LIBS"
17870 LIBS="$lt_cv_dlopen_libs $LIBS"
17871
17872 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17873echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17874if test "${lt_cv_dlopen_self+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876else
17877 if test "$cross_compiling" = yes; then :
17878 lt_cv_dlopen_self=cross
17879else
17880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17881 lt_status=$lt_dlunknown
17882 cat > conftest.$ac_ext <<EOF
17883#line 17883 "configure"
17884#include "confdefs.h"
17885
17886#if HAVE_DLFCN_H
17887#include <dlfcn.h>
17888#endif
17889
17890#include <stdio.h>
17891
17892#ifdef RTLD_GLOBAL
17893# define LT_DLGLOBAL RTLD_GLOBAL
17894#else
17895# ifdef DL_GLOBAL
17896# define LT_DLGLOBAL DL_GLOBAL
17897# else
17898# define LT_DLGLOBAL 0
17899# endif
17900#endif
17901
17902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17903 find out it does not work in some platform. */
17904#ifndef LT_DLLAZY_OR_NOW
17905# ifdef RTLD_LAZY
17906# define LT_DLLAZY_OR_NOW RTLD_LAZY
17907# else
17908# ifdef DL_LAZY
17909# define LT_DLLAZY_OR_NOW DL_LAZY
17910# else
17911# ifdef RTLD_NOW
17912# define LT_DLLAZY_OR_NOW RTLD_NOW
17913# else
17914# ifdef DL_NOW
17915# define LT_DLLAZY_OR_NOW DL_NOW
17916# else
17917# define LT_DLLAZY_OR_NOW 0
17918# endif
17919# endif
17920# endif
17921# endif
17922#endif
17923
17924#ifdef __cplusplus
17925extern "C" void exit (int);
17926#endif
17927
17928void fnord() { int i=42;}
17929int main ()
17930{
17931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17932 int status = $lt_dlunknown;
17933
17934 if (self)
17935 {
17936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17937 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17938 /* dlclose (self); */
17939 }
17940
17941 exit (status);
17942}
17943EOF
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945 (eval $ac_link) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17949 (./conftest; exit; ) 2>/dev/null
17950 lt_status=$?
17951 case x$lt_status in
17952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17954 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17955 esac
17956 else :
17957 # compilation failed
17958 lt_cv_dlopen_self=no
17959 fi
17960fi
17961rm -fr conftest*
17962
17963
17964fi
17965echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17966echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17967
17968 if test "x$lt_cv_dlopen_self" = xyes; then
17969 LDFLAGS="$LDFLAGS $link_static_flag"
17970 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17971echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17972if test "${lt_cv_dlopen_self_static+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974else
17975 if test "$cross_compiling" = yes; then :
17976 lt_cv_dlopen_self_static=cross
17977else
17978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17979 lt_status=$lt_dlunknown
17980 cat > conftest.$ac_ext <<EOF
17981#line 17981 "configure"
17982#include "confdefs.h"
17983
17984#if HAVE_DLFCN_H
17985#include <dlfcn.h>
17986#endif
17987
17988#include <stdio.h>
17989
17990#ifdef RTLD_GLOBAL
17991# define LT_DLGLOBAL RTLD_GLOBAL
17992#else
17993# ifdef DL_GLOBAL
17994# define LT_DLGLOBAL DL_GLOBAL
17995# else
17996# define LT_DLGLOBAL 0
17997# endif
17998#endif
17999
18000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18001 find out it does not work in some platform. */
18002#ifndef LT_DLLAZY_OR_NOW
18003# ifdef RTLD_LAZY
18004# define LT_DLLAZY_OR_NOW RTLD_LAZY
18005# else
18006# ifdef DL_LAZY
18007# define LT_DLLAZY_OR_NOW DL_LAZY
18008# else
18009# ifdef RTLD_NOW
18010# define LT_DLLAZY_OR_NOW RTLD_NOW
18011# else
18012# ifdef DL_NOW
18013# define LT_DLLAZY_OR_NOW DL_NOW
18014# else
18015# define LT_DLLAZY_OR_NOW 0
18016# endif
18017# endif
18018# endif
18019# endif
18020#endif
18021
18022#ifdef __cplusplus
18023extern "C" void exit (int);
18024#endif
18025
18026void fnord() { int i=42;}
18027int main ()
18028{
18029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18030 int status = $lt_dlunknown;
18031
18032 if (self)
18033 {
18034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18036 /* dlclose (self); */
18037 }
18038
18039 exit (status);
18040}
18041EOF
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043 (eval $ac_link) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18047 (./conftest; exit; ) 2>/dev/null
18048 lt_status=$?
18049 case x$lt_status in
18050 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18051 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18052 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18053 esac
18054 else :
18055 # compilation failed
18056 lt_cv_dlopen_self_static=no
18057 fi
18058fi
18059rm -fr conftest*
18060
18061
18062fi
18063echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18064echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18065 fi
18066
18067 CPPFLAGS="$save_CPPFLAGS"
18068 LDFLAGS="$save_LDFLAGS"
18069 LIBS="$save_LIBS"
18070 ;;
18071 esac
18072
18073 case $lt_cv_dlopen_self in
18074 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18075 *) enable_dlopen_self=unknown ;;
18076 esac
18077
18078 case $lt_cv_dlopen_self_static in
18079 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18080 *) enable_dlopen_self_static=unknown ;;
18081 esac
18082fi
18083
18084
18085# Report which librarie types wil actually be built
18086echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18087echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18088echo "$as_me:$LINENO: result: $can_build_shared" >&5
18089echo "${ECHO_T}$can_build_shared" >&6
18090
18091echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18092echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18093test "$can_build_shared" = "no" && enable_shared=no
18094
18095# On AIX, shared libraries and static libraries use the same namespace, and
18096# are all built from PIC.
18097case "$host_os" in
18098aix3*)
18099 test "$enable_shared" = yes && enable_static=no
18100 if test -n "$RANLIB"; then
18101 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18102 postinstall_cmds='$RANLIB $lib'
18103 fi
18104 ;;
18105
18106aix4*)
18107 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18108 test "$enable_shared" = yes && enable_static=no
18109 fi
18110 ;;
18111esac
18112echo "$as_me:$LINENO: result: $enable_shared" >&5
18113echo "${ECHO_T}$enable_shared" >&6
18114
18115echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18116echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18117# Make sure either enable_shared or enable_static is yes.
18118test "$enable_shared" = yes || enable_static=yes
18119echo "$as_me:$LINENO: result: $enable_static" >&5
18120echo "${ECHO_T}$enable_static" >&6
18121
18122# The else clause should only fire when bootstrapping the
18123# libtool distribution, otherwise you forgot to ship ltmain.sh
18124# with your package, and you will get complaints that there are
18125# no rules to generate ltmain.sh.
18126if test -f "$ltmain"; then
18127 # Now quote all the things that may contain metacharacters while being
18128 # careful not to overquote the AC_SUBSTed values. We take copies of the
18129 # variables and quote the copies for generation of the libtool script.
18130 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
18131 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18132 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18133 deplibs_check_method reload_flag reload_cmds need_locks \
18134 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18135 lt_cv_sys_global_symbol_to_c_name_address \
18136 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18137 old_postinstall_cmds old_postuninstall_cmds \
18138 compiler \
18139 CC \
18140 LD \
18141 lt_prog_compiler_wl \
18142 lt_prog_compiler_pic \
18143 lt_prog_compiler_static \
18144 lt_prog_compiler_no_builtin_flag \
18145 export_dynamic_flag_spec \
18146 thread_safe_flag_spec \
18147 whole_archive_flag_spec \
18148 old_archive_cmds \
18149 old_archive_from_new_cmds \
18150 predep_objects \
18151 postdep_objects \
18152 predeps \
18153 postdeps \
18154 compiler_lib_search_path \
18155 archive_cmds \
18156 archive_expsym_cmds \
18157 postinstall_cmds \
18158 postuninstall_cmds \
18159 old_archive_from_expsyms_cmds \
18160 allow_undefined_flag \
18161 no_undefined_flag \
18162 export_symbols_cmds \
18163 hardcode_libdir_flag_spec \
18164 hardcode_libdir_separator \
18165 lt_cv_prog_compiler_c_o \
18166 exclude_expsyms \
18167 include_expsyms; do
18168
18169 case $var in
18170 old_archive_cmds | \
18171 old_archive_from_new_cmds | \
18172 archive_cmds | \
18173 archive_expsym_cmds | \
18174 old_archive_from_expsyms_cmds | \
18175 export_symbols_cmds | \
18176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18177 postinstall_cmds | postuninstall_cmds | \
18178 old_postinstall_cmds | old_postuninstall_cmds | \
18179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18180 # Double-quote double-evaled strings.
18181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18182 ;;
18183 *)
18184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18185 ;;
18186 esac
18187 done
18188
18189 case $lt_echo in
18190 *'\$0 --fallback-echo"')
18191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18192 ;;
18193 esac
18194
18195cfgfile="${ofile}T"
18196 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18197 $rm -f "$cfgfile"
18198 { echo "$as_me:$LINENO: creating $ofile" >&5
18199echo "$as_me: creating $ofile" >&6;}
18200
18201 cat <<__EOF__ >> "$cfgfile"
18202#! $SHELL
18203
18204# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18205# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18206# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18207#
18208# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18209# Free Software Foundation, Inc.
18210#
18211# This file is part of GNU Libtool:
18212# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18213#
18214# This program is free software; you can redistribute it and/or modify
18215# it under the terms of the GNU General Public License as published by
18216# the Free Software Foundation; either version 2 of the License, or
18217# (at your option) any later version.
18218#
18219# This program is distributed in the hope that it will be useful, but
18220# WITHOUT ANY WARRANTY; without even the implied warranty of
18221# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18222# General Public License for more details.
18223#
18224# You should have received a copy of the GNU General Public License
18225# along with this program; if not, write to the Free Software
18226# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18227#
18228# As a special exception to the GNU General Public License, if you
18229# distribute this file as part of a program that contains a
18230# configuration script generated by Autoconf, you may include it under
18231# the same distribution terms that you use for the rest of that program.
18232
18233# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18234Xsed="sed -e s/^X//"
18235
18236# The HP-UX ksh and POSIX shell print the target directory to stdout
18237# if CDPATH is set.
18238if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
18239
18240# The names of the tagged configurations supported by this script.
18241available_tags=
18242
18243# ### BEGIN LIBTOOL CONFIG
18244
18245# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18246
18247# Shell to use when invoking shell scripts.
18248SHELL=$lt_SHELL
18249
18250# Whether or not to build shared libraries.
18251build_libtool_libs=$enable_shared
18252
18253# Whether or not to build static libraries.
18254build_old_libs=$enable_static
18255
18256# Whether or not to add -lc for building shared libraries.
18257build_libtool_need_lc=$archive_cmds_need_lc
18258
18259# Whether or not to optimize for fast installation.
18260fast_install=$enable_fast_install
18261
18262# The host system.
18263host_alias=$host_alias
18264host=$host
18265
18266# An echo program that does not interpret backslashes.
18267echo=$lt_echo
18268
18269# The archiver.
18270AR=$lt_AR
18271AR_FLAGS=$lt_AR_FLAGS
18272
18273# A C compiler.
18274LTCC=$lt_LTCC
18275
18276# A language-specific compiler.
18277CC=$lt_compiler
18278
18279# Is the compiler the GNU C compiler?
18280with_gcc=$GCC
18281
18282# The linker used to build libraries.
18283LD=$lt_LD
18284
18285# Whether we need hard or soft links.
18286LN_S=$lt_LN_S
18287
18288# A BSD-compatible nm program.
18289NM=$lt_NM
18290
18291# A sed program that does not truncate output.
18292SED=$lt_SED
18293
18294# A symbol stripping program
18295STRIP=$STRIP
18296
18297# Used to examine libraries when file_magic_cmd begins "file"
18298MAGIC_CMD=$MAGIC_CMD
18299
18300# Used on cygwin: DLL creation program.
18301DLLTOOL="$DLLTOOL"
18302
18303# Used on cygwin: object dumper.
18304OBJDUMP="$OBJDUMP"
18305
18306# Used on cygwin: assembler.
18307AS="$AS"
18308
18309# The name of the directory that contains temporary libtool files.
18310objdir=$objdir
18311
18312# How to create reloadable object files.
18313reload_flag=$lt_reload_flag
18314reload_cmds=$lt_reload_cmds
18315
18316# How to pass a linker flag through the compiler.
18317wl=$lt_lt_prog_compiler_wl
18318
18319# Object file suffix (normally "o").
18320objext="$ac_objext"
18321
18322# Old archive suffix (normally "a").
18323libext="$libext"
18324
18325# Executable file suffix (normally "").
18326exeext="$exeext"
18327
18328# Additional compiler flags for building library objects.
18329pic_flag=$lt_lt_prog_compiler_pic
18330pic_mode=$pic_mode
18331
18332# What is the maximum length of a command?
18333max_cmd_len=$lt_cv_sys_max_cmd_len
18334
18335# Does compiler simultaneously support -c and -o options?
18336compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18337
18338# Must we lock files when doing compilation ?
18339need_locks=$lt_need_locks
18340
18341# Do we need the lib prefix for modules?
18342need_lib_prefix=$need_lib_prefix
18343
18344# Do we need a version for libraries?
18345need_version=$need_version
18346
18347# Whether dlopen is supported.
18348dlopen_support=$enable_dlopen
18349
18350# Whether dlopen of programs is supported.
18351dlopen_self=$enable_dlopen_self
18352
18353# Whether dlopen of statically linked programs is supported.
18354dlopen_self_static=$enable_dlopen_self_static
18355
18356# Compiler flag to prevent dynamic linking.
18357link_static_flag=$lt_lt_prog_compiler_static
18358
18359# Compiler flag to turn off builtin functions.
18360no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18361
18362# Compiler flag to allow reflexive dlopens.
18363export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18364
18365# Compiler flag to generate shared objects directly from archives.
18366whole_archive_flag_spec=$lt_whole_archive_flag_spec
18367
18368# Compiler flag to generate thread-safe objects.
18369thread_safe_flag_spec=$lt_thread_safe_flag_spec
18370
18371# Library versioning type.
18372version_type=$version_type
18373
18374# Format of library name prefix.
18375libname_spec=$lt_libname_spec
18376
18377# List of archive names. First name is the real one, the rest are links.
18378# The last name is the one that the linker finds with -lNAME.
18379library_names_spec=$lt_library_names_spec
18380
18381# The coded name of the library, if different from the real name.
18382soname_spec=$lt_soname_spec
18383
18384# Commands used to build and install an old-style archive.
18385RANLIB=$lt_RANLIB
18386old_archive_cmds=$lt_old_archive_cmds
18387old_postinstall_cmds=$lt_old_postinstall_cmds
18388old_postuninstall_cmds=$lt_old_postuninstall_cmds
18389
18390# Create an old-style archive from a shared archive.
18391old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18392
18393# Create a temporary old-style archive to link instead of a shared archive.
18394old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18395
18396# Commands used to build and install a shared archive.
18397archive_cmds=$lt_archive_cmds
18398archive_expsym_cmds=$lt_archive_expsym_cmds
18399postinstall_cmds=$lt_postinstall_cmds
18400postuninstall_cmds=$lt_postuninstall_cmds
18401
18402# Commands to strip libraries.
18403old_striplib=$lt_old_striplib
18404striplib=$lt_striplib
18405
18406# Dependencies to place before the objects being linked to create a
18407# shared library.
18408predep_objects=$lt_predep_objects
18409
18410# Dependencies to place after the objects being linked to create a
18411# shared library.
18412postdep_objects=$lt_postdep_objects
18413
18414# Dependencies to place before the objects being linked to create a
18415# shared library.
18416predeps=$lt_predeps
18417
18418# Dependencies to place after the objects being linked to create a
18419# shared library.
18420postdeps=$lt_postdeps
18421
18422# The library search path used internally by the compiler when linking
18423# a shared library.
18424compiler_lib_search_path=$lt_compiler_lib_search_path
18425
18426# Method to check whether dependent libraries are shared objects.
18427deplibs_check_method=$lt_deplibs_check_method
18428
18429# Command to use when deplibs_check_method == file_magic.
18430file_magic_cmd=$lt_file_magic_cmd
18431
18432# Flag that allows shared libraries with undefined symbols to be built.
18433allow_undefined_flag=$lt_allow_undefined_flag
18434
18435# Flag that forces no undefined symbols.
18436no_undefined_flag=$lt_no_undefined_flag
18437
18438# Commands used to finish a libtool library installation in a directory.
18439finish_cmds=$lt_finish_cmds
18440
18441# Same as above, but a single script fragment to be evaled but not shown.
18442finish_eval=$lt_finish_eval
18443
18444# Take the output of nm and produce a listing of raw symbols and C names.
18445global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18446
18447# Transform the output of nm in a proper C declaration
18448global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18449
18450# Transform the output of nm in a C name address pair
18451global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18452
18453# This is the shared library runtime path variable.
18454runpath_var=$runpath_var
18455
18456# This is the shared library path variable.
18457shlibpath_var=$shlibpath_var
18458
18459# Is shlibpath searched before the hard-coded library search path?
18460shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18461
18462# How to hardcode a shared library path into an executable.
18463hardcode_action=$hardcode_action
18464
18465# Whether we should hardcode library paths into libraries.
18466hardcode_into_libs=$hardcode_into_libs
18467
18468# Flag to hardcode \$libdir into a binary during linking.
18469# This must work even if \$libdir does not exist.
18470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18471
18472# Whether we need a single -rpath flag with a separated argument.
18473hardcode_libdir_separator=$lt_hardcode_libdir_separator
18474
18475# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
18476# resulting binary.
18477hardcode_direct=$hardcode_direct
18478
18479# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18480# resulting binary.
18481hardcode_minus_L=$hardcode_minus_L
18482
18483# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18484# the resulting binary.
18485hardcode_shlibpath_var=$hardcode_shlibpath_var
18486
18487# Variables whose values should be saved in libtool wrapper scripts and
18488# restored at relink time.
18489variables_saved_for_relink="$variables_saved_for_relink"
18490
18491# Whether libtool must link a program against all its dependency libraries.
18492link_all_deplibs=$link_all_deplibs
18493
18494# Compile-time system search path for libraries
18495sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18496
18497# Run-time system search path for libraries
18498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18499
18500# Fix the shell variable \$srcfile for the compiler.
18501fix_srcfile_path="$fix_srcfile_path"
18502
18503# Set to yes if exported symbols are required.
18504always_export_symbols=$always_export_symbols
18505
18506# The commands to list exported symbols.
18507export_symbols_cmds=$lt_export_symbols_cmds
18508
18509# The commands to extract the exported symbol list from a shared archive.
18510extract_expsyms_cmds=$lt_extract_expsyms_cmds
18511
18512# Symbols that should not be listed in the preloaded symbols.
18513exclude_expsyms=$lt_exclude_expsyms
18514
18515# Symbols that must always be exported.
18516include_expsyms=$lt_include_expsyms
18517
18518# ### END LIBTOOL CONFIG
18519
18520__EOF__
18521
18522
18523 case $host_os in
18524 aix3*)
18525 cat <<\EOF >> "$cfgfile"
18526
18527# AIX sometimes has problems with the GCC collect2 program. For some
18528# reason, if we set the COLLECT_NAMES environment variable, the problems
18529# vanish in a puff of smoke.
18530if test "X${COLLECT_NAMES+set}" != Xset; then
18531 COLLECT_NAMES=
18532 export COLLECT_NAMES
18533fi
18534EOF
18535 ;;
18536
18537 cygwin* | mingw* | pw32* | os2*)
18538 cat <<'EOF' >> "$cfgfile"
18539 # This is a source program that is used to create dlls on Windows
18540 # Don't remove nor modify the starting and closing comments
18541
18542# /* ltdll.c starts here */
18543# #define WIN32_LEAN_AND_MEAN
18544# #include <windows.h>
18545# #undef WIN32_LEAN_AND_MEAN
18546# #include <stdio.h>
18547#
18548# #ifndef __CYGWIN__
18549# # ifdef __CYGWIN32__
18550# # define __CYGWIN__ __CYGWIN32__
18551# # endif
18552# #endif
18553#
18554# #ifdef __cplusplus
18555# extern "C" {
18556# #endif
18557# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
18558# #ifdef __cplusplus
18559# }
18560# #endif
18561#
18562# #ifdef __CYGWIN__
18563# #include <cygwin/cygwin_dll.h>
18564# DECLARE_CYGWIN_DLL( DllMain );
18565# #endif
18566# HINSTANCE __hDllInstance_base;
18567#
18568# BOOL APIENTRY
18569# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
18570# {
18571# __hDllInstance_base = hInst;
18572# return TRUE;
18573# }
18574# /* ltdll.c ends here */
18575
18576 # This is a source program that is used to create import libraries
18577 # on Windows for dlls which lack them. Don't remove nor modify the
18578 # starting and closing comments
18579
18580# /* impgen.c starts here */
18581# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
18582#
18583# This file is part of GNU libtool.
18584#
18585# This program is free software; you can redistribute it and/or modify
18586# it under the terms of the GNU General Public License as published by
18587# the Free Software Foundation; either version 2 of the License, or
18588# (at your option) any later version.
18589#
18590# This program is distributed in the hope that it will be useful,
18591# but WITHOUT ANY WARRANTY; without even the implied warranty of
18592# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18593# GNU General Public License for more details.
18594#
18595# You should have received a copy of the GNU General Public License
18596# along with this program; if not, write to the Free Software
18597# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18598# */
18599#
18600# #include <stdio.h> /* for printf() */
18601# #include <unistd.h> /* for open(), lseek(), read() */
18602# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
18603# #include <string.h> /* for strdup() */
18604#
18605# /* O_BINARY isn't required (or even defined sometimes) under Unix */
18606# #ifndef O_BINARY
18607# #define O_BINARY 0
18608# #endif
18609#
18610# static unsigned int
18611# pe_get16 (fd, offset)
18612# int fd;
18613# int offset;
18614# {
18615# unsigned char b[2];
18616# lseek (fd, offset, SEEK_SET);
18617# read (fd, b, 2);
18618# return b[0] + (b[1]<<8);
18619# }
18620#
18621# static unsigned int
18622# pe_get32 (fd, offset)
18623# int fd;
18624# int offset;
18625# {
18626# unsigned char b[4];
18627# lseek (fd, offset, SEEK_SET);
18628# read (fd, b, 4);
18629# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
18630# }
18631#
18632# static unsigned int
18633# pe_as32 (ptr)
18634# void *ptr;
18635# {
18636# unsigned char *b = ptr;
18637# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
18638# }
18639#
18640# int
18641# main (argc, argv)
18642# int argc;
18643# char *argv[];
18644# {
18645# int dll;
18646# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
18647# unsigned long export_rva, export_size, nsections, secptr, expptr;
18648# unsigned long name_rvas, nexp;
18649# unsigned char *expdata, *erva;
18650# char *filename, *dll_name;
18651#
18652# filename = argv[1];
18653#
18654# dll = open(filename, O_RDONLY|O_BINARY);
18655# if (dll < 1)
18656# return 1;
18657#
18658# dll_name = filename;
18659#
18660# for (i=0; filename[i]; i++)
18661# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
18662# dll_name = filename + i +1;
18663#
18664# pe_header_offset = pe_get32 (dll, 0x3c);
18665# opthdr_ofs = pe_header_offset + 4 + 20;
18666# num_entries = pe_get32 (dll, opthdr_ofs + 92);
18667#
18668# if (num_entries < 1) /* no exports */
18669# return 1;
18670#
18671# export_rva = pe_get32 (dll, opthdr_ofs + 96);
18672# export_size = pe_get32 (dll, opthdr_ofs + 100);
18673# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
18674# secptr = (pe_header_offset + 4 + 20 +
18675# pe_get16 (dll, pe_header_offset + 4 + 16));
18676#
18677# expptr = 0;
18678# for (i = 0; i < nsections; i++)
18679# {
18680# char sname[8];
18681# unsigned long secptr1 = secptr + 40 * i;
18682# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
18683# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
18684# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
18685# lseek(dll, secptr1, SEEK_SET);
18686# read(dll, sname, 8);
18687# if (vaddr <= export_rva && vaddr+vsize > export_rva)
18688# {
18689# expptr = fptr + (export_rva - vaddr);
18690# if (export_rva + export_size > vaddr + vsize)
18691# export_size = vsize - (export_rva - vaddr);
18692# break;
18693# }
18694# }
18695#
18696# expdata = (unsigned char*)malloc(export_size);
18697# lseek (dll, expptr, SEEK_SET);
18698# read (dll, expdata, export_size);
18699# erva = expdata - export_rva;
18700#
18701# nexp = pe_as32 (expdata+24);
18702# name_rvas = pe_as32 (expdata+32);
18703#
18704# printf ("EXPORTS\n");
18705# for (i = 0; i<nexp; i++)
18706# {
18707# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
18708# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
18709# }
18710#
18711# return 0;
18712# }
18713# /* impgen.c ends here */
18714
18715EOF
18716 ;;
18717 esac
18718
18719 # We use sed instead of cat because bash on DJGPP gets confused if
18720 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18721 # text mode, it properly converts lines to CR/LF. This bash problem
18722 # is reportedly fixed, but why not run on old versions too?
18723 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18724
18725 mv -f "$cfgfile" "$ofile" || \
18726 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18727 chmod +x "$ofile"
18728
18729else
18730 # If there is no Makefile yet, we rely on a make rule to execute
18731 # `config.status --recheck' to rerun these tests and create the
18732 # libtool script then.
18733 test -f Makefile && make "$ltmain"
18734fi
18735
18736
18737ac_ext=c
18738ac_cpp='$CPP $CPPFLAGS'
18739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741ac_compiler_gnu=$ac_cv_c_compiler_gnu
18742
18743CC="$lt_save_CC"
18744
18745
18746# Check whether --with-tags or --without-tags was given.
18747if test "${with_tags+set}" = set; then
18748 withval="$with_tags"
18749 tagnames="$withval"
18750else
18751 tagnames="CXX,GCJ"
18752 case $host_os in
18753 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
18754 esac
18755fi;
18756
18757if test -f "$ltmain" && test -n "$tagnames"; then
18758 if test ! -f "${ofile}"; then
18759 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18760echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18761 fi
18762
18763 if test -z "$LTCC"; then
18764 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18765 if test -z "$LTCC"; then
18766 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18767echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18768 else
18769 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18770echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18771 fi
18772 fi
18773
18774 # Extract list of available tagged configurations in $ofile.
18775 # Note that this assumes the entire list is on one line.
18776 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18777
18778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18779 for tagname in $tagnames; do
18780 IFS="$lt_save_ifs"
18781 # Check whether tagname contains only valid characters
18782 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18783 "") ;;
18784 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18785echo "$as_me: error: invalid tag name: $tagname" >&2;}
18786 { (exit 1); exit 1; }; }
18787 ;;
18788 esac
18789
18790 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18791 then
18792 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18793echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18794 { (exit 1); exit 1; }; }
18795 fi
18796
18797 # Update the list of available tags.
18798 if test -n "$tagname"; then
18799 echo appending configuration tag \"$tagname\" to $ofile
18800
18801 case $tagname in
18802 CXX)
18803 ac_ext=cc
18804ac_cpp='$CXXCPP $CPPFLAGS'
18805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18808
18809
18810
18811
18812archive_cmds_need_lc_CXX=no
18813allow_undefined_flag_CXX=
18814always_export_symbols_CXX=no
18815archive_expsym_cmds_CXX=
18816export_dynamic_flag_spec_CXX=
18817hardcode_direct_CXX=no
18818hardcode_libdir_flag_spec_CXX=
18819hardcode_libdir_separator_CXX=
18820hardcode_minus_L_CXX=no
18821link_all_deplibs_CXX=unknown
18822old_archive_cmds_CXX=$old_archive_cmds
18823no_undefined_flag_CXX=
18824whole_archive_flag_spec_CXX=
18825
18826# Dependencies to place before and after the object being linked:
18827predep_objects_CXX=
18828postdep_objects_CXX=
18829predeps_CXX=
18830postdeps_CXX=
18831compiler_lib_search_path_CXX=
18832
18833# Source file extension for C test sources.
18834ac_ext=cc
18835
18836# Object file extension for compiled C test sources.
18837objext=o
18838objext_CXX=$objext
18839
18840# Code to be used in simple compile tests
18841lt_simple_compile_test_code="int some_variable = 0;"
18842
18843# Code to be used in simple link tests
18844lt_simple_link_test_code='int main(int char *) { return(0); }'
18845
18846# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18847
18848# If no C compiler was specified, use CC.
18849LTCC=${LTCC-"$CC"}
18850
18851# Allow CC to be a program name with arguments.
18852set dummy $CC
18853compiler="$2"
18854
18855
18856# Allow CC to be a program name with arguments.
18857lt_save_CC="$CC"
18858CC=${CXX-"c++"}
18859set dummy $CC
18860compiler="$2"
18861compiler_CXX=$CC
18862cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18863
18864# We don't want -fno-exception wen compiling C++ code, so set the
18865# no_builtin_flag separately
18866if test "$GXX" = yes; then
18867 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18868else
18869 lt_prog_compiler_no_builtin_flag_CXX=
18870fi
18871
18872if test "$GXX" = yes; then
18873 # Set up default GNU C++ configuration
18874
18875 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18876 # archiving commands below assume that GNU ld is being used.
18877 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
18878 egrep 'GNU ld' > /dev/null; then
18879 with_gnu_ld=yes
18880
18881 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18882 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'
18883
18884 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18886
18887 # If archive_cmds runs LD, not CC, wlarc should be empty
18888 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18889 # investigate it a little bit more. (MM)
18890 wlarc='${wl}'
18891
18892 # ancient GNU ld didn't support --whole-archive et. al.
18893 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18894 egrep 'no-whole-archive' > /dev/null; then
18895 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18896 else
18897 whole_archive_flag_spec_CXX=
18898 fi
18899 else
18900 with_gnu_ld=no
18901 wlarc=
18902
18903 # A generic and very simple default shared library creation
18904 # command for GNU C++ for the case where it uses the native
18905 # linker, instead of GNU ld. If possible, this setting should
18906 # overridden to take advantage of the native linker features on
18907 # the platform it is being used on.
18908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18909 fi
18910
18911 # Commands to make compiler produce verbose output that lists
18912 # what "hidden" libraries, object files and flags are used when
18913 # linking a shared library.
18914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
18915
18916else
18917 GXX=no
18918 with_gnu_ld=no
18919 wlarc=
18920fi
18921
18922# PORTME: fill in a description of your system's C++ link characteristics
18923echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18924echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18925ld_shlibs_CXX=yes
18926case $host_os in
18927 aix3*)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931 aix4* | aix5*)
18932 if test "$host_cpu" = ia64; then
18933 # On IA64, the linker does run time linking by default, so we don't
18934 # have to do anything special.
18935 aix_use_runtimelinking=no
18936 exp_sym_flag='-Bexport'
18937 no_entry_flag=""
18938 else
18939 # KDE requires run time linking. Make it the default.
18940 aix_use_runtimelinking=yes
18941 exp_sym_flag='-bexport'
18942 no_entry_flag='-bnoentry'
18943 fi
18944
18945 # When large executables or shared objects are built, AIX ld can
18946 # have problems creating the table of contents. If linking a library
18947 # or program results in "error TOC overflow" add -mminimal-toc to
18948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18950
18951 archive_cmds_CXX=''
18952 hardcode_direct_CXX=yes
18953 hardcode_libdir_separator_CXX=':'
18954 link_all_deplibs_CXX=yes
18955
18956 if test "$GXX" = yes; then
18957 case $host_os in aix4.012|aix4.012.*)
18958 # We only want to do this on AIX 4.2 and lower, the check
18959 # below for broken collect2 doesn't work under 4.3+
18960 collect2name=`${CC} -print-prog-name=collect2`
18961 if test -f "$collect2name" && \
18962 strings "$collect2name" | grep resolve_lib_name >/dev/null
18963 then
18964 # We have reworked collect2
18965 hardcode_direct_CXX=yes
18966 else
18967 # We have old collect2
18968 hardcode_direct_CXX=unsupported
18969 # It fails to find uninstalled libraries when the uninstalled
18970 # path is not listed in the libpath. Setting hardcode_minus_L
18971 # to unsupported forces relinking
18972 hardcode_minus_L_CXX=yes
18973 hardcode_libdir_flag_spec_CXX='-L$libdir'
18974 hardcode_libdir_separator_CXX=
18975 fi
18976 esac
18977 shared_flag='-shared'
18978 else
18979 # not using gcc
18980 if test "$host_cpu" = ia64; then
18981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18982 # chokes on -Wl,-G. The following line is correct:
18983 shared_flag='-G'
18984 else
18985 if test "$aix_use_runtimelinking" = yes; then
18986 shared_flag='-qmkshrobj ${wl}-G'
18987 else
18988 shared_flag='-qmkshrobj'
18989 fi
18990 fi
18991 fi
18992
18993 # Let the compiler handle the export list.
18994 always_export_symbols_CXX=no
18995 if test "$aix_use_runtimelinking" = yes; then
18996 # Warning - without using the other runtime loading flags (-brtl),
18997 # -berok will link without error, but may produce a broken library.
18998 allow_undefined_flag_CXX='-berok'
18999 # Determine the default libpath from the value encoded in an empty executable.
19000 cat >conftest.$ac_ext <<_ACEOF
19001#line $LINENO "configure"
19002#include "confdefs.h"
19003
19004#ifdef F77_DUMMY_MAIN
19005# ifdef __cplusplus
19006 extern "C"
19007# endif
19008 int F77_DUMMY_MAIN() { return 1; }
19009#endif
19010int
19011main ()
19012{
19013
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018rm -f conftest.$ac_objext conftest$ac_exeext
19019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030
19031aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19032}'`
19033# Check for a 64-bit object if we didn't find anything.
19034if 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; }
19035}'`; fi
19036else
19037 echo "$as_me: failed program was:" >&5
19038cat conftest.$ac_ext >&5
19039fi
19040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19042
19043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19044
19045 archive_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` '" $shared_flag"
19046 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}$exp_sym_flag:\$export_symbols $shared_flag"
19047 else
19048 if test "$host_cpu" = ia64; then
19049 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19050 allow_undefined_flag_CXX="-z nodefs"
19051 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"
19052 else
19053 # Determine the default libpath from the value encoded in an empty executable.
19054 cat >conftest.$ac_ext <<_ACEOF
19055#line $LINENO "configure"
19056#include "confdefs.h"
19057
19058#ifdef F77_DUMMY_MAIN
19059# ifdef __cplusplus
19060 extern "C"
19061# endif
19062 int F77_DUMMY_MAIN() { return 1; }
19063#endif
19064int
19065main ()
19066{
19067
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext conftest$ac_exeext
19073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19074 (eval $ac_link) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try='test -s conftest$ac_exeext'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084
19085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19086}'`
19087# Check for a 64-bit object if we didn't find anything.
19088if 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; }
19089}'`; fi
19090else
19091 echo "$as_me: failed program was:" >&5
19092cat conftest.$ac_ext >&5
19093fi
19094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19095if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19096
19097 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19098 # Warning - without using the other run time loading flags,
19099 # -berok will link without error, but may produce a broken library.
19100 no_undefined_flag_CXX=' ${wl}-bernotok'
19101 allow_undefined_flag_CXX=' ${wl}-berok'
19102 # -bexpall does not export symbols beginning with underscore (_)
19103 always_export_symbols_CXX=yes
19104 # Exported symbols can be pulled into shared objects from archives
19105 whole_archive_flag_spec_CXX=' '
19106 archive_cmds_need_lc_CXX=yes
19107 # This is similar to how AIX traditionally builds it's shared libraries.
19108 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'
19109 fi
19110 fi
19111 ;;
19112 chorus*)
19113 case $cc_basename in
19114 *)
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19117 ;;
19118 esac
19119 ;;
19120 dgux*)
19121 case $cc_basename in
19122 ec++)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126 ghcx)
19127 # Green Hills C++ Compiler
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
19131 *)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 esac
19136 ;;
19137 freebsd12*)
19138 # C++ shared libraries reported to be fairly broken before switch to ELF
19139 ld_shlibs_CXX=no
19140 ;;
19141 freebsd-elf*)
19142 archive_cmds_need_lc_CXX=no
19143 ;;
19144 freebsd*)
19145 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19146 # conventions
19147 ld_shlibs_CXX=yes
19148 ;;
19149 gnu*)
19150 ;;
19151 hpux*)
19152 if test $with_gnu_ld = no; then
19153 if test "$host_cpu" = ia64; then
19154 hardcode_libdir_flag_spec_CXX='-L$libdir'
19155 else
19156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19157 hardcode_libdir_separator_CXX=:
19158 export_dynamic_flag_spec_CXX='${wl}-E'
19159 fi
19160 fi
19161 if test "$host_cpu" = ia64; then
19162 hardcode_direct_CXX=no
19163 hardcode_shlibpath_var_CXX=no
19164 else
19165 hardcode_direct_CXX=yes
19166 fi
19167 hardcode_minus_L_CXX=yes # Not in the search PATH,
19168 # but as the default
19169 # location of the library.
19170
19171 case $cc_basename in
19172 CC)
19173 # FIXME: insert proper C++ library support
19174 ld_shlibs_CXX=no
19175 ;;
19176 aCC)
19177 case $host_os in
19178 hpux9*)
19179 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'
19180 ;;
19181 *)
19182 if test "$host_cpu" = ia64; then
19183 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19184 else
19185 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19186 fi
19187 ;;
19188 esac
19189 # Commands to make compiler produce verbose output that lists
19190 # what "hidden" libraries, object files and flags are used when
19191 # linking a shared library.
19192 #
19193 # There doesn't appear to be a way to prevent this compiler from
19194 # explicitly linking system object files so we need to strip them
19195 # from the output so that they don't get included in the library
19196 # dependencies.
19197 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'
19198 ;;
19199 *)
19200 if test "$GXX" = yes; then
19201 if test $with_gnu_ld = no; then
19202 case $host_os in
19203 hpux9*)
19204 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'
19205 ;;
19206 *)
19207 if test "$host_cpu" = ia64; then
19208 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19209 else
19210 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'
19211 fi
19212 ;;
19213 esac
19214 fi
19215 else
19216 # FIXME: insert proper C++ library support
19217 ld_shlibs_CXX=no
19218 fi
19219 ;;
19220 esac
19221 ;;
19222 irix5* | irix6*)
19223 case $cc_basename in
19224 CC)
19225 # SGI C++
19226 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'
19227
19228 # Archives containing C++ object files must be created using
19229 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19230 # necessary to make sure instantiated templates are included
19231 # in the archive.
19232 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19233 ;;
19234 *)
19235 if test "$GXX" = yes; then
19236 if test "$with_gnu_ld" = no; then
19237 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'
19238 else
19239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
19240 fi
19241 fi
19242 link_all_deplibs_CXX=yes
19243 ;;
19244 esac
19245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19246 hardcode_libdir_separator_CXX=:
19247 ;;
19248 linux*)
19249 case $cc_basename in
19250 KCC)
19251 # Kuck and Associates, Inc. (KAI) C++ Compiler
19252
19253 # KCC will only create a shared library if the output file
19254 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19255 # to its proper name (with version) after linking.
19256 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19257 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19258
19259 # Commands to make compiler produce verbose output that lists
19260 # what "hidden" libraries, object files and flags are used when
19261 # linking a shared library.
19262 #
19263 # There doesn't appear to be a way to prevent this compiler from
19264 # explicitly linking system object files so we need to strip them
19265 # from the output so that they don't get included in the library
19266 # dependencies.
19267 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19268
19269 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19271
19272 # Archives containing C++ object files must be created using
19273 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19274 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19275 ;;
19276 cxx)
19277 # Compaq C++
19278 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19279 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'
19280
19281 runpath_var=LD_RUN_PATH
19282 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19283 hardcode_libdir_separator_CXX=:
19284
19285 # Commands to make compiler produce verbose output that lists
19286 # what "hidden" libraries, object files and flags are used when
19287 # linking a shared library.
19288 #
19289 # There doesn't appear to be a way to prevent this compiler from
19290 # explicitly linking system object files so we need to strip them
19291 # from the output so that they don't get included in the library
19292 # dependencies.
19293 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'
19294 ;;
19295 esac
19296 ;;
19297 lynxos*)
19298 # FIXME: insert proper C++ library support
19299 ld_shlibs_CXX=no
19300 ;;
19301 m88k*)
19302 # FIXME: insert proper C++ library support
19303 ld_shlibs_CXX=no
19304 ;;
19305 mvs*)
19306 case $cc_basename in
19307 cxx)
19308 # FIXME: insert proper C++ library support
19309 ld_shlibs_CXX=no
19310 ;;
19311 *)
19312 # FIXME: insert proper C++ library support
19313 ld_shlibs_CXX=no
19314 ;;
19315 esac
19316 ;;
19317 netbsd*)
19318 # NetBSD uses g++ - do we need to do anything?
19319 ;;
19320 osf3*)
19321 case $cc_basename in
19322 KCC)
19323 # Kuck and Associates, Inc. (KAI) C++ Compiler
19324
19325 # KCC will only create a shared library if the output file
19326 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19327 # to its proper name (with version) after linking.
19328 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19329
19330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19331 hardcode_libdir_separator_CXX=:
19332
19333 # Archives containing C++ object files must be created using
19334 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19335 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19336
19337 ;;
19338 RCC)
19339 # Rational C++ 2.4.1
19340 # FIXME: insert proper C++ library support
19341 ld_shlibs_CXX=no
19342 ;;
19343 cxx)
19344 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19345 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'
19346
19347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19348 hardcode_libdir_separator_CXX=:
19349
19350 # Commands to make compiler produce verbose output that lists
19351 # what "hidden" libraries, object files and flags are used when
19352 # linking a shared library.
19353 #
19354 # There doesn't appear to be a way to prevent this compiler from
19355 # explicitly linking system object files so we need to strip them
19356 # from the output so that they don't get included in the library
19357 # dependencies.
19358 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'
19359 ;;
19360 *)
19361 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19362 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19363 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'
19364
19365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19366 hardcode_libdir_separator_CXX=:
19367
19368 # Commands to make compiler produce verbose output that lists
19369 # what "hidden" libraries, object files and flags are used when
19370 # linking a shared library.
19371 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
19372
19373 else
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 fi
19377 ;;
19378 esac
19379 ;;
19380 osf4* | osf5*)
19381 case $cc_basename in
19382 KCC)
19383 # Kuck and Associates, Inc. (KAI) C++ Compiler
19384
19385 # KCC will only create a shared library if the output file
19386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19387 # to its proper name (with version) after linking.
19388 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19389
19390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19391 hardcode_libdir_separator_CXX=:
19392
19393 # Archives containing C++ object files must be created using
19394 # the KAI C++ compiler.
19395 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19396 ;;
19397 RCC)
19398 # Rational C++ 2.4.1
19399 # FIXME: insert proper C++ library support
19400 ld_shlibs_CXX=no
19401 ;;
19402 cxx)
19403 allow_undefined_flag_CXX=' -expect_unresolved \*'
19404 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'
19405 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
19406 echo "-hidden">> $lib.exp~
19407 $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~
19408 $rm $lib.exp'
19409
19410 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19411 hardcode_libdir_separator_CXX=:
19412
19413 # Commands to make compiler produce verbose output that lists
19414 # what "hidden" libraries, object files and flags are used when
19415 # linking a shared library.
19416 #
19417 # There doesn't appear to be a way to prevent this compiler from
19418 # explicitly linking system object files so we need to strip them
19419 # from the output so that they don't get included in the library
19420 # dependencies.
19421 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'
19422 ;;
19423 *)
19424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19426 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'
19427
19428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19429 hardcode_libdir_separator_CXX=:
19430
19431 # Commands to make compiler produce verbose output that lists
19432 # what "hidden" libraries, object files and flags are used when
19433 # linking a shared library.
19434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
19435
19436 else
19437 # FIXME: insert proper C++ library support
19438 ld_shlibs_CXX=no
19439 fi
19440 ;;
19441 esac
19442 ;;
19443 psos*)
19444 # FIXME: insert proper C++ library support
19445 ld_shlibs_CXX=no
19446 ;;
19447 sco*)
19448 archive_cmds_need_lc_CXX=no
19449 case $cc_basename in
19450 CC)
19451 # FIXME: insert proper C++ library support
19452 ld_shlibs_CXX=no
19453 ;;
19454 *)
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19457 ;;
19458 esac
19459 ;;
19460 sunos4*)
19461 case $cc_basename in
19462 CC)
19463 # Sun C++ 4.x
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 lcc)
19468 # Lucid
19469 # FIXME: insert proper C++ library support
19470 ld_shlibs_CXX=no
19471 ;;
19472 *)
19473 # FIXME: insert proper C++ library support
19474 ld_shlibs_CXX=no
19475 ;;
19476 esac
19477 ;;
19478 solaris*)
19479 case $cc_basename in
19480 CC)
19481 # Sun C++ 4.2, 5.x and Centerline C++
19482 no_undefined_flag_CXX=' -zdefs'
19483 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19484 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19485 $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'
19486
19487 hardcode_libdir_flag_spec_CXX='-R$libdir'
19488 hardcode_shlibpath_var_CXX=no
19489 case $host_os in
19490 solaris2.0-5 | solaris2.0-5.*) ;;
19491 *)
19492 # The C++ compiler is used as linker so we must use $wl
19493 # flag to pass the commands to the underlying system
19494 # linker.
19495 # Supported since Solaris 2.6 (maybe 2.5.1?)
19496 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19497 ;;
19498 esac
19499 link_all_deplibs_CXX=yes
19500
19501 # Commands to make compiler produce verbose output that lists
19502 # what "hidden" libraries, object files and flags are used when
19503 # linking a shared library.
19504 #
19505 # There doesn't appear to be a way to prevent this compiler from
19506 # explicitly linking system object files so we need to strip them
19507 # from the output so that they don't get included in the library
19508 # dependencies.
19509 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19510
19511 # Archives containing C++ object files must be created using
19512 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19513 # necessary to make sure instantiated templates are included
19514 # in the archive.
19515 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19516 ;;
19517 gcx)
19518 # Green Hills C++ Compiler
19519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19520
19521 # The C++ compiler must be used to create the archive.
19522 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19523 ;;
19524 *)
19525 # GNU C++ compiler with Solaris linker
19526 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19527 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19528 if $CC --version | egrep -v '^2\.7' > /dev/null; then
19529 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
19530 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19531 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
19532
19533 # Commands to make compiler produce verbose output that lists
19534 # what "hidden" libraries, object files and flags are used when
19535 # linking a shared library.
19536 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
19537 else
19538 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19539 # platform.
19540 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
19541 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19542 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
19543
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19547 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
19548 fi
19549
19550 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19551 fi
19552 ;;
19553 esac
19554 ;;
19555 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19556 archive_cmds_need_lc_CXX=no
19557 ;;
19558 tandem*)
19559 case $cc_basename in
19560 NCC)
19561 # NonStop-UX NCC 3.20
19562 # FIXME: insert proper C++ library support
19563 ld_shlibs_CXX=no
19564 ;;
19565 *)
19566 # FIXME: insert proper C++ library support
19567 ld_shlibs_CXX=no
19568 ;;
19569 esac
19570 ;;
19571 vxworks*)
19572 # FIXME: insert proper C++ library support
19573 ld_shlibs_CXX=no
19574 ;;
19575 *)
19576 # FIXME: insert proper C++ library support
19577 ld_shlibs_CXX=no
19578 ;;
19579esac
19580echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19581echo "${ECHO_T}$ld_shlibs_CXX" >&6
19582test "$ld_shlibs_CXX" = no && can_build_shared=no
19583
19584# Figure out "hidden" C++ library dependencies from verbose
19585# compiler output whening linking a shared library.
19586cat > conftest.$ac_ext <<EOF
19587class Foo
19588{
19589public:
19590 Foo (void) { a = 0; }
19591private:
19592 int a;
19593};
19594EOF
19595
19596
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; then
19602 # Parse the compiler output and extract the necessary
19603 # objects, libraries and library flags.
19604
19605 # Sentinel used to keep track of whether or not we are before
19606 # the conftest object file.
19607 pre_test_object_deps_done=no
19608
19609 # The `*' in the case matches for architectures that use `case' in
19610 # $output_verbose_cmd can trigger glob expansion during the loop
19611 # eval without this substitution.
19612 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
19613
19614 for p in `eval $output_verbose_link_cmd`; do
19615 case $p in
19616
19617 -L* | -R* | -l*)
19618 # Some compilers place space between "-{L,R}" and the path.
19619 # Remove the space.
19620 if test $p = "-L" \
19621 || test $p = "-R"; then
19622 prev=$p
19623 continue
19624 else
19625 prev=
19626 fi
19627
19628 if test "$pre_test_object_deps_done" = no; then
19629 case $p in
19630 -L* | -R*)
19631 # Internal compiler library paths should come after those
19632 # provided the user. The postdeps already come after the
19633 # user supplied libs so there is no need to process them.
19634 if test -z "$compiler_lib_search_path_CXX"; then
19635 compiler_lib_search_path_CXX="${prev}${p}"
19636 else
19637 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19638 fi
19639 ;;
19640 # The "-l" case would never come before the object being
19641 # linked, so don't bother handling this case.
19642 esac
19643 else
19644 if test -z "$postdeps_CXX"; then
19645 postdeps_CXX="${prev}${p}"
19646 else
19647 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19648 fi
19649 fi
19650 ;;
19651
19652 *.$objext|*.$libext)
19653 # This assumes that the test object file only shows up
19654 # once in the compiler output.
19655 if test "$p" = "conftest.$objext"; then
19656 pre_test_object_deps_done=yes
19657 continue
19658 fi
19659
19660 if test "$pre_test_object_deps_done" = no; then
19661 if test -z "$predep_objects_CXX"; then
19662 predep_objects_CXX="$p"
19663 else
19664 predep_objects_CXX="$predep_objects_CXX $p"
19665 fi
19666 else
19667 if test -z "$postdep_objects_CXX"; then
19668 postdep_objects_CXX="$p"
19669 else
19670 postdep_objects_CXX="$postdep_objects_CXX $p"
19671 fi
19672 fi
19673 ;;
19674
19675 *) ;; # Ignore the rest.
19676
19677 esac
19678 done
19679
19680 # Clean up.
19681 rm -f a.out
19682else
19683 echo "libtool.m4: error: problem compiling C++ test program"
19684fi
19685
19686$rm -f confest.$objext
19687
19688case " $postdeps_CXX " in
19689*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19690*) archive_cmds_need_lc_CXX=yes ;;
19691esac
19692
19693GCC_CXX="$GXX"
19694LD_CXX="$LD"
19695
19696lt_prog_compiler_wl_CXX=
19697lt_prog_compiler_pic_CXX=
19698lt_prog_compiler_static_CXX=
19699
19700echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19701echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19702
19703 # C++ specific cases for pic, static, wl, etc.
19704 if test "$GXX" = yes; then
19705 lt_prog_compiler_wl_CXX='-Wl,'
19706 lt_prog_compiler_static_CXX='-static'
19707
19708 case $host_os in
19709 aix*)
19710 # All AIX code is PIC.
19711 if test "$host_cpu" = ia64; then
19712 # AIX 5 now supports IA64 processor
19713 lt_prog_compiler_static_CXX='-Bstatic'
19714 fi
19715 ;;
19716 amigaos*)
19717 # FIXME: we need at least 68020 code to build shared libraries, but
19718 # adding the `-m68020' flag to GCC prevents building anything better,
19719 # like `-m68040'.
19720 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19721 ;;
19722 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19723 # PIC is the default for these OSes.
19724 ;;
19725 cygwin* | mingw* | os2*)
19726 # This hack is so that the source file can tell whether it is being
19727 # built for inclusion in a dll (and should export symbols for example).
19728 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19729 ;;
19730 darwin* | rhapsody*)
19731 # PIC is the default on this platform
19732 # Common symbols not allowed in MH_DYLIB files
19733 lt_prog_compiler_pic_CXX='-fno-common'
19734 ;;
19735 *djgpp*)
19736 # DJGPP does not support shared libraries at all
19737 lt_prog_compiler_pic_CXX=
19738 ;;
19739 sysv4*MP*)
19740 if test -d /usr/nec; then
19741 lt_prog_compiler_pic_CXX=-Kconform_pic
19742 fi
19743 ;;
19744 hpux*)
19745 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
19746 if test "$host_cpu" != ia64; then
19747 lt_prog_compiler_pic_CXX='-fPIC'
19748 fi
19749 ;;
19750 *)
19751 lt_prog_compiler_pic_CXX='-fPIC'
19752 ;;
19753 esac
19754 else
19755 case $host_os in
19756 aix4* | aix5*)
19757 # All AIX code is PIC.
19758 if test "$host_cpu" = ia64; then
19759 # AIX 5 now supports IA64 processor
19760 lt_prog_compiler_static_CXX='-Bstatic'
19761 else
19762 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19763 fi
19764 ;;
19765 chorus*)
19766 case $cc_basename in
19767 cxch68)
19768 # Green Hills C++ Compiler
19769 # _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"
19770 ;;
19771 esac
19772 ;;
19773 dgux*)
19774 case $cc_basename in
19775 ec++)
19776 lt_prog_compiler_pic_CXX='-KPIC'
19777 ;;
19778 ghcx)
19779 # Green Hills C++ Compiler
19780 lt_prog_compiler_pic_CXX='-pic'
19781 ;;
19782 *)
19783 ;;
19784 esac
19785 ;;
19786 freebsd*)
19787 # FreeBSD uses GNU C++
19788 ;;
19789 hpux9* | hpux10* | hpux11*)
19790 case $cc_basename in
19791 CC)
19792 lt_prog_compiler_wl_CXX='-Wl,'
19793 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19794 if test "$host_cpu" != ia64; then
19795 lt_prog_compiler_pic_CXX='+Z'
19796 fi
19797 ;;
19798 aCC)
19799 lt_prog_compiler_wl_CXX='-Wl,'
19800 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19801 if test "$host_cpu" != ia64; then
19802 lt_prog_compiler_pic_CXX='+Z'
19803 fi
19804 ;;
19805 *)
19806 ;;
19807 esac
19808 ;;
19809 irix5* | irix6* | nonstopux*)
19810 case $cc_basename in
19811 CC)
19812 lt_prog_compiler_wl_CXX='-Wl,'
19813 lt_prog_compiler_static_CXX='-non_shared'
19814 # CC pic flag -KPIC is the default.
19815 ;;
19816 *)
19817 ;;
19818 esac
19819 ;;
19820 linux*)
19821 case $cc_basename in
19822 KCC)
19823 # KAI C++ Compiler
19824 lt_prog_compiler_wl_CXX='--backend -Wl,'
19825 lt_prog_compiler_pic_CXX='-fPIC'
19826 ;;
19827 cxx)
19828 # Compaq C++
19829 # Make sure the PIC flag is empty. It appears that all Alpha
19830 # Linux and Compaq Tru64 Unix objects are PIC.
19831 lt_prog_compiler_pic_CXX=
19832 lt_prog_compiler_static_CXX='-non_shared'
19833 ;;
19834 *)
19835 ;;
19836 esac
19837 ;;
19838 lynxos*)
19839 ;;
19840 m88k*)
19841 ;;
19842 mvs*)
19843 case $cc_basename in
19844 cxx)
19845 lt_prog_compiler_pic_CXX='-W c,exportall'
19846 ;;
19847 *)
19848 ;;
19849 esac
19850 ;;
19851 netbsd*)
19852 ;;
19853 osf3* | osf4* | osf5*)
19854 case $cc_basename in
19855 KCC)
19856 lt_prog_compiler_wl_CXX='--backend -Wl,'
19857 ;;
19858 RCC)
19859 # Rational C++ 2.4.1
19860 lt_prog_compiler_pic_CXX='-pic'
19861 ;;
19862 cxx)
19863 # Digital/Compaq C++
19864 lt_prog_compiler_wl_CXX='-Wl,'
19865 # Make sure the PIC flag is empty. It appears that all Alpha
19866 # Linux and Compaq Tru64 Unix objects are PIC.
19867 lt_prog_compiler_pic_CXX=
19868 lt_prog_compiler_static_CXX='-non_shared'
19869 ;;
19870 *)
19871 ;;
19872 esac
19873 ;;
19874 psos*)
19875 ;;
19876 sco*)
19877 case $cc_basename in
19878 CC)
19879 lt_prog_compiler_pic_CXX='-fPIC'
19880 ;;
19881 *)
19882 ;;
19883 esac
19884 ;;
19885 solaris*)
19886 case $cc_basename in
19887 CC)
19888 # Sun C++ 4.2, 5.x and Centerline C++
19889 lt_prog_compiler_pic_CXX='-KPIC'
19890 lt_prog_compiler_static_CXX='-Bstatic'
19891 lt_prog_compiler_wl_CXX='-Qoption ld '
19892 ;;
19893 gcx)
19894 # Green Hills C++ Compiler
19895 lt_prog_compiler_pic_CXX='-PIC'
19896 ;;
19897 *)
19898 ;;
19899 esac
19900 ;;
19901 sunos4*)
19902 case $cc_basename in
19903 CC)
19904 # Sun C++ 4.x
19905 lt_prog_compiler_pic_CXX='-pic'
19906 lt_prog_compiler_static_CXX='-Bstatic'
19907 ;;
19908 lcc)
19909 # Lucid
19910 lt_prog_compiler_pic_CXX='-pic'
19911 ;;
19912 *)
19913 ;;
19914 esac
19915 ;;
19916 tandem*)
19917 case $cc_basename in
19918 NCC)
19919 # NonStop-UX NCC 3.20
19920 lt_prog_compiler_pic_CXX='-KPIC'
19921 ;;
19922 *)
19923 ;;
19924 esac
19925 ;;
19926 unixware*)
19927 ;;
19928 vxworks*)
19929 ;;
19930 *)
19931 lt_prog_compiler_can_build_shared_CXX=no
19932 ;;
19933 esac
19934 fi
19935
19936echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19937echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
19938
19939#
19940# Check to make sure the PIC flag actually works.
19941#
19942if test -n "$lt_prog_compiler_pic_CXX"; then
19943 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19944echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
19945if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947else
19948 lt_prog_compiler_pic_works_CXX=no
19949 ac_outfile=conftest.$ac_objext
19950 save_CFLAGS="$CFLAGS"
19951 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
19952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19953 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
19954 # The compiler can only warn and ignore the option if not recognized
19955 # So say no if there are warnings
19956 if test -s conftest.err; then
19957 # Append any errors to the config.log.
19958 cat conftest.err 1>&5
19959 else
19960 lt_prog_compiler_pic_works_CXX=yes
19961 fi
19962 fi
19963 $rm conftest*
19964 CFLAGS="$save_CFLAGS"
19965
19966fi
19967echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19968echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
19969
19970if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19971 case $lt_prog_compiler_pic_CXX in
19972 "" | " "*) ;;
19973 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19974 esac
19975else
19976 lt_prog_compiler_pic_CXX=
19977 lt_prog_compiler_can_build_shared_CXX=no
19978fi
19979
19980fi
19981case "$host_os" in
19982 # For platforms which do not support PIC, -DPIC is meaningless:
19983 *djgpp*)
19984 lt_prog_compiler_pic_CXX=
19985 ;;
19986 *)
19987 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19988 ;;
19989esac
19990
19991echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19992echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19993if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995else
19996 lt_cv_prog_compiler_c_o_CXX=no
19997 $rm -r conftest 2>/dev/null
19998 mkdir conftest
19999 cd conftest
20000 mkdir out
20001 save_CXXFLAGS="$CXXFLAGS"
20002 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
20003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20004
20005 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
20006 # that will create temporary files in the current directory regardless of
20007 # the output directory. Thus, making CWD read-only will cause this test
20008 # to fail, enabling locking or at least warning the user not to do parallel
20009 # builds.
20010 chmod -w .
20011
20012 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
20013 then
20014 # The compiler can only warn and ignore the option if not recognized
20015 # So say no if there are warnings
20016 if test -s out/conftest.err; then
20017 # Append any errors to the config.log.
20018 cat out/conftest.err 1>&5
20019 else
20020 lt_cv_prog_compiler_c_o_CXX=yes
20021 fi
20022 fi
20023 CXXFLAGS="$save_CXXFLAGS"
20024 chmod u+w .
20025 $rm conftest* out/*
20026 rmdir out
20027 cd ..
20028 rmdir conftest
20029 $rm conftest*
20030
20031fi
20032echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20033echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
20034
20035
20036hard_links="nottested"
20037if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20038 # do not overwrite the value of need_locks provided by the user
20039 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20040echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20041 hard_links=yes
20042 $rm conftest*
20043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20044 touch conftest.a
20045 ln conftest.a conftest.b 2>&5 || hard_links=no
20046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20047 echo "$as_me:$LINENO: result: $hard_links" >&5
20048echo "${ECHO_T}$hard_links" >&6
20049 if test "$hard_links" = no; then
20050 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20051echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20052 need_locks=warn
20053 fi
20054else
20055 need_locks=no
20056fi
20057
20058echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20059echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20060
20061 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
20062 case $host_os in
20063 aix4* | aix5*)
20064 # If we're using GNU nm, then we don't want the "-C" option.
20065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20066 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
20067 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'
20068 else
20069 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'
20070 fi
20071 ;;
20072 cygwin* | mingw* | pw32*)
20073 export_symbols_cmds_CXX="$ltdll_cmds"
20074 ;;
20075 *)
20076 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
20077 ;;
20078 esac
20079
20080echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20081echo "${ECHO_T}$ld_shlibs_CXX" >&6
20082test "$ld_shlibs_CXX" = no && can_build_shared=no
20083
20084variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20085if test "$GCC" = yes; then
20086 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20087fi
20088
20089#
20090# Do we need to explicitly link libc?
20091#
20092archive_cmds_need_lc_CXX=yes
20093if test "$enable_shared" = yes && test "$GCC" = yes; then
20094 case $archive_cmds_CXX in
20095 *'~'*)
20096 # FIXME: we may have to deal with multi-command sequences.
20097 ;;
20098 '$CC '*)
20099 # Test whether the compiler implicitly links with -lc since on some
20100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20101 # to ld, don't add -lc before -lgcc.
20102 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20103echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20104 $rm conftest*
20105 echo 'static int dummy;' > conftest.$ac_ext
20106
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } 2>conftest.err; then
20112 soname=conftest
20113 lib=conftest
20114 libobjs=conftest.$ac_objext
20115 deplibs=
20116 wl=$lt_prog_compiler_wl_CXX
20117 compiler_flags=-v
20118 linker_flags=-v
20119 verstring=
20120 output_objdir=.
20121 libname=conftest
20122 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20123 allow_undefined_flag_CXX=
20124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20125 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }
20129 then
20130 archive_cmds_need_lc_CXX=no
20131 else
20132 archive_cmds_need_lc_CXX=yes
20133 fi
20134 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20135 else
20136 cat conftest.err 1>&5
20137 fi
20138 $rm conftest*
20139 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20140echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
20141 ;;
20142 esac
20143fi
20144
20145echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20146echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20147hardcode_action_CXX=
20148if test -n "$hardcode_libdir_flag_spec_CXX" || \
20149 test -n "$runpath_var CXX"; then
20150
20151 # We can hardcode non-existant directories.
20152 if test "$hardcode_direct_CXX" != no &&
20153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20154 # have to relink, otherwise we might link with an installed library
20155 # when we should be linking with a yet-to-be-installed one
20156 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20157 test "$hardcode_minus_L_CXX" != no; then
20158 # Linking always hardcodes the temporary library directory.
20159 hardcode_action_CXX=relink
20160 else
20161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20162 hardcode_action_CXX=immediate
20163 fi
20164else
20165 # We cannot hardcode anything, or else we can only hardcode existing
20166 # directories.
20167 hardcode_action_CXX=unsupported
20168fi
20169echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20170echo "${ECHO_T}$hardcode_action_CXX" >&6
20171
20172if test "$hardcode_action_CXX" = relink; then
20173 # Fast installation is not supported
20174 enable_fast_install=no
20175elif test "$shlibpath_overrides_runpath" = yes ||
20176 test "$enable_shared" = no; then
20177 # Fast installation is not necessary
20178 enable_fast_install=needless
20179fi
20180
20181striplib=
20182old_striplib=
20183echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20184echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20185if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20188 echo "$as_me:$LINENO: result: yes" >&5
20189echo "${ECHO_T}yes" >&6
20190else
20191 echo "$as_me:$LINENO: result: no" >&5
20192echo "${ECHO_T}no" >&6
20193fi
20194
20195echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20196echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20197library_names_spec=
20198libname_spec='lib$name'
20199soname_spec=
20200postinstall_cmds=
20201postuninstall_cmds=
20202finish_cmds=
20203finish_eval=
20204shlibpath_var=
20205shlibpath_overrides_runpath=unknown
20206version_type=none
20207dynamic_linker="$host_os ld.so"
20208sys_lib_dlsearch_path_spec="/lib /usr/lib"
20209sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20210need_lib_prefix=unknown
20211hardcode_into_libs=no
20212
20213# when you set need_version to no, make sure it does not cause -set_version
20214# flags to be left without arguments
20215need_version=unknown
20216
20217case $host_os in
20218aix3*)
20219 version_type=linux
20220 library_names_spec='${libname}${release}.so$versuffix $libname.a'
20221 shlibpath_var=LIBPATH
20222
20223 # AIX 3 has no versioning support, so we append a major version to the name.
20224 soname_spec='${libname}${release}.so$major'
20225 ;;
20226
20227aix4* | aix5*)
20228 version_type=linux
20229 if test "$host_cpu" = ia64; then
20230 # AIX 5 supports IA64
20231 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
20232 shlibpath_var=LD_LIBRARY_PATH
20233 else
20234 # With GCC up to 2.95.x, collect2 would create an import file
20235 # for dependence libraries. The import file would start with
20236 # the line `#! .'. This would cause the generated library to
20237 # depend on `.', always an invalid library. This was fixed in
20238 # development snapshots of GCC prior to 3.0.
20239 case $host_os in
20240 aix4 | aix4.[01] | aix4.[01].*)
20241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20242 echo ' yes '
20243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20244 :
20245 else
20246 can_build_shared=no
20247 fi
20248 ;;
20249 esac
20250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20251 # soname into executable. Probably we can add versioning support to
20252 # collect2, so additional links can be useful in future.
20253 if test "$aix_use_runtimelinking" = yes; then
20254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20255 # instead of lib<name>.a to let people know that these are not
20256 # typical AIX shared libraries.
20257 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20258 else
20259 # We preserve .a as extension for shared libraries through AIX4.2
20260 # and later when we are not doing run time linking.
20261 library_names_spec='${libname}${release}.a $libname.a'
20262 soname_spec='${libname}${release}.so$major'
20263 fi
20264 shlibpath_var=LIBPATH
20265 fi
20266 ;;
20267
20268amigaos*)
20269 library_names_spec='$libname.ixlibrary $libname.a'
20270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20271 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'
20272 ;;
20273
20274beos*)
20275 library_names_spec='${libname}.so'
20276 dynamic_linker="$host_os ld.so"
20277 shlibpath_var=LIBRARY_PATH
20278 ;;
20279
20280bsdi4*)
20281 version_type=linux
20282 need_version=no
20283 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20284 soname_spec='${libname}${release}.so$major'
20285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20286 shlibpath_var=LD_LIBRARY_PATH
20287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20289 # the default ld.so.conf also contains /usr/contrib/lib and
20290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20291 # libtool to hard-code these into programs
20292 ;;
20293
20294cygwin* | mingw* | pw32*)
20295 version_type=windows
20296 need_version=no
20297 need_lib_prefix=no
20298 case $GCC,$host_os in
20299 yes,cygwin*)
20300 library_names_spec='$libname.dll.a'
20301 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
20302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
20303 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
20304 dldir=$destdir/`dirname \$dlpath`~
20305 test -d \$dldir || mkdir -p \$dldir~
20306 $install_prog .libs/$dlname \$dldir/$dlname'
20307 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
20308 dlpath=$dir/\$dldll~
20309 $rm \$dlpath'
20310 ;;
20311 yes,mingw*)
20312 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
20313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
20314 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
20315 # It is most probably a Windows format PATH printed by
20316 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20317 # path with ; separators, and with drive letters. We can handle the
20318 # drive letters (cygwin fileutils understands them), so leave them,
20319 # especially as we might pass files found there to a mingw objdump,
20320 # which wouldn't understand a cygwinified path. Ahh.
20321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
20322 else
20323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
20324 fi
20325 ;;
20326 yes,pw32*)
20327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
20328 ;;
20329 *)
20330 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
20331 ;;
20332 esac
20333 dynamic_linker='Win32 ld.exe'
20334 # FIXME: first we should search . and the directory the executable is in
20335 shlibpath_var=PATH
20336 ;;
20337
20338darwin* | rhapsody*)
20339 dynamic_linker="$host_os dyld"
20340 version_type=darwin
20341 need_lib_prefix=no
20342 need_version=no
20343 # FIXME: Relying on posixy $() will cause problems for
20344 # cross-compilation, but unfortunately the echo tests do not
20345 # yet detect zsh echo's removal of \ escapes.
20346 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
20347 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
20348 shlibpath_overrides_runpath=yes
20349 shlibpath_var=DYLD_LIBRARY_PATH
20350 ;;
20351
20352dgux*)
20353 version_type=linux
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20357 soname_spec='${libname}${release}.so$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 ;;
20360
20361freebsd1*)
20362 dynamic_linker=no
20363 ;;
20364
20365freebsd*)
20366 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20367 version_type=freebsd-$objformat
20368 case $version_type in
20369 freebsd-elf*)
20370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
20371 need_version=no
20372 need_lib_prefix=no
20373 ;;
20374 freebsd-*)
20375 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
20376 need_version=yes
20377 ;;
20378 esac
20379 shlibpath_var=LD_LIBRARY_PATH
20380 case $host_os in
20381 freebsd2*)
20382 shlibpath_overrides_runpath=yes
20383 ;;
20384 freebsd3.01* | freebsdelf3.01*)
20385 shlibpath_overrides_runpath=yes
20386 hardcode_into_libs=yes
20387 ;;
20388 *) # from 3.2 on
20389 shlibpath_overrides_runpath=no
20390 hardcode_into_libs=yes
20391 ;;
20392 esac
20393 ;;
20394
20395gnu*)
20396 version_type=linux
20397 need_lib_prefix=no
20398 need_version=no
20399 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
20400 soname_spec='${libname}${release}.so$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 hardcode_into_libs=yes
20403 ;;
20404
20405hpux9* | hpux10* | hpux11*)
20406 # Give a soname corresponding to the major version so that dld.sl refuses to
20407 # link against other versions.
20408 version_type=sunos
20409 need_lib_prefix=no
20410 need_version=no
20411 if test "$host_cpu" = ia64; then
20412 hardcode_into_libs=yes
20413 dynamic_linker="$host_os dld.so"
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20416 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20417 soname_spec='${libname}${release}.so$major'
20418 if test "X$HPUX_IA64_MODE" = X32; then
20419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20420 else
20421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20422 fi
20423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20424 else
20425 dynamic_linker="$host_os dld.sl"
20426 shlibpath_var=SHLIB_PATH
20427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20428 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
20429 soname_spec='${libname}${release}.sl$major'
20430 fi
20431 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20432 postinstall_cmds='chmod 555 $lib'
20433 ;;
20434
20435irix5* | irix6* | nonstopux*)
20436 case $host_os in
20437 nonstopux*) version_type=nonstopux ;;
20438 *) version_type=irix ;;
20439 esac
20440 need_lib_prefix=no
20441 need_version=no
20442 soname_spec='${libname}${release}.so$major'
20443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
20444 case $host_os in
20445 irix5* | nonstopux*)
20446 libsuff= shlibsuff=
20447 ;;
20448 *)
20449 case $LD in # libtool.m4 will add one of these switches to LD
20450 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
20451 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
20452 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
20453 *) libsuff= shlibsuff= libmagic=never-match;;
20454 esac
20455 ;;
20456 esac
20457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20458 shlibpath_overrides_runpath=no
20459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20461 ;;
20462
20463# No shared lib support for Linux oldld, aout, or coff.
20464linux*oldld* | linux*aout* | linux*coff*)
20465 dynamic_linker=no
20466 ;;
20467
20468# This must be Linux ELF.
20469linux*)
20470 version_type=linux
20471 need_lib_prefix=no
20472 need_version=no
20473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20474 soname_spec='${libname}${release}.so$major'
20475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20476 libsuff=
20477 if test "x$LINUX_64_MODE" = x64; then
20478 # Some platforms are per default 64-bit, so there's no /lib64
20479 if test -d /lib64; then
20480 libsuff=64
20481 fi
20482 fi
20483 shlibpath_var=LD_LIBRARY_PATH
20484 shlibpath_overrides_runpath=no
20485 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20486 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20487 # This implies no fast_install, which is unacceptable.
20488 # Some rework will be needed to allow for fast_install
20489 # before this can be enabled.
20490 hardcode_into_libs=yes
20491
20492 # We used to test for /lib/ld.so.1 and disable shared libraries on
20493 # powerpc, because MkLinux only supported shared libraries with the
20494 # GNU dynamic linker. Since this was broken with cross compilers,
20495 # most powerpc-linux boxes support dynamic linking these days and
20496 # people can always --disable-shared, the test was removed, and we
20497 # assume the GNU/Linux dynamic linker is in use.
20498 dynamic_linker='GNU/Linux ld.so'
20499 ;;
20500
20501netbsd*)
20502 version_type=sunos
20503 need_lib_prefix=no
20504 need_version=no
20505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20506 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20508 dynamic_linker='NetBSD (a.out) ld.so'
20509 else
20510 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
20511 soname_spec='${libname}${release}.so$major'
20512 dynamic_linker='NetBSD ld.elf_so'
20513 fi
20514 shlibpath_var=LD_LIBRARY_PATH
20515 shlibpath_overrides_runpath=yes
20516 hardcode_into_libs=yes
20517 ;;
20518
20519newsos6)
20520 version_type=linux
20521 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20522 shlibpath_var=LD_LIBRARY_PATH
20523 shlibpath_overrides_runpath=yes
20524 ;;
20525
20526nto-qnx)
20527 version_type=linux
20528 need_lib_prefix=no
20529 need_version=no
20530 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20531 soname_spec='${libname}${release}.so$major'
20532 shlibpath_var=LD_LIBRARY_PATH
20533 shlibpath_overrides_runpath=yes
20534 ;;
20535
20536openbsd*)
20537 version_type=sunos
20538 need_lib_prefix=no
20539 need_version=no
20540 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20544 case $host_os in
20545 openbsd2.[89] | openbsd2.[89].*)
20546 shlibpath_overrides_runpath=no
20547 ;;
20548 *)
20549 shlibpath_overrides_runpath=yes
20550 ;;
20551 esac
20552 else
20553 shlibpath_overrides_runpath=yes
20554 fi
20555 ;;
20556
20557os2*)
20558 libname_spec='$name'
20559 need_lib_prefix=no
20560 library_names_spec='$libname.dll $libname.a'
20561 dynamic_linker='OS/2 ld.exe'
20562 shlibpath_var=LIBPATH
20563 ;;
20564
20565osf3* | osf4* | osf5*)
20566 version_type=osf
20567 need_lib_prefix=no
20568 need_version=no
20569 soname_spec='${libname}${release}.so'
20570 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
20571 shlibpath_var=LD_LIBRARY_PATH
20572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20574 ;;
20575
20576sco3.2v5*)
20577 version_type=osf
20578 soname_spec='${libname}${release}.so$major'
20579 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20580 shlibpath_var=LD_LIBRARY_PATH
20581 ;;
20582
20583solaris*)
20584 version_type=linux
20585 need_lib_prefix=no
20586 need_version=no
20587 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20588 soname_spec='${libname}${release}.so$major'
20589 shlibpath_var=LD_LIBRARY_PATH
20590 shlibpath_overrides_runpath=yes
20591 hardcode_into_libs=yes
20592 # ldd complains unless libraries are executable
20593 postinstall_cmds='chmod +x $lib'
20594 ;;
20595
20596sunos4*)
20597 version_type=sunos
20598 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20600 shlibpath_var=LD_LIBRARY_PATH
20601 shlibpath_overrides_runpath=yes
20602 if test "$with_gnu_ld" = yes; then
20603 need_lib_prefix=no
20604 fi
20605 need_version=yes
20606 ;;
20607
20608sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20609 version_type=linux
20610 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20611 soname_spec='${libname}${release}.so$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 case $host_vendor in
20614 sni)
20615 shlibpath_overrides_runpath=no
20616 ;;
20617 motorola)
20618 need_lib_prefix=no
20619 need_version=no
20620 shlibpath_overrides_runpath=no
20621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20622 ;;
20623 esac
20624 ;;
20625
20626sysv4*MP*)
20627 if test -d /usr/nec ;then
20628 version_type=linux
20629 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
20630 soname_spec='$libname.so.$major'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 fi
20633 ;;
20634
20635uts4*)
20636 version_type=linux
20637 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20638 soname_spec='${libname}${release}.so$major'
20639 shlibpath_var=LD_LIBRARY_PATH
20640 ;;
20641
20642*)
20643 dynamic_linker=no
20644 ;;
20645esac
20646echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20647echo "${ECHO_T}$dynamic_linker" >&6
20648test "$dynamic_linker" = no && can_build_shared=no
20649
20650if test "x$enable_dlopen" != xyes; then
20651 enable_dlopen=unknown
20652 enable_dlopen_self=unknown
20653 enable_dlopen_self_static=unknown
20654else
20655 lt_cv_dlopen=no
20656 lt_cv_dlopen_libs=
20657
20658 case $host_os in
20659 beos*)
20660 lt_cv_dlopen="load_add_on"
20661 lt_cv_dlopen_libs=
20662 lt_cv_dlopen_self=yes
20663 ;;
20664
20665 cygwin* | mingw* | pw32*)
20666 lt_cv_dlopen="LoadLibrary"
20667 lt_cv_dlopen_libs=
20668 ;;
20669
20670 *)
20671 echo "$as_me:$LINENO: checking for shl_load" >&5
20672echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20673if test "${ac_cv_func_shl_load+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675else
20676 cat >conftest.$ac_ext <<_ACEOF
20677#line $LINENO "configure"
20678#include "confdefs.h"
20679/* System header to define __stub macros and hopefully few prototypes,
20680 which can conflict with char shl_load (); below. */
20681#include <assert.h>
20682/* Override any gcc2 internal prototype to avoid an error. */
20683#ifdef __cplusplus
20684extern "C"
20685#endif
20686/* We use char because int might match the return type of a gcc2
20687 builtin and then its argument prototype would still apply. */
20688char shl_load ();
20689char (*f) ();
20690
20691#ifdef F77_DUMMY_MAIN
20692# ifdef __cplusplus
20693 extern "C"
20694# endif
20695 int F77_DUMMY_MAIN() { return 1; }
20696#endif
20697int
20698main ()
20699{
20700/* The GNU C library defines this for functions which it implements
20701 to always fail with ENOSYS. Some functions are actually named
20702 something starting with __ and the normal name is an alias. */
20703#if defined (__stub_shl_load) || defined (__stub___shl_load)
20704choke me
20705#else
20706f = shl_load;
20707#endif
20708
20709 ;
20710 return 0;
20711}
20712_ACEOF
20713rm -f conftest.$ac_objext conftest$ac_exeext
20714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715 (eval $ac_link) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } &&
20719 { ac_try='test -s conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_cv_func_shl_load=yes
20726else
20727 echo "$as_me: failed program was:" >&5
20728cat conftest.$ac_ext >&5
20729ac_cv_func_shl_load=no
20730fi
20731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20732fi
20733echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20734echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20735if test $ac_cv_func_shl_load = yes; then
20736 lt_cv_dlopen="shl_load"
20737else
20738 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20739echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20740if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742else
20743 ac_check_lib_save_LIBS=$LIBS
20744LIBS="-ldld $LIBS"
20745cat >conftest.$ac_ext <<_ACEOF
20746#line $LINENO "configure"
20747#include "confdefs.h"
20748
20749/* Override any gcc2 internal prototype to avoid an error. */
20750#ifdef __cplusplus
20751extern "C"
20752#endif
20753/* We use char because int might match the return type of a gcc2
20754 builtin and then its argument prototype would still apply. */
20755char shl_load ();
20756#ifdef F77_DUMMY_MAIN
20757# ifdef __cplusplus
20758 extern "C"
20759# endif
20760 int F77_DUMMY_MAIN() { return 1; }
20761#endif
20762int
20763main ()
20764{
20765shl_load ();
20766 ;
20767 return 0;
20768}
20769_ACEOF
20770rm -f conftest.$ac_objext conftest$ac_exeext
20771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20772 (eval $ac_link) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -s conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_lib_dld_shl_load=yes
20783else
20784 echo "$as_me: failed program was:" >&5
20785cat conftest.$ac_ext >&5
20786ac_cv_lib_dld_shl_load=no
20787fi
20788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20789LIBS=$ac_check_lib_save_LIBS
20790fi
20791echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20792echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20793if test $ac_cv_lib_dld_shl_load = yes; then
20794 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20795else
20796 echo "$as_me:$LINENO: checking for dlopen" >&5
20797echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20798if test "${ac_cv_func_dlopen+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20800else
20801 cat >conftest.$ac_ext <<_ACEOF
20802#line $LINENO "configure"
20803#include "confdefs.h"
20804/* System header to define __stub macros and hopefully few prototypes,
20805 which can conflict with char dlopen (); below. */
20806#include <assert.h>
20807/* Override any gcc2 internal prototype to avoid an error. */
20808#ifdef __cplusplus
20809extern "C"
20810#endif
20811/* We use char because int might match the return type of a gcc2
20812 builtin and then its argument prototype would still apply. */
20813char dlopen ();
20814char (*f) ();
20815
20816#ifdef F77_DUMMY_MAIN
20817# ifdef __cplusplus
20818 extern "C"
20819# endif
20820 int F77_DUMMY_MAIN() { return 1; }
20821#endif
20822int
20823main ()
20824{
20825/* The GNU C library defines this for functions which it implements
20826 to always fail with ENOSYS. Some functions are actually named
20827 something starting with __ and the normal name is an alias. */
20828#if defined (__stub_dlopen) || defined (__stub___dlopen)
20829choke me
20830#else
20831f = dlopen;
20832#endif
20833
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext conftest$ac_exeext
20839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20840 (eval $ac_link) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -s conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_func_dlopen=yes
20851else
20852 echo "$as_me: failed program was:" >&5
20853cat conftest.$ac_ext >&5
20854ac_cv_func_dlopen=no
20855fi
20856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20857fi
20858echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20859echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20860if test $ac_cv_func_dlopen = yes; then
20861 lt_cv_dlopen="dlopen"
20862else
20863 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20864echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20865if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868 ac_check_lib_save_LIBS=$LIBS
20869LIBS="-ldl $LIBS"
20870cat >conftest.$ac_ext <<_ACEOF
20871#line $LINENO "configure"
20872#include "confdefs.h"
20873
20874/* Override any gcc2 internal prototype to avoid an error. */
20875#ifdef __cplusplus
20876extern "C"
20877#endif
20878/* We use char because int might match the return type of a gcc2
20879 builtin and then its argument prototype would still apply. */
20880char dlopen ();
20881#ifdef F77_DUMMY_MAIN
20882# ifdef __cplusplus
20883 extern "C"
20884# endif
20885 int F77_DUMMY_MAIN() { return 1; }
20886#endif
20887int
20888main ()
20889{
20890dlopen ();
20891 ;
20892 return 0;
20893}
20894_ACEOF
20895rm -f conftest.$ac_objext conftest$ac_exeext
20896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897 (eval $ac_link) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
20901 { ac_try='test -s conftest$ac_exeext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_lib_dl_dlopen=yes
20908else
20909 echo "$as_me: failed program was:" >&5
20910cat conftest.$ac_ext >&5
20911ac_cv_lib_dl_dlopen=no
20912fi
20913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20914LIBS=$ac_check_lib_save_LIBS
20915fi
20916echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20918if test $ac_cv_lib_dl_dlopen = yes; then
20919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20920else
20921 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20922echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20923if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925else
20926 ac_check_lib_save_LIBS=$LIBS
20927LIBS="-lsvld $LIBS"
20928cat >conftest.$ac_ext <<_ACEOF
20929#line $LINENO "configure"
20930#include "confdefs.h"
20931
20932/* Override any gcc2 internal prototype to avoid an error. */
20933#ifdef __cplusplus
20934extern "C"
20935#endif
20936/* We use char because int might match the return type of a gcc2
20937 builtin and then its argument prototype would still apply. */
20938char dlopen ();
20939#ifdef F77_DUMMY_MAIN
20940# ifdef __cplusplus
20941 extern "C"
20942# endif
20943 int F77_DUMMY_MAIN() { return 1; }
20944#endif
20945int
20946main ()
20947{
20948dlopen ();
20949 ;
20950 return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext conftest$ac_exeext
20954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955 (eval $ac_link) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -s conftest$ac_exeext'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; }; then
20965 ac_cv_lib_svld_dlopen=yes
20966else
20967 echo "$as_me: failed program was:" >&5
20968cat conftest.$ac_ext >&5
20969ac_cv_lib_svld_dlopen=no
20970fi
20971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20972LIBS=$ac_check_lib_save_LIBS
20973fi
20974echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20975echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20976if test $ac_cv_lib_svld_dlopen = yes; then
20977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20978else
20979 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20980echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20981if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983else
20984 ac_check_lib_save_LIBS=$LIBS
20985LIBS="-ldld $LIBS"
20986cat >conftest.$ac_ext <<_ACEOF
20987#line $LINENO "configure"
20988#include "confdefs.h"
20989
20990/* Override any gcc2 internal prototype to avoid an error. */
20991#ifdef __cplusplus
20992extern "C"
20993#endif
20994/* We use char because int might match the return type of a gcc2
20995 builtin and then its argument prototype would still apply. */
20996char dld_link ();
20997#ifdef F77_DUMMY_MAIN
20998# ifdef __cplusplus
20999 extern "C"
21000# endif
21001 int F77_DUMMY_MAIN() { return 1; }
21002#endif
21003int
21004main ()
21005{
21006dld_link ();
21007 ;
21008 return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext conftest$ac_exeext
21012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21013 (eval $ac_link) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -s conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_lib_dld_dld_link=yes
21024else
21025 echo "$as_me: failed program was:" >&5
21026cat conftest.$ac_ext >&5
21027ac_cv_lib_dld_dld_link=no
21028fi
21029rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21030LIBS=$ac_check_lib_save_LIBS
21031fi
21032echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21033echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21034if test $ac_cv_lib_dld_dld_link = yes; then
21035 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21036fi
21037
21038
21039fi
21040
21041
21042fi
21043
21044
21045fi
21046
21047
21048fi
21049
21050
21051fi
21052
21053 ;;
21054 esac
21055
21056 if test "x$lt_cv_dlopen" != xno; then
21057 enable_dlopen=yes
21058 else
21059 enable_dlopen=no
21060 fi
21061
21062 case $lt_cv_dlopen in
21063 dlopen)
21064 save_CPPFLAGS="$CPPFLAGS"
21065 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21066
21067 save_LDFLAGS="$LDFLAGS"
21068 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21069
21070 save_LIBS="$LIBS"
21071 LIBS="$lt_cv_dlopen_libs $LIBS"
21072
21073 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21074echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21075if test "${lt_cv_dlopen_self+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077else
21078 if test "$cross_compiling" = yes; then :
21079 lt_cv_dlopen_self=cross
21080else
21081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21082 lt_status=$lt_dlunknown
21083 cat > conftest.$ac_ext <<EOF
21084#line 21084 "configure"
21085#include "confdefs.h"
21086
21087#if HAVE_DLFCN_H
21088#include <dlfcn.h>
21089#endif
21090
21091#include <stdio.h>
21092
21093#ifdef RTLD_GLOBAL
21094# define LT_DLGLOBAL RTLD_GLOBAL
21095#else
21096# ifdef DL_GLOBAL
21097# define LT_DLGLOBAL DL_GLOBAL
21098# else
21099# define LT_DLGLOBAL 0
21100# endif
21101#endif
21102
21103/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21104 find out it does not work in some platform. */
21105#ifndef LT_DLLAZY_OR_NOW
21106# ifdef RTLD_LAZY
21107# define LT_DLLAZY_OR_NOW RTLD_LAZY
21108# else
21109# ifdef DL_LAZY
21110# define LT_DLLAZY_OR_NOW DL_LAZY
21111# else
21112# ifdef RTLD_NOW
21113# define LT_DLLAZY_OR_NOW RTLD_NOW
21114# else
21115# ifdef DL_NOW
21116# define LT_DLLAZY_OR_NOW DL_NOW
21117# else
21118# define LT_DLLAZY_OR_NOW 0
21119# endif
21120# endif
21121# endif
21122# endif
21123#endif
21124
21125#ifdef __cplusplus
21126extern "C" void exit (int);
21127#endif
21128
21129void fnord() { int i=42;}
21130int main ()
21131{
21132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21133 int status = $lt_dlunknown;
21134
21135 if (self)
21136 {
21137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21139 /* dlclose (self); */
21140 }
21141
21142 exit (status);
21143}
21144EOF
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146 (eval $ac_link) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21150 (./conftest; exit; ) 2>/dev/null
21151 lt_status=$?
21152 case x$lt_status in
21153 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21154 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21155 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21156 esac
21157 else :
21158 # compilation failed
21159 lt_cv_dlopen_self=no
21160 fi
21161fi
21162rm -fr conftest*
21163
21164
21165fi
21166echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21167echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21168
21169 if test "x$lt_cv_dlopen_self" = xyes; then
21170 LDFLAGS="$LDFLAGS $link_static_flag"
21171 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21172echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21173if test "${lt_cv_dlopen_self_static+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21175else
21176 if test "$cross_compiling" = yes; then :
21177 lt_cv_dlopen_self_static=cross
21178else
21179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21180 lt_status=$lt_dlunknown
21181 cat > conftest.$ac_ext <<EOF
21182#line 21182 "configure"
21183#include "confdefs.h"
21184
21185#if HAVE_DLFCN_H
21186#include <dlfcn.h>
21187#endif
21188
21189#include <stdio.h>
21190
21191#ifdef RTLD_GLOBAL
21192# define LT_DLGLOBAL RTLD_GLOBAL
21193#else
21194# ifdef DL_GLOBAL
21195# define LT_DLGLOBAL DL_GLOBAL
21196# else
21197# define LT_DLGLOBAL 0
21198# endif
21199#endif
21200
21201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21202 find out it does not work in some platform. */
21203#ifndef LT_DLLAZY_OR_NOW
21204# ifdef RTLD_LAZY
21205# define LT_DLLAZY_OR_NOW RTLD_LAZY
21206# else
21207# ifdef DL_LAZY
21208# define LT_DLLAZY_OR_NOW DL_LAZY
21209# else
21210# ifdef RTLD_NOW
21211# define LT_DLLAZY_OR_NOW RTLD_NOW
21212# else
21213# ifdef DL_NOW
21214# define LT_DLLAZY_OR_NOW DL_NOW
21215# else
21216# define LT_DLLAZY_OR_NOW 0
21217# endif
21218# endif
21219# endif
21220# endif
21221#endif
21222
21223#ifdef __cplusplus
21224extern "C" void exit (int);
21225#endif
21226
21227void fnord() { int i=42;}
21228int main ()
21229{
21230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21231 int status = $lt_dlunknown;
21232
21233 if (self)
21234 {
21235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21237 /* dlclose (self); */
21238 }
21239
21240 exit (status);
21241}
21242EOF
21243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21244 (eval $ac_link) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21248 (./conftest; exit; ) 2>/dev/null
21249 lt_status=$?
21250 case x$lt_status in
21251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21253 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21254 esac
21255 else :
21256 # compilation failed
21257 lt_cv_dlopen_self_static=no
21258 fi
21259fi
21260rm -fr conftest*
21261
21262
21263fi
21264echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21265echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21266 fi
21267
21268 CPPFLAGS="$save_CPPFLAGS"
21269 LDFLAGS="$save_LDFLAGS"
21270 LIBS="$save_LIBS"
21271 ;;
21272 esac
21273
21274 case $lt_cv_dlopen_self in
21275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21276 *) enable_dlopen_self=unknown ;;
21277 esac
21278
21279 case $lt_cv_dlopen_self_static in
21280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21281 *) enable_dlopen_self_static=unknown ;;
21282 esac
21283fi
21284
21285
21286# The else clause should only fire when bootstrapping the
21287# libtool distribution, otherwise you forgot to ship ltmain.sh
21288# with your package, and you will get complaints that there are
21289# no rules to generate ltmain.sh.
21290if test -f "$ltmain"; then
21291 # Now quote all the things that may contain metacharacters while being
21292 # careful not to overquote the AC_SUBSTed values. We take copies of the
21293 # variables and quote the copies for generation of the libtool script.
21294 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
21295 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21296 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21297 deplibs_check_method reload_flag reload_cmds need_locks \
21298 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21299 lt_cv_sys_global_symbol_to_c_name_address \
21300 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21301 old_postinstall_cmds old_postuninstall_cmds \
21302 compiler_CXX \
21303 CC_CXX \
21304 LD_CXX \
21305 lt_prog_compiler_wl_CXX \
21306 lt_prog_compiler_pic_CXX \
21307 lt_prog_compiler_static_CXX \
21308 lt_prog_compiler_no_builtin_flag_CXX \
21309 export_dynamic_flag_spec_CXX \
21310 thread_safe_flag_spec_CXX \
21311 whole_archive_flag_spec_CXX \
21312 old_archive_cmds_CXX \
21313 old_archive_from_new_cmds_CXX \
21314 predep_objects_CXX \
21315 postdep_objects_CXX \
21316 predeps_CXX \
21317 postdeps_CXX \
21318 compiler_lib_search_path_CXX \
21319 archive_cmds_CXX \
21320 archive_expsym_cmds_CXX \
21321 postinstall_cmds_CXX \
21322 postuninstall_cmds_CXX \
21323 old_archive_from_expsyms_cmds_CXX \
21324 allow_undefined_flag_CXX \
21325 no_undefined_flag_CXX \
21326 export_symbols_cmds_CXX \
21327 hardcode_libdir_flag_spec_CXX \
21328 hardcode_libdir_separator_CXX \
21329 lt_cv_prog_compiler_c_o_CXX \
21330 exclude_expsyms_CXX \
21331 include_expsyms_CXX; do
21332
21333 case $var in
21334 old_archive_cmds_CXX | \
21335 old_archive_from_new_cmds_CXX | \
21336 archive_cmds_CXX | \
21337 archive_expsym_cmds_CXX | \
21338 old_archive_from_expsyms_cmds_CXX | \
21339 export_symbols_cmds_CXX | \
21340 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21341 postinstall_cmds | postuninstall_cmds | \
21342 old_postinstall_cmds | old_postuninstall_cmds | \
21343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21344 # Double-quote double-evaled strings.
21345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21346 ;;
21347 *)
21348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21349 ;;
21350 esac
21351 done
21352
21353 case $lt_echo in
21354 *'\$0 --fallback-echo"')
21355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21356 ;;
21357 esac
21358
21359cfgfile="$ofile"
21360
21361 cat <<__EOF__ >> "$cfgfile"
21362# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21363
21364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21365
21366# Shell to use when invoking shell scripts.
21367SHELL=$lt_SHELL
21368
21369# Whether or not to build shared libraries.
21370build_libtool_libs=$enable_shared
21371
21372# Whether or not to build static libraries.
21373build_old_libs=$enable_static
21374
21375# Whether or not to add -lc for building shared libraries.
21376build_libtool_need_lc=$archive_cmds_need_lc_CXX
21377
21378# Whether or not to optimize for fast installation.
21379fast_install=$enable_fast_install
21380
21381# The host system.
21382host_alias=$host_alias
21383host=$host
21384
21385# An echo program that does not interpret backslashes.
21386echo=$lt_echo
21387
21388# The archiver.
21389AR=$lt_AR
21390AR_FLAGS=$lt_AR_FLAGS
21391
21392# A C compiler.
21393LTCC=$lt_LTCC
21394
21395# A language-specific compiler.
21396CC=$lt_compiler_CXX
21397
21398# Is the compiler the GNU C compiler?
21399with_gcc=$GCC_CXX
21400
21401# The linker used to build libraries.
21402LD=$lt_LD_CXX
21403
21404# Whether we need hard or soft links.
21405LN_S=$lt_LN_S
21406
21407# A BSD-compatible nm program.
21408NM=$lt_NM
21409
21410# A sed program that does not truncate output.
21411SED=$lt_SED
21412
21413# A symbol stripping program
21414STRIP=$STRIP
21415
21416# Used to examine libraries when file_magic_cmd begins "file"
21417MAGIC_CMD=$MAGIC_CMD
21418
21419# Used on cygwin: DLL creation program.
21420DLLTOOL="$DLLTOOL"
21421
21422# Used on cygwin: object dumper.
21423OBJDUMP="$OBJDUMP"
21424
21425# Used on cygwin: assembler.
21426AS="$AS"
21427
21428# The name of the directory that contains temporary libtool files.
21429objdir=$objdir
21430
21431# How to create reloadable object files.
21432reload_flag=$lt_reload_flag
21433reload_cmds=$lt_reload_cmds
21434
21435# How to pass a linker flag through the compiler.
21436wl=$lt_lt_prog_compiler_wl_CXX
21437
21438# Object file suffix (normally "o").
21439objext="$ac_objext"
21440
21441# Old archive suffix (normally "a").
21442libext="$libext"
21443
21444# Executable file suffix (normally "").
21445exeext="$exeext"
21446
21447# Additional compiler flags for building library objects.
21448pic_flag=$lt_lt_prog_compiler_pic_CXX
21449pic_mode=$pic_mode
21450
21451# What is the maximum length of a command?
21452max_cmd_len=$lt_cv_sys_max_cmd_len
21453
21454# Does compiler simultaneously support -c and -o options?
21455compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21456
21457# Must we lock files when doing compilation ?
21458need_locks=$lt_need_locks
21459
21460# Do we need the lib prefix for modules?
21461need_lib_prefix=$need_lib_prefix
21462
21463# Do we need a version for libraries?
21464need_version=$need_version
21465
21466# Whether dlopen is supported.
21467dlopen_support=$enable_dlopen
21468
21469# Whether dlopen of programs is supported.
21470dlopen_self=$enable_dlopen_self
21471
21472# Whether dlopen of statically linked programs is supported.
21473dlopen_self_static=$enable_dlopen_self_static
21474
21475# Compiler flag to prevent dynamic linking.
21476link_static_flag=$lt_lt_prog_compiler_static_CXX
21477
21478# Compiler flag to turn off builtin functions.
21479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21480
21481# Compiler flag to allow reflexive dlopens.
21482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21483
21484# Compiler flag to generate shared objects directly from archives.
21485whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21486
21487# Compiler flag to generate thread-safe objects.
21488thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21489
21490# Library versioning type.
21491version_type=$version_type
21492
21493# Format of library name prefix.
21494libname_spec=$lt_libname_spec
21495
21496# List of archive names. First name is the real one, the rest are links.
21497# The last name is the one that the linker finds with -lNAME.
21498library_names_spec=$lt_library_names_spec
21499
21500# The coded name of the library, if different from the real name.
21501soname_spec=$lt_soname_spec
21502
21503# Commands used to build and install an old-style archive.
21504RANLIB=$lt_RANLIB
21505old_archive_cmds=$lt_old_archive_cmds_CXX
21506old_postinstall_cmds=$lt_old_postinstall_cmds
21507old_postuninstall_cmds=$lt_old_postuninstall_cmds
21508
21509# Create an old-style archive from a shared archive.
21510old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21511
21512# Create a temporary old-style archive to link instead of a shared archive.
21513old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21514
21515# Commands used to build and install a shared archive.
21516archive_cmds=$lt_archive_cmds_CXX
21517archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21518postinstall_cmds=$lt_postinstall_cmds
21519postuninstall_cmds=$lt_postuninstall_cmds
21520
21521# Commands to strip libraries.
21522old_striplib=$lt_old_striplib
21523striplib=$lt_striplib
21524
21525# Dependencies to place before the objects being linked to create a
21526# shared library.
21527predep_objects=$lt_predep_objects_CXX
21528
21529# Dependencies to place after the objects being linked to create a
21530# shared library.
21531postdep_objects=$lt_postdep_objects_CXX
21532
21533# Dependencies to place before the objects being linked to create a
21534# shared library.
21535predeps=$lt_predeps_CXX
21536
21537# Dependencies to place after the objects being linked to create a
21538# shared library.
21539postdeps=$lt_postdeps_CXX
21540
21541# The library search path used internally by the compiler when linking
21542# a shared library.
21543compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21544
21545# Method to check whether dependent libraries are shared objects.
21546deplibs_check_method=$lt_deplibs_check_method
21547
21548# Command to use when deplibs_check_method == file_magic.
21549file_magic_cmd=$lt_file_magic_cmd
21550
21551# Flag that allows shared libraries with undefined symbols to be built.
21552allow_undefined_flag=$lt_allow_undefined_flag_CXX
21553
21554# Flag that forces no undefined symbols.
21555no_undefined_flag=$lt_no_undefined_flag_CXX
21556
21557# Commands used to finish a libtool library installation in a directory.
21558finish_cmds=$lt_finish_cmds
21559
21560# Same as above, but a single script fragment to be evaled but not shown.
21561finish_eval=$lt_finish_eval
21562
21563# Take the output of nm and produce a listing of raw symbols and C names.
21564global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21565
21566# Transform the output of nm in a proper C declaration
21567global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21568
21569# Transform the output of nm in a C name address pair
21570global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21571
21572# This is the shared library runtime path variable.
21573runpath_var=$runpath_var
21574
21575# This is the shared library path variable.
21576shlibpath_var=$shlibpath_var
21577
21578# Is shlibpath searched before the hard-coded library search path?
21579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21580
21581# How to hardcode a shared library path into an executable.
21582hardcode_action=$hardcode_action_CXX
21583
21584# Whether we should hardcode library paths into libraries.
21585hardcode_into_libs=$hardcode_into_libs
21586
21587# Flag to hardcode \$libdir into a binary during linking.
21588# This must work even if \$libdir does not exist.
21589hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21590
21591# Whether we need a single -rpath flag with a separated argument.
21592hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21593
21594# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
21595# resulting binary.
21596hardcode_direct=$hardcode_direct_CXX
21597
21598# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21599# resulting binary.
21600hardcode_minus_L=$hardcode_minus_L_CXX
21601
21602# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21603# the resulting binary.
21604hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21605
21606# Variables whose values should be saved in libtool wrapper scripts and
21607# restored at relink time.
21608variables_saved_for_relink="$variables_saved_for_relink"
21609
21610# Whether libtool must link a program against all its dependency libraries.
21611link_all_deplibs=$link_all_deplibs_CXX
21612
21613# Compile-time system search path for libraries
21614sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21615
21616# Run-time system search path for libraries
21617sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21618
21619# Fix the shell variable \$srcfile for the compiler.
21620fix_srcfile_path="$fix_srcfile_path_CXX"
21621
21622# Set to yes if exported symbols are required.
21623always_export_symbols=$always_export_symbols_CXX
21624
21625# The commands to list exported symbols.
21626export_symbols_cmds=$lt_export_symbols_cmds_CXX
21627
21628# The commands to extract the exported symbol list from a shared archive.
21629extract_expsyms_cmds=$lt_extract_expsyms_cmds
21630
21631# Symbols that should not be listed in the preloaded symbols.
21632exclude_expsyms=$lt_exclude_expsyms_CXX
21633
21634# Symbols that must always be exported.
21635include_expsyms=$lt_include_expsyms_CXX
21636
21637# ### END LIBTOOL TAG CONFIG: $tagname
21638
21639__EOF__
21640
21641
21642else
21643 # If there is no Makefile yet, we rely on a make rule to execute
21644 # `config.status --recheck' to rerun these tests and create the
21645 # libtool script then.
21646 test -f Makefile && make "$ltmain"
21647fi
21648
21649
21650ac_ext=c
21651ac_cpp='$CPP $CPPFLAGS'
21652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21654ac_compiler_gnu=$ac_cv_c_compiler_gnu
21655
21656CC="$lt_save_CC"
21657
21658 ;;
21659
21660 GCJ)
21661
21662
21663
21664# Source file extension for C test sources.
21665ac_ext=java
21666
21667# Object file extension for compiled C test sources.
21668objext=o
21669objext_GCJ=$objext
21670
21671# Code to be used in simple compile tests
21672lt_simple_compile_test_code="class foo {}"
21673
21674# Code to be used in simple link tests
21675lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
21676
21677# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21678
21679# If no C compiler was specified, use CC.
21680LTCC=${LTCC-"$CC"}
21681
21682# Allow CC to be a program name with arguments.
21683set dummy $CC
21684compiler="$2"
21685
21686
21687# Allow CC to be a program name with arguments.
21688lt_save_CC="$CC"
21689CC=${GCJ-"gcj"}
21690set dummy $CC
21691compiler="$2"
21692compiler_GCJ=$CC
21693
21694# GCJ did not exist at the time GCC didn't implicitly link libc in.
21695archive_cmds_need_lc_GCJ=no
21696
21697
21698lt_prog_compiler_no_builtin_flag_GCJ=
21699
21700if test "$GCC" = yes; then
21701 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21702
21703 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21704echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21705if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707else
21708 lt_cv_prog_compiler_rtti_exceptions=no
21709 ac_outfile=conftest.$ac_objext
21710 save_CFLAGS="$CFLAGS"
21711 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
21712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21713 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
21714 # The compiler can only warn and ignore the option if not recognized
21715 # So say no if there are warnings
21716 if test -s conftest.err; then
21717 # Append any errors to the config.log.
21718 cat conftest.err 1>&5
21719 else
21720 lt_cv_prog_compiler_rtti_exceptions=yes
21721 fi
21722 fi
21723 $rm conftest*
21724 CFLAGS="$save_CFLAGS"
21725
21726fi
21727echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21728echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21729
21730if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21731 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21732else
21733 :
21734fi
21735
21736fi
21737
21738lt_prog_compiler_wl_GCJ=
21739lt_prog_compiler_pic_GCJ=
21740lt_prog_compiler_static_GCJ=
21741
21742echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21743echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21744
21745 if test "$GCC" = yes; then
21746 lt_prog_compiler_wl_GCJ='-Wl,'
21747 lt_prog_compiler_static_GCJ='-static'
21748
21749 case $host_os in
21750 aix*)
21751 # All AIX code is PIC.
21752 if test "$host_cpu" = ia64; then
21753 # AIX 5 now supports IA64 processor
21754 lt_prog_compiler_static_GCJ='-Bstatic'
21755 fi
21756 ;;
21757
21758 amigaos*)
21759 # FIXME: we need at least 68020 code to build shared libraries, but
21760 # adding the `-m68020' flag to GCC prevents building anything better,
21761 # like `-m68040'.
21762 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21763 ;;
21764
21765 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21766 # PIC is the default for these OSes.
21767 ;;
21768
21769 cygwin* | mingw* | pw32* | os2*)
21770 # This hack is so that the source file can tell whether it is being
21771 # built for inclusion in a dll (and should export symbols for example).
21772 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21773 ;;
21774
21775 darwin* | rhapsody*)
21776 # PIC is the default on this platform
21777 # Common symbols not allowed in MH_DYLIB files
21778 lt_prog_compiler_pic_GCJ='-fno-common'
21779 ;;
21780
21781 msdosdjgpp*)
21782 # Just because we use GCC doesn't mean we suddenly get shared libraries
21783 # on systems that don't support them.
21784 lt_prog_compiler_can_build_shared_GCJ=no
21785 enable_shared=no
21786 ;;
21787
21788 sysv4*MP*)
21789 if test -d /usr/nec; then
21790 lt_prog_compiler_pic_GCJ=-Kconform_pic
21791 fi
21792 ;;
21793
21794 hpux*)
21795 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
21796 if test "$host_cpu" != ia64; then
21797 lt_prog_compiler_pic_GCJ='-fPIC'
21798 fi
21799 ;;
21800
21801 *)
21802 lt_prog_compiler_pic_GCJ='-fPIC'
21803 ;;
21804 esac
21805 else
21806 # PORTME Check for flag to pass linker flags through the system compiler.
21807 case $host_os in
21808 aix*)
21809 lt_prog_compiler_wl_GCJ='-Wl,'
21810 if test "$host_cpu" = ia64; then
21811 # AIX 5 now supports IA64 processor
21812 lt_prog_compiler_static_GCJ='-Bstatic'
21813 else
21814 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21815 fi
21816 ;;
21817
21818 cygwin* | mingw* | pw32* | os2*)
21819 # This hack is so that the source file can tell whether it is being
21820 # built for inclusion in a dll (and should export symbols for example).
21821 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21822 ;;
21823
21824 hpux9* | hpux10* | hpux11*)
21825 lt_prog_compiler_wl_GCJ='-Wl,'
21826 if test "$host_cpu" != ia64; then
21827 lt_prog_compiler_pic_GCJ='+Z'
21828 fi
21829 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21830 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21831 ;;
21832
21833 irix5* | irix6* | nonstopux*)
21834 lt_prog_compiler_wl_GCJ='-Wl,'
21835 # PIC (with -KPIC) is the default.
21836 lt_prog_compiler_static_GCJ='-non_shared'
21837 ;;
21838
21839 newsos6)
21840 lt_prog_compiler_pic_GCJ='-KPIC'
21841 lt_prog_compiler_static_GCJ='-Bstatic'
21842 ;;
21843
21844 osf3* | osf4* | osf5*)
21845 lt_prog_compiler_wl_GCJ='-Wl,'
21846 # All OSF/1 code is PIC.
21847 lt_prog_compiler_static_GCJ='-non_shared'
21848 ;;
21849
21850 sco3.2v5*)
21851 lt_prog_compiler_pic_GCJ='-Kpic'
21852 lt_prog_compiler_static_GCJ='-dn'
21853 ;;
21854
21855 solaris*)
21856 lt_prog_compiler_wl_GCJ='-Wl,'
21857 lt_prog_compiler_pic_GCJ='-KPIC'
21858 lt_prog_compiler_static_GCJ='-Bstatic'
21859 ;;
21860
21861 sunos4*)
21862 lt_prog_compiler_wl_GCJ='-Qoption ld '
21863 lt_prog_compiler_pic_GCJ='-PIC'
21864 lt_prog_compiler_static_GCJ='-Bstatic'
21865 ;;
21866
21867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21868 if test "x$host_vendor" = xsni; then
21869 lt_prog_compiler_wl_GCJ='-LD'
21870 else
21871 lt_prog_compiler_wl_GCJ='-Wl,'
21872 fi
21873 lt_prog_compiler_pic_GCJ='-KPIC'
21874 lt_prog_compiler_static_GCJ='-Bstatic'
21875 ;;
21876
21877 sysv4*MP*)
21878 if test -d /usr/nec ;then
21879 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21880 lt_prog_compiler_static_GCJ='-Bstatic'
21881 fi
21882 ;;
21883
21884 uts4*)
21885 lt_prog_compiler_pic_GCJ='-pic'
21886 lt_prog_compiler_static_GCJ='-Bstatic'
21887 ;;
21888
21889 *)
21890 lt_prog_compiler_can_build_shared_GCJ=no
21891 ;;
21892 esac
21893 fi
21894
21895echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21896echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21897
21898#
21899# Check to make sure the PIC flag actually works.
21900#
21901if test -n "$lt_prog_compiler_pic_GCJ"; then
21902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21903echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21904if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906else
21907 lt_prog_compiler_pic_works_GCJ=no
21908 ac_outfile=conftest.$ac_objext
21909 save_CFLAGS="$CFLAGS"
21910 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
21911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21912 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
21913 # The compiler can only warn and ignore the option if not recognized
21914 # So say no if there are warnings
21915 if test -s conftest.err; then
21916 # Append any errors to the config.log.
21917 cat conftest.err 1>&5
21918 else
21919 lt_prog_compiler_pic_works_GCJ=yes
21920 fi
21921 fi
21922 $rm conftest*
21923 CFLAGS="$save_CFLAGS"
21924
21925fi
21926echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21927echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21928
21929if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21930 case $lt_prog_compiler_pic_GCJ in
21931 "" | " "*) ;;
21932 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21933 esac
21934else
21935 lt_prog_compiler_pic_GCJ=
21936 lt_prog_compiler_can_build_shared_GCJ=no
21937fi
21938
21939fi
21940case "$host_os" in
21941 # For platforms which do not support PIC, -DPIC is meaningless:
21942 *djgpp*)
21943 lt_prog_compiler_pic_GCJ=
21944 ;;
21945 *)
21946 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
21947 ;;
21948esac
21949
21950echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21951echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21952if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954else
21955 lt_cv_prog_compiler_c_o_GCJ=no
21956 $rm -r conftest 2>/dev/null
21957 mkdir conftest
21958 cd conftest
21959 mkdir out
21960 save_GCJFLAGS="$GCJFLAGS"
21961 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
21962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21963
21964 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
21965 # that will create temporary files in the current directory regardless of
21966 # the output directory. Thus, making CWD read-only will cause this test
21967 # to fail, enabling locking or at least warning the user not to do parallel
21968 # builds.
21969 chmod -w .
21970
21971 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
21972 then
21973 # The compiler can only warn and ignore the option if not recognized
21974 # So say no if there are warnings
21975 if test -s out/conftest.err; then
21976 # Append any errors to the config.log.
21977 cat out/conftest.err 1>&5
21978 else
21979 lt_cv_prog_compiler_c_o_GCJ=yes
21980 fi
21981 fi
21982 GCJFLAGS="$save_GCJFLAGS"
21983 chmod u+w .
21984 $rm conftest* out/*
21985 rmdir out
21986 cd ..
21987 rmdir conftest
21988 $rm conftest*
21989
21990fi
21991echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21992echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21993
21994
21995hard_links="nottested"
21996if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21997 # do not overwrite the value of need_locks provided by the user
21998 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21999echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22000 hard_links=yes
22001 $rm conftest*
22002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22003 touch conftest.a
22004 ln conftest.a conftest.b 2>&5 || hard_links=no
22005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22006 echo "$as_me:$LINENO: result: $hard_links" >&5
22007echo "${ECHO_T}$hard_links" >&6
22008 if test "$hard_links" = no; then
22009 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22010echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22011 need_locks=warn
22012 fi
22013else
22014 need_locks=no
22015fi
22016
22017echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22018echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22019
22020 runpath_var=
22021 allow_undefined_flag_GCJ=
22022
22023 archive_cmds_GCJ=
22024 archive_cmds_need_lc_GCJ=
22025 archive_expsym_cmds_GCJ=
22026 old_archive_From_new_cmds_GCJ=
22027 old_archive_from_expsyms_cmds_GCJ=
22028 export_dynamic_flag_spec_GCJ=
22029 whole_archive_flag_spec_GCJ=
22030 thread_safe_flag_spec_GCJ=
22031 hardcode_libdir_flag_spec_GCJ=
22032 hardcode_libdir_separator_GCJ=
22033 hardcode_direct_GCJ=no
22034 hardcode_minus_L_GCJ=no
22035 hardcode_shlibpath_var_GCJ=unsupported
22036 link_all_deplibs_GCJ=unknown
22037 always_export_symbols_GCJ=no
22038 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
22039 # include_expsyms should be a list of space-separated symbols to be *always*
22040 # included in the symbol list
22041 include_expsyms_GCJ=
22042 # exclude_expsyms can be an egrep regular expression of symbols to exclude
22043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22045 # as well as any symbol that contains `d'.
22046 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22048 # platforms (ab)use it in PIC code, but their linkers get confused if
22049 # the symbol is explicitly referenced. Since portable code cannot
22050 # rely on this symbol name, it's probably fine to never include it in
22051 # preloaded symbol tables.
22052 extract_expsyms_cmds=
22053
22054 case $host_os in
22055 cygwin* | mingw* | pw32*)
22056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22057 # When not using gcc, we currently assume that we are using
22058 # Microsoft Visual C++.
22059 if test "$GCC" != yes; then
22060 with_gnu_ld=no
22061 fi
22062 ;;
22063 openbsd*)
22064 with_gnu_ld=no
22065 ;;
22066 esac
22067
22068 ld_shlibs_GCJ=yes
22069 if test "$with_gnu_ld" = yes; then
22070 # If archive_cmds runs LD, not CC, wlarc should be empty
22071 wlarc='${wl}'
22072
22073 # See if GNU ld supports shared libraries.
22074 case $host_os in
22075 aix3* | aix4* | aix5*)
22076 # On AIX/PPC, the GNU linker is very broken
22077 if test "$host_cpu" != ia64; then
22078 ld_shlibs_GCJ=no
22079 cat <<EOF 1>&2
22080
22081*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22082*** to be unable to reliably create shared libraries on AIX.
22083*** Therefore, libtool is disabling shared libraries support. If you
22084*** really care for shared libraries, you may want to modify your PATH
22085*** so that a non-GNU linker is found, and then restart.
22086
22087EOF
22088 fi
22089 ;;
22090
22091 amigaos*)
22092 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)'
22093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22094 hardcode_minus_L_GCJ=yes
22095
22096 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22097 # that the semantics of dynamic libraries on AmigaOS, at least up
22098 # to version 4, is to share data among multiple programs linked
22099 # with the same dynamic library. Since this doesn't match the
22100 # behavior of shared libraries on other platforms, we can't use
22101 # them.
22102 ld_shlibs_GCJ=no
22103 ;;
22104
22105 beos*)
22106 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22107 allow_undefined_flag_GCJ=unsupported
22108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22109 # support --undefined. This deserves some investigation. FIXME
22110 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22111 else
22112 ld_shlibs_GCJ=no
22113 fi
22114 ;;
22115
22116 cygwin* | mingw* | pw32*)
22117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
22118 # no search path for DLLs.
22119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120 allow_undefined_flag_GCJ=unsupported
22121 always_export_symbols_GCJ=yes
22122
22123 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
22124 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
22125 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
22126 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
22127 else $CC -o impgen impgen.c ; fi)~
22128 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
22129
22130 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
22131
22132 # cygwin and mingw dlls have different entry points and sets of symbols
22133 # to exclude.
22134 # FIXME: what about values for MSVC?
22135 dll_entry=__cygwin_dll_entry@12
22136 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
22137 case $host_os in
22138 mingw*)
22139 # mingw values
22140 dll_entry=_DllMainCRTStartup@12
22141 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
22142 ;;
22143 esac
22144
22145 # mingw and cygwin differ, and it's simplest to just exclude the union
22146 # of the two symbol sets.
22147 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
22148
22149 # recent cygwin and mingw systems supply a stub DllMain which the user
22150 # can override, but on older systems we have to supply one (in ltdll.c)
22151 if test "x$lt_cv_need_dllmain" = "xyes"; then
22152 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
22153 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
22154 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
22155 else
22156 ltdll_obj=
22157 ltdll_cmds=
22158 fi
22159
22160 # Extract the symbol export list from an `--export-all' def file,
22161 # then regenerate the def file from the symbol export list, so that
22162 # the compiled dll only exports the symbol export list.
22163 # Be careful not to strip the DATA tag left by newer dlltools.
22164 export_symbols_cmds_GCJ="$ltdll_cmds"'
22165 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
22166 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
22167
22168 # If the export-symbols file already is a .def file (1st line
22169 # is EXPORTS), use it as is.
22170 # If DATA tags from a recent dlltool are present, honour them!
22171 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
22172 cp $export_symbols $output_objdir/$soname-def;
22173 else
22174 echo EXPORTS > $output_objdir/$soname-def;
22175 _lt_hint=1;
22176 cat $export_symbols | while read symbol; do
22177 set dummy \$symbol;
22178 case \$# in
22179 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
22180 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
22181 esac;
22182 _lt_hint=`expr 1 + \$_lt_hint`;
22183 done;
22184 fi~
22185 '"$ltdll_cmds"'
22186 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
22187 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
22188 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
22189 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
22190 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
22191 ;;
22192
22193 netbsd*)
22194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22195 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22196 wlarc=
22197 else
22198 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22199 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22200 fi
22201 ;;
22202
22203 solaris* | sysv5*)
22204 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
22205 ld_shlibs_GCJ=no
22206 cat <<EOF 1>&2
22207
22208*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22209*** create shared libraries on Solaris systems. Therefore, libtool
22210*** is disabling shared libraries support. We urge you to upgrade GNU
22211*** binutils to release 2.9.1 or newer. Another option is to modify
22212*** your PATH or compiler configuration so that the native linker is
22213*** used, and then restart.
22214
22215EOF
22216 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22218 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22219 else
22220 ld_shlibs_GCJ=no
22221 fi
22222 ;;
22223
22224 sunos4*)
22225 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226 wlarc=
22227 hardcode_direct_GCJ=yes
22228 hardcode_shlibpath_var_GCJ=no
22229 ;;
22230
22231 *)
22232 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22233 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22234 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22235 else
22236 ld_shlibs_GCJ=no
22237 fi
22238 ;;
22239 esac
22240
22241 if test "$ld_shlibs_GCJ" = yes; then
22242 runpath_var=LD_RUN_PATH
22243 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22244 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22245 case $host_os in
22246 cygwin* | mingw* | pw32*)
22247 # dlltool doesn't understand --whole-archive et. al.
22248 whole_archive_flag_spec_GCJ=
22249 ;;
22250 *)
22251 # ancient GNU ld didn't support --whole-archive et. al.
22252 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
22253 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22254 else
22255 whole_archive_flag_spec_GCJ=
22256 fi
22257 ;;
22258 esac
22259 fi
22260 else
22261 # PORTME fill in a description of your system's linker (not GNU ld)
22262 case $host_os in
22263 aix3*)
22264 allow_undefined_flag_GCJ=unsupported
22265 always_export_symbols_GCJ=yes
22266 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'
22267 # Note: this linker hardcodes the directories in LIBPATH if there
22268 # are no directories specified by -L.
22269 hardcode_minus_L_GCJ=yes
22270 if test "$GCC" = yes && test -z "$link_static_flag"; then
22271 # Neither direct hardcoding nor static linking is supported with a
22272 # broken collect2.
22273 hardcode_direct_GCJ=unsupported
22274 fi
22275 ;;
22276
22277 aix4* | aix5*)
22278 if test "$host_cpu" = ia64; then
22279 # On IA64, the linker does run time linking by default, so we don't
22280 # have to do anything special.
22281 aix_use_runtimelinking=no
22282 exp_sym_flag='-Bexport'
22283 no_entry_flag=""
22284 else
22285 # If we're using GNU nm, then we don't want the "-C" option.
22286 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22287 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
22288 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'
22289 else
22290 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'
22291 fi
22292
22293 # KDE requires run time linking. Make it the default.
22294 aix_use_runtimelinking=yes
22295 exp_sym_flag='-bexport'
22296 no_entry_flag='-bnoentry'
22297 fi
22298
22299 # When large executables or shared objects are built, AIX ld can
22300 # have problems creating the table of contents. If linking a library
22301 # or program results in "error TOC overflow" add -mminimal-toc to
22302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22304
22305 archive_cmds_GCJ=''
22306 hardcode_direct_GCJ=yes
22307 hardcode_libdir_separator_GCJ=':'
22308 link_all_deplibs_GCJ=yes
22309
22310 if test "$GCC" = yes; then
22311 case $host_os in aix4.012|aix4.012.*)
22312 # We only want to do this on AIX 4.2 and lower, the check
22313 # below for broken collect2 doesn't work under 4.3+
22314 collect2name=`${CC} -print-prog-name=collect2`
22315 if test -f "$collect2name" && \
22316 strings "$collect2name" | grep resolve_lib_name >/dev/null
22317 then
22318 # We have reworked collect2
22319 hardcode_direct_GCJ=yes
22320 else
22321 # We have old collect2
22322 hardcode_direct_GCJ=unsupported
22323 # It fails to find uninstalled libraries when the uninstalled
22324 # path is not listed in the libpath. Setting hardcode_minus_L
22325 # to unsupported forces relinking
22326 hardcode_minus_L_GCJ=yes
22327 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22328 hardcode_libdir_separator_GCJ=
22329 fi
22330 esac
22331 shared_flag='-shared'
22332 else
22333 # not using gcc
22334 if test "$host_cpu" = ia64; then
22335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22336 # chokes on -Wl,-G. The following line is correct:
22337 shared_flag='-G'
22338 else
22339 if test "$aix_use_runtimelinking" = yes; then
22340 shared_flag='-qmkshrobj ${wl}-G'
22341 else
22342 shared_flag='-qmkshrobj'
22343 fi
22344 fi
22345 fi
22346
22347 # Let the compiler handle the export list.
22348 always_export_symbols_GCJ=no
22349 if test "$aix_use_runtimelinking" = yes; then
22350 # Warning - without using the other runtime loading flags (-brtl),
22351 # -berok will link without error, but may produce a broken library.
22352 allow_undefined_flag_GCJ='-berok'
22353 # Determine the default libpath from the value encoded in an empty executable.
22354 cat >conftest.$ac_ext <<_ACEOF
22355#line $LINENO "configure"
22356#include "confdefs.h"
22357
22358#ifdef F77_DUMMY_MAIN
22359# ifdef __cplusplus
22360 extern "C"
22361# endif
22362 int F77_DUMMY_MAIN() { return 1; }
22363#endif
22364int
22365main ()
22366{
22367
22368 ;
22369 return 0;
22370}
22371_ACEOF
22372rm -f conftest.$ac_objext conftest$ac_exeext
22373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22374 (eval $ac_link) 2>&5
22375 ac_status=$?
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try='test -s conftest$ac_exeext'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; }; then
22384
22385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22386}'`
22387# Check for a 64-bit object if we didn't find anything.
22388if 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; }
22389}'`; fi
22390else
22391 echo "$as_me: failed program was:" >&5
22392cat conftest.$ac_ext >&5
22393fi
22394rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22395if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22396
22397 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22398 archive_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` '" $shared_flag"
22399 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}$exp_sym_flag:\$export_symbols $shared_flag"
22400 else
22401 if test "$host_cpu" = ia64; then
22402 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22403 allow_undefined_flag_GCJ="-z nodefs"
22404 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"
22405 else
22406 # Determine the default libpath from the value encoded in an empty executable.
22407 cat >conftest.$ac_ext <<_ACEOF
22408#line $LINENO "configure"
22409#include "confdefs.h"
22410
22411#ifdef F77_DUMMY_MAIN
22412# ifdef __cplusplus
22413 extern "C"
22414# endif
22415 int F77_DUMMY_MAIN() { return 1; }
22416#endif
22417int
22418main ()
22419{
22420
22421 ;
22422 return 0;
22423}
22424_ACEOF
22425rm -f conftest.$ac_objext conftest$ac_exeext
22426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427 (eval $ac_link) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
22431 { ac_try='test -s conftest$ac_exeext'
22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; }; then
22437
22438aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22439}'`
22440# Check for a 64-bit object if we didn't find anything.
22441if 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; }
22442}'`; fi
22443else
22444 echo "$as_me: failed program was:" >&5
22445cat conftest.$ac_ext >&5
22446fi
22447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22448if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22449
22450 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22451 # Warning - without using the other run time loading flags,
22452 # -berok will link without error, but may produce a broken library.
22453 no_undefined_flag_GCJ=' ${wl}-bernotok'
22454 allow_undefined_flag_GCJ=' ${wl}-berok'
22455 # -bexpall does not export symbols beginning with underscore (_)
22456 always_export_symbols_GCJ=yes
22457 # Exported symbols can be pulled into shared objects from archives
22458 whole_archive_flag_spec_GCJ=' '
22459 archive_cmds_need_lc_GCJ=yes
22460 # This is similar to how AIX traditionally builds it's shared libraries.
22461 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'
22462 fi
22463 fi
22464 ;;
22465
22466 amigaos*)
22467 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)'
22468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22469 hardcode_minus_L_GCJ=yes
22470 # see comment about different semantics on the GNU ld section
22471 ld_shlibs_GCJ=no
22472 ;;
22473
22474 bsdi4*)
22475 export_dynamic_flag_spec_GCJ=-rdynamic
22476 ;;
22477
22478 cygwin* | mingw* | pw32*)
22479 # When not using gcc, we currently assume that we are using
22480 # Microsoft Visual C++.
22481 # hardcode_libdir_flag_spec is actually meaningless, as there is
22482 # no search path for DLLs.
22483 hardcode_libdir_flag_spec_GCJ=' '
22484 allow_undefined_flag_GCJ=unsupported
22485 # Tell ltmain to make .lib files, not .a files.
22486 libext=lib
22487 # FIXME: Setting linknames here is a bad hack.
22488 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22489 # The linker will automatically build a .lib file if we build a DLL.
22490 old_archive_From_new_cmds_GCJ='true'
22491 # FIXME: Should let the user specify the lib program.
22492 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22493 fix_srcfile_path='`cygpath -w "$srcfile"`'
22494 ;;
22495
22496 darwin* | rhapsody*)
22497 case "$host_os" in
22498 rhapsody* | darwin1.[012])
22499 allow_undefined_flag_GCJ='-undefined suppress'
22500 ;;
22501 *) # Darwin 1.3 on
22502 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22503 ;;
22504 esac
22505
22506 # FIXME: Relying on posixy $() will cause problems for
22507 # cross-compilation, but unfortunately the echo tests do not
22508 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
22509 # `"' quotes if we put them in here... so don't!
22510 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
22511 # We need to add '_' to the symbols in $export_symbols first
22512 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
22513 hardcode_direct_GCJ=yes
22514 hardcode_shlibpath_var_GCJ=no
22515 whole_archive_flag_spec_GCJ='-all_load $convenience'
22516 ;;
22517
22518 dgux*)
22519 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22521 hardcode_shlibpath_var_GCJ=no
22522 ;;
22523
22524 freebsd1*)
22525 ld_shlibs_GCJ=no
22526 ;;
22527
22528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22529 # support. Future versions do this automatically, but an explicit c++rt0.o
22530 # does not break anything, and helps significantly (at the cost of a little
22531 # extra space).
22532 freebsd2.2*)
22533 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22535 hardcode_direct_GCJ=yes
22536 hardcode_shlibpath_var_GCJ=no
22537 ;;
22538
22539 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22540 freebsd2*)
22541 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22542 hardcode_direct_GCJ=yes
22543 hardcode_minus_L_GCJ=yes
22544 hardcode_shlibpath_var_GCJ=no
22545 ;;
22546
22547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22548 freebsd*)
22549 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22550 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22551 hardcode_direct_GCJ=yes
22552 hardcode_shlibpath_var_GCJ=no
22553 ;;
22554
22555 hpux9* | hpux10* | hpux11*)
22556 if test "$GCC" = yes; then
22557 case $host_os in
22558 hpux9*)
22559 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'
22560 ;;
22561 *)
22562 if test "$host_cpu" = ia64; then
22563 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564 else
22565 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22566 fi
22567 ;;
22568 esac
22569 else
22570 case $host_os in
22571 hpux9*)
22572 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'
22573 ;;
22574 *)
22575 if test "$host_cpu" = ia64; then
22576 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22577 else
22578 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22579 fi
22580 ;;
22581 esac
22582 fi
22583 if test "$host_cpu" = ia64; then
22584 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22585 hardcode_direct_GCJ=no
22586 hardcode_shlibpath_var_GCJ=no
22587 else
22588 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22589 hardcode_libdir_separator_GCJ=:
22590 hardcode_direct_GCJ=yes
22591 fi
22592 # hardcode_minus_L: Not really in the search PATH,
22593 # but as the default location of the library.
22594 hardcode_minus_L_GCJ=yes
22595 export_dynamic_flag_spec_GCJ='${wl}-E'
22596 ;;
22597
22598 irix5* | irix6* | nonstopux*)
22599 if test "$GCC" = yes; then
22600 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'
22601 else
22602 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'
22603 fi
22604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22605 hardcode_libdir_separator_GCJ=:
22606 link_all_deplibs_GCJ=yes
22607 ;;
22608
22609 netbsd*)
22610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22611 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22612 else
22613 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22614 fi
22615 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22616 hardcode_direct_GCJ=yes
22617 hardcode_shlibpath_var_GCJ=no
22618 ;;
22619
22620 newsos6)
22621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22622 hardcode_direct_GCJ=yes
22623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22624 hardcode_libdir_separator_GCJ=:
22625 hardcode_shlibpath_var_GCJ=no
22626 ;;
22627
22628 openbsd*)
22629 hardcode_direct_GCJ=yes
22630 hardcode_shlibpath_var_GCJ=no
22631
22632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22633 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
22634 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22635 export_dynamic_flag_spec_GCJ='${wl}-E'
22636 else
22637 case $host_os in
22638 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22639 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22640 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22641 ;;
22642 *)
22643 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
22644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22645 ;;
22646 esac
22647 fi
22648 ;;
22649
22650 os2*)
22651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22652 hardcode_minus_L_GCJ=yes
22653 allow_undefined_flag_GCJ=unsupported
22654 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'
22655 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22656 ;;
22657
22658 osf3*)
22659 if test "$GCC" = yes; then
22660 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22661 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'
22662 else
22663 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22664 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'
22665 fi
22666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22667 hardcode_libdir_separator_GCJ=:
22668 ;;
22669
22670 osf4* | osf5*) # as osf3* with the addition of -msym flag
22671 if test "$GCC" = yes; then
22672 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22673 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'
22674 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22675 else
22676 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22677 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'
22678 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22679 $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'
22680
22681 # Both c and cxx compiler support -rpath directly
22682 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22683 fi
22684 hardcode_libdir_separator_GCJ=:
22685 ;;
22686
22687 sco3.2v5*)
22688 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22689 hardcode_shlibpath_var_GCJ=no
22690 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22691 runpath_var=LD_RUN_PATH
22692 hardcode_runpath_var=yes
22693 ;;
22694
22695 solaris*)
22696 no_undefined_flag_GCJ=' -z text'
22697 if test "$GCC" = yes; then
22698 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22699 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22700 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22701 else
22702 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22703 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22705 fi
22706 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22707 hardcode_shlibpath_var_GCJ=no
22708 case $host_os in
22709 solaris2.[0-5] | solaris2.[0-5].*) ;;
22710 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22711 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22712 esac
22713 link_all_deplibs_GCJ=yes
22714 ;;
22715
22716 sunos4*)
22717 if test "x$host_vendor" = xsequent; then
22718 # Use $CC to link under sequent, because it throws in some extra .o
22719 # files that make .init and .fini sections work.
22720 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22721 else
22722 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22723 fi
22724 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22725 hardcode_direct_GCJ=yes
22726 hardcode_minus_L_GCJ=yes
22727 hardcode_shlibpath_var_GCJ=no
22728 ;;
22729
22730 sysv4)
22731 if test "x$host_vendor" = xsni; then
22732 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
22733 hardcode_direct_GCJ=yes # is this really true???
22734 else
22735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22736 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22737 fi
22738 runpath_var='LD_RUN_PATH'
22739 hardcode_shlibpath_var_GCJ=no
22740 ;;
22741
22742 sysv4.3*)
22743 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_shlibpath_var_GCJ=no
22745 export_dynamic_flag_spec_GCJ='-Bexport'
22746 ;;
22747
22748 sysv4*MP*)
22749 if test -d /usr/nec; then
22750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22751 hardcode_shlibpath_var_GCJ=no
22752 runpath_var=LD_RUN_PATH
22753 hardcode_runpath_var=yes
22754 ld_shlibs_GCJ=yes
22755 fi
22756 ;;
22757
22758 sysv4.2uw2*)
22759 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22760 hardcode_direct_GCJ=yes
22761 hardcode_minus_L_GCJ=no
22762 hardcode_shlibpath_var_GCJ=no
22763 hardcode_runpath_var=yes
22764 runpath_var=LD_RUN_PATH
22765 ;;
22766
22767 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22768 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22769 if test "$GCC" = yes; then
22770 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22771 else
22772 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22773 fi
22774 runpath_var='LD_RUN_PATH'
22775 hardcode_shlibpath_var_GCJ=no
22776 ;;
22777
22778 sysv5*)
22779 no_undefined_flag_GCJ=' -z text'
22780 # $CC -shared without GNU ld will not create a library from C++
22781 # object files and a static libstdc++, better avoid it by now
22782 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22783 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22785 hardcode_libdir_flag_spec_GCJ=
22786 hardcode_shlibpath_var_GCJ=no
22787 runpath_var='LD_RUN_PATH'
22788 ;;
22789
22790 uts4*)
22791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22793 hardcode_shlibpath_var_GCJ=no
22794 ;;
22795
22796 *)
22797 ld_shlibs_GCJ=no
22798 ;;
22799 esac
22800 fi
22801
22802echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22803echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22804test "$ld_shlibs_GCJ" = no && can_build_shared=no
22805
22806variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22807if test "$GCC" = yes; then
22808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22809fi
22810
22811#
22812# Do we need to explicitly link libc?
22813#
22814archive_cmds_need_lc_GCJ=yes
22815if test "$enable_shared" = yes && test "$GCC" = yes; then
22816 case $archive_cmds_GCJ in
22817 *'~'*)
22818 # FIXME: we may have to deal with multi-command sequences.
22819 ;;
22820 '$CC '*)
22821 # Test whether the compiler implicitly links with -lc since on some
22822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22823 # to ld, don't add -lc before -lgcc.
22824 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22825echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22826 $rm conftest*
22827 echo 'static int dummy;' > conftest.$ac_ext
22828
22829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22830 (eval $ac_compile) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } 2>conftest.err; then
22834 soname=conftest
22835 lib=conftest
22836 libobjs=conftest.$ac_objext
22837 deplibs=
22838 wl=$lt_prog_compiler_wl_GCJ
22839 compiler_flags=-v
22840 linker_flags=-v
22841 verstring=
22842 output_objdir=.
22843 libname=conftest
22844 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22845 allow_undefined_flag_GCJ=
22846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22847 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22848 ac_status=$?
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }
22851 then
22852 archive_cmds_need_lc_GCJ=no
22853 else
22854 archive_cmds_need_lc_GCJ=yes
22855 fi
22856 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22857 else
22858 cat conftest.err 1>&5
22859 fi
22860 $rm conftest*
22861 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22862echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22863 ;;
22864 esac
22865fi
22866
22867echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22868echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22869hardcode_action_GCJ=
22870if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22871 test -n "$runpath_var GCJ"; then
22872
22873 # We can hardcode non-existant directories.
22874 if test "$hardcode_direct_GCJ" != no &&
22875 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22876 # have to relink, otherwise we might link with an installed library
22877 # when we should be linking with a yet-to-be-installed one
22878 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22879 test "$hardcode_minus_L_GCJ" != no; then
22880 # Linking always hardcodes the temporary library directory.
22881 hardcode_action_GCJ=relink
22882 else
22883 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22884 hardcode_action_GCJ=immediate
22885 fi
22886else
22887 # We cannot hardcode anything, or else we can only hardcode existing
22888 # directories.
22889 hardcode_action_GCJ=unsupported
22890fi
22891echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22892echo "${ECHO_T}$hardcode_action_GCJ" >&6
22893
22894if test "$hardcode_action_GCJ" = relink; then
22895 # Fast installation is not supported
22896 enable_fast_install=no
22897elif test "$shlibpath_overrides_runpath" = yes ||
22898 test "$enable_shared" = no; then
22899 # Fast installation is not necessary
22900 enable_fast_install=needless
22901fi
22902
22903striplib=
22904old_striplib=
22905echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22906echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22907if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22909 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22910 echo "$as_me:$LINENO: result: yes" >&5
22911echo "${ECHO_T}yes" >&6
22912else
22913 echo "$as_me:$LINENO: result: no" >&5
22914echo "${ECHO_T}no" >&6
22915fi
22916
22917echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22918echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22919library_names_spec=
22920libname_spec='lib$name'
22921soname_spec=
22922postinstall_cmds=
22923postuninstall_cmds=
22924finish_cmds=
22925finish_eval=
22926shlibpath_var=
22927shlibpath_overrides_runpath=unknown
22928version_type=none
22929dynamic_linker="$host_os ld.so"
22930sys_lib_dlsearch_path_spec="/lib /usr/lib"
22931sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22932need_lib_prefix=unknown
22933hardcode_into_libs=no
22934
22935# when you set need_version to no, make sure it does not cause -set_version
22936# flags to be left without arguments
22937need_version=unknown
22938
22939case $host_os in
22940aix3*)
22941 version_type=linux
22942 library_names_spec='${libname}${release}.so$versuffix $libname.a'
22943 shlibpath_var=LIBPATH
22944
22945 # AIX 3 has no versioning support, so we append a major version to the name.
22946 soname_spec='${libname}${release}.so$major'
22947 ;;
22948
22949aix4* | aix5*)
22950 version_type=linux
22951 if test "$host_cpu" = ia64; then
22952 # AIX 5 supports IA64
22953 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
22954 shlibpath_var=LD_LIBRARY_PATH
22955 else
22956 # With GCC up to 2.95.x, collect2 would create an import file
22957 # for dependence libraries. The import file would start with
22958 # the line `#! .'. This would cause the generated library to
22959 # depend on `.', always an invalid library. This was fixed in
22960 # development snapshots of GCC prior to 3.0.
22961 case $host_os in
22962 aix4 | aix4.[01] | aix4.[01].*)
22963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22964 echo ' yes '
22965 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22966 :
22967 else
22968 can_build_shared=no
22969 fi
22970 ;;
22971 esac
22972 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22973 # soname into executable. Probably we can add versioning support to
22974 # collect2, so additional links can be useful in future.
22975 if test "$aix_use_runtimelinking" = yes; then
22976 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22977 # instead of lib<name>.a to let people know that these are not
22978 # typical AIX shared libraries.
22979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22980 else
22981 # We preserve .a as extension for shared libraries through AIX4.2
22982 # and later when we are not doing run time linking.
22983 library_names_spec='${libname}${release}.a $libname.a'
22984 soname_spec='${libname}${release}.so$major'
22985 fi
22986 shlibpath_var=LIBPATH
22987 fi
22988 ;;
22989
22990amigaos*)
22991 library_names_spec='$libname.ixlibrary $libname.a'
22992 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22993 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'
22994 ;;
22995
22996beos*)
22997 library_names_spec='${libname}.so'
22998 dynamic_linker="$host_os ld.so"
22999 shlibpath_var=LIBRARY_PATH
23000 ;;
23001
23002bsdi4*)
23003 version_type=linux
23004 need_version=no
23005 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23006 soname_spec='${libname}${release}.so$major'
23007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23008 shlibpath_var=LD_LIBRARY_PATH
23009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23011 # the default ld.so.conf also contains /usr/contrib/lib and
23012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23013 # libtool to hard-code these into programs
23014 ;;
23015
23016cygwin* | mingw* | pw32*)
23017 version_type=windows
23018 need_version=no
23019 need_lib_prefix=no
23020 case $GCC,$host_os in
23021 yes,cygwin*)
23022 library_names_spec='$libname.dll.a'
23023 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
23024 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
23025 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
23026 dldir=$destdir/`dirname \$dlpath`~
23027 test -d \$dldir || mkdir -p \$dldir~
23028 $install_prog .libs/$dlname \$dldir/$dlname'
23029 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
23030 dlpath=$dir/\$dldll~
23031 $rm \$dlpath'
23032 ;;
23033 yes,mingw*)
23034 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
23035 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
23036 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
23037 # It is most probably a Windows format PATH printed by
23038 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23039 # path with ; separators, and with drive letters. We can handle the
23040 # drive letters (cygwin fileutils understands them), so leave them,
23041 # especially as we might pass files found there to a mingw objdump,
23042 # which wouldn't understand a cygwinified path. Ahh.
23043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
23044 else
23045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
23046 fi
23047 ;;
23048 yes,pw32*)
23049 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
23050 ;;
23051 *)
23052 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
23053 ;;
23054 esac
23055 dynamic_linker='Win32 ld.exe'
23056 # FIXME: first we should search . and the directory the executable is in
23057 shlibpath_var=PATH
23058 ;;
23059
23060darwin* | rhapsody*)
23061 dynamic_linker="$host_os dyld"
23062 version_type=darwin
23063 need_lib_prefix=no
23064 need_version=no
23065 # FIXME: Relying on posixy $() will cause problems for
23066 # cross-compilation, but unfortunately the echo tests do not
23067 # yet detect zsh echo's removal of \ escapes.
23068 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
23069 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
23070 shlibpath_overrides_runpath=yes
23071 shlibpath_var=DYLD_LIBRARY_PATH
23072 ;;
23073
23074dgux*)
23075 version_type=linux
23076 need_lib_prefix=no
23077 need_version=no
23078 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23079 soname_spec='${libname}${release}.so$major'
23080 shlibpath_var=LD_LIBRARY_PATH
23081 ;;
23082
23083freebsd1*)
23084 dynamic_linker=no
23085 ;;
23086
23087freebsd*)
23088 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23089 version_type=freebsd-$objformat
23090 case $version_type in
23091 freebsd-elf*)
23092 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
23093 need_version=no
23094 need_lib_prefix=no
23095 ;;
23096 freebsd-*)
23097 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
23098 need_version=yes
23099 ;;
23100 esac
23101 shlibpath_var=LD_LIBRARY_PATH
23102 case $host_os in
23103 freebsd2*)
23104 shlibpath_overrides_runpath=yes
23105 ;;
23106 freebsd3.01* | freebsdelf3.01*)
23107 shlibpath_overrides_runpath=yes
23108 hardcode_into_libs=yes
23109 ;;
23110 *) # from 3.2 on
23111 shlibpath_overrides_runpath=no
23112 hardcode_into_libs=yes
23113 ;;
23114 esac
23115 ;;
23116
23117gnu*)
23118 version_type=linux
23119 need_lib_prefix=no
23120 need_version=no
23121 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
23122 soname_spec='${libname}${release}.so$major'
23123 shlibpath_var=LD_LIBRARY_PATH
23124 hardcode_into_libs=yes
23125 ;;
23126
23127hpux9* | hpux10* | hpux11*)
23128 # Give a soname corresponding to the major version so that dld.sl refuses to
23129 # link against other versions.
23130 version_type=sunos
23131 need_lib_prefix=no
23132 need_version=no
23133 if test "$host_cpu" = ia64; then
23134 hardcode_into_libs=yes
23135 dynamic_linker="$host_os dld.so"
23136 shlibpath_var=LD_LIBRARY_PATH
23137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23138 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23139 soname_spec='${libname}${release}.so$major'
23140 if test "X$HPUX_IA64_MODE" = X32; then
23141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23142 else
23143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23144 fi
23145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23146 else
23147 dynamic_linker="$host_os dld.sl"
23148 shlibpath_var=SHLIB_PATH
23149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23150 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
23151 soname_spec='${libname}${release}.sl$major'
23152 fi
23153 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23154 postinstall_cmds='chmod 555 $lib'
23155 ;;
23156
23157irix5* | irix6* | nonstopux*)
23158 case $host_os in
23159 nonstopux*) version_type=nonstopux ;;
23160 *) version_type=irix ;;
23161 esac
23162 need_lib_prefix=no
23163 need_version=no
23164 soname_spec='${libname}${release}.so$major'
23165 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
23166 case $host_os in
23167 irix5* | nonstopux*)
23168 libsuff= shlibsuff=
23169 ;;
23170 *)
23171 case $LD in # libtool.m4 will add one of these switches to LD
23172 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
23173 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
23174 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
23175 *) libsuff= shlibsuff= libmagic=never-match;;
23176 esac
23177 ;;
23178 esac
23179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23180 shlibpath_overrides_runpath=no
23181 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23182 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23183 ;;
23184
23185# No shared lib support for Linux oldld, aout, or coff.
23186linux*oldld* | linux*aout* | linux*coff*)
23187 dynamic_linker=no
23188 ;;
23189
23190# This must be Linux ELF.
23191linux*)
23192 version_type=linux
23193 need_lib_prefix=no
23194 need_version=no
23195 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23196 soname_spec='${libname}${release}.so$major'
23197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23198 libsuff=
23199 if test "x$LINUX_64_MODE" = x64; then
23200 # Some platforms are per default 64-bit, so there's no /lib64
23201 if test -d /lib64; then
23202 libsuff=64
23203 fi
23204 fi
23205 shlibpath_var=LD_LIBRARY_PATH
23206 shlibpath_overrides_runpath=no
23207 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
23208 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
23209 # This implies no fast_install, which is unacceptable.
23210 # Some rework will be needed to allow for fast_install
23211 # before this can be enabled.
23212 hardcode_into_libs=yes
23213
23214 # We used to test for /lib/ld.so.1 and disable shared libraries on
23215 # powerpc, because MkLinux only supported shared libraries with the
23216 # GNU dynamic linker. Since this was broken with cross compilers,
23217 # most powerpc-linux boxes support dynamic linking these days and
23218 # people can always --disable-shared, the test was removed, and we
23219 # assume the GNU/Linux dynamic linker is in use.
23220 dynamic_linker='GNU/Linux ld.so'
23221 ;;
23222
23223netbsd*)
23224 version_type=sunos
23225 need_lib_prefix=no
23226 need_version=no
23227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23228 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23230 dynamic_linker='NetBSD (a.out) ld.so'
23231 else
23232 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
23233 soname_spec='${libname}${release}.so$major'
23234 dynamic_linker='NetBSD ld.elf_so'
23235 fi
23236 shlibpath_var=LD_LIBRARY_PATH
23237 shlibpath_overrides_runpath=yes
23238 hardcode_into_libs=yes
23239 ;;
23240
23241newsos6)
23242 version_type=linux
23243 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23244 shlibpath_var=LD_LIBRARY_PATH
23245 shlibpath_overrides_runpath=yes
23246 ;;
23247
23248nto-qnx)
23249 version_type=linux
23250 need_lib_prefix=no
23251 need_version=no
23252 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23253 soname_spec='${libname}${release}.so$major'
23254 shlibpath_var=LD_LIBRARY_PATH
23255 shlibpath_overrides_runpath=yes
23256 ;;
23257
23258openbsd*)
23259 version_type=sunos
23260 need_lib_prefix=no
23261 need_version=no
23262 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23264 shlibpath_var=LD_LIBRARY_PATH
23265 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23266 case $host_os in
23267 openbsd2.[89] | openbsd2.[89].*)
23268 shlibpath_overrides_runpath=no
23269 ;;
23270 *)
23271 shlibpath_overrides_runpath=yes
23272 ;;
23273 esac
23274 else
23275 shlibpath_overrides_runpath=yes
23276 fi
23277 ;;
23278
23279os2*)
23280 libname_spec='$name'
23281 need_lib_prefix=no
23282 library_names_spec='$libname.dll $libname.a'
23283 dynamic_linker='OS/2 ld.exe'
23284 shlibpath_var=LIBPATH
23285 ;;
23286
23287osf3* | osf4* | osf5*)
23288 version_type=osf
23289 need_lib_prefix=no
23290 need_version=no
23291 soname_spec='${libname}${release}.so'
23292 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
23293 shlibpath_var=LD_LIBRARY_PATH
23294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23296 ;;
23297
23298sco3.2v5*)
23299 version_type=osf
23300 soname_spec='${libname}${release}.so$major'
23301 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23302 shlibpath_var=LD_LIBRARY_PATH
23303 ;;
23304
23305solaris*)
23306 version_type=linux
23307 need_lib_prefix=no
23308 need_version=no
23309 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23310 soname_spec='${libname}${release}.so$major'
23311 shlibpath_var=LD_LIBRARY_PATH
23312 shlibpath_overrides_runpath=yes
23313 hardcode_into_libs=yes
23314 # ldd complains unless libraries are executable
23315 postinstall_cmds='chmod +x $lib'
23316 ;;
23317
23318sunos4*)
23319 version_type=sunos
23320 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 shlibpath_overrides_runpath=yes
23324 if test "$with_gnu_ld" = yes; then
23325 need_lib_prefix=no
23326 fi
23327 need_version=yes
23328 ;;
23329
23330sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23331 version_type=linux
23332 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23333 soname_spec='${libname}${release}.so$major'
23334 shlibpath_var=LD_LIBRARY_PATH
23335 case $host_vendor in
23336 sni)
23337 shlibpath_overrides_runpath=no
23338 ;;
23339 motorola)
23340 need_lib_prefix=no
23341 need_version=no
23342 shlibpath_overrides_runpath=no
23343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23344 ;;
23345 esac
23346 ;;
23347
23348sysv4*MP*)
23349 if test -d /usr/nec ;then
23350 version_type=linux
23351 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
23352 soname_spec='$libname.so.$major'
23353 shlibpath_var=LD_LIBRARY_PATH
23354 fi
23355 ;;
23356
23357uts4*)
23358 version_type=linux
23359 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23360 soname_spec='${libname}${release}.so$major'
23361 shlibpath_var=LD_LIBRARY_PATH
23362 ;;
23363
23364*)
23365 dynamic_linker=no
23366 ;;
23367esac
23368echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23369echo "${ECHO_T}$dynamic_linker" >&6
23370test "$dynamic_linker" = no && can_build_shared=no
23371
23372if test "x$enable_dlopen" != xyes; then
23373 enable_dlopen=unknown
23374 enable_dlopen_self=unknown
23375 enable_dlopen_self_static=unknown
23376else
23377 lt_cv_dlopen=no
23378 lt_cv_dlopen_libs=
23379
23380 case $host_os in
23381 beos*)
23382 lt_cv_dlopen="load_add_on"
23383 lt_cv_dlopen_libs=
23384 lt_cv_dlopen_self=yes
23385 ;;
23386
23387 cygwin* | mingw* | pw32*)
23388 lt_cv_dlopen="LoadLibrary"
23389 lt_cv_dlopen_libs=
23390 ;;
23391
23392 *)
23393 echo "$as_me:$LINENO: checking for shl_load" >&5
23394echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23395if test "${ac_cv_func_shl_load+set}" = set; then
23396 echo $ECHO_N "(cached) $ECHO_C" >&6
23397else
23398 cat >conftest.$ac_ext <<_ACEOF
23399#line $LINENO "configure"
23400#include "confdefs.h"
23401/* System header to define __stub macros and hopefully few prototypes,
23402 which can conflict with char shl_load (); below. */
23403#include <assert.h>
23404/* Override any gcc2 internal prototype to avoid an error. */
23405#ifdef __cplusplus
23406extern "C"
23407#endif
23408/* We use char because int might match the return type of a gcc2
23409 builtin and then its argument prototype would still apply. */
23410char shl_load ();
23411char (*f) ();
23412
23413#ifdef F77_DUMMY_MAIN
23414# ifdef __cplusplus
23415 extern "C"
23416# endif
23417 int F77_DUMMY_MAIN() { return 1; }
23418#endif
23419int
23420main ()
23421{
23422/* The GNU C library defines this for functions which it implements
23423 to always fail with ENOSYS. Some functions are actually named
23424 something starting with __ and the normal name is an alias. */
23425#if defined (__stub_shl_load) || defined (__stub___shl_load)
23426choke me
23427#else
23428f = shl_load;
23429#endif
23430
23431 ;
23432 return 0;
23433}
23434_ACEOF
23435rm -f conftest.$ac_objext conftest$ac_exeext
23436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23437 (eval $ac_link) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
23441 { ac_try='test -s conftest$ac_exeext'
23442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443 (eval $ac_try) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); }; }; then
23447 ac_cv_func_shl_load=yes
23448else
23449 echo "$as_me: failed program was:" >&5
23450cat conftest.$ac_ext >&5
23451ac_cv_func_shl_load=no
23452fi
23453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23454fi
23455echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23456echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23457if test $ac_cv_func_shl_load = yes; then
23458 lt_cv_dlopen="shl_load"
23459else
23460 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23461echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23462if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23464else
23465 ac_check_lib_save_LIBS=$LIBS
23466LIBS="-ldld $LIBS"
23467cat >conftest.$ac_ext <<_ACEOF
23468#line $LINENO "configure"
23469#include "confdefs.h"
23470
23471/* Override any gcc2 internal prototype to avoid an error. */
23472#ifdef __cplusplus
23473extern "C"
23474#endif
23475/* We use char because int might match the return type of a gcc2
23476 builtin and then its argument prototype would still apply. */
23477char shl_load ();
23478#ifdef F77_DUMMY_MAIN
23479# ifdef __cplusplus
23480 extern "C"
23481# endif
23482 int F77_DUMMY_MAIN() { return 1; }
23483#endif
23484int
23485main ()
23486{
23487shl_load ();
23488 ;
23489 return 0;
23490}
23491_ACEOF
23492rm -f conftest.$ac_objext conftest$ac_exeext
23493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23494 (eval $ac_link) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
23498 { ac_try='test -s conftest$ac_exeext'
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
23504 ac_cv_lib_dld_shl_load=yes
23505else
23506 echo "$as_me: failed program was:" >&5
23507cat conftest.$ac_ext >&5
23508ac_cv_lib_dld_shl_load=no
23509fi
23510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23511LIBS=$ac_check_lib_save_LIBS
23512fi
23513echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23514echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23515if test $ac_cv_lib_dld_shl_load = yes; then
23516 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23517else
23518 echo "$as_me:$LINENO: checking for dlopen" >&5
23519echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23520if test "${ac_cv_func_dlopen+set}" = set; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23522else
23523 cat >conftest.$ac_ext <<_ACEOF
23524#line $LINENO "configure"
23525#include "confdefs.h"
23526/* System header to define __stub macros and hopefully few prototypes,
23527 which can conflict with char dlopen (); below. */
23528#include <assert.h>
23529/* Override any gcc2 internal prototype to avoid an error. */
23530#ifdef __cplusplus
23531extern "C"
23532#endif
23533/* We use char because int might match the return type of a gcc2
23534 builtin and then its argument prototype would still apply. */
23535char dlopen ();
23536char (*f) ();
23537
23538#ifdef F77_DUMMY_MAIN
23539# ifdef __cplusplus
23540 extern "C"
23541# endif
23542 int F77_DUMMY_MAIN() { return 1; }
23543#endif
23544int
23545main ()
23546{
23547/* The GNU C library defines this for functions which it implements
23548 to always fail with ENOSYS. Some functions are actually named
23549 something starting with __ and the normal name is an alias. */
23550#if defined (__stub_dlopen) || defined (__stub___dlopen)
23551choke me
23552#else
23553f = dlopen;
23554#endif
23555
23556 ;
23557 return 0;
23558}
23559_ACEOF
23560rm -f conftest.$ac_objext conftest$ac_exeext
23561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_func_dlopen=yes
23573else
23574 echo "$as_me: failed program was:" >&5
23575cat conftest.$ac_ext >&5
23576ac_cv_func_dlopen=no
23577fi
23578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23579fi
23580echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23581echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23582if test $ac_cv_func_dlopen = yes; then
23583 lt_cv_dlopen="dlopen"
23584else
23585 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23588 echo $ECHO_N "(cached) $ECHO_C" >&6
23589else
23590 ac_check_lib_save_LIBS=$LIBS
23591LIBS="-ldl $LIBS"
23592cat >conftest.$ac_ext <<_ACEOF
23593#line $LINENO "configure"
23594#include "confdefs.h"
23595
23596/* Override any gcc2 internal prototype to avoid an error. */
23597#ifdef __cplusplus
23598extern "C"
23599#endif
23600/* We use char because int might match the return type of a gcc2
23601 builtin and then its argument prototype would still apply. */
23602char dlopen ();
23603#ifdef F77_DUMMY_MAIN
23604# ifdef __cplusplus
23605 extern "C"
23606# endif
23607 int F77_DUMMY_MAIN() { return 1; }
23608#endif
23609int
23610main ()
23611{
23612dlopen ();
23613 ;
23614 return 0;
23615}
23616_ACEOF
23617rm -f conftest.$ac_objext conftest$ac_exeext
23618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23619 (eval $ac_link) 2>&5
23620 ac_status=$?
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); } &&
23623 { ac_try='test -s conftest$ac_exeext'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 ac_cv_lib_dl_dlopen=yes
23630else
23631 echo "$as_me: failed program was:" >&5
23632cat conftest.$ac_ext >&5
23633ac_cv_lib_dl_dlopen=no
23634fi
23635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23636LIBS=$ac_check_lib_save_LIBS
23637fi
23638echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23639echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23640if test $ac_cv_lib_dl_dlopen = yes; then
23641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23642else
23643 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23644echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23645if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647else
23648 ac_check_lib_save_LIBS=$LIBS
23649LIBS="-lsvld $LIBS"
23650cat >conftest.$ac_ext <<_ACEOF
23651#line $LINENO "configure"
23652#include "confdefs.h"
23653
23654/* Override any gcc2 internal prototype to avoid an error. */
23655#ifdef __cplusplus
23656extern "C"
23657#endif
23658/* We use char because int might match the return type of a gcc2
23659 builtin and then its argument prototype would still apply. */
23660char dlopen ();
23661#ifdef F77_DUMMY_MAIN
23662# ifdef __cplusplus
23663 extern "C"
23664# endif
23665 int F77_DUMMY_MAIN() { return 1; }
23666#endif
23667int
23668main ()
23669{
23670dlopen ();
23671 ;
23672 return 0;
23673}
23674_ACEOF
23675rm -f conftest.$ac_objext conftest$ac_exeext
23676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23677 (eval $ac_link) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
23681 { ac_try='test -s conftest$ac_exeext'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23687 ac_cv_lib_svld_dlopen=yes
23688else
23689 echo "$as_me: failed program was:" >&5
23690cat conftest.$ac_ext >&5
23691ac_cv_lib_svld_dlopen=no
23692fi
23693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23694LIBS=$ac_check_lib_save_LIBS
23695fi
23696echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23697echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23698if test $ac_cv_lib_svld_dlopen = yes; then
23699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23700else
23701 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23702echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23703if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23704 echo $ECHO_N "(cached) $ECHO_C" >&6
23705else
23706 ac_check_lib_save_LIBS=$LIBS
23707LIBS="-ldld $LIBS"
23708cat >conftest.$ac_ext <<_ACEOF
23709#line $LINENO "configure"
23710#include "confdefs.h"
23711
23712/* Override any gcc2 internal prototype to avoid an error. */
23713#ifdef __cplusplus
23714extern "C"
23715#endif
23716/* We use char because int might match the return type of a gcc2
23717 builtin and then its argument prototype would still apply. */
23718char dld_link ();
23719#ifdef F77_DUMMY_MAIN
23720# ifdef __cplusplus
23721 extern "C"
23722# endif
23723 int F77_DUMMY_MAIN() { return 1; }
23724#endif
23725int
23726main ()
23727{
23728dld_link ();
23729 ;
23730 return 0;
23731}
23732_ACEOF
23733rm -f conftest.$ac_objext conftest$ac_exeext
23734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735 (eval $ac_link) 2>&5
23736 ac_status=$?
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } &&
23739 { ac_try='test -s conftest$ac_exeext'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 ac_cv_lib_dld_dld_link=yes
23746else
23747 echo "$as_me: failed program was:" >&5
23748cat conftest.$ac_ext >&5
23749ac_cv_lib_dld_dld_link=no
23750fi
23751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23752LIBS=$ac_check_lib_save_LIBS
23753fi
23754echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23755echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23756if test $ac_cv_lib_dld_dld_link = yes; then
23757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23758fi
23759
23760
23761fi
23762
23763
23764fi
23765
23766
23767fi
23768
23769
23770fi
23771
23772
23773fi
23774
23775 ;;
23776 esac
23777
23778 if test "x$lt_cv_dlopen" != xno; then
23779 enable_dlopen=yes
23780 else
23781 enable_dlopen=no
23782 fi
23783
23784 case $lt_cv_dlopen in
23785 dlopen)
23786 save_CPPFLAGS="$CPPFLAGS"
23787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23788
23789 save_LDFLAGS="$LDFLAGS"
23790 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23791
23792 save_LIBS="$LIBS"
23793 LIBS="$lt_cv_dlopen_libs $LIBS"
23794
23795 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23796echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23797if test "${lt_cv_dlopen_self+set}" = set; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23799else
23800 if test "$cross_compiling" = yes; then :
23801 lt_cv_dlopen_self=cross
23802else
23803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23804 lt_status=$lt_dlunknown
23805 cat > conftest.$ac_ext <<EOF
23806#line 23806 "configure"
23807#include "confdefs.h"
23808
23809#if HAVE_DLFCN_H
23810#include <dlfcn.h>
23811#endif
23812
23813#include <stdio.h>
23814
23815#ifdef RTLD_GLOBAL
23816# define LT_DLGLOBAL RTLD_GLOBAL
23817#else
23818# ifdef DL_GLOBAL
23819# define LT_DLGLOBAL DL_GLOBAL
23820# else
23821# define LT_DLGLOBAL 0
23822# endif
23823#endif
23824
23825/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23826 find out it does not work in some platform. */
23827#ifndef LT_DLLAZY_OR_NOW
23828# ifdef RTLD_LAZY
23829# define LT_DLLAZY_OR_NOW RTLD_LAZY
23830# else
23831# ifdef DL_LAZY
23832# define LT_DLLAZY_OR_NOW DL_LAZY
23833# else
23834# ifdef RTLD_NOW
23835# define LT_DLLAZY_OR_NOW RTLD_NOW
23836# else
23837# ifdef DL_NOW
23838# define LT_DLLAZY_OR_NOW DL_NOW
23839# else
23840# define LT_DLLAZY_OR_NOW 0
23841# endif
23842# endif
23843# endif
23844# endif
23845#endif
23846
23847#ifdef __cplusplus
23848extern "C" void exit (int);
23849#endif
23850
23851void fnord() { int i=42;}
23852int main ()
23853{
23854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23855 int status = $lt_dlunknown;
23856
23857 if (self)
23858 {
23859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23861 /* dlclose (self); */
23862 }
23863
23864 exit (status);
23865}
23866EOF
23867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23868 (eval $ac_link) 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23872 (./conftest; exit; ) 2>/dev/null
23873 lt_status=$?
23874 case x$lt_status in
23875 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23876 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23877 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23878 esac
23879 else :
23880 # compilation failed
23881 lt_cv_dlopen_self=no
23882 fi
23883fi
23884rm -fr conftest*
23885
23886
23887fi
23888echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23889echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23890
23891 if test "x$lt_cv_dlopen_self" = xyes; then
23892 LDFLAGS="$LDFLAGS $link_static_flag"
23893 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23894echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23895if test "${lt_cv_dlopen_self_static+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23897else
23898 if test "$cross_compiling" = yes; then :
23899 lt_cv_dlopen_self_static=cross
23900else
23901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23902 lt_status=$lt_dlunknown
23903 cat > conftest.$ac_ext <<EOF
23904#line 23904 "configure"
23905#include "confdefs.h"
23906
23907#if HAVE_DLFCN_H
23908#include <dlfcn.h>
23909#endif
23910
23911#include <stdio.h>
23912
23913#ifdef RTLD_GLOBAL
23914# define LT_DLGLOBAL RTLD_GLOBAL
23915#else
23916# ifdef DL_GLOBAL
23917# define LT_DLGLOBAL DL_GLOBAL
23918# else
23919# define LT_DLGLOBAL 0
23920# endif
23921#endif
23922
23923/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23924 find out it does not work in some platform. */
23925#ifndef LT_DLLAZY_OR_NOW
23926# ifdef RTLD_LAZY
23927# define LT_DLLAZY_OR_NOW RTLD_LAZY
23928# else
23929# ifdef DL_LAZY
23930# define LT_DLLAZY_OR_NOW DL_LAZY
23931# else
23932# ifdef RTLD_NOW
23933# define LT_DLLAZY_OR_NOW RTLD_NOW
23934# else
23935# ifdef DL_NOW
23936# define LT_DLLAZY_OR_NOW DL_NOW
23937# else
23938# define LT_DLLAZY_OR_NOW 0
23939# endif
23940# endif
23941# endif
23942# endif
23943#endif
23944
23945#ifdef __cplusplus
23946extern "C" void exit (int);
23947#endif
23948
23949void fnord() { int i=42;}
23950int main ()
23951{
23952 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23953 int status = $lt_dlunknown;
23954
23955 if (self)
23956 {
23957 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23958 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23959 /* dlclose (self); */
23960 }
23961
23962 exit (status);
23963}
23964EOF
23965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23966 (eval $ac_link) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23970 (./conftest; exit; ) 2>/dev/null
23971 lt_status=$?
23972 case x$lt_status in
23973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23975 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23976 esac
23977 else :
23978 # compilation failed
23979 lt_cv_dlopen_self_static=no
23980 fi
23981fi
23982rm -fr conftest*
23983
23984
23985fi
23986echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23987echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23988 fi
23989
23990 CPPFLAGS="$save_CPPFLAGS"
23991 LDFLAGS="$save_LDFLAGS"
23992 LIBS="$save_LIBS"
23993 ;;
23994 esac
23995
23996 case $lt_cv_dlopen_self in
23997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23998 *) enable_dlopen_self=unknown ;;
23999 esac
24000
24001 case $lt_cv_dlopen_self_static in
24002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24003 *) enable_dlopen_self_static=unknown ;;
24004 esac
24005fi
24006
24007
24008# The else clause should only fire when bootstrapping the
24009# libtool distribution, otherwise you forgot to ship ltmain.sh
24010# with your package, and you will get complaints that there are
24011# no rules to generate ltmain.sh.
24012if test -f "$ltmain"; then
24013 # Now quote all the things that may contain metacharacters while being
24014 # careful not to overquote the AC_SUBSTed values. We take copies of the
24015 # variables and quote the copies for generation of the libtool script.
24016 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
24017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24019 deplibs_check_method reload_flag reload_cmds need_locks \
24020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24021 lt_cv_sys_global_symbol_to_c_name_address \
24022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24023 old_postinstall_cmds old_postuninstall_cmds \
24024 compiler_GCJ \
24025 CC_GCJ \
24026 LD_GCJ \
24027 lt_prog_compiler_wl_GCJ \
24028 lt_prog_compiler_pic_GCJ \
24029 lt_prog_compiler_static_GCJ \
24030 lt_prog_compiler_no_builtin_flag_GCJ \
24031 export_dynamic_flag_spec_GCJ \
24032 thread_safe_flag_spec_GCJ \
24033 whole_archive_flag_spec_GCJ \
24034 old_archive_cmds_GCJ \
24035 old_archive_from_new_cmds_GCJ \
24036 predep_objects_GCJ \
24037 postdep_objects_GCJ \
24038 predeps_GCJ \
24039 postdeps_GCJ \
24040 compiler_lib_search_path_GCJ \
24041 archive_cmds_GCJ \
24042 archive_expsym_cmds_GCJ \
24043 postinstall_cmds_GCJ \
24044 postuninstall_cmds_GCJ \
24045 old_archive_from_expsyms_cmds_GCJ \
24046 allow_undefined_flag_GCJ \
24047 no_undefined_flag_GCJ \
24048 export_symbols_cmds_GCJ \
24049 hardcode_libdir_flag_spec_GCJ \
24050 hardcode_libdir_separator_GCJ \
24051 lt_cv_prog_compiler_c_o_GCJ \
24052 exclude_expsyms_GCJ \
24053 include_expsyms_GCJ; do
24054
24055 case $var in
24056 old_archive_cmds_GCJ | \
24057 old_archive_from_new_cmds_GCJ | \
24058 archive_cmds_GCJ | \
24059 archive_expsym_cmds_GCJ | \
24060 old_archive_from_expsyms_cmds_GCJ | \
24061 export_symbols_cmds_GCJ | \
24062 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24063 postinstall_cmds | postuninstall_cmds | \
24064 old_postinstall_cmds | old_postuninstall_cmds | \
24065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24066 # Double-quote double-evaled strings.
24067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24068 ;;
24069 *)
24070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24071 ;;
24072 esac
24073 done
24074
24075 case $lt_echo in
24076 *'\$0 --fallback-echo"')
24077 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24078 ;;
24079 esac
24080
24081cfgfile="$ofile"
24082
24083 cat <<__EOF__ >> "$cfgfile"
24084# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24085
24086# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24087
24088# Shell to use when invoking shell scripts.
24089SHELL=$lt_SHELL
24090
24091# Whether or not to build shared libraries.
24092build_libtool_libs=$enable_shared
24093
24094# Whether or not to build static libraries.
24095build_old_libs=$enable_static
24096
24097# Whether or not to add -lc for building shared libraries.
24098build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24099
24100# Whether or not to optimize for fast installation.
24101fast_install=$enable_fast_install
24102
24103# The host system.
24104host_alias=$host_alias
24105host=$host
24106
24107# An echo program that does not interpret backslashes.
24108echo=$lt_echo
24109
24110# The archiver.
24111AR=$lt_AR
24112AR_FLAGS=$lt_AR_FLAGS
24113
24114# A C compiler.
24115LTCC=$lt_LTCC
24116
24117# A language-specific compiler.
24118CC=$lt_compiler_GCJ
24119
24120# Is the compiler the GNU C compiler?
24121with_gcc=$GCC_GCJ
24122
24123# The linker used to build libraries.
24124LD=$lt_LD_GCJ
24125
24126# Whether we need hard or soft links.
24127LN_S=$lt_LN_S
24128
24129# A BSD-compatible nm program.
24130NM=$lt_NM
24131
24132# A sed program that does not truncate output.
24133SED=$lt_SED
24134
24135# A symbol stripping program
24136STRIP=$STRIP
24137
24138# Used to examine libraries when file_magic_cmd begins "file"
24139MAGIC_CMD=$MAGIC_CMD
24140
24141# Used on cygwin: DLL creation program.
24142DLLTOOL="$DLLTOOL"
24143
24144# Used on cygwin: object dumper.
24145OBJDUMP="$OBJDUMP"
24146
24147# Used on cygwin: assembler.
24148AS="$AS"
24149
24150# The name of the directory that contains temporary libtool files.
24151objdir=$objdir
24152
24153# How to create reloadable object files.
24154reload_flag=$lt_reload_flag
24155reload_cmds=$lt_reload_cmds
24156
24157# How to pass a linker flag through the compiler.
24158wl=$lt_lt_prog_compiler_wl_GCJ
24159
24160# Object file suffix (normally "o").
24161objext="$ac_objext"
24162
24163# Old archive suffix (normally "a").
24164libext="$libext"
24165
24166# Executable file suffix (normally "").
24167exeext="$exeext"
24168
24169# Additional compiler flags for building library objects.
24170pic_flag=$lt_lt_prog_compiler_pic_GCJ
24171pic_mode=$pic_mode
24172
24173# What is the maximum length of a command?
24174max_cmd_len=$lt_cv_sys_max_cmd_len
24175
24176# Does compiler simultaneously support -c and -o options?
24177compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24178
24179# Must we lock files when doing compilation ?
24180need_locks=$lt_need_locks
24181
24182# Do we need the lib prefix for modules?
24183need_lib_prefix=$need_lib_prefix
24184
24185# Do we need a version for libraries?
24186need_version=$need_version
24187
24188# Whether dlopen is supported.
24189dlopen_support=$enable_dlopen
24190
24191# Whether dlopen of programs is supported.
24192dlopen_self=$enable_dlopen_self
24193
24194# Whether dlopen of statically linked programs is supported.
24195dlopen_self_static=$enable_dlopen_self_static
24196
24197# Compiler flag to prevent dynamic linking.
24198link_static_flag=$lt_lt_prog_compiler_static_GCJ
24199
24200# Compiler flag to turn off builtin functions.
24201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24202
24203# Compiler flag to allow reflexive dlopens.
24204export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24205
24206# Compiler flag to generate shared objects directly from archives.
24207whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24208
24209# Compiler flag to generate thread-safe objects.
24210thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24211
24212# Library versioning type.
24213version_type=$version_type
24214
24215# Format of library name prefix.
24216libname_spec=$lt_libname_spec
24217
24218# List of archive names. First name is the real one, the rest are links.
24219# The last name is the one that the linker finds with -lNAME.
24220library_names_spec=$lt_library_names_spec
24221
24222# The coded name of the library, if different from the real name.
24223soname_spec=$lt_soname_spec
24224
24225# Commands used to build and install an old-style archive.
24226RANLIB=$lt_RANLIB
24227old_archive_cmds=$lt_old_archive_cmds_GCJ
24228old_postinstall_cmds=$lt_old_postinstall_cmds
24229old_postuninstall_cmds=$lt_old_postuninstall_cmds
24230
24231# Create an old-style archive from a shared archive.
24232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24233
24234# Create a temporary old-style archive to link instead of a shared archive.
24235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24236
24237# Commands used to build and install a shared archive.
24238archive_cmds=$lt_archive_cmds_GCJ
24239archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24240postinstall_cmds=$lt_postinstall_cmds
24241postuninstall_cmds=$lt_postuninstall_cmds
24242
24243# Commands to strip libraries.
24244old_striplib=$lt_old_striplib
24245striplib=$lt_striplib
24246
24247# Dependencies to place before the objects being linked to create a
24248# shared library.
24249predep_objects=$lt_predep_objects_GCJ
24250
24251# Dependencies to place after the objects being linked to create a
24252# shared library.
24253postdep_objects=$lt_postdep_objects_GCJ
24254
24255# Dependencies to place before the objects being linked to create a
24256# shared library.
24257predeps=$lt_predeps_GCJ
24258
24259# Dependencies to place after the objects being linked to create a
24260# shared library.
24261postdeps=$lt_postdeps_GCJ
24262
24263# The library search path used internally by the compiler when linking
24264# a shared library.
24265compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24266
24267# Method to check whether dependent libraries are shared objects.
24268deplibs_check_method=$lt_deplibs_check_method
24269
24270# Command to use when deplibs_check_method == file_magic.
24271file_magic_cmd=$lt_file_magic_cmd
24272
24273# Flag that allows shared libraries with undefined symbols to be built.
24274allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24275
24276# Flag that forces no undefined symbols.
24277no_undefined_flag=$lt_no_undefined_flag_GCJ
24278
24279# Commands used to finish a libtool library installation in a directory.
24280finish_cmds=$lt_finish_cmds
24281
24282# Same as above, but a single script fragment to be evaled but not shown.
24283finish_eval=$lt_finish_eval
24284
24285# Take the output of nm and produce a listing of raw symbols and C names.
24286global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24287
24288# Transform the output of nm in a proper C declaration
24289global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24290
24291# Transform the output of nm in a C name address pair
24292global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24293
24294# This is the shared library runtime path variable.
24295runpath_var=$runpath_var
24296
24297# This is the shared library path variable.
24298shlibpath_var=$shlibpath_var
24299
24300# Is shlibpath searched before the hard-coded library search path?
24301shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24302
24303# How to hardcode a shared library path into an executable.
24304hardcode_action=$hardcode_action_GCJ
24305
24306# Whether we should hardcode library paths into libraries.
24307hardcode_into_libs=$hardcode_into_libs
24308
24309# Flag to hardcode \$libdir into a binary during linking.
24310# This must work even if \$libdir does not exist.
24311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24312
24313# Whether we need a single -rpath flag with a separated argument.
24314hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24315
24316# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24317# resulting binary.
24318hardcode_direct=$hardcode_direct_GCJ
24319
24320# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24321# resulting binary.
24322hardcode_minus_L=$hardcode_minus_L_GCJ
24323
24324# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24325# the resulting binary.
24326hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24327
24328# Variables whose values should be saved in libtool wrapper scripts and
24329# restored at relink time.
24330variables_saved_for_relink="$variables_saved_for_relink"
24331
24332# Whether libtool must link a program against all its dependency libraries.
24333link_all_deplibs=$link_all_deplibs_GCJ
24334
24335# Compile-time system search path for libraries
24336sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24337
24338# Run-time system search path for libraries
24339sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24340
24341# Fix the shell variable \$srcfile for the compiler.
24342fix_srcfile_path="$fix_srcfile_path_GCJ"
24343
24344# Set to yes if exported symbols are required.
24345always_export_symbols=$always_export_symbols_GCJ
24346
24347# The commands to list exported symbols.
24348export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24349
24350# The commands to extract the exported symbol list from a shared archive.
24351extract_expsyms_cmds=$lt_extract_expsyms_cmds
24352
24353# Symbols that should not be listed in the preloaded symbols.
24354exclude_expsyms=$lt_exclude_expsyms_GCJ
24355
24356# Symbols that must always be exported.
24357include_expsyms=$lt_include_expsyms_GCJ
24358
24359# ### END LIBTOOL TAG CONFIG: $tagname
24360
24361__EOF__
24362
24363
24364else
24365 # If there is no Makefile yet, we rely on a make rule to execute
24366 # `config.status --recheck' to rerun these tests and create the
24367 # libtool script then.
24368 test -f Makefile && make "$ltmain"
24369fi
24370
24371
24372ac_ext=c
24373ac_cpp='$CPP $CPPFLAGS'
24374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24376ac_compiler_gnu=$ac_cv_c_compiler_gnu
24377
24378CC="$lt_save_CC"
24379
24380 ;;
24381
24382 RC)
24383
24384
24385
24386# Source file extension for RC test sources.
24387ac_ext=rc
24388
24389# Object file extension for compiled RC test sources.
24390objext=o
24391objext_RC=$objext
24392
24393# Code to be used in simple compile tests
24394lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
24395
24396# Code to be used in simple link tests
24397lt_simple_link_test_code="$lt_simple_compile_test_code"
24398
24399# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24400
24401# If no C compiler was specified, use CC.
24402LTCC=${LTCC-"$CC"}
24403
24404# Allow CC to be a program name with arguments.
24405set dummy $CC
24406compiler="$2"
24407
24408
24409# Allow CC to be a program name with arguments.
24410lt_save_CC="$CC"
24411CC=${RC-"windres"}
24412set dummy $CC
24413compiler="$2"
24414compiler_RC=$CC
24415lt_cv_prog_compiler_c_o_RC=yes
24416
24417# The else clause should only fire when bootstrapping the
24418# libtool distribution, otherwise you forgot to ship ltmain.sh
24419# with your package, and you will get complaints that there are
24420# no rules to generate ltmain.sh.
24421if test -f "$ltmain"; then
24422 # Now quote all the things that may contain metacharacters while being
24423 # careful not to overquote the AC_SUBSTed values. We take copies of the
24424 # variables and quote the copies for generation of the libtool script.
24425 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
24426 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24427 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24428 deplibs_check_method reload_flag reload_cmds need_locks \
24429 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24430 lt_cv_sys_global_symbol_to_c_name_address \
24431 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24432 old_postinstall_cmds old_postuninstall_cmds \
24433 compiler_RC \
24434 CC_RC \
24435 LD_RC \
24436 lt_prog_compiler_wl_RC \
24437 lt_prog_compiler_pic_RC \
24438 lt_prog_compiler_static_RC \
24439 lt_prog_compiler_no_builtin_flag_RC \
24440 export_dynamic_flag_spec_RC \
24441 thread_safe_flag_spec_RC \
24442 whole_archive_flag_spec_RC \
24443 old_archive_cmds_RC \
24444 old_archive_from_new_cmds_RC \
24445 predep_objects_RC \
24446 postdep_objects_RC \
24447 predeps_RC \
24448 postdeps_RC \
24449 compiler_lib_search_path_RC \
24450 archive_cmds_RC \
24451 archive_expsym_cmds_RC \
24452 postinstall_cmds_RC \
24453 postuninstall_cmds_RC \
24454 old_archive_from_expsyms_cmds_RC \
24455 allow_undefined_flag_RC \
24456 no_undefined_flag_RC \
24457 export_symbols_cmds_RC \
24458 hardcode_libdir_flag_spec_RC \
24459 hardcode_libdir_separator_RC \
24460 lt_cv_prog_compiler_c_o_RC \
24461 exclude_expsyms_RC \
24462 include_expsyms_RC; do
24463
24464 case $var in
24465 old_archive_cmds_RC | \
24466 old_archive_from_new_cmds_RC | \
24467 archive_cmds_RC | \
24468 archive_expsym_cmds_RC | \
24469 old_archive_from_expsyms_cmds_RC | \
24470 export_symbols_cmds_RC | \
24471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24472 postinstall_cmds | postuninstall_cmds | \
24473 old_postinstall_cmds | old_postuninstall_cmds | \
24474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24475 # Double-quote double-evaled strings.
24476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24477 ;;
24478 *)
24479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24480 ;;
24481 esac
24482 done
24483
24484 case $lt_echo in
24485 *'\$0 --fallback-echo"')
24486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24487 ;;
24488 esac
24489
24490cfgfile="$ofile"
24491
24492 cat <<__EOF__ >> "$cfgfile"
24493# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24494
24495# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24496
24497# Shell to use when invoking shell scripts.
24498SHELL=$lt_SHELL
24499
24500# Whether or not to build shared libraries.
24501build_libtool_libs=$enable_shared
24502
24503# Whether or not to build static libraries.
24504build_old_libs=$enable_static
24505
24506# Whether or not to add -lc for building shared libraries.
24507build_libtool_need_lc=$archive_cmds_need_lc_RC
24508
24509# Whether or not to optimize for fast installation.
24510fast_install=$enable_fast_install
24511
24512# The host system.
24513host_alias=$host_alias
24514host=$host
24515
24516# An echo program that does not interpret backslashes.
24517echo=$lt_echo
24518
24519# The archiver.
24520AR=$lt_AR
24521AR_FLAGS=$lt_AR_FLAGS
24522
24523# A C compiler.
24524LTCC=$lt_LTCC
24525
24526# A language-specific compiler.
24527CC=$lt_compiler_RC
24528
24529# Is the compiler the GNU C compiler?
24530with_gcc=$GCC_RC
24531
24532# The linker used to build libraries.
24533LD=$lt_LD_RC
24534
24535# Whether we need hard or soft links.
24536LN_S=$lt_LN_S
24537
24538# A BSD-compatible nm program.
24539NM=$lt_NM
24540
24541# A sed program that does not truncate output.
24542SED=$lt_SED
24543
24544# A symbol stripping program
24545STRIP=$STRIP
24546
24547# Used to examine libraries when file_magic_cmd begins "file"
24548MAGIC_CMD=$MAGIC_CMD
24549
24550# Used on cygwin: DLL creation program.
24551DLLTOOL="$DLLTOOL"
24552
24553# Used on cygwin: object dumper.
24554OBJDUMP="$OBJDUMP"
24555
24556# Used on cygwin: assembler.
24557AS="$AS"
24558
24559# The name of the directory that contains temporary libtool files.
24560objdir=$objdir
24561
24562# How to create reloadable object files.
24563reload_flag=$lt_reload_flag
24564reload_cmds=$lt_reload_cmds
24565
24566# How to pass a linker flag through the compiler.
24567wl=$lt_lt_prog_compiler_wl_RC
24568
24569# Object file suffix (normally "o").
24570objext="$ac_objext"
24571
24572# Old archive suffix (normally "a").
24573libext="$libext"
24574
24575# Executable file suffix (normally "").
24576exeext="$exeext"
24577
24578# Additional compiler flags for building library objects.
24579pic_flag=$lt_lt_prog_compiler_pic_RC
24580pic_mode=$pic_mode
24581
24582# What is the maximum length of a command?
24583max_cmd_len=$lt_cv_sys_max_cmd_len
24584
24585# Does compiler simultaneously support -c and -o options?
24586compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24587
24588# Must we lock files when doing compilation ?
24589need_locks=$lt_need_locks
24590
24591# Do we need the lib prefix for modules?
24592need_lib_prefix=$need_lib_prefix
24593
24594# Do we need a version for libraries?
24595need_version=$need_version
24596
24597# Whether dlopen is supported.
24598dlopen_support=$enable_dlopen
24599
24600# Whether dlopen of programs is supported.
24601dlopen_self=$enable_dlopen_self
24602
24603# Whether dlopen of statically linked programs is supported.
24604dlopen_self_static=$enable_dlopen_self_static
24605
24606# Compiler flag to prevent dynamic linking.
24607link_static_flag=$lt_lt_prog_compiler_static_RC
24608
24609# Compiler flag to turn off builtin functions.
24610no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24611
24612# Compiler flag to allow reflexive dlopens.
24613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24614
24615# Compiler flag to generate shared objects directly from archives.
24616whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24617
24618# Compiler flag to generate thread-safe objects.
24619thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24620
24621# Library versioning type.
24622version_type=$version_type
24623
24624# Format of library name prefix.
24625libname_spec=$lt_libname_spec
24626
24627# List of archive names. First name is the real one, the rest are links.
24628# The last name is the one that the linker finds with -lNAME.
24629library_names_spec=$lt_library_names_spec
24630
24631# The coded name of the library, if different from the real name.
24632soname_spec=$lt_soname_spec
24633
24634# Commands used to build and install an old-style archive.
24635RANLIB=$lt_RANLIB
24636old_archive_cmds=$lt_old_archive_cmds_RC
24637old_postinstall_cmds=$lt_old_postinstall_cmds
24638old_postuninstall_cmds=$lt_old_postuninstall_cmds
24639
24640# Create an old-style archive from a shared archive.
24641old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24642
24643# Create a temporary old-style archive to link instead of a shared archive.
24644old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24645
24646# Commands used to build and install a shared archive.
24647archive_cmds=$lt_archive_cmds_RC
24648archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24649postinstall_cmds=$lt_postinstall_cmds
24650postuninstall_cmds=$lt_postuninstall_cmds
24651
24652# Commands to strip libraries.
24653old_striplib=$lt_old_striplib
24654striplib=$lt_striplib
24655
24656# Dependencies to place before the objects being linked to create a
24657# shared library.
24658predep_objects=$lt_predep_objects_RC
24659
24660# Dependencies to place after the objects being linked to create a
24661# shared library.
24662postdep_objects=$lt_postdep_objects_RC
24663
24664# Dependencies to place before the objects being linked to create a
24665# shared library.
24666predeps=$lt_predeps_RC
24667
24668# Dependencies to place after the objects being linked to create a
24669# shared library.
24670postdeps=$lt_postdeps_RC
24671
24672# The library search path used internally by the compiler when linking
24673# a shared library.
24674compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24675
24676# Method to check whether dependent libraries are shared objects.
24677deplibs_check_method=$lt_deplibs_check_method
24678
24679# Command to use when deplibs_check_method == file_magic.
24680file_magic_cmd=$lt_file_magic_cmd
24681
24682# Flag that allows shared libraries with undefined symbols to be built.
24683allow_undefined_flag=$lt_allow_undefined_flag_RC
24684
24685# Flag that forces no undefined symbols.
24686no_undefined_flag=$lt_no_undefined_flag_RC
24687
24688# Commands used to finish a libtool library installation in a directory.
24689finish_cmds=$lt_finish_cmds
24690
24691# Same as above, but a single script fragment to be evaled but not shown.
24692finish_eval=$lt_finish_eval
24693
24694# Take the output of nm and produce a listing of raw symbols and C names.
24695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24696
24697# Transform the output of nm in a proper C declaration
24698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24699
24700# Transform the output of nm in a C name address pair
24701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24702
24703# This is the shared library runtime path variable.
24704runpath_var=$runpath_var
24705
24706# This is the shared library path variable.
24707shlibpath_var=$shlibpath_var
24708
24709# Is shlibpath searched before the hard-coded library search path?
24710shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24711
24712# How to hardcode a shared library path into an executable.
24713hardcode_action=$hardcode_action_RC
24714
24715# Whether we should hardcode library paths into libraries.
24716hardcode_into_libs=$hardcode_into_libs
24717
24718# Flag to hardcode \$libdir into a binary during linking.
24719# This must work even if \$libdir does not exist.
24720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24721
24722# Whether we need a single -rpath flag with a separated argument.
24723hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24724
24725# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24726# resulting binary.
24727hardcode_direct=$hardcode_direct_RC
24728
24729# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24730# resulting binary.
24731hardcode_minus_L=$hardcode_minus_L_RC
24732
24733# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24734# the resulting binary.
24735hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24736
24737# Variables whose values should be saved in libtool wrapper scripts and
24738# restored at relink time.
24739variables_saved_for_relink="$variables_saved_for_relink"
24740
24741# Whether libtool must link a program against all its dependency libraries.
24742link_all_deplibs=$link_all_deplibs_RC
24743
24744# Compile-time system search path for libraries
24745sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24746
24747# Run-time system search path for libraries
24748sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24749
24750# Fix the shell variable \$srcfile for the compiler.
24751fix_srcfile_path="$fix_srcfile_path_RC"
24752
24753# Set to yes if exported symbols are required.
24754always_export_symbols=$always_export_symbols_RC
24755
24756# The commands to list exported symbols.
24757export_symbols_cmds=$lt_export_symbols_cmds_RC
24758
24759# The commands to extract the exported symbol list from a shared archive.
24760extract_expsyms_cmds=$lt_extract_expsyms_cmds
24761
24762# Symbols that should not be listed in the preloaded symbols.
24763exclude_expsyms=$lt_exclude_expsyms_RC
24764
24765# Symbols that must always be exported.
24766include_expsyms=$lt_include_expsyms_RC
24767
24768# ### END LIBTOOL TAG CONFIG: $tagname
24769
24770__EOF__
24771
24772
24773else
24774 # If there is no Makefile yet, we rely on a make rule to execute
24775 # `config.status --recheck' to rerun these tests and create the
24776 # libtool script then.
24777 test -f Makefile && make "$ltmain"
24778fi
24779
24780
24781ac_ext=c
24782ac_cpp='$CPP $CPPFLAGS'
24783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24785ac_compiler_gnu=$ac_cv_c_compiler_gnu
24786
24787CC="$lt_save_CC"
24788
24789 ;;
24790
24791 *)
24792 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24793echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24794 { (exit 1); exit 1; }; }
24795 ;;
24796 esac
24797
24798 # Append the new tag name to the list of available tags.
24799 available_tags="$available_tags $tagname"
24800 fi
24801 done
24802 IFS="$lt_save_ifs"
24803
24804 # Now substitute the updated list of available tags.
24805 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24806 mv "${ofile}T" "$ofile"
24807 chmod +x "$ofile"
24808 else
24809 rm -f "${ofile}T"
24810 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24811echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24812 { (exit 1); exit 1; }; }
24813 fi
24814fi
24815
24816
24817
24818LIBTOOL_SHELL="/bin/sh ./libtool"
24819# LIBTOOL="$LIBTOOL --silent"
24820
24821
24822
24823
24824
24825
24826
24827echo "$as_me:$LINENO: checking for cfg_getstr in -lconfuse" >&5
24828echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6
24829if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832 ac_check_lib_save_LIBS=$LIBS
24833LIBS="-lconfuse $LIBS"
24834cat >conftest.$ac_ext <<_ACEOF
24835#line $LINENO "configure"
24836#include "confdefs.h"
24837
24838/* Override any gcc2 internal prototype to avoid an error. */
24839#ifdef __cplusplus
24840extern "C"
24841#endif
24842/* We use char because int might match the return type of a gcc2
24843 builtin and then its argument prototype would still apply. */
24844char cfg_getstr ();
24845#ifdef F77_DUMMY_MAIN
24846# ifdef __cplusplus
24847 extern "C"
24848# endif
24849 int F77_DUMMY_MAIN() { return 1; }
24850#endif
24851int
24852main ()
24853{
24854cfg_getstr ();
24855 ;
24856 return 0;
24857}
24858_ACEOF
24859rm -f conftest.$ac_objext conftest$ac_exeext
24860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24861 (eval $ac_link) 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } &&
24865 { ac_try='test -s conftest$ac_exeext'
24866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24867 (eval $ac_try) 2>&5
24868 ac_status=$?
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; }; then
24871 ac_cv_lib_confuse_cfg_getstr=yes
24872else
24873 echo "$as_me: failed program was:" >&5
24874cat conftest.$ac_ext >&5
24875ac_cv_lib_confuse_cfg_getstr=no
24876fi
24877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24878LIBS=$ac_check_lib_save_LIBS
24879fi
24880echo "$as_me:$LINENO: result: $ac_cv_lib_confuse_cfg_getstr" >&5
24881echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6
24882if test $ac_cv_lib_confuse_cfg_getstr = yes; then
24883 cat >>confdefs.h <<_ACEOF
24884#define HAVE_LIBCONFUSE 1
24885_ACEOF
24886
24887 LIBS="-lconfuse $LIBS"
24888
24889else
24890 { { echo "$as_me:$LINENO: error: can't find confuse library" >&5
24891echo "$as_me: error: can't find confuse library" >&2;}
24892 { (exit 1); exit 1; }; }
24893fi
24894
24895
24896# Extract the first word of "libftdi-config", so it can be a program name with args.
24897set dummy libftdi-config; ac_word=$2
24898echo "$as_me:$LINENO: checking for $ac_word" >&5
24899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24900if test "${ac_cv_path_HAVELIBFTDI+set}" = set; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24902else
24903 case $HAVELIBFTDI in
24904 [\\/]* | ?:[\\/]*)
24905 ac_cv_path_HAVELIBFTDI="$HAVELIBFTDI" # Let the user override the test with a path.
24906 ;;
24907 *)
24908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24909for as_dir in $PATH
24910do
24911 IFS=$as_save_IFS
24912 test -z "$as_dir" && as_dir=.
24913 for ac_exec_ext in '' $ac_executable_extensions; do
24914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24915 ac_cv_path_HAVELIBFTDI="$as_dir/$ac_word$ac_exec_ext"
24916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24917 break 2
24918 fi
24919done
24920done
24921
24922 test -z "$ac_cv_path_HAVELIBFTDI" && ac_cv_path_HAVELIBFTDI="$PATH"
24923 ;;
24924esac
24925fi
24926HAVELIBFTDI=$ac_cv_path_HAVELIBFTDI
24927
24928if test -n "$HAVELIBFTDI"; then
24929 echo "$as_me:$LINENO: result: $HAVELIBFTDI" >&5
24930echo "${ECHO_T}$HAVELIBFTDI" >&6
24931else
24932 echo "$as_me:$LINENO: result: no" >&5
24933echo "${ECHO_T}no" >&6
24934fi
24935
24936
24937if test ! -z "$HAVELIBFTDI"; then
24938 LIBFTDI_LIBS=`$HAVELIBFTDI --libs`
24939
24940 CFLAGS="$CFLAGS $LIBFTDI_CFLAGS"
24941 LIBS="$LIBS $LIBFTDI_LIBS"
24942else
24943 { { echo "$as_me:$LINENO: error: *** libftdi-config not found. You need a working libftdi installation." >&5
24944echo "$as_me: error: *** libftdi-config not found. You need a working libftdi installation." >&2;}
24945 { (exit 1); exit 1; }; }
24946fi
24947
24948
24949
24950echo "$as_me:$LINENO: checking for extra includes" >&5
24951echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
24952
24953# Check whether --with-extra-includes or --without-extra-includes was given.
24954if test "${with_extra_includes+set}" = set; then
24955 withval="$with_extra_includes"
24956 kde_use_extra_includes="$withval"
24957else
24958 kde_use_extra_includes=NONE
24959
24960fi;
24961kde_extra_includes=
24962if test -n "$kde_use_extra_includes" && \
24963 test "$kde_use_extra_includes" != "NONE"; then
24964
24965 ac_save_ifs=$IFS
24966 IFS=':'
24967 for dir in $kde_use_extra_includes; do
24968 kde_extra_includes="$kde_extra_includes $dir"
24969 USER_INCLUDES="$USER_INCLUDES -I$dir"
24970 done
24971 IFS=$ac_save_ifs
24972 kde_use_extra_includes="added"
24973else
24974 kde_use_extra_includes="no"
24975fi
24976
24977
24978echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
24979echo "${ECHO_T}$kde_use_extra_includes" >&6
24980
24981kde_extra_libs=
24982echo "$as_me:$LINENO: checking for extra libs" >&5
24983echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
24984
24985# Check whether --with-extra-libs or --without-extra-libs was given.
24986if test "${with_extra_libs+set}" = set; then
24987 withval="$with_extra_libs"
24988 kde_use_extra_libs=$withval
24989else
24990 kde_use_extra_libs=NONE
24991
24992fi;
24993if test -n "$kde_use_extra_libs" && \
24994 test "$kde_use_extra_libs" != "NONE"; then
24995
24996 ac_save_ifs=$IFS
24997 IFS=':'
24998 for dir in $kde_use_extra_libs; do
24999 kde_extra_libs="$kde_extra_libs $dir"
25000 KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
25001 USER_LDFLAGS="$USER_LDFLAGS -L$dir"
25002 done
25003 IFS=$ac_save_ifs
25004 kde_use_extra_libs="added"
25005else
25006 kde_use_extra_libs="no"
25007fi
25008
25009
25010
25011echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
25012echo "${ECHO_T}$kde_use_extra_libs" >&6
25013
25014
25015all_libraries="$all_libraries $USER_LDFLAGS"
25016all_includes="$all_includes $USER_INCLUDES"
25017
25018
25019
25020
25021
25022
25023DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
25024
25025if test ! -s $srcdir/subdirs; then
25026 TOPSUBDIRS=""
25027 files=`cd $srcdir && ls -1`
25028 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
25029 for i in $dirs; do
25030 echo $i >> $srcdir/subdirs
25031 done
25032fi
25033
25034if test -s $srcdir/inst-apps; then
25035 ac_topsubdirs="`cat $srcdir/inst-apps`"
25036else
25037 ac_topsubdirs="`cat $srcdir/subdirs`"
25038fi
25039
25040for i in $ac_topsubdirs; do
25041 echo "$as_me:$LINENO: checking if $i should be compiled" >&5
25042echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
25043 if test -d $srcdir/$i; then
25044 install_it="yes"
25045 for j in $DO_NOT_COMPILE; do
25046 if test $i = $j; then
25047 install_it="no"
25048 fi
25049 done
25050 else
25051 install_it="no"
25052 fi
25053 echo "$as_me:$LINENO: result: $install_it" >&5
25054echo "${ECHO_T}$install_it" >&6
25055 vari=`echo $i | sed -e 's,[-+.],_,g'`
25056 if test $install_it = "yes"; then
25057 TOPSUBDIRS="$TOPSUBDIRS $i"
25058 eval "$vari""_SUBDIR_included=yes"
25059 else
25060 eval "$vari""_SUBDIR_included=no"
25061 fi
25062done
25063
25064
25065
25066ac_config_files="$ac_config_files Makefile"
25067
25068ac_config_files="$ac_config_files ftdi_eeprom/Makefile"
25069
25070cat >confcache <<\_ACEOF
25071# This file is a shell script that caches the results of configure
25072# tests run on this system so they can be shared between configure
25073# scripts and configure runs, see configure's option --config-cache.
25074# It is not useful on other systems. If it contains results you don't
25075# want to keep, you may remove or edit it.
25076#
25077# config.status only pays attention to the cache file if you give it
25078# the --recheck option to rerun configure.
25079#
25080# `ac_cv_env_foo' variables (set or unset) will be overriden when
25081# loading this file, other *unset* `ac_cv_foo' will be assigned the
25082# following values.
25083
25084_ACEOF
25085
25086# The following way of writing the cache mishandles newlines in values,
25087# but we know of no workaround that is simple, portable, and efficient.
25088# So, don't put newlines in cache variables' values.
25089# Ultrix sh set writes to stderr and can't be redirected directly,
25090# and sets the high bit in the cache file unless we assign to the vars.
25091{
25092 (set) 2>&1 |
25093 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25094 *ac_space=\ *)
25095 # `set' does not quote correctly, so add quotes (double-quote
25096 # substitution turns \\\\ into \\, and sed turns \\ into \).
25097 sed -n \
25098 "s/'/'\\\\''/g;
25099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25100 ;;
25101 *)
25102 # `set' quotes correctly as required by POSIX, so do not add quotes.
25103 sed -n \
25104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25105 ;;
25106 esac;
25107} |
25108 sed '
25109 t clear
25110 : clear
25111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25112 t end
25113 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25114 : end' >>confcache
25115if cmp -s $cache_file confcache; then :; else
25116 if test -w $cache_file; then
25117 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25118 cat confcache >$cache_file
25119 else
25120 echo "not updating unwritable cache $cache_file"
25121 fi
25122fi
25123rm -f confcache
25124
25125test "x$prefix" = xNONE && prefix=$ac_default_prefix
25126# Let make expand exec_prefix.
25127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25128
25129# VPATH may cause trouble with some makes, so we remove $(srcdir),
25130# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25131# trailing colons and then remove the whole line if VPATH becomes empty
25132# (actually we leave an empty line to preserve line numbers).
25133if test "x$srcdir" = x.; then
25134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25135s/:*\$(srcdir):*/:/;
25136s/:*\${srcdir}:*/:/;
25137s/:*@srcdir@:*/:/;
25138s/^\([^=]*=[ ]*\):*/\1/;
25139s/:*$//;
25140s/^[^=]*=[ ]*$//;
25141}'
25142fi
25143
25144DEFS=-DHAVE_CONFIG_H
25145
25146if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25147 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25148Usually this means the macro was only invoked conditionally." >&5
25149echo "$as_me: error: conditional \"AMDEP\" was never defined.
25150Usually this means the macro was only invoked conditionally." >&2;}
25151 { (exit 1); exit 1; }; }
25152fi
25153
25154: ${CONFIG_STATUS=./config.status}
25155ac_clean_files_save=$ac_clean_files
25156ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25157{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25158echo "$as_me: creating $CONFIG_STATUS" >&6;}
25159cat >$CONFIG_STATUS <<_ACEOF
25160#! $SHELL
25161# Generated by $as_me.
25162# Run this file to recreate the current configuration.
25163# Compiler output produced by configure, useful for debugging
25164# configure, is in config.log if it exists.
25165
25166debug=false
25167SHELL=\${CONFIG_SHELL-$SHELL}
25168_ACEOF
25169
25170cat >>$CONFIG_STATUS <<\_ACEOF
25171
25172## --------------------- ##
25173## M4sh Initialization. ##
25174## --------------------- ##
25175
25176# Be Bourne compatible
25177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25178 emulate sh
25179 NULLCMD=:
25180elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25181 set -o posix
25182fi
25183
25184# NLS nuisances.
25185# Support unset when possible.
25186if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
25187 as_unset=unset
25188else
25189 as_unset=false
25190fi
25191
25192(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
25193 { $as_unset LANG || test "${LANG+set}" != set; } ||
25194 { LANG=C; export LANG; }
25195(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
25196 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
25197 { LC_ALL=C; export LC_ALL; }
25198(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
25199 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
25200 { LC_TIME=C; export LC_TIME; }
25201(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
25202 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
25203 { LC_CTYPE=C; export LC_CTYPE; }
25204(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
25205 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
25206 { LANGUAGE=C; export LANGUAGE; }
25207(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
25208 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
25209 { LC_COLLATE=C; export LC_COLLATE; }
25210(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
25211 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
25212 { LC_NUMERIC=C; export LC_NUMERIC; }
25213(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
25214 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
25215 { LC_MESSAGES=C; export LC_MESSAGES; }
25216
25217
25218# Name of the executable.
25219as_me=`(basename "$0") 2>/dev/null ||
25220$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25221 X"$0" : 'X\(//\)$' \| \
25222 X"$0" : 'X\(/\)$' \| \
25223 . : '\(.\)' 2>/dev/null ||
25224echo X/"$0" |
25225 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25226 /^X\/\(\/\/\)$/{ s//\1/; q; }
25227 /^X\/\(\/\).*/{ s//\1/; q; }
25228 s/.*/./; q'`
25229
25230# PATH needs CR, and LINENO needs CR and PATH.
25231# Avoid depending upon Character Ranges.
25232as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25233as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25234as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25235as_cr_digits='0123456789'
25236as_cr_alnum=$as_cr_Letters$as_cr_digits
25237
25238# The user is always right.
25239if test "${PATH_SEPARATOR+set}" != set; then
25240 echo "#! /bin/sh" >conftest.sh
25241 echo "exit 0" >>conftest.sh
25242 chmod +x conftest.sh
25243 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
25244 PATH_SEPARATOR=';'
25245 else
25246 PATH_SEPARATOR=:
25247 fi
25248 rm -f conftest.sh
25249fi
25250
25251
25252 as_lineno_1=$LINENO
25253 as_lineno_2=$LINENO
25254 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25255 test "x$as_lineno_1" != "x$as_lineno_2" &&
25256 test "x$as_lineno_3" = "x$as_lineno_2" || {
25257 # Find who we are. Look in the path if we contain no path at all
25258 # relative or not.
25259 case $0 in
25260 *[\\/]* ) as_myself=$0 ;;
25261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25262for as_dir in $PATH
25263do
25264 IFS=$as_save_IFS
25265 test -z "$as_dir" && as_dir=.
25266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25267done
25268
25269 ;;
25270 esac
25271 # We did not find ourselves, most probably we were run as `sh COMMAND'
25272 # in which case we are not to be found in the path.
25273 if test "x$as_myself" = x; then
25274 as_myself=$0
25275 fi
25276 if test ! -f "$as_myself"; then
25277 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25278echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25279 { (exit 1); exit 1; }; }
25280 fi
25281 case $CONFIG_SHELL in
25282 '')
25283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25284for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25285do
25286 IFS=$as_save_IFS
25287 test -z "$as_dir" && as_dir=.
25288 for as_base in sh bash ksh sh5; do
25289 case $as_dir in
25290 /*)
25291 if ("$as_dir/$as_base" -c '
25292 as_lineno_1=$LINENO
25293 as_lineno_2=$LINENO
25294 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25295 test "x$as_lineno_1" != "x$as_lineno_2" &&
25296 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25297 CONFIG_SHELL=$as_dir/$as_base
25298 export CONFIG_SHELL
25299 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25300 fi;;
25301 esac
25302 done
25303done
25304;;
25305 esac
25306
25307 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25308 # uniformly replaced by the line number. The first 'sed' inserts a
25309 # line-number line before each line; the second 'sed' does the real
25310 # work. The second script uses 'N' to pair each line-number line
25311 # with the numbered line, and appends trailing '-' during
25312 # substitution so that $LINENO is not a special case at line end.
25313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25314 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25315 sed '=' <$as_myself |
25316 sed '
25317 N
25318 s,$,-,
25319 : loop
25320 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25321 t loop
25322 s,-$,,
25323 s,^['$as_cr_digits']*\n,,
25324 ' >$as_me.lineno &&
25325 chmod +x $as_me.lineno ||
25326 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25327echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25328 { (exit 1); exit 1; }; }
25329
25330 # Don't try to exec as it changes $[0], causing all sort of problems
25331 # (the dirname of $[0] is not the place where we might find the
25332 # original and so on. Autoconf is especially sensible to this).
25333 . ./$as_me.lineno
25334 # Exit status is that of the last command.
25335 exit
25336}
25337
25338
25339case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25340 *c*,-n*) ECHO_N= ECHO_C='
25341' ECHO_T=' ' ;;
25342 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25343 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25344esac
25345
25346if expr a : '\(a\)' >/dev/null 2>&1; then
25347 as_expr=expr
25348else
25349 as_expr=false
25350fi
25351
25352rm -f conf$$ conf$$.exe conf$$.file
25353echo >conf$$.file
25354if ln -s conf$$.file conf$$ 2>/dev/null; then
25355 # We could just check for DJGPP; but this test a) works b) is more generic
25356 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25357 if test -f conf$$.exe; then
25358 # Don't use ln at all; we don't have any links
25359 as_ln_s='cp -p'
25360 else
25361 as_ln_s='ln -s'
25362 fi
25363elif ln conf$$.file conf$$ 2>/dev/null; then
25364 as_ln_s=ln
25365else
25366 as_ln_s='cp -p'
25367fi
25368rm -f conf$$ conf$$.exe conf$$.file
25369
25370as_executable_p="test -f"
25371
25372# Sed expression to map a string onto a valid CPP name.
25373as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25374
25375# Sed expression to map a string onto a valid variable name.
25376as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25377
25378
25379# IFS
25380# We need space, tab and new line, in precisely that order.
25381as_nl='
25382'
25383IFS=" $as_nl"
25384
25385# CDPATH.
25386$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
25387
25388exec 6>&1
25389
25390# Open the log real soon, to keep \$[0] and so on meaningful, and to
25391# report actual input values of CONFIG_FILES etc. instead of their
25392# values after options handling. Logging --version etc. is OK.
25393exec 5>>config.log
25394{
25395 echo
25396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25397## Running $as_me. ##
25398_ASBOX
25399} >&5
25400cat >&5 <<_CSEOF
25401
25402This file was extended by $as_me, which was
25403generated by GNU Autoconf 2.53. Invocation command line was
25404
25405 CONFIG_FILES = $CONFIG_FILES
25406 CONFIG_HEADERS = $CONFIG_HEADERS
25407 CONFIG_LINKS = $CONFIG_LINKS
25408 CONFIG_COMMANDS = $CONFIG_COMMANDS
25409 $ $0 $@
25410
25411_CSEOF
25412echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25413echo >&5
25414_ACEOF
25415
25416# Files that config.status was made for.
25417if test -n "$ac_config_files"; then
25418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25419fi
25420
25421if test -n "$ac_config_headers"; then
25422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25423fi
25424
25425if test -n "$ac_config_links"; then
25426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25427fi
25428
25429if test -n "$ac_config_commands"; then
25430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25431fi
25432
25433cat >>$CONFIG_STATUS <<\_ACEOF
25434
25435ac_cs_usage="\
25436\`$as_me' instantiates files from templates according to the
25437current configuration.
25438
25439Usage: $0 [OPTIONS] [FILE]...
25440
25441 -h, --help print this help, then exit
25442 -V, --version print version number, then exit
25443 -d, --debug don't remove temporary files
25444 --recheck update $as_me by reconfiguring in the same conditions
25445 --file=FILE[:TEMPLATE]
25446 instantiate the configuration file FILE
25447 --header=FILE[:TEMPLATE]
25448 instantiate the configuration header FILE
25449
25450Configuration files:
25451$config_files
25452
25453Configuration headers:
25454$config_headers
25455
25456Configuration commands:
25457$config_commands
25458
25459Report bugs to <bug-autoconf@gnu.org>."
25460_ACEOF
25461
25462cat >>$CONFIG_STATUS <<_ACEOF
25463ac_cs_version="\\
25464config.status
25465configured by $0, generated by GNU Autoconf 2.53,
25466 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25467
25468Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25469Free Software Foundation, Inc.
25470This config.status script is free software; the Free Software Foundation
25471gives unlimited permission to copy, distribute and modify it."
25472srcdir=$srcdir
25473INSTALL="$INSTALL"
25474_ACEOF
25475
25476cat >>$CONFIG_STATUS <<\_ACEOF
25477# If no file are specified by the user, then we need to provide default
25478# value. By we need to know if files were specified by the user.
25479ac_need_defaults=:
25480while test $# != 0
25481do
25482 case $1 in
25483 --*=*)
25484 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25485 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25486 shift
25487 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25488 shift
25489 ;;
25490 -*);;
25491 *) # This is not an option, so the user has probably given explicit
25492 # arguments.
25493 ac_need_defaults=false;;
25494 esac
25495
25496 case $1 in
25497 # Handling of the options.
25498_ACEOF
25499cat >>$CONFIG_STATUS <<_ACEOF
25500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25501 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25502 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25503_ACEOF
25504cat >>$CONFIG_STATUS <<\_ACEOF
25505 --version | --vers* | -V )
25506 echo "$ac_cs_version"; exit 0 ;;
25507 --he | --h)
25508 # Conflict between --help and --header
25509 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25510Try \`$0 --help' for more information." >&5
25511echo "$as_me: error: ambiguous option: $1
25512Try \`$0 --help' for more information." >&2;}
25513 { (exit 1); exit 1; }; };;
25514 --help | --hel | -h )
25515 echo "$ac_cs_usage"; exit 0 ;;
25516 --debug | --d* | -d )
25517 debug=: ;;
25518 --file | --fil | --fi | --f )
25519 shift
25520 CONFIG_FILES="$CONFIG_FILES $1"
25521 ac_need_defaults=false;;
25522 --header | --heade | --head | --hea )
25523 shift
25524 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25525 ac_need_defaults=false;;
25526
25527 # This is an error.
25528 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25529Try \`$0 --help' for more information." >&5
25530echo "$as_me: error: unrecognized option: $1
25531Try \`$0 --help' for more information." >&2;}
25532 { (exit 1); exit 1; }; } ;;
25533
25534 *) ac_config_targets="$ac_config_targets $1" ;;
25535
25536 esac
25537 shift
25538done
25539
25540_ACEOF
25541
25542cat >>$CONFIG_STATUS <<_ACEOF
25543#
25544# INIT-COMMANDS section.
25545#
25546
25547AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25548
25549_ACEOF
25550
25551
25552
25553cat >>$CONFIG_STATUS <<\_ACEOF
25554for ac_config_target in $ac_config_targets
25555do
25556 case "$ac_config_target" in
25557 # Handling of arguments.
25558 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25559 "ftdi_eeprom/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi_eeprom/Makefile" ;;
25560 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25561 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25562 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25563echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25564 { (exit 1); exit 1; }; };;
25565 esac
25566done
25567
25568# If the user did not use the arguments to specify the items to instantiate,
25569# then the envvar interface is used. Set only those that are not.
25570# We use the long form for the default assignment because of an extremely
25571# bizarre bug on SunOS 4.1.3.
25572if $ac_need_defaults; then
25573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25576fi
25577
25578# Create a temporary directory, and hook for its removal unless debugging.
25579$debug ||
25580{
25581 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25582 trap '{ (exit 1); exit 1; }' 1 2 13 15
25583}
25584
25585# Create a (secure) tmp directory for tmp files.
25586: ${TMPDIR=/tmp}
25587{
25588 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25589 test -n "$tmp" && test -d "$tmp"
25590} ||
25591{
25592 tmp=$TMPDIR/cs$$-$RANDOM
25593 (umask 077 && mkdir $tmp)
25594} ||
25595{
25596 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25597 { (exit 1); exit 1; }
25598}
25599
25600_ACEOF
25601
25602cat >>$CONFIG_STATUS <<_ACEOF
25603
25604#
25605# CONFIG_FILES section.
25606#
25607
25608# No need to generate the scripts if there are no CONFIG_FILES.
25609# This happens for instance when ./config.status config.h
25610if test -n "\$CONFIG_FILES"; then
25611 # Protect against being on the right side of a sed subst in config.status.
25612 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25613 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25614s,@SHELL@,$SHELL,;t t
25615s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25616s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25617s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25618s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25619s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25620s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25621s,@exec_prefix@,$exec_prefix,;t t
25622s,@prefix@,$prefix,;t t
25623s,@program_transform_name@,$program_transform_name,;t t
25624s,@bindir@,$bindir,;t t
25625s,@sbindir@,$sbindir,;t t
25626s,@libexecdir@,$libexecdir,;t t
25627s,@datadir@,$datadir,;t t
25628s,@sysconfdir@,$sysconfdir,;t t
25629s,@sharedstatedir@,$sharedstatedir,;t t
25630s,@localstatedir@,$localstatedir,;t t
25631s,@libdir@,$libdir,;t t
25632s,@includedir@,$includedir,;t t
25633s,@oldincludedir@,$oldincludedir,;t t
25634s,@infodir@,$infodir,;t t
25635s,@mandir@,$mandir,;t t
25636s,@build_alias@,$build_alias,;t t
25637s,@host_alias@,$host_alias,;t t
25638s,@target_alias@,$target_alias,;t t
25639s,@DEFS@,$DEFS,;t t
25640s,@ECHO_C@,$ECHO_C,;t t
25641s,@ECHO_N@,$ECHO_N,;t t
25642s,@ECHO_T@,$ECHO_T,;t t
25643s,@LIBS@,$LIBS,;t t
25644s,@build@,$build,;t t
25645s,@build_cpu@,$build_cpu,;t t
25646s,@build_vendor@,$build_vendor,;t t
25647s,@build_os@,$build_os,;t t
25648s,@host@,$host,;t t
25649s,@host_cpu@,$host_cpu,;t t
25650s,@host_vendor@,$host_vendor,;t t
25651s,@host_os@,$host_os,;t t
25652s,@target@,$target,;t t
25653s,@target_cpu@,$target_cpu,;t t
25654s,@target_vendor@,$target_vendor,;t t
25655s,@target_os@,$target_os,;t t
25656s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25657s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25658s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25659s,@PACKAGE@,$PACKAGE,;t t
25660s,@VERSION@,$VERSION,;t t
25661s,@ACLOCAL@,$ACLOCAL,;t t
25662s,@AUTOCONF@,$AUTOCONF,;t t
25663s,@AUTOMAKE@,$AUTOMAKE,;t t
25664s,@AUTOHEADER@,$AUTOHEADER,;t t
25665s,@MAKEINFO@,$MAKEINFO,;t t
25666s,@AMTAR@,$AMTAR,;t t
25667s,@install_sh@,$install_sh,;t t
25668s,@STRIP@,$STRIP,;t t
25669s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25670s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25671s,@AWK@,$AWK,;t t
25672s,@SET_MAKE@,$SET_MAKE,;t t
25673s,@CONF_FILES@,$CONF_FILES,;t t
25674s,@CC@,$CC,;t t
25675s,@CFLAGS@,$CFLAGS,;t t
25676s,@LDFLAGS@,$LDFLAGS,;t t
25677s,@CPPFLAGS@,$CPPFLAGS,;t t
25678s,@ac_ct_CC@,$ac_ct_CC,;t t
25679s,@EXEEXT@,$EXEEXT,;t t
25680s,@OBJEXT@,$OBJEXT,;t t
25681s,@DEPDIR@,$DEPDIR,;t t
25682s,@am__include@,$am__include,;t t
25683s,@am__quote@,$am__quote,;t t
25684s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25685s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25686s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25687s,@CCDEPMODE@,$CCDEPMODE,;t t
25688s,@CXX@,$CXX,;t t
25689s,@CXXFLAGS@,$CXXFLAGS,;t t
25690s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25691s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25692s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
25693s,@USE_RTTI@,$USE_RTTI,;t t
25694s,@CPP@,$CPP,;t t
25695s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
25696s,@REPO@,$REPO,;t t
25697s,@NOREPO@,$NOREPO,;t t
25698s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
25699s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
25700s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
25701s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
25702s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t
25703s,@LN_S@,$LN_S,;t t
25704s,@ECHO@,$ECHO,;t t
25705s,@RANLIB@,$RANLIB,;t t
25706s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25707s,@CXXCPP@,$CXXCPP,;t t
25708s,@LIBTOOL@,$LIBTOOL,;t t
25709s,@HAVELIBFTDI@,$HAVELIBFTDI,;t t
25710s,@USER_INCLUDES@,$USER_INCLUDES,;t t
25711s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
25712s,@all_includes@,$all_includes,;t t
25713s,@all_libraries@,$all_libraries,;t t
25714s,@AUTODIRS@,$AUTODIRS,;t t
25715s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
25716CEOF
25717
25718_ACEOF
25719
25720 cat >>$CONFIG_STATUS <<\_ACEOF
25721 # Split the substitutions into bite-sized pieces for seds with
25722 # small command number limits, like on Digital OSF/1 and HP-UX.
25723 ac_max_sed_lines=48
25724 ac_sed_frag=1 # Number of current file.
25725 ac_beg=1 # First line for current file.
25726 ac_end=$ac_max_sed_lines # Line after last line for current file.
25727 ac_more_lines=:
25728 ac_sed_cmds=
25729 while $ac_more_lines; do
25730 if test $ac_beg -gt 1; then
25731 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25732 else
25733 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25734 fi
25735 if test ! -s $tmp/subs.frag; then
25736 ac_more_lines=false
25737 else
25738 # The purpose of the label and of the branching condition is to
25739 # speed up the sed processing (if there are no `@' at all, there
25740 # is no need to browse any of the substitutions).
25741 # These are the two extra sed commands mentioned above.
25742 (echo ':t
25743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25744 if test -z "$ac_sed_cmds"; then
25745 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25746 else
25747 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25748 fi
25749 ac_sed_frag=`expr $ac_sed_frag + 1`
25750 ac_beg=$ac_end
25751 ac_end=`expr $ac_end + $ac_max_sed_lines`
25752 fi
25753 done
25754 if test -z "$ac_sed_cmds"; then
25755 ac_sed_cmds=cat
25756 fi
25757fi # test -n "$CONFIG_FILES"
25758
25759_ACEOF
25760cat >>$CONFIG_STATUS <<\_ACEOF
25761for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25763 case $ac_file in
25764 - | *:- | *:-:* ) # input from stdin
25765 cat >$tmp/stdin
25766 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25768 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25770 * ) ac_file_in=$ac_file.in ;;
25771 esac
25772
25773 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25774 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25775$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25776 X"$ac_file" : 'X\(//\)[^/]' \| \
25777 X"$ac_file" : 'X\(//\)$' \| \
25778 X"$ac_file" : 'X\(/\)' \| \
25779 . : '\(.\)' 2>/dev/null ||
25780echo X"$ac_file" |
25781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25783 /^X\(\/\/\)$/{ s//\1/; q; }
25784 /^X\(\/\).*/{ s//\1/; q; }
25785 s/.*/./; q'`
25786 { case "$ac_dir" in
25787 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25788 *) as_incr_dir=.;;
25789esac
25790as_dummy="$ac_dir"
25791for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25792 case $as_mkdir_dir in
25793 # Skip DOS drivespec
25794 ?:) as_incr_dir=$as_mkdir_dir ;;
25795 *)
25796 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25797 test -d "$as_incr_dir" ||
25798 mkdir "$as_incr_dir" ||
25799 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25800echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25801 { (exit 1); exit 1; }; }
25802 ;;
25803 esac
25804done; }
25805
25806 ac_builddir=.
25807
25808if test "$ac_dir" != .; then
25809 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25810 # A "../" for each directory in $ac_dir_suffix.
25811 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25812else
25813 ac_dir_suffix= ac_top_builddir=
25814fi
25815
25816case $srcdir in
25817 .) # No --srcdir option. We are building in place.
25818 ac_srcdir=.
25819 if test -z "$ac_top_builddir"; then
25820 ac_top_srcdir=.
25821 else
25822 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25823 fi ;;
25824 [\\/]* | ?:[\\/]* ) # Absolute path.
25825 ac_srcdir=$srcdir$ac_dir_suffix;
25826 ac_top_srcdir=$srcdir ;;
25827 *) # Relative path.
25828 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25829 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25830esac
25831# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25832# absolute.
25833ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25834ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25835ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25836ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25837
25838
25839 case $INSTALL in
25840 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25841 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25842 esac
25843
25844 if test x"$ac_file" != x-; then
25845 { echo "$as_me:$LINENO: creating $ac_file" >&5
25846echo "$as_me: creating $ac_file" >&6;}
25847 rm -f "$ac_file"
25848 fi
25849 # Let's still pretend it is `configure' which instantiates (i.e., don't
25850 # use $as_me), people would be surprised to read:
25851 # /* config.h. Generated by config.status. */
25852 if test x"$ac_file" = x-; then
25853 configure_input=
25854 else
25855 configure_input="$ac_file. "
25856 fi
25857 configure_input=$configure_input"Generated from `echo $ac_file_in |
25858 sed 's,.*/,,'` by configure."
25859
25860 # First look for the input files in the build tree, otherwise in the
25861 # src tree.
25862 ac_file_inputs=`IFS=:
25863 for f in $ac_file_in; do
25864 case $f in
25865 -) echo $tmp/stdin ;;
25866 [\\/$]*)
25867 # Absolute (can't be DOS-style, as IFS=:)
25868 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25869echo "$as_me: error: cannot find input file: $f" >&2;}
25870 { (exit 1); exit 1; }; }
25871 echo $f;;
25872 *) # Relative
25873 if test -f "$f"; then
25874 # Build tree
25875 echo $f
25876 elif test -f "$srcdir/$f"; then
25877 # Source tree
25878 echo $srcdir/$f
25879 else
25880 # /dev/null tree
25881 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25882echo "$as_me: error: cannot find input file: $f" >&2;}
25883 { (exit 1); exit 1; }; }
25884 fi;;
25885 esac
25886 done` || { (exit 1); exit 1; }
25887_ACEOF
25888cat >>$CONFIG_STATUS <<_ACEOF
25889 sed "$ac_vpsub
25890$extrasub
25891_ACEOF
25892cat >>$CONFIG_STATUS <<\_ACEOF
25893:t
25894/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25895s,@configure_input@,$configure_input,;t t
25896s,@srcdir@,$ac_srcdir,;t t
25897s,@abs_srcdir@,$ac_abs_srcdir,;t t
25898s,@top_srcdir@,$ac_top_srcdir,;t t
25899s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25900s,@builddir@,$ac_builddir,;t t
25901s,@abs_builddir@,$ac_abs_builddir,;t t
25902s,@top_builddir@,$ac_top_builddir,;t t
25903s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25904s,@INSTALL@,$ac_INSTALL,;t t
25905" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25906 rm -f $tmp/stdin
25907 if test x"$ac_file" != x-; then
25908 mv $tmp/out $ac_file
25909 else
25910 cat $tmp/out
25911 rm -f $tmp/out
25912 fi
25913
25914done
25915_ACEOF
25916cat >>$CONFIG_STATUS <<\_ACEOF
25917
25918#
25919# CONFIG_HEADER section.
25920#
25921
25922# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25923# NAME is the cpp macro being defined and VALUE is the value it is being given.
25924#
25925# ac_d sets the value in "#define NAME VALUE" lines.
25926ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25927ac_dB='[ ].*$,\1#\2'
25928ac_dC=' '
25929ac_dD=',;t'
25930# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25931ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25932ac_uB='$,\1#\2define\3'
25933ac_uC=' '
25934ac_uD=',;t'
25935
25936for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25938 case $ac_file in
25939 - | *:- | *:-:* ) # input from stdin
25940 cat >$tmp/stdin
25941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25945 * ) ac_file_in=$ac_file.in ;;
25946 esac
25947
25948 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25949echo "$as_me: creating $ac_file" >&6;}
25950
25951 # First look for the input files in the build tree, otherwise in the
25952 # src tree.
25953 ac_file_inputs=`IFS=:
25954 for f in $ac_file_in; do
25955 case $f in
25956 -) echo $tmp/stdin ;;
25957 [\\/$]*)
25958 # Absolute (can't be DOS-style, as IFS=:)
25959 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25960echo "$as_me: error: cannot find input file: $f" >&2;}
25961 { (exit 1); exit 1; }; }
25962 echo $f;;
25963 *) # Relative
25964 if test -f "$f"; then
25965 # Build tree
25966 echo $f
25967 elif test -f "$srcdir/$f"; then
25968 # Source tree
25969 echo $srcdir/$f
25970 else
25971 # /dev/null tree
25972 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25973echo "$as_me: error: cannot find input file: $f" >&2;}
25974 { (exit 1); exit 1; }; }
25975 fi;;
25976 esac
25977 done` || { (exit 1); exit 1; }
25978 # Remove the trailing spaces.
25979 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25980
25981_ACEOF
25982
25983# Transform confdefs.h into two sed scripts, `conftest.defines' and
25984# `conftest.undefs', that substitutes the proper values into
25985# config.h.in to produce config.h. The first handles `#define'
25986# templates, and the second `#undef' templates.
25987# And first: Protect against being on the right side of a sed subst in
25988# config.status. Protect against being in an unquoted here document
25989# in config.status.
25990rm -f conftest.defines conftest.undefs
25991# Using a here document instead of a string reduces the quoting nightmare.
25992# Putting comments in sed scripts is not portable.
25993#
25994# `end' is used to avoid that the second main sed command (meant for
25995# 0-ary CPP macros) applies to n-ary macro definitions.
25996# See the Autoconf documentation for `clear'.
25997cat >confdef2sed.sed <<\_ACEOF
25998s/[\\&,]/\\&/g
25999s,[\\$`],\\&,g
26000t clear
26001: clear
26002s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26003t end
26004s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26005: end
26006_ACEOF
26007# If some macros were called several times there might be several times
26008# the same #defines, which is useless. Nevertheless, we may not want to
26009# sort them, since we want the *last* AC-DEFINE to be honored.
26010uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26011sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26012rm -f confdef2sed.sed
26013
26014# This sed command replaces #undef with comments. This is necessary, for
26015# example, in the case of _POSIX_SOURCE, which is predefined and required
26016# on some systems where configure will not decide to define it.
26017cat >>conftest.undefs <<\_ACEOF
26018s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26019_ACEOF
26020
26021# Break up conftest.defines because some shells have a limit on the size
26022# of here documents, and old seds have small limits too (100 cmds).
26023echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26024echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26025echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26026echo ' :' >>$CONFIG_STATUS
26027rm -f conftest.tail
26028while grep . conftest.defines >/dev/null
26029do
26030 # Write a limited-size here document to $tmp/defines.sed.
26031 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26032 # Speed up: don't consider the non `#define' lines.
26033 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26034 # Work around the forget-to-reset-the-flag bug.
26035 echo 't clr' >>$CONFIG_STATUS
26036 echo ': clr' >>$CONFIG_STATUS
26037 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26038 echo 'CEOF
26039 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26040 rm -f $tmp/in
26041 mv $tmp/out $tmp/in
26042' >>$CONFIG_STATUS
26043 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26044 rm -f conftest.defines
26045 mv conftest.tail conftest.defines
26046done
26047rm -f conftest.defines
26048echo ' fi # egrep' >>$CONFIG_STATUS
26049echo >>$CONFIG_STATUS
26050
26051# Break up conftest.undefs because some shells have a limit on the size
26052# of here documents, and old seds have small limits too (100 cmds).
26053echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26054rm -f conftest.tail
26055while grep . conftest.undefs >/dev/null
26056do
26057 # Write a limited-size here document to $tmp/undefs.sed.
26058 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26059 # Speed up: don't consider the non `#undef'
26060 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26061 # Work around the forget-to-reset-the-flag bug.
26062 echo 't clr' >>$CONFIG_STATUS
26063 echo ': clr' >>$CONFIG_STATUS
26064 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26065 echo 'CEOF
26066 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26067 rm -f $tmp/in
26068 mv $tmp/out $tmp/in
26069' >>$CONFIG_STATUS
26070 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26071 rm -f conftest.undefs
26072 mv conftest.tail conftest.undefs
26073done
26074rm -f conftest.undefs
26075
26076cat >>$CONFIG_STATUS <<\_ACEOF
26077 # Let's still pretend it is `configure' which instantiates (i.e., don't
26078 # use $as_me), people would be surprised to read:
26079 # /* config.h. Generated by config.status. */
26080 if test x"$ac_file" = x-; then
26081 echo "/* Generated by configure. */" >$tmp/config.h
26082 else
26083 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26084 fi
26085 cat $tmp/in >>$tmp/config.h
26086 rm -f $tmp/in
26087 if test x"$ac_file" != x-; then
26088 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
26089 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26090echo "$as_me: $ac_file is unchanged" >&6;}
26091 else
26092 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26093$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26094 X"$ac_file" : 'X\(//\)[^/]' \| \
26095 X"$ac_file" : 'X\(//\)$' \| \
26096 X"$ac_file" : 'X\(/\)' \| \
26097 . : '\(.\)' 2>/dev/null ||
26098echo X"$ac_file" |
26099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26101 /^X\(\/\/\)$/{ s//\1/; q; }
26102 /^X\(\/\).*/{ s//\1/; q; }
26103 s/.*/./; q'`
26104 { case "$ac_dir" in
26105 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26106 *) as_incr_dir=.;;
26107esac
26108as_dummy="$ac_dir"
26109for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26110 case $as_mkdir_dir in
26111 # Skip DOS drivespec
26112 ?:) as_incr_dir=$as_mkdir_dir ;;
26113 *)
26114 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26115 test -d "$as_incr_dir" ||
26116 mkdir "$as_incr_dir" ||
26117 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
26118echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
26119 { (exit 1); exit 1; }; }
26120 ;;
26121 esac
26122done; }
26123
26124 rm -f $ac_file
26125 mv $tmp/config.h $ac_file
26126 fi
26127 else
26128 cat $tmp/config.h
26129 rm -f $tmp/config.h
26130 fi
26131 # Run the commands associated with the file.
26132 case $ac_file in
26133 config.h ) # update the timestamp
26134echo 'timestamp for config.h' >"./stamp-h1"
26135 ;;
26136 esac
26137done
26138_ACEOF
26139cat >>$CONFIG_STATUS <<\_ACEOF
26140
26141#
26142# CONFIG_COMMANDS section.
26143#
26144for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26145 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26146 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26147 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26148$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26149 X"$ac_dest" : 'X\(//\)[^/]' \| \
26150 X"$ac_dest" : 'X\(//\)$' \| \
26151 X"$ac_dest" : 'X\(/\)' \| \
26152 . : '\(.\)' 2>/dev/null ||
26153echo X"$ac_dest" |
26154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26156 /^X\(\/\/\)$/{ s//\1/; q; }
26157 /^X\(\/\).*/{ s//\1/; q; }
26158 s/.*/./; q'`
26159 ac_builddir=.
26160
26161if test "$ac_dir" != .; then
26162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26163 # A "../" for each directory in $ac_dir_suffix.
26164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26165else
26166 ac_dir_suffix= ac_top_builddir=
26167fi
26168
26169case $srcdir in
26170 .) # No --srcdir option. We are building in place.
26171 ac_srcdir=.
26172 if test -z "$ac_top_builddir"; then
26173 ac_top_srcdir=.
26174 else
26175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26176 fi ;;
26177 [\\/]* | ?:[\\/]* ) # Absolute path.
26178 ac_srcdir=$srcdir$ac_dir_suffix;
26179 ac_top_srcdir=$srcdir ;;
26180 *) # Relative path.
26181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26183esac
26184# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
26185# absolute.
26186ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
26187ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
26188ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
26189ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
26190
26191
26192 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26193echo "$as_me: executing $ac_dest commands" >&6;}
26194 case $ac_dest in
26195 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26196 # Strip MF so we end up with the name of the file.
26197 mf=`echo "$mf" | sed -e 's/:.*$//'`
26198 # Check whether this is an Automake generated Makefile or not.
26199 # We used to match only the files named `Makefile.in', but
26200 # some people rename them; so instead we look at the file content.
26201 # Grep'ing the first line is not enough: some people post-process
26202 # each Makefile.in and add a new line on top of each file to say so.
26203 # So let's grep whole file.
26204 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26205 dirpart=`(dirname "$mf") 2>/dev/null ||
26206$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26207 X"$mf" : 'X\(//\)[^/]' \| \
26208 X"$mf" : 'X\(//\)$' \| \
26209 X"$mf" : 'X\(/\)' \| \
26210 . : '\(.\)' 2>/dev/null ||
26211echo X"$mf" |
26212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26214 /^X\(\/\/\)$/{ s//\1/; q; }
26215 /^X\(\/\).*/{ s//\1/; q; }
26216 s/.*/./; q'`
26217 else
26218 continue
26219 fi
26220 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
26221 # Extract the definition of DEP_FILES from the Makefile without
26222 # running `make'.
26223 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
26224 test -z "$DEPDIR" && continue
26225 # When using ansi2knr, U may be empty or an underscore; expand it
26226 U=`sed -n -e '/^U = / s///p' < "$mf"`
26227 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
26228 # We invoke sed twice because it is the simplest approach to
26229 # changing $(DEPDIR) to its actual value in the expansion.
26230 for file in `sed -n -e '
26231 /^DEP_FILES = .*\\\\$/ {
26232 s/^DEP_FILES = //
26233 :loop
26234 s/\\\\$//
26235 p
26236 n
26237 /\\\\$/ b loop
26238 p
26239 }
26240 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
26241 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26242 # Make sure the directory exists.
26243 test -f "$dirpart/$file" && continue
26244 fdir=`(dirname "$file") 2>/dev/null ||
26245$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26246 X"$file" : 'X\(//\)[^/]' \| \
26247 X"$file" : 'X\(//\)$' \| \
26248 X"$file" : 'X\(/\)' \| \
26249 . : '\(.\)' 2>/dev/null ||
26250echo X"$file" |
26251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26253 /^X\(\/\/\)$/{ s//\1/; q; }
26254 /^X\(\/\).*/{ s//\1/; q; }
26255 s/.*/./; q'`
26256 { case $dirpart/$fdir in
26257 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26258 *) as_incr_dir=.;;
26259esac
26260as_dummy=$dirpart/$fdir
26261for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26262 case $as_mkdir_dir in
26263 # Skip DOS drivespec
26264 ?:) as_incr_dir=$as_mkdir_dir ;;
26265 *)
26266 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26267 test -d "$as_incr_dir" ||
26268 mkdir "$as_incr_dir" ||
26269 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
26270echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
26271 { (exit 1); exit 1; }; }
26272 ;;
26273 esac
26274done; }
26275
26276 # echo "creating $dirpart/$file"
26277 echo '# dummy' > "$dirpart/$file"
26278 done
26279done
26280 ;;
26281 esac
26282done
26283_ACEOF
26284
26285cat >>$CONFIG_STATUS <<\_ACEOF
26286
26287{ (exit 0); exit 0; }
26288_ACEOF
26289chmod +x $CONFIG_STATUS
26290ac_clean_files=$ac_clean_files_save
26291
26292
26293# configure is writing to config.log, and then calls config.status.
26294# config.status does its own redirection, appending to config.log.
26295# Unfortunately, on DOS this fails, as config.log is still kept open
26296# by configure, so config.status won't be able to write to it; its
26297# output is simply discarded. So we exec the FD to /dev/null,
26298# effectively closing config.log, so it can be properly (re)opened and
26299# appended to by config.status. When coming back to configure, we
26300# need to make the FD available again.
26301if test "$no_create" != yes; then
26302 ac_cs_success=:
26303 exec 5>/dev/null
26304 $SHELL $CONFIG_STATUS || ac_cs_success=false
26305 exec 5>>config.log
26306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26307 # would make configure fail if this is the last instruction.
26308 $ac_cs_success || { (exit 1); exit 1; }
26309fi
26310
26311if test "$all_tests" = "bad"; then
26312 if test ! "$cache_file" = "/dev/null"; then
26313 echo ""
26314 echo "Please remove the file $cache_file after changing your setup"
26315 echo "so that configure will find the changes next time."
26316 echo ""
26317 fi
26318else
26319 echo ""
26320 echo "Good - your configure finished. Start make now"
26321 echo ""
26322fi