summaryrefslogtreecommitdiff
path: root/configure (plain)
blob: 361eb19a5dcd64568fbb908b4d5ee8099d67ed7d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for zvbi 0.2.33.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 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## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582$*
583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME='zvbi'
728PACKAGE_TARNAME='zvbi'
729PACKAGE_VERSION='0.2.33'
730PACKAGE_STRING='zvbi 0.2.33'
731PACKAGE_BUGREPORT=''
732
733ac_unique_file="src/vbi.c"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748# include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753# include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770gt_needs=
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829INSIDE_GNOME_COMMON_TRUE
830INSIDE_GNOME_COMMON_FALSE
831MAINTAINER_MODE_TRUE
832MAINTAINER_MODE_FALSE
833MAINT
834LIBZVBI_SO_VERSION
835CC
836CFLAGS
837LDFLAGS
838CPPFLAGS
839ac_ct_CC
840EXEEXT
841OBJEXT
842DEPDIR
843am__include
844am__quote
845AMDEP_TRUE
846AMDEP_FALSE
847AMDEPBACKSLASH
848CCDEPMODE
849am__fastdepCC_TRUE
850am__fastdepCC_FALSE
851CXX
852CXXFLAGS
853ac_ct_CXX
854CXXDEPMODE
855am__fastdepCXX_TRUE
856am__fastdepCXX_FALSE
857CPP
858GREP
859EGREP
860build
861build_cpu
862build_vendor
863build_os
864host
865host_cpu
866host_vendor
867host_os
868LN_S
869ECHO
870AR
871RANLIB
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877HAVE_GCC_LIMITS_TRUE
878HAVE_GCC_LIMITS_FALSE
879HAVE_GCC_C89_SUPPORT_TRUE
880HAVE_GCC_C89_SUPPORT_FALSE
881HAVE_GCC_C94_SUPPORT_TRUE
882HAVE_GCC_C94_SUPPORT_FALSE
883HAVE_GCC_C99_SUPPORT_TRUE
884HAVE_GCC_C99_SUPPORT_FALSE
885HAVE_GXX_CXX98_SUPPORT_TRUE
886HAVE_GXX_CXX98_SUPPORT_FALSE
887UNICODE_CFLAGS
888UNICODE_LIBS
889LIBICONV
890LTLIBICONV
891XMKMF
892X_CFLAGS
893X_PRE_LIBS
894X_LIBS
895X_EXTRA_LIBS
896HAVE_X_TRUE
897HAVE_X_FALSE
898ENABLE_DVB_TRUE
899ENABLE_DVB_FALSE
900ENABLE_PROXY_TRUE
901ENABLE_PROXY_FALSE
902USE_NLS
903MSGFMT
904GMSGFMT
905MSGFMT_015
906GMSGFMT_015
907XGETTEXT
908XGETTEXT_015
909MSGMERGE
910INTL_MACOSX_LIBS
911INTLLIBS
912LIBINTL
913LTLIBINTL
914POSUB
915HAVE_DOXYGEN
916HAVE_DOXYGEN_TRUE
917HAVE_DOXYGEN_FALSE
918BUILD_STATIC_LIB_TRUE
919BUILD_STATIC_LIB_FALSE
920LIBOBJS
921LTLIBOBJS'
922ac_subst_files=''
923 ac_precious_vars='build_alias
924host_alias
925target_alias
926CC
927CFLAGS
928LDFLAGS
929LIBS
930CPPFLAGS
931CXX
932CXXFLAGS
933CCC
934CPP
935CXXCPP
936F77
937FFLAGS
938XMKMF'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944# The variables have the same names as the options, with
945# dashes changed to underlines.
946cache_file=/dev/null
947exec_prefix=NONE
948no_create=
949no_recursion=
950prefix=NONE
951program_prefix=NONE
952program_suffix=NONE
953program_transform_name=s,x,x,
954silent=
955site=
956srcdir=
957verbose=
958x_includes=NONE
959x_libraries=NONE
960
961# Installation directory options.
962# These are left unexpanded so users can "make install exec_prefix=/foo"
963# and all the variables that are supposed to be based on exec_prefix
964# by default will actually change.
965# Use braces instead of parens because sh, perl, etc. also accept them.
966# (The list follows the same order as the GNU Coding Standards.)
967bindir='${exec_prefix}/bin'
968sbindir='${exec_prefix}/sbin'
969libexecdir='${exec_prefix}/libexec'
970datarootdir='${prefix}/share'
971datadir='${datarootdir}'
972sysconfdir='${prefix}/etc'
973sharedstatedir='${prefix}/com'
974localstatedir='${prefix}/var'
975includedir='${prefix}/include'
976oldincludedir='/usr/include'
977docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978infodir='${datarootdir}/info'
979htmldir='${docdir}'
980dvidir='${docdir}'
981pdfdir='${docdir}'
982psdir='${docdir}'
983libdir='${exec_prefix}/lib'
984localedir='${datarootdir}/locale'
985mandir='${datarootdir}/man'
986
987ac_prev=
988ac_dashdash=
989for ac_option
990do
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
996 fi
997
998 case $ac_option in
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *) ac_optarg=yes ;;
1001 esac
1002
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005 case $ac_dashdash$ac_option in
1006 --)
1007 ac_dashdash=yes ;;
1008
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 ac_prev=bindir ;;
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1013
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1018
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1025
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1028
1029 -datadir | --datadir | --datadi | --datad)
1030 ac_prev=datadir ;;
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1033
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1040
1041 -disable-* | --disable-*)
1042 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048 eval enable_$ac_feature=no ;;
1049
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1054
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
1059
1060 -enable-* | --enable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1067 eval enable_$ac_feature=\$ac_optarg ;;
1068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1088
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1093
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1123
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1197
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1217
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1228
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1233
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1238
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1245
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1250
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1253
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1256
1257 -with-* | --with-*)
1258 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid package name: $ac_package" >&2
1262 { (exit 1); exit 1; }; }
1263 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264 eval with_$ac_package=\$ac_optarg ;;
1265
1266 -without-* | --without-*)
1267 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_$ac_package=no ;;
1274
1275 --x)
1276 # Obsolete; use --with-x.
1277 with_x=yes ;;
1278
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1285
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1292
1293 -*) { echo "$as_me: error: unrecognized option: $ac_option
1294Try \`$0 --help' for more information." >&2
1295 { (exit 1); exit 1; }; }
1296 ;;
1297
1298 *=*)
1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1303 { (exit 1); exit 1; }; }
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1306
1307 *)
1308 # FIXME: should be removed in autoconf 3.0.
1309 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1313 ;;
1314
1315 esac
1316done
1317
1318if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 { echo "$as_me: error: missing argument to $ac_option" >&2
1321 { (exit 1); exit 1; }; }
1322fi
1323
1324# Be sure to have absolute directory names.
1325for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1329do
1330 eval ac_val=\$$ac_var
1331 case $ac_val in
1332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 esac
1335 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1336 { (exit 1); exit 1; }; }
1337done
1338
1339# There might be people who depend on the old broken behavior: `$host'
1340# used to hold the argument of --host etc.
1341# FIXME: To remove some day.
1342build=$build_alias
1343host=$host_alias
1344target=$target_alias
1345
1346# FIXME: To remove some day.
1347if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1351 If a cross compiler is detected then cross compile mode will be used." >&2
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355fi
1356
1357ac_tool_prefix=
1358test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360test "$silent" = yes && exec 6>/dev/null
1361
1362
1363ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364ac_ls_di=`ls -di .` &&
1365ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 { echo "$as_me: error: Working directory cannot be determined" >&2
1367 { (exit 1); exit 1; }; }
1368test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 { echo "$as_me: error: pwd does not report name of working directory" >&2
1370 { (exit 1); exit 1; }; }
1371
1372
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$0" ||
1378$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$0" : 'X\(//\)[^/]' \| \
1380 X"$0" : 'X\(//\)$' \| \
1381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1382echo X"$0" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404else
1405 ac_srcdir_defaulted=no
1406fi
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1410 { (exit 1); exit 1; }; }
1411fi
1412ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413ac_abs_confdir=`(
1414 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1415 { (exit 1); exit 1; }; }
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
1427for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432done
1433
1434#
1435# Report the --help message.
1436#
1437if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441\`configure' configures zvbi 0.2.33 to adapt to many kinds of systems.
1442
1443Usage: $0 [OPTION]... [VAR=VALUE]...
1444
1445To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446VAR=VALUE. See below for descriptions of some of the useful variables.
1447
1448Defaults for the options are specified in brackets.
1449
1450Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460
1461Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 [$ac_default_prefix]
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 [PREFIX]
1466
1467By default, \`make install' will install all the files in
1468\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470for instance \`--prefix=\$HOME'.
1471
1472For better control, use the options below.
1473
1474Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/zvbi]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1494_ACEOF
1495
1496 cat <<\_ACEOF
1497
1498Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502
1503X features:
1504 --x-includes=DIR X include files are in DIR
1505 --x-libraries=DIR X library files are in DIR
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of zvbi 0.2.33:";;
1516 esac
1517 cat <<\_ACEOF
1518
1519Optional Features:
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-maintainer-mode enable make rules and dependencies not useful
1523 (and sometimes confusing) to the casual installer
1524 --disable-dependency-tracking speeds up one-time build
1525 --enable-dependency-tracking do not reject slow dependency extractors
1526 --enable-shared[=PKGS] build shared libraries [default=yes]
1527 --enable-static[=PKGS] build static libraries [default=yes]
1528 --enable-fast-install[=PKGS]
1529 optimize for fast installation [default=yes]
1530 --disable-libtool-lock avoid locking (might break parallel builds)
1531 --disable-rpath do not hardcode runtime library paths
1532 --enable-v4l Include the V4L and V4L2 interface (auto)
1533 --enable-dvb Include the DVB interface (auto)
1534 --enable-bktr Include the *BSD bktr driver interface (auto)
1535 --enable-proxy Build the vbi proxy daemon and interface (auto)
1536 --disable-nls do not use Native Language Support
1537
1538Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-pic try to use only PIC/non-PIC objects [default=use
1543 both]
1544 --with-tags[=TAGS] include additional configurations [automatic]
1545 --with-gnu-ld assume the C compiler uses GNU ld default=no
1546 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1547 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1548 --with-x use the X Window System
1549 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1550 --without-libintl-prefix don't search for libintl in includedir and libdir
1551 --without-doxygen Disable building of API documentation
1552
1553Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 CPP C preprocessor
1564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
1572_ACEOF
1573ac_status=$?
1574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1580 ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631 cat <<\_ACEOF
1632zvbi configure 0.2.33
1633generated by GNU Autoconf 2.61
1634
1635Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
1639_ACEOF
1640 exit
1641fi
1642cat >config.log <<_ACEOF
1643This file contains any messages produced by compilers while
1644running configure, to aid debugging if configure makes a mistake.
1645
1646It was created by zvbi $as_me 0.2.33, which was
1647generated by GNU Autoconf 2.61. Invocation command line was
1648
1649 $ $0 $@
1650
1651_ACEOF
1652exec 5>>config.log
1653{
1654cat <<_ASUNAME
1655## --------- ##
1656## Platform. ##
1657## --------- ##
1658
1659hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1667
1668/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1675
1676_ASUNAME
1677
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 echo "PATH: $as_dir"
1684done
1685IFS=$as_save_IFS
1686
1687} >&5
1688
1689cat >&5 <<_ACEOF
1690
1691
1692## ----------- ##
1693## Core tests. ##
1694## ----------- ##
1695
1696_ACEOF
1697
1698
1699# Keep a trace of the command line.
1700# Strip out --no-create and --no-recursion so they do not pile up.
1701# Strip out --silent because we don't want to record it for future runs.
1702# Also quote any args containing shell meta-characters.
1703# Make two passes to allow for proper duplicate-argument suppression.
1704ac_configure_args=
1705ac_configure_args0=
1706ac_configure_args1=
1707ac_must_keep_next=false
1708for ac_pass in 1 2
1709do
1710 for ac_arg
1711 do
1712 case $ac_arg in
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1716 continue ;;
1717 *\'*)
1718 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 esac
1720 case $ac_pass in
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722 2)
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1726 else
1727 case $ac_arg in
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734 esac
1735 ;;
1736 -* ) ac_must_keep_next=true ;;
1737 esac
1738 fi
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1740 ;;
1741 esac
1742 done
1743done
1744$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747# When interrupted or exit'd, cleanup temporary files, and complete
1748# config.log. We remove comments because anyway the quotes in there
1749# would cause problems or look ugly.
1750# WARNING: Use '\'' to represent an apostrophe within the trap.
1751# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1754 {
1755 echo
1756
1757 cat <<\_ASBOX
1758## ---------------- ##
1759## Cache variables. ##
1760## ---------------- ##
1761_ASBOX
1762 echo
1763 # The following way of writing the cache mishandles newlines in values,
1764(
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1767 case $ac_val in #(
1768 *${as_nl}*)
1769 case $ac_var in #(
1770 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772 esac
1773 case $ac_var in #(
1774 _ | IFS | as_nl) ;; #(
1775 *) $as_unset $ac_var ;;
1776 esac ;;
1777 esac
1778 done
1779 (set) 2>&1 |
1780 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781 *${as_nl}ac_space=\ *)
1782 sed -n \
1783 "s/'\''/'\''\\\\'\'''\''/g;
1784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785 ;; #(
1786 *)
1787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788 ;;
1789 esac |
1790 sort
1791)
1792 echo
1793
1794 cat <<\_ASBOX
1795## ----------------- ##
1796## Output variables. ##
1797## ----------------- ##
1798_ASBOX
1799 echo
1800 for ac_var in $ac_subst_vars
1801 do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in
1804 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 esac
1806 echo "$ac_var='\''$ac_val'\''"
1807 done | sort
1808 echo
1809
1810 if test -n "$ac_subst_files"; then
1811 cat <<\_ASBOX
1812## ------------------- ##
1813## File substitutions. ##
1814## ------------------- ##
1815_ASBOX
1816 echo
1817 for ac_var in $ac_subst_files
1818 do
1819 eval ac_val=\$$ac_var
1820 case $ac_val in
1821 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 esac
1823 echo "$ac_var='\''$ac_val'\''"
1824 done | sort
1825 echo
1826 fi
1827
1828 if test -s confdefs.h; then
1829 cat <<\_ASBOX
1830## ----------- ##
1831## confdefs.h. ##
1832## ----------- ##
1833_ASBOX
1834 echo
1835 cat confdefs.h
1836 echo
1837 fi
1838 test "$ac_signal" != 0 &&
1839 echo "$as_me: caught signal $ac_signal"
1840 echo "$as_me: exit $exit_status"
1841 } >&5
1842 rm -f core *.core core.conftest.* &&
1843 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 exit $exit_status
1845' 0
1846for ac_signal in 1 2 13 15; do
1847 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848done
1849ac_signal=0
1850
1851# confdefs.h avoids OS command line length limits that DEFS can exceed.
1852rm -f -r conftest* confdefs.h
1853
1854# Predefined preprocessor variables.
1855
1856cat >>confdefs.h <<_ACEOF
1857#define PACKAGE_NAME "$PACKAGE_NAME"
1858_ACEOF
1859
1860
1861cat >>confdefs.h <<_ACEOF
1862#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863_ACEOF
1864
1865
1866cat >>confdefs.h <<_ACEOF
1867#define PACKAGE_VERSION "$PACKAGE_VERSION"
1868_ACEOF
1869
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_STRING "$PACKAGE_STRING"
1873_ACEOF
1874
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878_ACEOF
1879
1880
1881# Let the site file select an alternate cache file if it wants to.
1882# Prefer explicitly selected file to automatically selected ones.
1883if test -n "$CONFIG_SITE"; then
1884 set x "$CONFIG_SITE"
1885elif test "x$prefix" != xNONE; then
1886 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887else
1888 set x "$ac_default_prefix/share/config.site" \
1889 "$ac_default_prefix/etc/config.site"
1890fi
1891shift
1892for ac_site_file
1893do
1894 if test -r "$ac_site_file"; then
1895 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1898 . "$ac_site_file"
1899 fi
1900done
1901
1902if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907echo "$as_me: loading cache $cache_file" >&6;}
1908 case $cache_file in
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1911 esac
1912 fi
1913else
1914 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915echo "$as_me: creating cache $cache_file" >&6;}
1916 >$cache_file
1917fi
1918
1919gt_needs="$gt_needs need-ngettext"
1920# Check that the precious variables saved in the cache have kept the same
1921# value.
1922ac_cache_corrupted=false
1923for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1929 set,)
1930 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1933 ,set)
1934 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1937 ,);;
1938 *)
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1941echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1942 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1943echo "$as_me: former value: $ac_old_val" >&2;}
1944 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1945echo "$as_me: current value: $ac_new_val" >&2;}
1946 ac_cache_corrupted=:
1947 fi;;
1948 esac
1949 # Pass precious variables to config.status.
1950 if test "$ac_new_set" = set; then
1951 case $ac_new_val in
1952 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 *) ac_arg=$ac_var=$ac_new_val ;;
1954 esac
1955 case " $ac_configure_args " in
1956 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1957 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1958 esac
1959 fi
1960done
1961if $ac_cache_corrupted; then
1962 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1963echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1964 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1965echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1966 { (exit 1); exit 1; }; }
1967fi
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999
2000
2001
2002am__api_version="1.9"
2003ac_aux_dir=
2004for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2008 break
2009 elif test -f "$ac_dir/install.sh"; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2012 break
2013 elif test -f "$ac_dir/shtool"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2016 break
2017 fi
2018done
2019if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2023fi
2024
2025# These three variables are undocumented and unsupported,
2026# and are intended to be withdrawn in a future Autoconf release.
2027# They can cause serious problems if a builder's source tree is in a directory
2028# whose full name contains unusual characters.
2029ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2032
2033
2034# Find a good install program. We prefer a C program (faster),
2035# so one script is as good as another. But avoid the broken or
2036# incompatible versions:
2037# SysV /etc/install, /usr/sbin/install
2038# SunOS /usr/etc/install
2039# IRIX /sbin/install
2040# AIX /bin/install
2041# AmigaOS /C/install, which installs bootblocks on floppy discs
2042# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2043# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2044# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2045# OS/2's system install, which has a completely different semantic
2046# ./install, which can be erroneously created by make from ./install.sh.
2047{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2048echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2049if test -z "$INSTALL"; then
2050if test "${ac_cv_path_install+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 # Account for people who put trailing slashes in PATH elements.
2059case $as_dir/ in
2060 ./ | .// | /cC/* | \
2061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2062 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2063 /usr/ucb/* ) ;;
2064 *)
2065 # OSF1 and SCO ODT 3.0 have their own names for install.
2066 # Don't use installbsd from OSF since it installs stuff as root
2067 # by default.
2068 for ac_prog in ginstall scoinst install; do
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2071 if test $ac_prog = install &&
2072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2073 # AIX install. It has an incompatible calling convention.
2074 :
2075 elif test $ac_prog = install &&
2076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2077 # program-specific install script used by HP pwplus--don't use.
2078 :
2079 else
2080 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2081 break 3
2082 fi
2083 fi
2084 done
2085 done
2086 ;;
2087esac
2088done
2089IFS=$as_save_IFS
2090
2091
2092fi
2093 if test "${ac_cv_path_install+set}" = set; then
2094 INSTALL=$ac_cv_path_install
2095 else
2096 # As a last resort, use the slow shell script. Don't cache a
2097 # value for INSTALL within a source directory, because that will
2098 # break other packages using the cache if that directory is
2099 # removed, or if the value is a relative name.
2100 INSTALL=$ac_install_sh
2101 fi
2102fi
2103{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2104echo "${ECHO_T}$INSTALL" >&6; }
2105
2106# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2107# It thinks the first close brace ends the variable substitution.
2108test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2109
2110test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2111
2112test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2113
2114{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2115echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2116# Just in case
2117sleep 1
2118echo timestamp > conftest.file
2119# Do `set' in a subshell so we don't clobber the current shell's
2120# arguments. Must try -L first in case configure is actually a
2121# symlink; some systems play weird games with the mod time of symlinks
2122# (eg FreeBSD returns the mod time of the symlink's containing
2123# directory).
2124if (
2125 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2126 if test "$*" = "X"; then
2127 # -L didn't work.
2128 set X `ls -t $srcdir/configure conftest.file`
2129 fi
2130 rm -f conftest.file
2131 if test "$*" != "X $srcdir/configure conftest.file" \
2132 && test "$*" != "X conftest.file $srcdir/configure"; then
2133
2134 # If neither matched, then we have a broken ls. This can happen
2135 # if, for instance, CONFIG_SHELL is bash and it inherits a
2136 # broken ls alias from the environment. This has actually
2137 # happened. Such a system could not be considered "sane".
2138 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2139alias in your environment" >&5
2140echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2141alias in your environment" >&2;}
2142 { (exit 1); exit 1; }; }
2143 fi
2144
2145 test "$2" = conftest.file
2146 )
2147then
2148 # Ok.
2149 :
2150else
2151 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2152Check your system clock" >&5
2153echo "$as_me: error: newly created file is older than distributed files!
2154Check your system clock" >&2;}
2155 { (exit 1); exit 1; }; }
2156fi
2157{ echo "$as_me:$LINENO: result: yes" >&5
2158echo "${ECHO_T}yes" >&6; }
2159test "$program_prefix" != NONE &&
2160 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2161# Use a double $ so make ignores it.
2162test "$program_suffix" != NONE &&
2163 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2164# Double any \ or $. echo might interpret backslashes.
2165# By default was `s,x,x', remove it if useless.
2166cat <<\_ACEOF >conftest.sed
2167s/[\\$]/&&/g;s/;s,x,x,$//
2168_ACEOF
2169program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2170rm -f conftest.sed
2171
2172# expand $ac_aux_dir to an absolute path
2173am_aux_dir=`cd $ac_aux_dir && pwd`
2174
2175test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2176# Use eval to expand $SHELL
2177if eval "$MISSING --run true"; then
2178 am_missing_run="$MISSING --run "
2179else
2180 am_missing_run=
2181 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2182echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2183fi
2184
2185if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2186 # We used to keeping the `.' as first argument, in order to
2187 # allow $(mkdir_p) to be used without argument. As in
2188 # $(mkdir_p) $(somedir)
2189 # where $(somedir) is conditionally defined. However this is wrong
2190 # for two reasons:
2191 # 1. if the package is installed by a user who cannot write `.'
2192 # make install will fail,
2193 # 2. the above comment should most certainly read
2194 # $(mkdir_p) $(DESTDIR)$(somedir)
2195 # so it does not work when $(somedir) is undefined and
2196 # $(DESTDIR) is not.
2197 # To support the latter case, we have to write
2198 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2199 # so the `.' trick is pointless.
2200 mkdir_p='mkdir -p --'
2201else
2202 # On NextStep and OpenStep, the `mkdir' command does not
2203 # recognize any option. It will interpret all options as
2204 # directories to create, and then abort because `.' already
2205 # exists.
2206 for d in ./-p ./--version;
2207 do
2208 test -d $d && rmdir $d
2209 done
2210 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2211 if test -f "$ac_aux_dir/mkinstalldirs"; then
2212 mkdir_p='$(mkinstalldirs)'
2213 else
2214 mkdir_p='$(install_sh) -d'
2215 fi
2216fi
2217
2218for ac_prog in gawk mawk nawk awk
2219do
2220 # Extract the first word of "$ac_prog", so it can be a program name with args.
2221set dummy $ac_prog; ac_word=$2
2222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2224if test "${ac_cv_prog_AWK+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 if test -n "$AWK"; then
2228 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2229else
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237 ac_cv_prog_AWK="$ac_prog"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241done
2242done
2243IFS=$as_save_IFS
2244
2245fi
2246fi
2247AWK=$ac_cv_prog_AWK
2248if test -n "$AWK"; then
2249 { echo "$as_me:$LINENO: result: $AWK" >&5
2250echo "${ECHO_T}$AWK" >&6; }
2251else
2252 { echo "$as_me:$LINENO: result: no" >&5
2253echo "${ECHO_T}no" >&6; }
2254fi
2255
2256
2257 test -n "$AWK" && break
2258done
2259
2260{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2261echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2262set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2263if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266 cat >conftest.make <<\_ACEOF
2267SHELL = /bin/sh
2268all:
2269 @echo '@@@%%%=$(MAKE)=@@@%%%'
2270_ACEOF
2271# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2272case `${MAKE-make} -f conftest.make 2>/dev/null` in
2273 *@@@%%%=?*=@@@%%%*)
2274 eval ac_cv_prog_make_${ac_make}_set=yes;;
2275 *)
2276 eval ac_cv_prog_make_${ac_make}_set=no;;
2277esac
2278rm -f conftest.make
2279fi
2280if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2281 { echo "$as_me:$LINENO: result: yes" >&5
2282echo "${ECHO_T}yes" >&6; }
2283 SET_MAKE=
2284else
2285 { echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6; }
2287 SET_MAKE="MAKE=${MAKE-make}"
2288fi
2289
2290rm -rf .tst 2>/dev/null
2291mkdir .tst 2>/dev/null
2292if test -d .tst; then
2293 am__leading_dot=.
2294else
2295 am__leading_dot=_
2296fi
2297rmdir .tst 2>/dev/null
2298
2299# test to see if srcdir already configured
2300if test "`cd $srcdir && pwd`" != "`pwd`" &&
2301 test -f $srcdir/config.status; then
2302 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2303echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2304 { (exit 1); exit 1; }; }
2305fi
2306
2307# test whether we have cygpath
2308if test -z "$CYGPATH_W"; then
2309 if (cygpath --version) >/dev/null 2>/dev/null; then
2310 CYGPATH_W='cygpath -w'
2311 else
2312 CYGPATH_W=echo
2313 fi
2314fi
2315
2316
2317# Define the identity of the package.
2318 PACKAGE='zvbi'
2319 VERSION='0.2.33'
2320
2321
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE "$PACKAGE"
2324_ACEOF
2325
2326
2327cat >>confdefs.h <<_ACEOF
2328#define VERSION "$VERSION"
2329_ACEOF
2330
2331# Some tools Automake needs.
2332
2333ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2334
2335
2336AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2337
2338
2339AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2340
2341
2342AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2343
2344
2345MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2346
2347install_sh=${install_sh-"$am_aux_dir/install-sh"}
2348
2349# Installed binaries are usually stripped using `strip' when the user
2350# run `make install-strip'. However `strip' might not be the right
2351# tool to use in cross-compilation environments, therefore Automake
2352# will honor the `STRIP' environment variable to overrule this program.
2353if test "$cross_compiling" != no; then
2354 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2356set dummy ${ac_tool_prefix}strip; ac_word=$2
2357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359if test "${ac_cv_prog_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362 if test -n "$STRIP"; then
2363 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382STRIP=$ac_cv_prog_STRIP
2383if test -n "$STRIP"; then
2384 { echo "$as_me:$LINENO: result: $STRIP" >&5
2385echo "${ECHO_T}$STRIP" >&6; }
2386else
2387 { echo "$as_me:$LINENO: result: no" >&5
2388echo "${ECHO_T}no" >&6; }
2389fi
2390
2391
2392fi
2393if test -z "$ac_cv_prog_STRIP"; then
2394 ac_ct_STRIP=$STRIP
2395 # Extract the first word of "strip", so it can be a program name with args.
2396set dummy strip; ac_word=$2
2397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402 if test -n "$ac_ct_STRIP"; then
2403 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2404else
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_ac_ct_STRIP="strip"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2415 fi
2416done
2417done
2418IFS=$as_save_IFS
2419
2420fi
2421fi
2422ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2423if test -n "$ac_ct_STRIP"; then
2424 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2425echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2426else
2427 { echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6; }
2429fi
2430
2431 if test "x$ac_ct_STRIP" = x; then
2432 STRIP=":"
2433 else
2434 case $cross_compiling:$ac_tool_warned in
2435yes:)
2436{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2437whose name does not start with the host triplet. If you think this
2438configuration is useful to you, please write to autoconf@gnu.org." >&5
2439echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2440whose name does not start with the host triplet. If you think this
2441configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2442ac_tool_warned=yes ;;
2443esac
2444 STRIP=$ac_ct_STRIP
2445 fi
2446else
2447 STRIP="$ac_cv_prog_STRIP"
2448fi
2449
2450fi
2451INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2452
2453# We need awk for the "check" target. The system "awk" is bad on
2454# some platforms.
2455# Always define AMTAR for backward compatibility.
2456
2457AMTAR=${AMTAR-"${am_missing_run}tar"}
2458
2459am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2460
2461
2462
2463
2464
2465ac_config_headers="$ac_config_headers config.h"
2466
2467
2468
2469
2470if test x = y; then
2471 INSIDE_GNOME_COMMON_TRUE=
2472 INSIDE_GNOME_COMMON_FALSE='#'
2473else
2474 INSIDE_GNOME_COMMON_TRUE='#'
2475 INSIDE_GNOME_COMMON_FALSE=
2476fi
2477
2478
2479 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2480
2481 for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
2482
2483{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2484echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2485 # Check whether --enable-maintainer-mode was given.
2486if test "${enable_maintainer_mode+set}" = set; then
2487 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2488else
2489 USE_MAINTAINER_MODE=no
2490fi
2491
2492 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2493echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2494
2495
2496if test $USE_MAINTAINER_MODE = yes; then
2497 MAINTAINER_MODE_TRUE=
2498 MAINTAINER_MODE_FALSE='#'
2499else
2500 MAINTAINER_MODE_TRUE='#'
2501 MAINTAINER_MODE_FALSE=
2502fi
2503
2504 MAINT=$MAINTAINER_MODE_TRUE
2505
2506
2507
2508LIBZVBI_SO_VERSION=13:1:13
2509
2510
2511
2512cat >>confdefs.h <<\_ACEOF
2513#define _GNU_SOURCE 1
2514_ACEOF
2515
2516
2517
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2525set dummy ${ac_tool_prefix}gcc; ac_word=$2
2526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545done
2546done
2547IFS=$as_save_IFS
2548
2549fi
2550fi
2551CC=$ac_cv_prog_CC
2552if test -n "$CC"; then
2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554echo "${ECHO_T}$CC" >&6; }
2555else
2556 { echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6; }
2558fi
2559
2560
2561fi
2562if test -z "$ac_cv_prog_CC"; then
2563 ac_ct_CC=$CC
2564 # Extract the first word of "gcc", so it can be a program name with args.
2565set dummy gcc; ac_word=$2
2566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573else
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_ac_ct_CC="gcc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585done
2586done
2587IFS=$as_save_IFS
2588
2589fi
2590fi
2591ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592if test -n "$ac_ct_CC"; then
2593 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594echo "${ECHO_T}$ac_ct_CC" >&6; }
2595else
2596 { echo "$as_me:$LINENO: result: no" >&5
2597echo "${ECHO_T}no" >&6; }
2598fi
2599
2600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604yes:)
2605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606whose name does not start with the host triplet. If you think this
2607configuration is useful to you, please write to autoconf@gnu.org." >&5
2608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609whose name does not start with the host triplet. If you think this
2610configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611ac_tool_warned=yes ;;
2612esac
2613 CC=$ac_ct_CC
2614 fi
2615else
2616 CC="$ac_cv_prog_CC"
2617fi
2618
2619if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2622set dummy ${ac_tool_prefix}cc; ac_word=$2
2623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625if test "${ac_cv_prog_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC="${ac_tool_prefix}cc"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642done
2643done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
2650 { echo "$as_me:$LINENO: result: $CC" >&5
2651echo "${ECHO_T}$CC" >&6; }
2652else
2653 { echo "$as_me:$LINENO: result: no" >&5
2654echo "${ECHO_T}no" >&6; }
2655fi
2656
2657
2658 fi
2659fi
2660if test -z "$CC"; then
2661 # Extract the first word of "cc", so it can be a program name with args.
2662set dummy cc; ac_word=$2
2663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
2671 ac_prog_rejected=no
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2680 ac_prog_rejected=yes
2681 continue
2682 fi
2683 ac_cv_prog_CC="cc"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687done
2688done
2689IFS=$as_save_IFS
2690
2691if test $ac_prog_rejected = yes; then
2692 # We found a bogon in the path, so make sure we never use it.
2693 set dummy $ac_cv_prog_CC
2694 shift
2695 if test $# != 0; then
2696 # We chose a different compiler from the bogus one.
2697 # However, it has the same basename, so the bogon will be chosen
2698 # first if we set CC to just the basename; use the full file name.
2699 shift
2700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 fi
2702fi
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707 { echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6; }
2709else
2710 { echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6; }
2712fi
2713
2714
2715fi
2716if test -z "$CC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 for ac_prog in cl.exe
2719 do
2720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747CC=$ac_cv_prog_CC
2748if test -n "$CC"; then
2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750echo "${ECHO_T}$CC" >&6; }
2751else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6; }
2754fi
2755
2756
2757 test -n "$CC" && break
2758 done
2759fi
2760if test -z "$CC"; then
2761 ac_ct_CC=$CC
2762 for ac_prog in cl.exe
2763do
2764 # Extract the first word of "$ac_prog", so it can be a program name with args.
2765set dummy $ac_prog; ac_word=$2
2766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="$ac_prog"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792if test -n "$ac_ct_CC"; then
2793 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794echo "${ECHO_T}$ac_ct_CC" >&6; }
2795else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6; }
2798fi
2799
2800
2801 test -n "$ac_ct_CC" && break
2802done
2803
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808yes:)
2809{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2810whose name does not start with the host triplet. If you think this
2811configuration is useful to you, please write to autoconf@gnu.org." >&5
2812echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2813whose name does not start with the host triplet. If you think this
2814configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817 CC=$ac_ct_CC
2818 fi
2819fi
2820
2821fi
2822
2823
2824test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2825See \`config.log' for more details." >&5
2826echo "$as_me: error: no acceptable C compiler found in \$PATH
2827See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }
2829
2830# Provide some information about the compiler.
2831echo "$as_me:$LINENO: checking for C compiler version" >&5
2832ac_compiler=`set X $ac_compile; echo $2`
2833{ (ac_try="$ac_compiler --version >&5"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compiler --version >&5") 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843{ (ac_try="$ac_compiler -v >&5"
2844case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compiler -v >&5") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853{ (ac_try="$ac_compiler -V >&5"
2854case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857esac
2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compiler -V >&5") 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863
2864cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
2870
2871int
2872main ()
2873{
2874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879ac_clean_files_save=$ac_clean_files
2880ac_clean_files="$ac_clean_files a.out a.exe b.out"
2881# Try to create an executable without -o first, disregard a.out.
2882# It will help us diagnose broken compilers, and finding out an intuition
2883# of exeext.
2884{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2885echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2886ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887#
2888# List of possible output files, starting from the most likely.
2889# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2890# only as a last resort. b.out is created by i960 compilers.
2891ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2892#
2893# The IRIX 6 linker writes into existing files which may not be
2894# executable, retaining their permissions. Remove them first so a
2895# subsequent execution test works.
2896ac_rmfiles=
2897for ac_file in $ac_files
2898do
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2902 esac
2903done
2904rm -f $ac_rmfiles
2905
2906if { (ac_try="$ac_link_default"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_link_default") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
2916 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2917# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2918# in a Makefile. We should not override ac_cv_exeext if it was cached,
2919# so that the user can short-circuit this test for compilers unknown to
2920# Autoconf.
2921for ac_file in $ac_files ''
2922do
2923 test -f "$ac_file" || continue
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2926 ;;
2927 [ab].out )
2928 # We found the default executable, but exeext='' is most
2929 # certainly right.
2930 break;;
2931 *.* )
2932 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2933 then :; else
2934 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 fi
2936 # We set ac_cv_exeext here because the later test for it is not
2937 # safe: cross compilers may not add the suffix if given an `-o'
2938 # argument, so we may need to know it at that point already.
2939 # Even if this section looks crufty: it has the advantage of
2940 # actually working.
2941 break;;
2942 * )
2943 break;;
2944 esac
2945done
2946test "$ac_cv_exeext" = no && ac_cv_exeext=
2947
2948else
2949 ac_file=''
2950fi
2951
2952{ echo "$as_me:$LINENO: result: $ac_file" >&5
2953echo "${ECHO_T}$ac_file" >&6; }
2954if test -z "$ac_file"; then
2955 echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: C compiler cannot create executables
2961See \`config.log' for more details." >&2;}
2962 { (exit 77); exit 77; }; }
2963fi
2964
2965ac_exeext=$ac_cv_exeext
2966
2967# Check that the compiler produces executables we can run. If not, either
2968# the compiler is broken, or we cross compile.
2969{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2970echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2971# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2972# If not cross compiling, check that we can run a simple program.
2973if test "$cross_compiling" != yes; then
2974 if { ac_try='./$ac_file'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 cross_compiling=no
2985 else
2986 if test "$cross_compiling" = maybe; then
2987 cross_compiling=yes
2988 else
2989 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2990If you meant to cross compile, use \`--host'.
2991See \`config.log' for more details." >&5
2992echo "$as_me: error: cannot run C compiled programs.
2993If you meant to cross compile, use \`--host'.
2994See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2996 fi
2997 fi
2998fi
2999{ echo "$as_me:$LINENO: result: yes" >&5
3000echo "${ECHO_T}yes" >&6; }
3001
3002rm -f a.out a.exe conftest$ac_cv_exeext b.out
3003ac_clean_files=$ac_clean_files_save
3004# Check that the compiler produces executables we can run. If not, either
3005# the compiler is broken, or we cross compile.
3006{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3007echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3008{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3009echo "${ECHO_T}$cross_compiling" >&6; }
3010
3011{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3012echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3013if { (ac_try="$ac_link"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_link") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; then
3023 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3024# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3025# work properly (i.e., refer to `conftest.exe'), while it won't with
3026# `rm'.
3027for ac_file in conftest.exe conftest conftest.*; do
3028 test -f "$ac_file" || continue
3029 case $ac_file in
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3032 break;;
3033 * ) break;;
3034 esac
3035done
3036else
3037 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3038See \`config.log' for more details." >&5
3039echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3040See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3042fi
3043
3044rm -f conftest$ac_cv_exeext
3045{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3046echo "${ECHO_T}$ac_cv_exeext" >&6; }
3047
3048rm -f conftest.$ac_ext
3049EXEEXT=$ac_cv_exeext
3050ac_exeext=$EXEEXT
3051{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3052echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3053if test "${ac_cv_objext+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055else
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062
3063int
3064main ()
3065{
3066
3067 ;
3068 return 0;
3069}
3070_ACEOF
3071rm -f conftest.o conftest.obj
3072if { (ac_try="$ac_compile"
3073case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 for ac_file in conftest.o conftest.obj conftest.*; do
3083 test -f "$ac_file" || continue;
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3087 break;;
3088 esac
3089done
3090else
3091 echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3095See \`config.log' for more details." >&5
3096echo "$as_me: error: cannot compute suffix of object files: cannot compile
3097See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }
3099fi
3100
3101rm -f conftest.$ac_cv_objext conftest.$ac_ext
3102fi
3103{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3104echo "${ECHO_T}$ac_cv_objext" >&6; }
3105OBJEXT=$ac_cv_objext
3106ac_objext=$OBJEXT
3107{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3108echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3109if test "${ac_cv_c_compiler_gnu+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122#ifndef __GNUC__
3123 choke me
3124#endif
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_compiler_gnu=yes
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 ac_compiler_gnu=no
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157
3158fi
3159{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3160echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3161GCC=`test $ac_compiler_gnu = yes && echo yes`
3162ac_test_CFLAGS=${CFLAGS+set}
3163ac_save_CFLAGS=$CFLAGS
3164{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3165echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3166if test "${ac_cv_prog_cc_g+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169 ac_save_c_werror_flag=$ac_c_werror_flag
3170 ac_c_werror_flag=yes
3171 ac_cv_prog_cc_g=no
3172 CFLAGS="-g"
3173 cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179
3180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext
3189if { (ac_try="$ac_compile"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compile") 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
3205 ac_cv_prog_cc_g=yes
3206else
3207 echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 CFLAGS=""
3211 cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 :
3244else
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3249 CFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_prog_cc_g=yes
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287
3288fi
3289
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291fi
3292
3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294fi
3295
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3298fi
3299{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3300echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3301if test "$ac_test_CFLAGS" = set; then
3302 CFLAGS=$ac_save_CFLAGS
3303elif test $ac_cv_prog_cc_g = yes; then
3304 if test "$GCC" = yes; then
3305 CFLAGS="-g -O2"
3306 else
3307 CFLAGS="-g"
3308 fi
3309else
3310 if test "$GCC" = yes; then
3311 CFLAGS="-O2"
3312 else
3313 CFLAGS=
3314 fi
3315fi
3316{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3317echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3318if test "${ac_cv_prog_cc_c89+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 ac_cv_prog_cc_c89=no
3322ac_save_CC=$CC
3323cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
3329#include <stdarg.h>
3330#include <stdio.h>
3331#include <sys/types.h>
3332#include <sys/stat.h>
3333/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3334struct buf { int x; };
3335FILE * (*rcsopen) (struct buf *, struct stat *, int);
3336static char *e (p, i)
3337 char **p;
3338 int i;
3339{
3340 return p[i];
3341}
3342static char *f (char * (*g) (char **, int), char **p, ...)
3343{
3344 char *s;
3345 va_list v;
3346 va_start (v,p);
3347 s = g (p, va_arg (v,int));
3348 va_end (v);
3349 return s;
3350}
3351
3352/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3353 function prototypes and stuff, but not '\xHH' hex character constants.
3354 These don't provoke an error unfortunately, instead are silently treated
3355 as 'x'. The following induces an error, until -std is added to get
3356 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3357 array size at least. It's necessary to write '\x00'==0 to get something
3358 that's true only with -std. */
3359int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3360
3361/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3362 inside strings and character constants. */
3363#define FOO(x) 'x'
3364int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3365
3366int test (int i, double x);
3367struct s1 {int (*f) (int a);};
3368struct s2 {int (*f) (double a);};
3369int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3370int argc;
3371char **argv;
3372int
3373main ()
3374{
3375return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3381 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3382do
3383 CC="$ac_save_CC $ac_arg"
3384 rm -f conftest.$ac_objext
3385if { (ac_try="$ac_compile"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3401 ac_cv_prog_cc_c89=$ac_arg
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406
3407fi
3408
3409rm -f core conftest.err conftest.$ac_objext
3410 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411done
3412rm -f conftest.$ac_ext
3413CC=$ac_save_CC
3414
3415fi
3416# AC_CACHE_VAL
3417case "x$ac_cv_prog_cc_c89" in
3418 x)
3419 { echo "$as_me:$LINENO: result: none needed" >&5
3420echo "${ECHO_T}none needed" >&6; } ;;
3421 xno)
3422 { echo "$as_me:$LINENO: result: unsupported" >&5
3423echo "${ECHO_T}unsupported" >&6; } ;;
3424 *)
3425 CC="$CC $ac_cv_prog_cc_c89"
3426 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3427echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3428esac
3429
3430
3431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436DEPDIR="${am__leading_dot}deps"
3437
3438ac_config_commands="$ac_config_commands depfiles"
3439
3440
3441am_make=${MAKE-make}
3442cat > confinc << 'END'
3443am__doit:
3444 @echo done
3445.PHONY: am__doit
3446END
3447# If we don't find an include directive, just comment out the code.
3448{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3449echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3450am__include="#"
3451am__quote=
3452_am_result=none
3453# First try GNU make style include.
3454echo "include confinc" > confmf
3455# We grep out `Entering directory' and `Leaving directory'
3456# messages which can occur if `w' ends up in MAKEFLAGS.
3457# In particular we don't look at `^make:' because GNU make might
3458# be invoked under some other name (usually "gmake"), in which
3459# case it prints its new name instead of `make'.
3460if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3461 am__include=include
3462 am__quote=
3463 _am_result=GNU
3464fi
3465# Now try BSD make style include.
3466if test "$am__include" = "#"; then
3467 echo '.include "confinc"' > confmf
3468 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3469 am__include=.include
3470 am__quote="\""
3471 _am_result=BSD
3472 fi
3473fi
3474
3475
3476{ echo "$as_me:$LINENO: result: $_am_result" >&5
3477echo "${ECHO_T}$_am_result" >&6; }
3478rm -f confinc confmf
3479
3480# Check whether --enable-dependency-tracking was given.
3481if test "${enable_dependency_tracking+set}" = set; then
3482 enableval=$enable_dependency_tracking;
3483fi
3484
3485if test "x$enable_dependency_tracking" != xno; then
3486 am_depcomp="$ac_aux_dir/depcomp"
3487 AMDEPBACKSLASH='\'
3488fi
3489
3490
3491if test "x$enable_dependency_tracking" != xno; then
3492 AMDEP_TRUE=
3493 AMDEP_FALSE='#'
3494else
3495 AMDEP_TRUE='#'
3496 AMDEP_FALSE=
3497fi
3498
3499
3500
3501
3502depcc="$CC" am_compiler_list=
3503
3504{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3505echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3506if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3510 # We make a subdir and do the tests there. Otherwise we can end up
3511 # making bogus files that we don't know about and never remove. For
3512 # instance it was reported that on HP-UX the gcc test will end up
3513 # making a dummy file named `D' -- because `-MD' means `put the output
3514 # in D'.
3515 mkdir conftest.dir
3516 # Copy depcomp to subdir because otherwise we won't find it if we're
3517 # using a relative directory.
3518 cp "$am_depcomp" conftest.dir
3519 cd conftest.dir
3520 # We will build objects and dependencies in a subdirectory because
3521 # it helps to detect inapplicable dependency modes. For instance
3522 # both Tru64's cc and ICC support -MD to output dependencies as a
3523 # side effect of compilation, but ICC will put the dependencies in
3524 # the current directory while Tru64 will put them in the object
3525 # directory.
3526 mkdir sub
3527
3528 am_cv_CC_dependencies_compiler_type=none
3529 if test "$am_compiler_list" = ""; then
3530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3531 fi
3532 for depmode in $am_compiler_list; do
3533 # Setup a source with many dependencies, because some compilers
3534 # like to wrap large dependency lists on column 80 (with \), and
3535 # we should not choose a depcomp mode which is confused by this.
3536 #
3537 # We need to recreate these files for each test, as the compiler may
3538 # overwrite some of them when testing with obscure command lines.
3539 # This happens at least with the AIX C compiler.
3540 : > sub/conftest.c
3541 for i in 1 2 3 4 5 6; do
3542 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3543 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3544 # Solaris 8's {/usr,}/bin/sh.
3545 touch sub/conftst$i.h
3546 done
3547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3548
3549 case $depmode in
3550 nosideeffect)
3551 # after this tag, mechanisms are not by side-effect, so they'll
3552 # only be used when explicitly requested
3553 if test "x$enable_dependency_tracking" = xyes; then
3554 continue
3555 else
3556 break
3557 fi
3558 ;;
3559 none) break ;;
3560 esac
3561 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3562 # mode. It turns out that the SunPro C++ compiler does not properly
3563 # handle `-M -o', and we need to detect this.
3564 if depmode=$depmode \
3565 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3567 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3568 >/dev/null 2>conftest.err &&
3569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3570 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3572 # icc doesn't choke on unknown options, it will just issue warnings
3573 # or remarks (even with -Werror). So we grep stderr for any message
3574 # that says an option was ignored or not supported.
3575 # When given -MP, icc 7.0 and 7.1 complain thusly:
3576 # icc: Command line warning: ignoring option '-M'; no argument required
3577 # The diagnosis changed in icc 8.0:
3578 # icc: Command line remark: option '-MP' not supported
3579 if (grep 'ignoring option' conftest.err ||
3580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3581 am_cv_CC_dependencies_compiler_type=$depmode
3582 break
3583 fi
3584 fi
3585 done
3586
3587 cd ..
3588 rm -rf conftest.dir
3589else
3590 am_cv_CC_dependencies_compiler_type=none
3591fi
3592
3593fi
3594{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3595echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3596CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3597
3598
3599
3600if
3601 test "x$enable_dependency_tracking" != xno \
3602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3603 am__fastdepCC_TRUE=
3604 am__fastdepCC_FALSE='#'
3605else
3606 am__fastdepCC_TRUE='#'
3607 am__fastdepCC_FALSE=
3608fi
3609
3610
3611
3612ac_ext=cpp
3613ac_cpp='$CXXCPP $CPPFLAGS'
3614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3617if test -z "$CXX"; then
3618 if test -n "$CCC"; then
3619 CXX=$CCC
3620 else
3621 if test -n "$ac_tool_prefix"; then
3622 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3623 do
3624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3628if test "${ac_cv_prog_CXX+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 if test -n "$CXX"; then
3632 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645done
3646done
3647IFS=$as_save_IFS
3648
3649fi
3650fi
3651CXX=$ac_cv_prog_CXX
3652if test -n "$CXX"; then
3653 { echo "$as_me:$LINENO: result: $CXX" >&5
3654echo "${ECHO_T}$CXX" >&6; }
3655else
3656 { echo "$as_me:$LINENO: result: no" >&5
3657echo "${ECHO_T}no" >&6; }
3658fi
3659
3660
3661 test -n "$CXX" && break
3662 done
3663fi
3664if test -z "$CXX"; then
3665 ac_ct_CXX=$CXX
3666 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3667do
3668 # Extract the first word of "$ac_prog", so it can be a program name with args.
3669set dummy $ac_prog; ac_word=$2
3670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3672if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 if test -n "$ac_ct_CXX"; then
3676 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_ac_ct_CXX="$ac_prog"
3686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689done
3690done
3691IFS=$as_save_IFS
3692
3693fi
3694fi
3695ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3696if test -n "$ac_ct_CXX"; then
3697 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3698echo "${ECHO_T}$ac_ct_CXX" >&6; }
3699else
3700 { echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6; }
3702fi
3703
3704
3705 test -n "$ac_ct_CXX" && break
3706done
3707
3708 if test "x$ac_ct_CXX" = x; then
3709 CXX="g++"
3710 else
3711 case $cross_compiling:$ac_tool_warned in
3712yes:)
3713{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3714whose name does not start with the host triplet. If you think this
3715configuration is useful to you, please write to autoconf@gnu.org." >&5
3716echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3717whose name does not start with the host triplet. If you think this
3718configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3719ac_tool_warned=yes ;;
3720esac
3721 CXX=$ac_ct_CXX
3722 fi
3723fi
3724
3725 fi
3726fi
3727# Provide some information about the compiler.
3728echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3729ac_compiler=`set X $ac_compile; echo $2`
3730{ (ac_try="$ac_compiler --version >&5"
3731case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734esac
3735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compiler --version >&5") 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }
3740{ (ac_try="$ac_compiler -v >&5"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_compiler -v >&5") 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3750{ (ac_try="$ac_compiler -V >&5"
3751case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754esac
3755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compiler -V >&5") 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
3760
3761{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3762echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3763if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772
3773int
3774main ()
3775{
3776#ifndef __GNUC__
3777 choke me
3778#endif
3779
3780 ;
3781 return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (ac_try="$ac_compile"
3786case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_compile") 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } && {
3798 test -z "$ac_cxx_werror_flag" ||
3799 test ! -s conftest.err
3800 } && test -s conftest.$ac_objext; then
3801 ac_compiler_gnu=yes
3802else
3803 echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 ac_compiler_gnu=no
3807fi
3808
3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3811
3812fi
3813{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3814echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3815GXX=`test $ac_compiler_gnu = yes && echo yes`
3816ac_test_CXXFLAGS=${CXXFLAGS+set}
3817ac_save_CXXFLAGS=$CXXFLAGS
3818{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3819echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3820if test "${ac_cv_prog_cxx_g+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3824 ac_cxx_werror_flag=yes
3825 ac_cv_prog_cxx_g=no
3826 CXXFLAGS="-g"
3827 cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
3833
3834int
3835main ()
3836{
3837
3838 ;
3839 return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext
3843if { (ac_try="$ac_compile"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
3848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_cxx_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3859 ac_cv_prog_cxx_g=yes
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 CXXFLAGS=""
3865 cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
3871
3872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext
3881if { (ac_try="$ac_compile"
3882case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_cxx_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 :
3898else
3899 echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3903 CXXFLAGS="-g"
3904 cat >conftest.$ac_ext <<_ACEOF
3905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h. */
3910
3911int
3912main ()
3913{
3914
3915 ;
3916 return 0;
3917}
3918_ACEOF
3919rm -f conftest.$ac_objext
3920if { (ac_try="$ac_compile"
3921case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924esac
3925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_cxx_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 ac_cv_prog_cxx_g=yes
3937else
3938 echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941
3942fi
3943
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945fi
3946
3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948fi
3949
3950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3952fi
3953{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3954echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3955if test "$ac_test_CXXFLAGS" = set; then
3956 CXXFLAGS=$ac_save_CXXFLAGS
3957elif test $ac_cv_prog_cxx_g = yes; then
3958 if test "$GXX" = yes; then
3959 CXXFLAGS="-g -O2"
3960 else
3961 CXXFLAGS="-g"
3962 fi
3963else
3964 if test "$GXX" = yes; then
3965 CXXFLAGS="-O2"
3966 else
3967 CXXFLAGS=
3968 fi
3969fi
3970ac_ext=c
3971ac_cpp='$CPP $CPPFLAGS'
3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976depcc="$CXX" am_compiler_list=
3977
3978{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3979echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3980if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3984 # We make a subdir and do the tests there. Otherwise we can end up
3985 # making bogus files that we don't know about and never remove. For
3986 # instance it was reported that on HP-UX the gcc test will end up
3987 # making a dummy file named `D' -- because `-MD' means `put the output
3988 # in D'.
3989 mkdir conftest.dir
3990 # Copy depcomp to subdir because otherwise we won't find it if we're
3991 # using a relative directory.
3992 cp "$am_depcomp" conftest.dir
3993 cd conftest.dir
3994 # We will build objects and dependencies in a subdirectory because
3995 # it helps to detect inapplicable dependency modes. For instance
3996 # both Tru64's cc and ICC support -MD to output dependencies as a
3997 # side effect of compilation, but ICC will put the dependencies in
3998 # the current directory while Tru64 will put them in the object
3999 # directory.
4000 mkdir sub
4001
4002 am_cv_CXX_dependencies_compiler_type=none
4003 if test "$am_compiler_list" = ""; then
4004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4005 fi
4006 for depmode in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4010 #
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4014 : > sub/conftest.c
4015 for i in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018 # Solaris 8's {/usr,}/bin/sh.
4019 touch sub/conftst$i.h
4020 done
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4022
4023 case $depmode in
4024 nosideeffect)
4025 # after this tag, mechanisms are not by side-effect, so they'll
4026 # only be used when explicitly requested
4027 if test "x$enable_dependency_tracking" = xyes; then
4028 continue
4029 else
4030 break
4031 fi
4032 ;;
4033 none) break ;;
4034 esac
4035 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4036 # mode. It turns out that the SunPro C++ compiler does not properly
4037 # handle `-M -o', and we need to detect this.
4038 if depmode=$depmode \
4039 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4041 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4042 >/dev/null 2>conftest.err &&
4043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4046 # icc doesn't choke on unknown options, it will just issue warnings
4047 # or remarks (even with -Werror). So we grep stderr for any message
4048 # that says an option was ignored or not supported.
4049 # When given -MP, icc 7.0 and 7.1 complain thusly:
4050 # icc: Command line warning: ignoring option '-M'; no argument required
4051 # The diagnosis changed in icc 8.0:
4052 # icc: Command line remark: option '-MP' not supported
4053 if (grep 'ignoring option' conftest.err ||
4054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4055 am_cv_CXX_dependencies_compiler_type=$depmode
4056 break
4057 fi
4058 fi
4059 done
4060
4061 cd ..
4062 rm -rf conftest.dir
4063else
4064 am_cv_CXX_dependencies_compiler_type=none
4065fi
4066
4067fi
4068{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4069echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4070CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4071
4072
4073
4074if
4075 test "x$enable_dependency_tracking" != xno \
4076 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4077 am__fastdepCXX_TRUE=
4078 am__fastdepCXX_FALSE='#'
4079else
4080 am__fastdepCXX_TRUE='#'
4081 am__fastdepCXX_FALSE=
4082fi
4083
4084
4085
4086LIBS="$LIBS -lm"
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097for ac_func in strndup strlcpy asprintf vasprintf getopt_long \
4098 getaddrinfo clock_settime program_invocation_name
4099do
4100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
4112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4114#define $ac_func innocuous_$ac_func
4115
4116/* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char $ac_func (); below.
4118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 <limits.h> exists even on freestanding compilers. */
4120
4121#ifdef __STDC__
4122# include <limits.h>
4123#else
4124# include <assert.h>
4125#endif
4126
4127#undef $ac_func
4128
4129/* Override any GCC internal prototype to avoid an error.
4130 Use char because int might match the return type of a GCC
4131 builtin and then its argument prototype would still apply. */
4132#ifdef __cplusplus
4133extern "C"
4134#endif
4135char $ac_func ();
4136/* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139#if defined __stub_$ac_func || defined __stub___$ac_func
4140choke me
4141#endif
4142
4143int
4144main ()
4145{
4146return $ac_func ();
4147 ;
4148 return 0;
4149}
4150_ACEOF
4151rm -f conftest.$ac_objext conftest$ac_exeext
4152if { (ac_try="$ac_link"
4153case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_link") 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest$ac_exeext &&
4168 $as_test_x conftest$ac_exeext; then
4169 eval "$as_ac_var=yes"
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 eval "$as_ac_var=no"
4175fi
4176
4177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4178 conftest$ac_exeext conftest.$ac_ext
4179fi
4180ac_res=`eval echo '${'$as_ac_var'}'`
4181 { echo "$as_me:$LINENO: result: $ac_res" >&5
4182echo "${ECHO_T}$ac_res" >&6; }
4183if test `eval echo '${'$as_ac_var'}'` = yes; then
4184 cat >>confdefs.h <<_ACEOF
4185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4186_ACEOF
4187
4188fi
4189done
4190
4191
4192{ echo "$as_me:$LINENO: checking for sincos" >&5
4193echo $ECHO_N "checking for sincos... $ECHO_C" >&6; }
4194cat >conftest.$ac_ext <<_ACEOF
4195
4196#include <stdio.h>
4197#include <math.h>
4198int main (void) {
4199double s, c;
4200scanf ("%f", &s);
4201sincos (s, &s, &c);
4202printf ("%f %f", s, c);
4203return 0;
4204}
4205
4206_ACEOF
4207rm -f conftest.$ac_objext conftest$ac_exeext
4208if { (ac_try="$ac_link"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_link") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_c_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest$ac_exeext &&
4224 $as_test_x conftest$ac_exeext; then
4225
4226 { echo "$as_me:$LINENO: result: yes" >&5
4227echo "${ECHO_T}yes" >&6; }
4228
4229cat >>confdefs.h <<\_ACEOF
4230#define HAVE_SINCOS 1
4231_ACEOF
4232
4233
4234else
4235 echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238
4239 { echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6; }
4241
4242fi
4243
4244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4245 conftest$ac_exeext conftest.$ac_ext
4246
4247{ echo "$as_me:$LINENO: checking for log2" >&5
4248echo $ECHO_N "checking for log2... $ECHO_C" >&6; }
4249cat >conftest.$ac_ext <<_ACEOF
4250
4251#include <stdio.h>
4252#include <math.h>
4253int main (void) {
4254double x;
4255scanf ("%f", &x);
4256printf ("%f", log2 (x));
4257return 0;
4258}
4259
4260_ACEOF
4261rm -f conftest.$ac_objext conftest$ac_exeext
4262if { (ac_try="$ac_link"
4263case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_link") 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && {
4275 test -z "$ac_c_werror_flag" ||
4276 test ! -s conftest.err
4277 } && test -s conftest$ac_exeext &&
4278 $as_test_x conftest$ac_exeext; then
4279
4280 { echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6; }
4282
4283cat >>confdefs.h <<\_ACEOF
4284#define HAVE_LOG2 1
4285_ACEOF
4286
4287
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292
4293 { echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6; }
4295
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4300
4301{ echo "$as_me:$LINENO: checking for strerror_r" >&5
4302echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6; }
4303cat >conftest.$ac_ext <<_ACEOF
4304
4305#include <stdlib.h>
4306#include <string.h>
4307int main (void) {
4308return *strerror_r (22, malloc (128), 128);
4309}
4310
4311_ACEOF
4312rm -f conftest.$ac_objext
4313if { (ac_try="$ac_compile"
4314case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
4329
4330 { echo "$as_me:$LINENO: result: yes, GNU version" >&5
4331echo "${ECHO_T}yes, GNU version" >&6; }
4332
4333cat >>confdefs.h <<\_ACEOF
4334#define HAVE_GNU_STRERROR_R 1
4335_ACEOF
4336
4337
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342
4343 cat >conftest.$ac_ext <<_ACEOF
4344
4345#include <stdio.h>
4346#include <stdlib.h>
4347#include <string.h>
4348int main (void) {
4349printf ("%f", 1.0 + strerror_r (22, malloc (128), 128));
4350return 0;
4351}
4352
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (ac_try="$ac_compile"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.$ac_objext; then
4371
4372 { echo "$as_me:$LINENO: result: yes, SUSV3 version" >&5
4373echo "${ECHO_T}yes, SUSV3 version" >&6; }
4374
4375cat >>confdefs.h <<\_ACEOF
4376#define HAVE_SUSV3_STRERROR_R 1
4377_ACEOF
4378
4379
4380else
4381 echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384
4385 { echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6; }
4387
4388fi
4389
4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391
4392fi
4393
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395
4396
4397cat >>confdefs.h <<\_ACEOF
4398#define Z_LITTLE_ENDIAN 1234
4399_ACEOF
4400
4401
4402cat >>confdefs.h <<\_ACEOF
4403#define Z_BIG_ENDIAN 4321
4404_ACEOF
4405
4406ac_ext=c
4407ac_cpp='$CPP $CPPFLAGS'
4408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4412echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4413# On Suns, sometimes $CPP names a directory.
4414if test -n "$CPP" && test -d "$CPP"; then
4415 CPP=
4416fi
4417if test -z "$CPP"; then
4418 if test "${ac_cv_prog_CPP+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 # Double quotes because CPP needs to be expanded
4422 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4423 do
4424 ac_preproc_ok=false
4425for ac_c_preproc_warn_flag in '' yes
4426do
4427 # Use a header file that comes with gcc, so configuring glibc
4428 # with a fresh cross-compiler works.
4429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430 # <limits.h> exists even on freestanding compilers.
4431 # On the NeXT, cc -E runs the code through the compiler's parser,
4432 # not just through cpp. "Syntax error" is here to catch this case.
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439#ifdef __STDC__
4440# include <limits.h>
4441#else
4442# include <assert.h>
4443#endif
4444 Syntax error
4445_ACEOF
4446if { (ac_try="$ac_cpp conftest.$ac_ext"
4447case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null && {
4459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 }; then
4462 :
4463else
4464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 # Broken: fails on valid input.
4468continue
4469fi
4470
4471rm -f conftest.err conftest.$ac_ext
4472
4473 # OK, works on sane cases. Now check whether nonexistent headers
4474 # can be detected and how.
4475 cat >conftest.$ac_ext <<_ACEOF
4476/* confdefs.h. */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4480/* end confdefs.h. */
4481#include <ac_nonexistent.h>
4482_ACEOF
4483if { (ac_try="$ac_cpp conftest.$ac_ext"
4484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 }; then
4499 # Broken: success on invalid input.
4500continue
4501else
4502 echo "$as_me: failed program was:" >&5
4503sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 # Passes both tests.
4506ac_preproc_ok=:
4507break
4508fi
4509
4510rm -f conftest.err conftest.$ac_ext
4511
4512done
4513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514rm -f conftest.err conftest.$ac_ext
4515if $ac_preproc_ok; then
4516 break
4517fi
4518
4519 done
4520 ac_cv_prog_CPP=$CPP
4521
4522fi
4523 CPP=$ac_cv_prog_CPP
4524else
4525 ac_cv_prog_CPP=$CPP
4526fi
4527{ echo "$as_me:$LINENO: result: $CPP" >&5
4528echo "${ECHO_T}$CPP" >&6; }
4529ac_preproc_ok=false
4530for ac_c_preproc_warn_flag in '' yes
4531do
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat >conftest.$ac_ext <<_ACEOF
4539/* confdefs.h. */
4540_ACEOF
4541cat confdefs.h >>conftest.$ac_ext
4542cat >>conftest.$ac_ext <<_ACEOF
4543/* end confdefs.h. */
4544#ifdef __STDC__
4545# include <limits.h>
4546#else
4547# include <assert.h>
4548#endif
4549 Syntax error
4550_ACEOF
4551if { (ac_try="$ac_cpp conftest.$ac_ext"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } >/dev/null && {
4564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4565 test ! -s conftest.err
4566 }; then
4567 :
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 # Broken: fails on valid input.
4573continue
4574fi
4575
4576rm -f conftest.err conftest.$ac_ext
4577
4578 # OK, works on sane cases. Now check whether nonexistent headers
4579 # can be detected and how.
4580 cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h. */
4586#include <ac_nonexistent.h>
4587_ACEOF
4588if { (ac_try="$ac_cpp conftest.$ac_ext"
4589case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592esac
4593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null && {
4601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4602 test ! -s conftest.err
4603 }; then
4604 # Broken: success on invalid input.
4605continue
4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 # Passes both tests.
4611ac_preproc_ok=:
4612break
4613fi
4614
4615rm -f conftest.err conftest.$ac_ext
4616
4617done
4618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619rm -f conftest.err conftest.$ac_ext
4620if $ac_preproc_ok; then
4621 :
4622else
4623 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4624See \`config.log' for more details." >&5
4625echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4626See \`config.log' for more details." >&2;}
4627 { (exit 1); exit 1; }; }
4628fi
4629
4630ac_ext=c
4631ac_cpp='$CPP $CPPFLAGS'
4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636
4637{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4638echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4639if test "${ac_cv_path_GREP+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 # Extract the first word of "grep ggrep" to use in msg output
4643if test -z "$GREP"; then
4644set dummy grep ggrep; ac_prog_name=$2
4645if test "${ac_cv_path_GREP+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 ac_path_GREP_found=false
4649# Loop through the user's path and test for each of PROGNAME-LIST
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in grep ggrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4659 # Check for GNU ac_path_GREP and select it if it is found.
4660 # Check for GNU $ac_path_GREP
4661case `"$ac_path_GREP" --version 2>&1` in
4662*GNU*)
4663 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4664*)
4665 ac_count=0
4666 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4667 while :
4668 do
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 echo 'GREP' >> "conftest.nl"
4673 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 ac_count=`expr $ac_count + 1`
4676 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_GREP="$ac_path_GREP"
4679 ac_path_GREP_max=$ac_count
4680 fi
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4683 done
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685esac
4686
4687
4688 $ac_path_GREP_found && break 3
4689 done
4690done
4691
4692done
4693IFS=$as_save_IFS
4694
4695
4696fi
4697
4698GREP="$ac_cv_path_GREP"
4699if test -z "$GREP"; then
4700 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4701echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4702 { (exit 1); exit 1; }; }
4703fi
4704
4705else
4706 ac_cv_path_GREP=$GREP
4707fi
4708
4709
4710fi
4711{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4712echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4713 GREP="$ac_cv_path_GREP"
4714
4715
4716{ echo "$as_me:$LINENO: checking for egrep" >&5
4717echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4718if test "${ac_cv_path_EGREP+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4722 then ac_cv_path_EGREP="$GREP -E"
4723 else
4724 # Extract the first word of "egrep" to use in msg output
4725if test -z "$EGREP"; then
4726set dummy egrep; ac_prog_name=$2
4727if test "${ac_cv_path_EGREP+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730 ac_path_EGREP_found=false
4731# Loop through the user's path and test for each of PROGNAME-LIST
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_prog in egrep; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4740 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4741 # Check for GNU ac_path_EGREP and select it if it is found.
4742 # Check for GNU $ac_path_EGREP
4743case `"$ac_path_EGREP" --version 2>&1` in
4744*GNU*)
4745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4746*)
4747 ac_count=0
4748 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4749 while :
4750 do
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 echo 'EGREP' >> "conftest.nl"
4755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 ac_count=`expr $ac_count + 1`
4758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_EGREP="$ac_path_EGREP"
4761 ac_path_EGREP_max=$ac_count
4762 fi
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4765 done
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767esac
4768
4769
4770 $ac_path_EGREP_found && break 3
4771 done
4772done
4773
4774done
4775IFS=$as_save_IFS
4776
4777
4778fi
4779
4780EGREP="$ac_cv_path_EGREP"
4781if test -z "$EGREP"; then
4782 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4783echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4784 { (exit 1); exit 1; }; }
4785fi
4786
4787else
4788 ac_cv_path_EGREP=$EGREP
4789fi
4790
4791
4792 fi
4793fi
4794{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4795echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4796 EGREP="$ac_cv_path_EGREP"
4797
4798
4799{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4800echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4801if test "${ac_cv_header_stdc+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h. */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h. */
4810#include <stdlib.h>
4811#include <stdarg.h>
4812#include <string.h>
4813#include <float.h>
4814
4815int
4816main ()
4817{
4818
4819 ;
4820 return 0;
4821}
4822_ACEOF
4823rm -f conftest.$ac_objext
4824if { (ac_try="$ac_compile"
4825case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828esac
4829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.$ac_objext; then
4840 ac_cv_header_stdc=yes
4841else
4842 echo "$as_me: failed program was:" >&5
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_cv_header_stdc=no
4846fi
4847
4848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849
4850if test $ac_cv_header_stdc = yes; then
4851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4852 cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
4858#include <string.h>
4859
4860_ACEOF
4861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4862 $EGREP "memchr" >/dev/null 2>&1; then
4863 :
4864else
4865 ac_cv_header_stdc=no
4866fi
4867rm -f conftest*
4868
4869fi
4870
4871if test $ac_cv_header_stdc = yes; then
4872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4873 cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
4879#include <stdlib.h>
4880
4881_ACEOF
4882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883 $EGREP "free" >/dev/null 2>&1; then
4884 :
4885else
4886 ac_cv_header_stdc=no
4887fi
4888rm -f conftest*
4889
4890fi
4891
4892if test $ac_cv_header_stdc = yes; then
4893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4894 if test "$cross_compiling" = yes; then
4895 :
4896else
4897 cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h. */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h. */
4903#include <ctype.h>
4904#include <stdlib.h>
4905#if ((' ' & 0x0FF) == 0x020)
4906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4908#else
4909# define ISLOWER(c) \
4910 (('a' <= (c) && (c) <= 'i') \
4911 || ('j' <= (c) && (c) <= 'r') \
4912 || ('s' <= (c) && (c) <= 'z'))
4913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4914#endif
4915
4916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4917int
4918main ()
4919{
4920 int i;
4921 for (i = 0; i < 256; i++)
4922 if (XOR (islower (i), ISLOWER (i))
4923 || toupper (i) != TOUPPER (i))
4924 return 2;
4925 return 0;
4926}
4927_ACEOF
4928rm -f conftest$ac_exeext
4929if { (ac_try="$ac_link"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_link") 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4939 { (case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_try") 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 :
4949else
4950 echo "$as_me: program exited with status $ac_status" >&5
4951echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954( exit $ac_status )
4955ac_cv_header_stdc=no
4956fi
4957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4958fi
4959
4960
4961fi
4962fi
4963{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4964echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4965if test $ac_cv_header_stdc = yes; then
4966
4967cat >>confdefs.h <<\_ACEOF
4968#define STDC_HEADERS 1
4969_ACEOF
4970
4971fi
4972
4973# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4984 inttypes.h stdint.h unistd.h
4985do
4986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992 cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h. */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h. */
4998$ac_includes_default
4999
5000#include <$ac_header>
5001_ACEOF
5002rm -f conftest.$ac_objext
5003if { (ac_try="$ac_compile"
5004case "(($ac_try" in
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007esac
5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_compile") 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && {
5016 test -z "$ac_c_werror_flag" ||
5017 test ! -s conftest.err
5018 } && test -s conftest.$ac_objext; then
5019 eval "$as_ac_Header=yes"
5020else
5021 echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024 eval "$as_ac_Header=no"
5025fi
5026
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029ac_res=`eval echo '${'$as_ac_Header'}'`
5030 { echo "$as_me:$LINENO: result: $ac_res" >&5
5031echo "${ECHO_T}$ac_res" >&6; }
5032if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033 cat >>confdefs.h <<_ACEOF
5034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035_ACEOF
5036
5037fi
5038
5039done
5040
5041
5042{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5043echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
5044if test "${ac_cv_c_bigendian+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 # See if sys/param.h defines the BYTE_ORDER macro.
5048cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054#include <sys/types.h>
5055#include <sys/param.h>
5056
5057int
5058main ()
5059{
5060#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
5061 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
5062 bogus endian macros
5063#endif
5064
5065 ;
5066 return 0;
5067}
5068_ACEOF
5069rm -f conftest.$ac_objext
5070if { (ac_try="$ac_compile"
5071case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 # It does; now see whether it defined to BIG_ENDIAN or not.
5087cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#include <sys/types.h>
5094#include <sys/param.h>
5095
5096int
5097main ()
5098{
5099#if BYTE_ORDER != BIG_ENDIAN
5100 not big endian
5101#endif
5102
5103 ;
5104 return 0;
5105}
5106_ACEOF
5107rm -f conftest.$ac_objext
5108if { (ac_try="$ac_compile"
5109case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112esac
5113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_compile") 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && {
5121 test -z "$ac_c_werror_flag" ||
5122 test ! -s conftest.err
5123 } && test -s conftest.$ac_objext; then
5124 ac_cv_c_bigendian=yes
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_cv_c_bigendian=no
5130fi
5131
5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # It does not; compile a test program.
5138if test "$cross_compiling" = yes; then
5139 # try to guess the endianness by grepping values into an object file
5140 ac_cv_c_bigendian=unknown
5141 cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h. */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h. */
5147short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5148short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5149void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5150short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5151short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5152void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5153int
5154main ()
5155{
5156 _ascii (); _ebcdic ();
5157 ;
5158 return 0;
5159}
5160_ACEOF
5161rm -f conftest.$ac_objext
5162if { (ac_try="$ac_compile"
5163case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166esac
5167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_compile") 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && {
5175 test -z "$ac_c_werror_flag" ||
5176 test ! -s conftest.err
5177 } && test -s conftest.$ac_objext; then
5178 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5179 ac_cv_c_bigendian=yes
5180fi
5181if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5182 if test "$ac_cv_c_bigendian" = unknown; then
5183 ac_cv_c_bigendian=no
5184 else
5185 # finding both strings is unlikely to happen, but who knows?
5186 ac_cv_c_bigendian=unknown
5187 fi
5188fi
5189else
5190 echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193
5194fi
5195
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197else
5198 cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h. */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h. */
5204$ac_includes_default
5205int
5206main ()
5207{
5208
5209 /* Are we little or big endian? From Harbison&Steele. */
5210 union
5211 {
5212 long int l;
5213 char c[sizeof (long int)];
5214 } u;
5215 u.l = 1;
5216 return u.c[sizeof (long int) - 1] == 1;
5217
5218 ;
5219 return 0;
5220}
5221_ACEOF
5222rm -f conftest$ac_exeext
5223if { (ac_try="$ac_link"
5224case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227esac
5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_link") 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5233 { (case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236esac
5237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_try") 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_c_bigendian=no
5243else
5244 echo "$as_me: program exited with status $ac_status" >&5
5245echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248( exit $ac_status )
5249ac_cv_c_bigendian=yes
5250fi
5251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5252fi
5253
5254
5255fi
5256
5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258fi
5259{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5260echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5261case $ac_cv_c_bigendian in
5262 yes)
5263
5264cat >>confdefs.h <<\_ACEOF
5265#define Z_BYTE_ORDER 4321
5266_ACEOF
5267 ;;
5268 no)
5269
5270cat >>confdefs.h <<\_ACEOF
5271#define Z_BYTE_ORDER 1234
5272_ACEOF
5273 ;;
5274 *)
5275 { { echo "$as_me:$LINENO: error: unknown endianness
5276presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5277echo "$as_me: error: unknown endianness
5278presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5280esac
5281
5282
5283# Check whether --enable-shared was given.
5284if test "${enable_shared+set}" = set; then
5285 enableval=$enable_shared; p=${PACKAGE-default}
5286 case $enableval in
5287 yes) enable_shared=yes ;;
5288 no) enable_shared=no ;;
5289 *)
5290 enable_shared=no
5291 # Look at the argument we got. We use all the common list separators.
5292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5293 for pkg in $enableval; do
5294 IFS="$lt_save_ifs"
5295 if test "X$pkg" = "X$p"; then
5296 enable_shared=yes
5297 fi
5298 done
5299 IFS="$lt_save_ifs"
5300 ;;
5301 esac
5302else
5303 enable_shared=yes
5304fi
5305
5306
5307# Check whether --enable-static was given.
5308if test "${enable_static+set}" = set; then
5309 enableval=$enable_static; p=${PACKAGE-default}
5310 case $enableval in
5311 yes) enable_static=yes ;;
5312 no) enable_static=no ;;
5313 *)
5314 enable_static=no
5315 # Look at the argument we got. We use all the common list separators.
5316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5317 for pkg in $enableval; do
5318 IFS="$lt_save_ifs"
5319 if test "X$pkg" = "X$p"; then
5320 enable_static=yes
5321 fi
5322 done
5323 IFS="$lt_save_ifs"
5324 ;;
5325 esac
5326else
5327 enable_static=yes
5328fi
5329
5330
5331# Check whether --enable-fast-install was given.
5332if test "${enable_fast_install+set}" = set; then
5333 enableval=$enable_fast_install; p=${PACKAGE-default}
5334 case $enableval in
5335 yes) enable_fast_install=yes ;;
5336 no) enable_fast_install=no ;;
5337 *)
5338 enable_fast_install=no
5339 # Look at the argument we got. We use all the common list separators.
5340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5341 for pkg in $enableval; do
5342 IFS="$lt_save_ifs"
5343 if test "X$pkg" = "X$p"; then
5344 enable_fast_install=yes
5345 fi
5346 done
5347 IFS="$lt_save_ifs"
5348 ;;
5349 esac
5350else
5351 enable_fast_install=yes
5352fi
5353
5354
5355# Make sure we can run config.sub.
5356$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5357 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5358echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5359 { (exit 1); exit 1; }; }
5360
5361{ echo "$as_me:$LINENO: checking build system type" >&5
5362echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5363if test "${ac_cv_build+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 ac_build_alias=$build_alias
5367test "x$ac_build_alias" = x &&
5368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5369test "x$ac_build_alias" = x &&
5370 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5371echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5372 { (exit 1); exit 1; }; }
5373ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5374 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5375echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5376 { (exit 1); exit 1; }; }
5377
5378fi
5379{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5380echo "${ECHO_T}$ac_cv_build" >&6; }
5381case $ac_cv_build in
5382*-*-*) ;;
5383*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5384echo "$as_me: error: invalid value of canonical build" >&2;}
5385 { (exit 1); exit 1; }; };;
5386esac
5387build=$ac_cv_build
5388ac_save_IFS=$IFS; IFS='-'
5389set x $ac_cv_build
5390shift
5391build_cpu=$1
5392build_vendor=$2
5393shift; shift
5394# Remember, the first character of IFS is used to create $*,
5395# except with old shells:
5396build_os=$*
5397IFS=$ac_save_IFS
5398case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5399
5400
5401{ echo "$as_me:$LINENO: checking host system type" >&5
5402echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5403if test "${ac_cv_host+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406 if test "x$host_alias" = x; then
5407 ac_cv_host=$ac_cv_build
5408else
5409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5410 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5411echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5412 { (exit 1); exit 1; }; }
5413fi
5414
5415fi
5416{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5417echo "${ECHO_T}$ac_cv_host" >&6; }
5418case $ac_cv_host in
5419*-*-*) ;;
5420*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5421echo "$as_me: error: invalid value of canonical host" >&2;}
5422 { (exit 1); exit 1; }; };;
5423esac
5424host=$ac_cv_host
5425ac_save_IFS=$IFS; IFS='-'
5426set x $ac_cv_host
5427shift
5428host_cpu=$1
5429host_vendor=$2
5430shift; shift
5431# Remember, the first character of IFS is used to create $*,
5432# except with old shells:
5433host_os=$*
5434IFS=$ac_save_IFS
5435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5436
5437
5438{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5439echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5440if test "${lt_cv_path_SED+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443 # Loop through the user's path and test for sed and gsed.
5444# Then use that list of sed's as ones to test for truncation.
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for lt_ac_prog in sed gsed; do
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5453 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5454 fi
5455 done
5456 done
5457done
5458lt_ac_max=0
5459lt_ac_count=0
5460# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5461# along with /bin/sed that truncates output.
5462for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5463 test ! -f $lt_ac_sed && continue
5464 cat /dev/null > conftest.in
5465 lt_ac_count=0
5466 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5467 # Check for GNU sed and select it if it is found.
5468 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5469 lt_cv_path_SED=$lt_ac_sed
5470 break
5471 fi
5472 while true; do
5473 cat conftest.in conftest.in >conftest.tmp
5474 mv conftest.tmp conftest.in
5475 cp conftest.in conftest.nl
5476 echo >>conftest.nl
5477 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5478 cmp -s conftest.out conftest.nl || break
5479 # 10000 chars as input seems more than enough
5480 test $lt_ac_count -gt 10 && break
5481 lt_ac_count=`expr $lt_ac_count + 1`
5482 if test $lt_ac_count -gt $lt_ac_max; then
5483 lt_ac_max=$lt_ac_count
5484 lt_cv_path_SED=$lt_ac_sed
5485 fi
5486 done
5487done
5488
5489fi
5490
5491SED=$lt_cv_path_SED
5492{ echo "$as_me:$LINENO: result: $SED" >&5
5493echo "${ECHO_T}$SED" >&6; }
5494
5495
5496# Check whether --with-gnu-ld was given.
5497if test "${with_gnu_ld+set}" = set; then
5498 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5499else
5500 with_gnu_ld=no
5501fi
5502
5503ac_prog=ld
5504if test "$GCC" = yes; then
5505 # Check if gcc -print-prog-name=ld gives a path.
5506 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5507echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5508 case $host in
5509 *-*-mingw*)
5510 # gcc leaves a trailing carriage return which upsets mingw
5511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5512 *)
5513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5514 esac
5515 case $ac_prog in
5516 # Accept absolute paths.
5517 [\\/]* | ?:[\\/]*)
5518 re_direlt='/[^/][^/]*/\.\./'
5519 # Canonicalize the pathname of ld
5520 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5521 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5522 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5523 done
5524 test -z "$LD" && LD="$ac_prog"
5525 ;;
5526 "")
5527 # If it fails, then pretend we aren't using GCC.
5528 ac_prog=ld
5529 ;;
5530 *)
5531 # If it is relative, then search for the first ld in PATH.
5532 with_gnu_ld=unknown
5533 ;;
5534 esac
5535elif test "$with_gnu_ld" = yes; then
5536 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5537echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5538else
5539 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5540echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5541fi
5542if test "${lt_cv_path_LD+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 if test -z "$LD"; then
5546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5547 for ac_dir in $PATH; do
5548 IFS="$lt_save_ifs"
5549 test -z "$ac_dir" && ac_dir=.
5550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551 lt_cv_path_LD="$ac_dir/$ac_prog"
5552 # Check to see if the program is GNU ld. I'd rather use --version,
5553 # but apparently some variants of GNU ld only accept -v.
5554 # Break only if it was the GNU/non-GNU ld that we prefer.
5555 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5556 *GNU* | *'with BFD'*)
5557 test "$with_gnu_ld" != no && break
5558 ;;
5559 *)
5560 test "$with_gnu_ld" != yes && break
5561 ;;
5562 esac
5563 fi
5564 done
5565 IFS="$lt_save_ifs"
5566else
5567 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5568fi
5569fi
5570
5571LD="$lt_cv_path_LD"
5572if test -n "$LD"; then
5573 { echo "$as_me:$LINENO: result: $LD" >&5
5574echo "${ECHO_T}$LD" >&6; }
5575else
5576 { echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6; }
5578fi
5579test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5580echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5581 { (exit 1); exit 1; }; }
5582{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5583echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5584if test "${lt_cv_prog_gnu_ld+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5588case `$LD -v 2>&1 </dev/null` in
5589*GNU* | *'with BFD'*)
5590 lt_cv_prog_gnu_ld=yes
5591 ;;
5592*)
5593 lt_cv_prog_gnu_ld=no
5594 ;;
5595esac
5596fi
5597{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5598echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5599with_gnu_ld=$lt_cv_prog_gnu_ld
5600
5601
5602{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5603echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5604if test "${lt_cv_ld_reload_flag+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 lt_cv_ld_reload_flag='-r'
5608fi
5609{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5610echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5611reload_flag=$lt_cv_ld_reload_flag
5612case $reload_flag in
5613"" | " "*) ;;
5614*) reload_flag=" $reload_flag" ;;
5615esac
5616reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617case $host_os in
5618 darwin*)
5619 if test "$GCC" = yes; then
5620 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5621 else
5622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623 fi
5624 ;;
5625esac
5626
5627{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5628echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5629if test "${lt_cv_path_NM+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632 if test -n "$NM"; then
5633 # Let the user override the test.
5634 lt_cv_path_NM="$NM"
5635else
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5638 IFS="$lt_save_ifs"
5639 test -z "$ac_dir" && ac_dir=.
5640 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5641 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5642 # Check to see if the nm accepts a BSD-compat flag.
5643 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5644 # nm: unknown option "B" ignored
5645 # Tru64's nm complains that /dev/null is an invalid object file
5646 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5647 */dev/null* | *'Invalid file or object type'*)
5648 lt_cv_path_NM="$tmp_nm -B"
5649 break
5650 ;;
5651 *)
5652 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5653 */dev/null*)
5654 lt_cv_path_NM="$tmp_nm -p"
5655 break
5656 ;;
5657 *)
5658 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5659 continue # so that we can try to find one that supports BSD flags
5660 ;;
5661 esac
5662 esac
5663 fi
5664 done
5665 IFS="$lt_save_ifs"
5666 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5667fi
5668fi
5669{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5670echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5671NM="$lt_cv_path_NM"
5672
5673{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5674echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5675LN_S=$as_ln_s
5676if test "$LN_S" = "ln -s"; then
5677 { echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6; }
5679else
5680 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5681echo "${ECHO_T}no, using $LN_S" >&6; }
5682fi
5683
5684{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5685echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5686if test "${lt_cv_deplibs_check_method+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689 lt_cv_file_magic_cmd='$MAGIC_CMD'
5690lt_cv_file_magic_test_file=
5691lt_cv_deplibs_check_method='unknown'
5692# Need to set the preceding variable on all platforms that support
5693# interlibrary dependencies.
5694# 'none' -- dependencies not supported.
5695# `unknown' -- same as none, but documents that we really don't know.
5696# 'pass_all' -- all dependencies passed with no checks.
5697# 'test_compile' -- check by making test program.
5698# 'file_magic [[regex]]' -- check by looking for files in library path
5699# which responds to the $file_magic_cmd with a given extended regex.
5700# If you have `file' or equivalent on your system and you're not sure
5701# whether `pass_all' will *always* work, you probably want this one.
5702
5703case $host_os in
5704aix4* | aix5*)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707
5708beos*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712bsdi[45]*)
5713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5714 lt_cv_file_magic_cmd='/usr/bin/file -L'
5715 lt_cv_file_magic_test_file=/shlib/libc.so
5716 ;;
5717
5718cygwin*)
5719 # func_win32_libid is a shell function defined in ltmain.sh
5720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721 lt_cv_file_magic_cmd='func_win32_libid'
5722 ;;
5723
5724mingw* | pw32*)
5725 # Base MSYS/MinGW do not provide the 'file' command needed by
5726 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5727 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5728 lt_cv_file_magic_cmd='$OBJDUMP -f'
5729 ;;
5730
5731darwin* | rhapsody*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734
5735freebsd* | kfreebsd*-gnu | dragonfly*)
5736 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5737 case $host_cpu in
5738 i*86 )
5739 # Not sure whether the presence of OpenBSD here was a mistake.
5740 # Let's accept both of them until this is cleared up.
5741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5744 ;;
5745 esac
5746 else
5747 lt_cv_deplibs_check_method=pass_all
5748 fi
5749 ;;
5750
5751gnu*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755hpux10.20* | hpux11*)
5756 lt_cv_file_magic_cmd=/usr/bin/file
5757 case $host_cpu in
5758 ia64*)
5759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5761 ;;
5762 hppa*64*)
5763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5765 ;;
5766 *)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5769 ;;
5770 esac
5771 ;;
5772
5773irix5* | irix6* | nonstopux*)
5774 case $LD in
5775 *-32|*"-32 ") libmagic=32-bit;;
5776 *-n32|*"-n32 ") libmagic=N32;;
5777 *-64|*"-64 ") libmagic=64-bit;;
5778 *) libmagic=never-match;;
5779 esac
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782
5783# This must be Linux ELF.
5784linux*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788netbsd*)
5789 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5791 else
5792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5793 fi
5794 ;;
5795
5796newos6*)
5797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5798 lt_cv_file_magic_cmd=/usr/bin/file
5799 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5800 ;;
5801
5802nto-qnx*)
5803 lt_cv_deplibs_check_method=unknown
5804 ;;
5805
5806openbsd*)
5807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5809 else
5810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5811 fi
5812 ;;
5813
5814osf3* | osf4* | osf5*)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818sco3.2v5*)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821
5822solaris*)
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
5825
5826sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5827 case $host_vendor in
5828 motorola)
5829 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]'
5830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5831 ;;
5832 ncr)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835 sequent)
5836 lt_cv_file_magic_cmd='/bin/file'
5837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5838 ;;
5839 sni)
5840 lt_cv_file_magic_cmd='/bin/file'
5841 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5842 lt_cv_file_magic_test_file=/lib/libc.so
5843 ;;
5844 siemens)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847 esac
5848 ;;
5849
5850sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853esac
5854
5855fi
5856{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5857echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5858file_magic_cmd=$lt_cv_file_magic_cmd
5859deplibs_check_method=$lt_cv_deplibs_check_method
5860test -z "$deplibs_check_method" && deplibs_check_method=unknown
5861
5862
5863
5864
5865# If no C compiler was specified, use CC.
5866LTCC=${LTCC-"$CC"}
5867
5868# Allow CC to be a program name with arguments.
5869compiler=$CC
5870
5871# Check whether --enable-libtool-lock was given.
5872if test "${enable_libtool_lock+set}" = set; then
5873 enableval=$enable_libtool_lock;
5874fi
5875
5876test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5877
5878# Some flags need to be propagated to the compiler or linker for good
5879# libtool support.
5880case $host in
5881ia64-*-hpux*)
5882 # Find out which ABI we are using.
5883 echo 'int i;' > conftest.$ac_ext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 (eval $ac_compile) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; then
5889 case `/usr/bin/file conftest.$ac_objext` in
5890 *ELF-32*)
5891 HPUX_IA64_MODE="32"
5892 ;;
5893 *ELF-64*)
5894 HPUX_IA64_MODE="64"
5895 ;;
5896 esac
5897 fi
5898 rm -rf conftest*
5899 ;;
5900*-*-irix6*)
5901 # Find out which ABI we are using.
5902 echo '#line 5902 "configure"' > conftest.$ac_ext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904 (eval $ac_compile) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; then
5908 if test "$lt_cv_prog_gnu_ld" = yes; then
5909 case `/usr/bin/file conftest.$ac_objext` in
5910 *32-bit*)
5911 LD="${LD-ld} -melf32bsmip"
5912 ;;
5913 *N32*)
5914 LD="${LD-ld} -melf32bmipn32"
5915 ;;
5916 *64-bit*)
5917 LD="${LD-ld} -melf64bmip"
5918 ;;
5919 esac
5920 else
5921 case `/usr/bin/file conftest.$ac_objext` in
5922 *32-bit*)
5923 LD="${LD-ld} -32"
5924 ;;
5925 *N32*)
5926 LD="${LD-ld} -n32"
5927 ;;
5928 *64-bit*)
5929 LD="${LD-ld} -64"
5930 ;;
5931 esac
5932 fi
5933 fi
5934 rm -rf conftest*
5935 ;;
5936
5937x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5938 # Find out which ABI we are using.
5939 echo 'int i;' > conftest.$ac_ext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; then
5945 case `/usr/bin/file conftest.o` in
5946 *32-bit*)
5947 case $host in
5948 x86_64-*linux*)
5949 LD="${LD-ld} -m elf_i386"
5950 ;;
5951 ppc64-*linux*|powerpc64-*linux*)
5952 LD="${LD-ld} -m elf32ppclinux"
5953 ;;
5954 s390x-*linux*)
5955 LD="${LD-ld} -m elf_s390"
5956 ;;
5957 sparc64-*linux*)
5958 LD="${LD-ld} -m elf32_sparc"
5959 ;;
5960 esac
5961 ;;
5962 *64-bit*)
5963 case $host in
5964 x86_64-*linux*)
5965 LD="${LD-ld} -m elf_x86_64"
5966 ;;
5967 ppc*-*linux*|powerpc*-*linux*)
5968 LD="${LD-ld} -m elf64ppc"
5969 ;;
5970 s390*-*linux*)
5971 LD="${LD-ld} -m elf64_s390"
5972 ;;
5973 sparc*-*linux*)
5974 LD="${LD-ld} -m elf64_sparc"
5975 ;;
5976 esac
5977 ;;
5978 esac
5979 fi
5980 rm -rf conftest*
5981 ;;
5982
5983*-*-sco3.2v5*)
5984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5985 SAVE_CFLAGS="$CFLAGS"
5986 CFLAGS="$CFLAGS -belf"
5987 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5988echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5989if test "${lt_cv_cc_needs_belf+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 ac_ext=c
5993ac_cpp='$CPP $CPPFLAGS'
5994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
5998 cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h. */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h. */
6004
6005int
6006main ()
6007{
6008
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext conftest$ac_exeext
6014if { (ac_try="$ac_link"
6015case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018esac
6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_link") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } && {
6027 test -z "$ac_c_werror_flag" ||
6028 test ! -s conftest.err
6029 } && test -s conftest$ac_exeext &&
6030 $as_test_x conftest$ac_exeext; then
6031 lt_cv_cc_needs_belf=yes
6032else
6033 echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036 lt_cv_cc_needs_belf=no
6037fi
6038
6039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6040 conftest$ac_exeext conftest.$ac_ext
6041 ac_ext=c
6042ac_cpp='$CPP $CPPFLAGS'
6043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046
6047fi
6048{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6049echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6050 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6051 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6052 CFLAGS="$SAVE_CFLAGS"
6053 fi
6054 ;;
6055
6056esac
6057
6058need_locks="$enable_libtool_lock"
6059
6060
6061
6062for ac_header in dlfcn.h
6063do
6064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070fi
6071ac_res=`eval echo '${'$as_ac_Header'}'`
6072 { echo "$as_me:$LINENO: result: $ac_res" >&5
6073echo "${ECHO_T}$ac_res" >&6; }
6074else
6075 # Is the header compilable?
6076{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6078cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084$ac_includes_default
6085#include <$ac_header>
6086_ACEOF
6087rm -f conftest.$ac_objext
6088if { (ac_try="$ac_compile"
6089case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092esac
6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_header_compiler=yes
6105else
6106 echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_header_compiler=no
6110fi
6111
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6114echo "${ECHO_T}$ac_header_compiler" >&6; }
6115
6116# Is the header present?
6117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6119cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125#include <$ac_header>
6126_ACEOF
6127if { (ac_try="$ac_cpp conftest.$ac_ext"
6128case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131esac
6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null && {
6140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6141 test ! -s conftest.err
6142 }; then
6143 ac_header_preproc=yes
6144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148 ac_header_preproc=no
6149fi
6150
6151rm -f conftest.err conftest.$ac_ext
6152{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153echo "${ECHO_T}$ac_header_preproc" >&6; }
6154
6155# So? What about this header?
6156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157 yes:no: )
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6162 ac_header_preproc=yes
6163 ;;
6164 no:yes:* )
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6177
6178 ;;
6179esac
6180{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185 eval "$as_ac_Header=\$ac_header_preproc"
6186fi
6187ac_res=`eval echo '${'$as_ac_Header'}'`
6188 { echo "$as_me:$LINENO: result: $ac_res" >&5
6189echo "${ECHO_T}$ac_res" >&6; }
6190
6191fi
6192if test `eval echo '${'$as_ac_Header'}'` = yes; then
6193 cat >>confdefs.h <<_ACEOF
6194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6195_ACEOF
6196
6197fi
6198
6199done
6200
6201
6202
6203if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6204 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6205 (test "X$CXX" != "Xg++"))) ; then
6206 ac_ext=cpp
6207ac_cpp='$CXXCPP $CPPFLAGS'
6208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6211{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6212echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6213if test -z "$CXXCPP"; then
6214 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217 # Double quotes because CXXCPP needs to be expanded
6218 for CXXCPP in "$CXX -E" "/lib/cpp"
6219 do
6220 ac_preproc_ok=false
6221for ac_cxx_preproc_warn_flag in '' yes
6222do
6223 # Use a header file that comes with gcc, so configuring glibc
6224 # with a fresh cross-compiler works.
6225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 # <limits.h> exists even on freestanding compilers.
6227 # On the NeXT, cc -E runs the code through the compiler's parser,
6228 # not just through cpp. "Syntax error" is here to catch this case.
6229 cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h. */
6235#ifdef __STDC__
6236# include <limits.h>
6237#else
6238# include <assert.h>
6239#endif
6240 Syntax error
6241_ACEOF
6242if { (ac_try="$ac_cpp conftest.$ac_ext"
6243case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } >/dev/null && {
6255 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6256 test ! -s conftest.err
6257 }; then
6258 :
6259else
6260 echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 # Broken: fails on valid input.
6264continue
6265fi
6266
6267rm -f conftest.err conftest.$ac_ext
6268
6269 # OK, works on sane cases. Now check whether nonexistent headers
6270 # can be detected and how.
6271 cat >conftest.$ac_ext <<_ACEOF
6272/* confdefs.h. */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h. */
6277#include <ac_nonexistent.h>
6278_ACEOF
6279if { (ac_try="$ac_cpp conftest.$ac_ext"
6280case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283esac
6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } >/dev/null && {
6292 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6293 test ! -s conftest.err
6294 }; then
6295 # Broken: success on invalid input.
6296continue
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 # Passes both tests.
6302ac_preproc_ok=:
6303break
6304fi
6305
6306rm -f conftest.err conftest.$ac_ext
6307
6308done
6309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310rm -f conftest.err conftest.$ac_ext
6311if $ac_preproc_ok; then
6312 break
6313fi
6314
6315 done
6316 ac_cv_prog_CXXCPP=$CXXCPP
6317
6318fi
6319 CXXCPP=$ac_cv_prog_CXXCPP
6320else
6321 ac_cv_prog_CXXCPP=$CXXCPP
6322fi
6323{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6324echo "${ECHO_T}$CXXCPP" >&6; }
6325ac_preproc_ok=false
6326for ac_cxx_preproc_warn_flag in '' yes
6327do
6328 # Use a header file that comes with gcc, so configuring glibc
6329 # with a fresh cross-compiler works.
6330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6331 # <limits.h> exists even on freestanding compilers.
6332 # On the NeXT, cc -E runs the code through the compiler's parser,
6333 # not just through cpp. "Syntax error" is here to catch this case.
6334 cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
6340#ifdef __STDC__
6341# include <limits.h>
6342#else
6343# include <assert.h>
6344#endif
6345 Syntax error
6346_ACEOF
6347if { (ac_try="$ac_cpp conftest.$ac_ext"
6348case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null && {
6360 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6361 test ! -s conftest.err
6362 }; then
6363 :
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 # Broken: fails on valid input.
6369continue
6370fi
6371
6372rm -f conftest.err conftest.$ac_ext
6373
6374 # OK, works on sane cases. Now check whether nonexistent headers
6375 # can be detected and how.
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382#include <ac_nonexistent.h>
6383_ACEOF
6384if { (ac_try="$ac_cpp conftest.$ac_ext"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null && {
6397 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6398 test ! -s conftest.err
6399 }; then
6400 # Broken: success on invalid input.
6401continue
6402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 # Passes both tests.
6407ac_preproc_ok=:
6408break
6409fi
6410
6411rm -f conftest.err conftest.$ac_ext
6412
6413done
6414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6415rm -f conftest.err conftest.$ac_ext
6416if $ac_preproc_ok; then
6417 :
6418else
6419 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6420See \`config.log' for more details." >&5
6421echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6422See \`config.log' for more details." >&2;}
6423 { (exit 1); exit 1; }; }
6424fi
6425
6426ac_ext=cpp
6427ac_cpp='$CXXCPP $CPPFLAGS'
6428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6431
6432fi
6433
6434
6435ac_ext=f
6436ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6437ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6439if test -n "$ac_tool_prefix"; then
6440 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6441 do
6442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446if test "${ac_cv_prog_F77+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449 if test -n "$F77"; then
6450 ac_cv_prog_F77="$F77" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469F77=$ac_cv_prog_F77
6470if test -n "$F77"; then
6471 { echo "$as_me:$LINENO: result: $F77" >&5
6472echo "${ECHO_T}$F77" >&6; }
6473else
6474 { echo "$as_me:$LINENO: result: no" >&5
6475echo "${ECHO_T}no" >&6; }
6476fi
6477
6478
6479 test -n "$F77" && break
6480 done
6481fi
6482if test -z "$F77"; then
6483 ac_ct_F77=$F77
6484 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6485do
6486 # Extract the first word of "$ac_prog", so it can be a program name with args.
6487set dummy $ac_prog; ac_word=$2
6488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
6493 if test -n "$ac_ct_F77"; then
6494 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_F77="$ac_prog"
6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_F77=$ac_cv_prog_ac_ct_F77
6514if test -n "$ac_ct_F77"; then
6515 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6516echo "${ECHO_T}$ac_ct_F77" >&6; }
6517else
6518 { echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6; }
6520fi
6521
6522
6523 test -n "$ac_ct_F77" && break
6524done
6525
6526 if test "x$ac_ct_F77" = x; then
6527 F77=""
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530yes:)
6531{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6532whose name does not start with the host triplet. If you think this
6533configuration is useful to you, please write to autoconf@gnu.org." >&5
6534echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6535whose name does not start with the host triplet. If you think this
6536configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6537ac_tool_warned=yes ;;
6538esac
6539 F77=$ac_ct_F77
6540 fi
6541fi
6542
6543
6544# Provide some information about the compiler.
6545echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6546ac_compiler=`set X $ac_compile; echo $2`
6547{ (ac_try="$ac_compiler --version >&5"
6548case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551esac
6552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_compiler --version >&5") 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }
6557{ (ac_try="$ac_compiler -v >&5"
6558case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compiler -v >&5") 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }
6567{ (ac_try="$ac_compiler -V >&5"
6568case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
6572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compiler -V >&5") 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }
6577rm -f a.out
6578
6579# If we don't use `.F' as extension, the preprocessor is not run on the
6580# input file. (Note that this only needs to work for GNU compilers.)
6581ac_save_ext=$ac_ext
6582ac_ext=F
6583{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6584echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6585if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 cat >conftest.$ac_ext <<_ACEOF
6589 program main
6590#ifndef __GNUC__
6591 choke me
6592#endif
6593
6594 end
6595_ACEOF
6596rm -f conftest.$ac_objext
6597if { (ac_try="$ac_compile"
6598case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_f77_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 ac_compiler_gnu=yes
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_compiler_gnu=no
6619fi
6620
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6623
6624fi
6625{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6626echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6627ac_ext=$ac_save_ext
6628ac_test_FFLAGS=${FFLAGS+set}
6629ac_save_FFLAGS=$FFLAGS
6630FFLAGS=
6631{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6632echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6633if test "${ac_cv_prog_f77_g+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 FFLAGS=-g
6637cat >conftest.$ac_ext <<_ACEOF
6638 program main
6639
6640 end
6641_ACEOF
6642rm -f conftest.$ac_objext
6643if { (ac_try="$ac_compile"
6644case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647esac
6648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_f77_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.$ac_objext; then
6659 ac_cv_prog_f77_g=yes
6660else
6661 echo "$as_me: failed program was:" >&5
6662sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 ac_cv_prog_f77_g=no
6665fi
6666
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668
6669fi
6670{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6671echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6672if test "$ac_test_FFLAGS" = set; then
6673 FFLAGS=$ac_save_FFLAGS
6674elif test $ac_cv_prog_f77_g = yes; then
6675 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6676 FFLAGS="-g -O2"
6677 else
6678 FFLAGS="-g"
6679 fi
6680else
6681 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6682 FFLAGS="-O2"
6683 else
6684 FFLAGS=
6685 fi
6686fi
6687
6688G77=`test $ac_compiler_gnu = yes && echo yes`
6689ac_ext=c
6690ac_cpp='$CPP $CPPFLAGS'
6691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
6695
6696
6697# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6698
6699# find the maximum length of command line arguments
6700{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6701echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6702if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705 i=0
6706 teststring="ABCD"
6707
6708 case $build_os in
6709 msdosdjgpp*)
6710 # On DJGPP, this test can blow up pretty badly due to problems in libc
6711 # (any single argument exceeding 2000 bytes causes a buffer overrun
6712 # during glob expansion). Even if it were fixed, the result of this
6713 # check would be larger than it should be.
6714 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6715 ;;
6716
6717 gnu*)
6718 # Under GNU Hurd, this test is not required because there is
6719 # no limit to the length of command line arguments.
6720 # Libtool will interpret -1 as no limit whatsoever
6721 lt_cv_sys_max_cmd_len=-1;
6722 ;;
6723
6724 cygwin* | mingw*)
6725 # On Win9x/ME, this test blows up -- it succeeds, but takes
6726 # about 5 minutes as the teststring grows exponentially.
6727 # Worse, since 9x/ME are not pre-emptively multitasking,
6728 # you end up with a "frozen" computer, even though with patience
6729 # the test eventually succeeds (with a max line length of 256k).
6730 # Instead, let's just punt: use the minimum linelength reported by
6731 # all of the supported platforms: 8192 (on NT/2K/XP).
6732 lt_cv_sys_max_cmd_len=8192;
6733 ;;
6734
6735 amigaos*)
6736 # On AmigaOS with pdksh, this test takes hours, literally.
6737 # So we just punt and use a minimum line length of 8192.
6738 lt_cv_sys_max_cmd_len=8192;
6739 ;;
6740
6741 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6742 # This has been around since 386BSD, at least. Likely further.
6743 if test -x /sbin/sysctl; then
6744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6745 elif test -x /usr/sbin/sysctl; then
6746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6747 else
6748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6749 fi
6750 # And add a safety zone
6751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6753 ;;
6754 osf*)
6755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6757 # nice to cause kernel panics so lets avoid the loop below.
6758 # First set a reasonable default.
6759 lt_cv_sys_max_cmd_len=16384
6760 #
6761 if test -x /sbin/sysconfig; then
6762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6764 esac
6765 fi
6766 ;;
6767 *)
6768 # If test is not a shell built-in, we'll probably end up computing a
6769 # maximum length that is only half of the actual maximum length, but
6770 # we can't tell.
6771 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6772 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6773 = "XX$teststring") >/dev/null 2>&1 &&
6774 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6775 lt_cv_sys_max_cmd_len=$new_result &&
6776 test $i != 17 # 1/2 MB should be enough
6777 do
6778 i=`expr $i + 1`
6779 teststring=$teststring$teststring
6780 done
6781 teststring=
6782 # Add a significant safety factor because C++ compilers can tack on massive
6783 # amounts of additional arguments before passing them to the linker.
6784 # It appears as though 1/2 is a usable value.
6785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6786 ;;
6787 esac
6788
6789fi
6790
6791if test -n $lt_cv_sys_max_cmd_len ; then
6792 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6793echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6794else
6795 { echo "$as_me:$LINENO: result: none" >&5
6796echo "${ECHO_T}none" >&6; }
6797fi
6798
6799
6800
6801
6802# Check for command to grab the raw symbol name followed by C symbol from nm.
6803{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6804echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6805if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808
6809# These are sane defaults that work on at least a few old systems.
6810# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6811
6812# Character class describing NM global symbol codes.
6813symcode='[BCDEGRST]'
6814
6815# Regexp to match symbols that can be accessed directly from C.
6816sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6817
6818# Transform an extracted symbol line into a proper C declaration
6819lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6820
6821# Transform an extracted symbol line into symbol name and symbol address
6822lt_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'"
6823
6824# Define system-specific variables.
6825case $host_os in
6826aix*)
6827 symcode='[BCDT]'
6828 ;;
6829cygwin* | mingw* | pw32*)
6830 symcode='[ABCDGISTW]'
6831 ;;
6832hpux*) # Its linker distinguishes data from code symbols
6833 if test "$host_cpu" = ia64; then
6834 symcode='[ABCDEGRST]'
6835 fi
6836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6837 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'"
6838 ;;
6839linux*)
6840 if test "$host_cpu" = ia64; then
6841 symcode='[ABCDGIRSTW]'
6842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6843 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'"
6844 fi
6845 ;;
6846irix* | nonstopux*)
6847 symcode='[BCDEGRST]'
6848 ;;
6849osf*)
6850 symcode='[BCDEGQRST]'
6851 ;;
6852solaris* | sysv5*)
6853 symcode='[BDRT]'
6854 ;;
6855sysv4)
6856 symcode='[DFNSTU]'
6857 ;;
6858esac
6859
6860# Handle CRLF in mingw tool chain
6861opt_cr=
6862case $build_os in
6863mingw*)
6864 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6865 ;;
6866esac
6867
6868# If we're using GNU nm, then use its standard symbol codes.
6869case `$NM -V 2>&1` in
6870*GNU* | *'with BFD'*)
6871 symcode='[ABCDGIRSTW]' ;;
6872esac
6873
6874# Try without a prefix undercore, then with it.
6875for ac_symprfx in "" "_"; do
6876
6877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6878 symxfrm="\\1 $ac_symprfx\\2 \\2"
6879
6880 # Write the raw and C identifiers.
6881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882
6883 # Check to see that the pipe works correctly.
6884 pipe_works=no
6885
6886 rm -f conftest*
6887 cat > conftest.$ac_ext <<EOF
6888#ifdef __cplusplus
6889extern "C" {
6890#endif
6891char nm_test_var;
6892void nm_test_func(){}
6893#ifdef __cplusplus
6894}
6895#endif
6896int main(){nm_test_var='a';nm_test_func();return(0);}
6897EOF
6898
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; then
6904 # Now try to grab the symbols.
6905 nlist=conftest.nm
6906 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6907 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && test -s "$nlist"; then
6911 # Try sorting and uniquifying the output.
6912 if sort "$nlist" | uniq > "$nlist"T; then
6913 mv -f "$nlist"T "$nlist"
6914 else
6915 rm -f "$nlist"T
6916 fi
6917
6918 # Make sure that we snagged all the symbols we need.
6919 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6920 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6921 cat <<EOF > conftest.$ac_ext
6922#ifdef __cplusplus
6923extern "C" {
6924#endif
6925
6926EOF
6927 # Now generate the symbol file.
6928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6929
6930 cat <<EOF >> conftest.$ac_ext
6931#if defined (__STDC__) && __STDC__
6932# define lt_ptr_t void *
6933#else
6934# define lt_ptr_t char *
6935# define const
6936#endif
6937
6938/* The mapping between symbol names and symbols. */
6939const struct {
6940 const char *name;
6941 lt_ptr_t address;
6942}
6943lt_preloaded_symbols[] =
6944{
6945EOF
6946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6947 cat <<\EOF >> conftest.$ac_ext
6948 {0, (lt_ptr_t) 0}
6949};
6950
6951#ifdef __cplusplus
6952}
6953#endif
6954EOF
6955 # Now try linking the two files.
6956 mv conftest.$ac_objext conftstm.$ac_objext
6957 lt_save_LIBS="$LIBS"
6958 lt_save_CFLAGS="$CFLAGS"
6959 LIBS="conftstm.$ac_objext"
6960 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6966 pipe_works=yes
6967 fi
6968 LIBS="$lt_save_LIBS"
6969 CFLAGS="$lt_save_CFLAGS"
6970 else
6971 echo "cannot find nm_test_func in $nlist" >&5
6972 fi
6973 else
6974 echo "cannot find nm_test_var in $nlist" >&5
6975 fi
6976 else
6977 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6978 fi
6979 else
6980 echo "$progname: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6982 fi
6983 rm -f conftest* conftst*
6984
6985 # Do not use the global_symbol_pipe unless it works.
6986 if test "$pipe_works" = yes; then
6987 break
6988 else
6989 lt_cv_sys_global_symbol_pipe=
6990 fi
6991done
6992
6993fi
6994
6995if test -z "$lt_cv_sys_global_symbol_pipe"; then
6996 lt_cv_sys_global_symbol_to_cdecl=
6997fi
6998if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6999 { echo "$as_me:$LINENO: result: failed" >&5
7000echo "${ECHO_T}failed" >&6; }
7001else
7002 { echo "$as_me:$LINENO: result: ok" >&5
7003echo "${ECHO_T}ok" >&6; }
7004fi
7005
7006{ echo "$as_me:$LINENO: checking for objdir" >&5
7007echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7008if test "${lt_cv_objdir+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011 rm -f .libs 2>/dev/null
7012mkdir .libs 2>/dev/null
7013if test -d .libs; then
7014 lt_cv_objdir=.libs
7015else
7016 # MS-DOS does not allow filenames that begin with a dot.
7017 lt_cv_objdir=_libs
7018fi
7019rmdir .libs 2>/dev/null
7020fi
7021{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7022echo "${ECHO_T}$lt_cv_objdir" >&6; }
7023objdir=$lt_cv_objdir
7024
7025
7026
7027
7028
7029case $host_os in
7030aix3*)
7031 # AIX sometimes has problems with the GCC collect2 program. For some
7032 # reason, if we set the COLLECT_NAMES environment variable, the problems
7033 # vanish in a puff of smoke.
7034 if test "X${COLLECT_NAMES+set}" != Xset; then
7035 COLLECT_NAMES=
7036 export COLLECT_NAMES
7037 fi
7038 ;;
7039esac
7040
7041# Sed substitution that helps us do robust quoting. It backslashifies
7042# metacharacters that are still active within double-quoted strings.
7043Xsed='sed -e 1s/^X//'
7044sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7045
7046# Same as above, but do not quote variable references.
7047double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7048
7049# Sed substitution to delay expansion of an escaped shell variable in a
7050# double_quote_subst'ed string.
7051delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7052
7053# Sed substitution to avoid accidental globbing in evaled expressions
7054no_glob_subst='s/\*/\\\*/g'
7055
7056# Constants:
7057rm="rm -f"
7058
7059# Global variables:
7060default_ofile=libtool
7061can_build_shared=yes
7062
7063# All known linkers require a `.a' archive for static linking (except MSVC,
7064# which needs '.lib').
7065libext=a
7066ltmain="$ac_aux_dir/ltmain.sh"
7067ofile="$default_ofile"
7068with_gnu_ld="$lt_cv_prog_gnu_ld"
7069
7070if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7072set dummy ${ac_tool_prefix}ar; ac_word=$2
7073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075if test "${ac_cv_prog_AR+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078 if test -n "$AR"; then
7079 ac_cv_prog_AR="$AR" # Let the user override the test.
7080else
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_AR="${ac_tool_prefix}ar"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096fi
7097fi
7098AR=$ac_cv_prog_AR
7099if test -n "$AR"; then
7100 { echo "$as_me:$LINENO: result: $AR" >&5
7101echo "${ECHO_T}$AR" >&6; }
7102else
7103 { echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6; }
7105fi
7106
7107
7108fi
7109if test -z "$ac_cv_prog_AR"; then
7110 ac_ct_AR=$AR
7111 # Extract the first word of "ar", so it can be a program name with args.
7112set dummy ar; ac_word=$2
7113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 if test -n "$ac_ct_AR"; then
7119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7120else
7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_AR="ar"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132done
7133done
7134IFS=$as_save_IFS
7135
7136fi
7137fi
7138ac_ct_AR=$ac_cv_prog_ac_ct_AR
7139if test -n "$ac_ct_AR"; then
7140 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7141echo "${ECHO_T}$ac_ct_AR" >&6; }
7142else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
7145fi
7146
7147 if test "x$ac_ct_AR" = x; then
7148 AR="false"
7149 else
7150 case $cross_compiling:$ac_tool_warned in
7151yes:)
7152{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7153whose name does not start with the host triplet. If you think this
7154configuration is useful to you, please write to autoconf@gnu.org." >&5
7155echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7156whose name does not start with the host triplet. If you think this
7157configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7158ac_tool_warned=yes ;;
7159esac
7160 AR=$ac_ct_AR
7161 fi
7162else
7163 AR="$ac_cv_prog_AR"
7164fi
7165
7166if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7168set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_prog_RANLIB+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 if test -n "$RANLIB"; then
7175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194RANLIB=$ac_cv_prog_RANLIB
7195if test -n "$RANLIB"; then
7196 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7197echo "${ECHO_T}$RANLIB" >&6; }
7198else
7199 { echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6; }
7201fi
7202
7203
7204fi
7205if test -z "$ac_cv_prog_RANLIB"; then
7206 ac_ct_RANLIB=$RANLIB
7207 # Extract the first word of "ranlib", so it can be a program name with args.
7208set dummy ranlib; ac_word=$2
7209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214 if test -n "$ac_ct_RANLIB"; then
7215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_prog_ac_ct_RANLIB="ranlib"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228done
7229done
7230IFS=$as_save_IFS
7231
7232fi
7233fi
7234ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7235if test -n "$ac_ct_RANLIB"; then
7236 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7237echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7238else
7239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
7241fi
7242
7243 if test "x$ac_ct_RANLIB" = x; then
7244 RANLIB=":"
7245 else
7246 case $cross_compiling:$ac_tool_warned in
7247yes:)
7248{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7249whose name does not start with the host triplet. If you think this
7250configuration is useful to you, please write to autoconf@gnu.org." >&5
7251echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7252whose name does not start with the host triplet. If you think this
7253configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7254ac_tool_warned=yes ;;
7255esac
7256 RANLIB=$ac_ct_RANLIB
7257 fi
7258else
7259 RANLIB="$ac_cv_prog_RANLIB"
7260fi
7261
7262if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7264set dummy ${ac_tool_prefix}strip; ac_word=$2
7265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267if test "${ac_cv_prog_STRIP+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 if test -n "$STRIP"; then
7271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288fi
7289fi
7290STRIP=$ac_cv_prog_STRIP
7291if test -n "$STRIP"; then
7292 { echo "$as_me:$LINENO: result: $STRIP" >&5
7293echo "${ECHO_T}$STRIP" >&6; }
7294else
7295 { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299
7300fi
7301if test -z "$ac_cv_prog_STRIP"; then
7302 ac_ct_STRIP=$STRIP
7303 # Extract the first word of "strip", so it can be a program name with args.
7304set dummy strip; ac_word=$2
7305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310 if test -n "$ac_ct_STRIP"; then
7311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_ac_ct_STRIP="strip"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324done
7325done
7326IFS=$as_save_IFS
7327
7328fi
7329fi
7330ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7331if test -n "$ac_ct_STRIP"; then
7332 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7333echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7334else
7335 { echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6; }
7337fi
7338
7339 if test "x$ac_ct_STRIP" = x; then
7340 STRIP=":"
7341 else
7342 case $cross_compiling:$ac_tool_warned in
7343yes:)
7344{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7345whose name does not start with the host triplet. If you think this
7346configuration is useful to you, please write to autoconf@gnu.org." >&5
7347echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7348whose name does not start with the host triplet. If you think this
7349configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7350ac_tool_warned=yes ;;
7351esac
7352 STRIP=$ac_ct_STRIP
7353 fi
7354else
7355 STRIP="$ac_cv_prog_STRIP"
7356fi
7357
7358
7359old_CC="$CC"
7360old_CFLAGS="$CFLAGS"
7361
7362# Set sane defaults for various variables
7363test -z "$AR" && AR=ar
7364test -z "$AR_FLAGS" && AR_FLAGS=cru
7365test -z "$AS" && AS=as
7366test -z "$CC" && CC=cc
7367test -z "$LTCC" && LTCC=$CC
7368test -z "$DLLTOOL" && DLLTOOL=dlltool
7369test -z "$LD" && LD=ld
7370test -z "$LN_S" && LN_S="ln -s"
7371test -z "$MAGIC_CMD" && MAGIC_CMD=file
7372test -z "$NM" && NM=nm
7373test -z "$SED" && SED=sed
7374test -z "$OBJDUMP" && OBJDUMP=objdump
7375test -z "$RANLIB" && RANLIB=:
7376test -z "$STRIP" && STRIP=:
7377test -z "$ac_objext" && ac_objext=o
7378
7379# Determine commands to create old-style static archives.
7380old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7381old_postinstall_cmds='chmod 644 $oldlib'
7382old_postuninstall_cmds=
7383
7384if test -n "$RANLIB"; then
7385 case $host_os in
7386 openbsd*)
7387 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7388 ;;
7389 *)
7390 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7391 ;;
7392 esac
7393 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7394fi
7395
7396for cc_temp in $compiler""; do
7397 case $cc_temp in
7398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7400 \-*) ;;
7401 *) break;;
7402 esac
7403done
7404cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7405
7406
7407# Only perform the check for file, if the check method requires it
7408case $deplibs_check_method in
7409file_magic*)
7410 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7411 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7412echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7413if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416 case $MAGIC_CMD in
7417[\\/*] | ?:[\\/]*)
7418 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7419 ;;
7420*)
7421 lt_save_MAGIC_CMD="$MAGIC_CMD"
7422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7424 for ac_dir in $ac_dummy; do
7425 IFS="$lt_save_ifs"
7426 test -z "$ac_dir" && ac_dir=.
7427 if test -f $ac_dir/${ac_tool_prefix}file; then
7428 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7429 if test -n "$file_magic_test_file"; then
7430 case $deplibs_check_method in
7431 "file_magic "*)
7432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7435 $EGREP "$file_magic_regex" > /dev/null; then
7436 :
7437 else
7438 cat <<EOF 1>&2
7439
7440*** Warning: the command libtool uses to detect shared libraries,
7441*** $file_magic_cmd, produces output that libtool cannot recognize.
7442*** The result is that libtool may fail to recognize shared libraries
7443*** as such. This will affect the creation of libtool libraries that
7444*** depend on shared libraries, but programs linked with such libtool
7445*** libraries will work regardless of this problem. Nevertheless, you
7446*** may want to report the problem to your system manager and/or to
7447*** bug-libtool@gnu.org
7448
7449EOF
7450 fi ;;
7451 esac
7452 fi
7453 break
7454 fi
7455 done
7456 IFS="$lt_save_ifs"
7457 MAGIC_CMD="$lt_save_MAGIC_CMD"
7458 ;;
7459esac
7460fi
7461
7462MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463if test -n "$MAGIC_CMD"; then
7464 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7465echo "${ECHO_T}$MAGIC_CMD" >&6; }
7466else
7467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
7469fi
7470
7471if test -z "$lt_cv_path_MAGIC_CMD"; then
7472 if test -n "$ac_tool_prefix"; then
7473 { echo "$as_me:$LINENO: checking for file" >&5
7474echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7475if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 case $MAGIC_CMD in
7479[\\/*] | ?:[\\/]*)
7480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7481 ;;
7482*)
7483 lt_save_MAGIC_CMD="$MAGIC_CMD"
7484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7486 for ac_dir in $ac_dummy; do
7487 IFS="$lt_save_ifs"
7488 test -z "$ac_dir" && ac_dir=.
7489 if test -f $ac_dir/file; then
7490 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7491 if test -n "$file_magic_test_file"; then
7492 case $deplibs_check_method in
7493 "file_magic "*)
7494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7497 $EGREP "$file_magic_regex" > /dev/null; then
7498 :
7499 else
7500 cat <<EOF 1>&2
7501
7502*** Warning: the command libtool uses to detect shared libraries,
7503*** $file_magic_cmd, produces output that libtool cannot recognize.
7504*** The result is that libtool may fail to recognize shared libraries
7505*** as such. This will affect the creation of libtool libraries that
7506*** depend on shared libraries, but programs linked with such libtool
7507*** libraries will work regardless of this problem. Nevertheless, you
7508*** may want to report the problem to your system manager and/or to
7509*** bug-libtool@gnu.org
7510
7511EOF
7512 fi ;;
7513 esac
7514 fi
7515 break
7516 fi
7517 done
7518 IFS="$lt_save_ifs"
7519 MAGIC_CMD="$lt_save_MAGIC_CMD"
7520 ;;
7521esac
7522fi
7523
7524MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7525if test -n "$MAGIC_CMD"; then
7526 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7527echo "${ECHO_T}$MAGIC_CMD" >&6; }
7528else
7529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
7531fi
7532
7533 else
7534 MAGIC_CMD=:
7535 fi
7536fi
7537
7538 fi
7539 ;;
7540esac
7541
7542enable_dlopen=no
7543enable_win32_dll=no
7544
7545# Check whether --enable-libtool-lock was given.
7546if test "${enable_libtool_lock+set}" = set; then
7547 enableval=$enable_libtool_lock;
7548fi
7549
7550test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7551
7552
7553# Check whether --with-pic was given.
7554if test "${with_pic+set}" = set; then
7555 withval=$with_pic; pic_mode="$withval"
7556else
7557 pic_mode=default
7558fi
7559
7560test -z "$pic_mode" && pic_mode=default
7561
7562# Use C for the default configuration in the libtool script
7563tagname=
7564lt_save_CC="$CC"
7565ac_ext=c
7566ac_cpp='$CPP $CPPFLAGS'
7567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571
7572# Source file extension for C test sources.
7573ac_ext=c
7574
7575# Object file extension for compiled C test sources.
7576objext=o
7577objext=$objext
7578
7579# Code to be used in simple compile tests
7580lt_simple_compile_test_code="int some_variable = 0;\n"
7581
7582# Code to be used in simple link tests
7583lt_simple_link_test_code='int main(){return(0);}\n'
7584
7585
7586# If no C compiler was specified, use CC.
7587LTCC=${LTCC-"$CC"}
7588
7589# Allow CC to be a program name with arguments.
7590compiler=$CC
7591
7592
7593# save warnings/boilerplate of simple test code
7594ac_outfile=conftest.$ac_objext
7595printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7596eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7597_lt_compiler_boilerplate=`cat conftest.err`
7598$rm conftest*
7599
7600ac_outfile=conftest.$ac_objext
7601printf "$lt_simple_link_test_code" >conftest.$ac_ext
7602eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7603_lt_linker_boilerplate=`cat conftest.err`
7604$rm conftest*
7605
7606
7607#
7608# Check for any special shared library compilation flags.
7609#
7610lt_prog_cc_shlib=
7611if test "$GCC" = no; then
7612 case $host_os in
7613 sco3.2v5*)
7614 lt_prog_cc_shlib='-belf'
7615 ;;
7616 esac
7617fi
7618if test -n "$lt_prog_cc_shlib"; then
7619 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7620echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7621 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7622 else
7623 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7624echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7625 lt_cv_prog_cc_can_build_shared=no
7626 fi
7627fi
7628
7629
7630#
7631# Check to make sure the static flag actually works.
7632#
7633{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7634echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7635if test "${lt_prog_compiler_static_works+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 lt_prog_compiler_static_works=no
7639 save_LDFLAGS="$LDFLAGS"
7640 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7641 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7643 # The linker can only warn and ignore the option if not recognized
7644 # So say no if there are warnings
7645 if test -s conftest.err; then
7646 # Append any errors to the config.log.
7647 cat conftest.err 1>&5
7648 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7649 $SED '/^$/d' conftest.err >conftest.er2
7650 if diff conftest.exp conftest.er2 >/dev/null; then
7651 lt_prog_compiler_static_works=yes
7652 fi
7653 else
7654 lt_prog_compiler_static_works=yes
7655 fi
7656 fi
7657 $rm conftest*
7658 LDFLAGS="$save_LDFLAGS"
7659
7660fi
7661{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7662echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7663
7664if test x"$lt_prog_compiler_static_works" = xyes; then
7665 :
7666else
7667 lt_prog_compiler_static=
7668fi
7669
7670
7671
7672
7673lt_prog_compiler_no_builtin_flag=
7674
7675if test "$GCC" = yes; then
7676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7677
7678
7679{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7680echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7681if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 lt_cv_prog_compiler_rtti_exceptions=no
7685 ac_outfile=conftest.$ac_objext
7686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7687 lt_compiler_flag="-fno-rtti -fno-exceptions"
7688 # Insert the option either (1) after the last *FLAGS variable, or
7689 # (2) before a word containing "conftest.", or (3) at the end.
7690 # Note that $ac_compile itself does not contain backslashes and begins
7691 # with a dollar sign (not a hyphen), so the echo should work correctly.
7692 # The option is referenced via a variable to avoid confusing sed.
7693 lt_compile=`echo "$ac_compile" | $SED \
7694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696 -e 's:$: $lt_compiler_flag:'`
7697 (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698 (eval "$lt_compile" 2>conftest.err)
7699 ac_status=$?
7700 cat conftest.err >&5
7701 echo "$as_me:7701: \$? = $ac_status" >&5
7702 if (exit $ac_status) && test -s "$ac_outfile"; then
7703 # The compiler can only warn and ignore the option if not recognized
7704 # So say no if there are warnings other than the usual output.
7705 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7706 $SED '/^$/d' conftest.err >conftest.er2
7707 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7708 lt_cv_prog_compiler_rtti_exceptions=yes
7709 fi
7710 fi
7711 $rm conftest*
7712
7713fi
7714{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7715echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7716
7717if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7719else
7720 :
7721fi
7722
7723fi
7724
7725lt_prog_compiler_wl=
7726lt_prog_compiler_pic=
7727lt_prog_compiler_static=
7728
7729{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7730echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7731
7732 if test "$GCC" = yes; then
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_static='-static'
7735
7736 case $host_os in
7737 aix*)
7738 # All AIX code is PIC.
7739 if test "$host_cpu" = ia64; then
7740 # AIX 5 now supports IA64 processor
7741 lt_prog_compiler_static='-Bstatic'
7742 fi
7743 ;;
7744
7745 amigaos*)
7746 # FIXME: we need at least 68020 code to build shared libraries, but
7747 # adding the `-m68020' flag to GCC prevents building anything better,
7748 # like `-m68040'.
7749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7750 ;;
7751
7752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7753 # PIC is the default for these OSes.
7754 ;;
7755
7756 mingw* | pw32* | os2*)
7757 # This hack is so that the source file can tell whether it is being
7758 # built for inclusion in a dll (and should export symbols for example).
7759 lt_prog_compiler_pic='-DDLL_EXPORT'
7760 ;;
7761
7762 darwin* | rhapsody*)
7763 # PIC is the default on this platform
7764 # Common symbols not allowed in MH_DYLIB files
7765 lt_prog_compiler_pic='-fno-common'
7766 ;;
7767
7768 msdosdjgpp*)
7769 # Just because we use GCC doesn't mean we suddenly get shared libraries
7770 # on systems that don't support them.
7771 lt_prog_compiler_can_build_shared=no
7772 enable_shared=no
7773 ;;
7774
7775 sysv4*MP*)
7776 if test -d /usr/nec; then
7777 lt_prog_compiler_pic=-Kconform_pic
7778 fi
7779 ;;
7780
7781 hpux*)
7782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7783 # not for PA HP-UX.
7784 case $host_cpu in
7785 hppa*64*|ia64*)
7786 # +Z the default
7787 ;;
7788 *)
7789 lt_prog_compiler_pic='-fPIC'
7790 ;;
7791 esac
7792 ;;
7793
7794 *)
7795 lt_prog_compiler_pic='-fPIC'
7796 ;;
7797 esac
7798 else
7799 # PORTME Check for flag to pass linker flags through the system compiler.
7800 case $host_os in
7801 aix*)
7802 lt_prog_compiler_wl='-Wl,'
7803 if test "$host_cpu" = ia64; then
7804 # AIX 5 now supports IA64 processor
7805 lt_prog_compiler_static='-Bstatic'
7806 else
7807 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7808 fi
7809 ;;
7810 darwin*)
7811 # PIC is the default on this platform
7812 # Common symbols not allowed in MH_DYLIB files
7813 case $cc_basename in
7814 xlc*)
7815 lt_prog_compiler_pic='-qnocommon'
7816 lt_prog_compiler_wl='-Wl,'
7817 ;;
7818 esac
7819 ;;
7820
7821 mingw* | pw32* | os2*)
7822 # This hack is so that the source file can tell whether it is being
7823 # built for inclusion in a dll (and should export symbols for example).
7824 lt_prog_compiler_pic='-DDLL_EXPORT'
7825 ;;
7826
7827 hpux9* | hpux10* | hpux11*)
7828 lt_prog_compiler_wl='-Wl,'
7829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7830 # not for PA HP-UX.
7831 case $host_cpu in
7832 hppa*64*|ia64*)
7833 # +Z the default
7834 ;;
7835 *)
7836 lt_prog_compiler_pic='+Z'
7837 ;;
7838 esac
7839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7840 lt_prog_compiler_static='${wl}-a ${wl}archive'
7841 ;;
7842
7843 irix5* | irix6* | nonstopux*)
7844 lt_prog_compiler_wl='-Wl,'
7845 # PIC (with -KPIC) is the default.
7846 lt_prog_compiler_static='-non_shared'
7847 ;;
7848
7849 newsos6)
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 ;;
7853
7854 linux*)
7855 case $cc_basename in
7856 icc* | ecc*)
7857 lt_prog_compiler_wl='-Wl,'
7858 lt_prog_compiler_pic='-KPIC'
7859 lt_prog_compiler_static='-static'
7860 ;;
7861 pgcc* | pgf77* | pgf90* | pgf95*)
7862 # Portland Group compilers (*not* the Pentium gcc compiler,
7863 # which looks to be a dead project)
7864 lt_prog_compiler_wl='-Wl,'
7865 lt_prog_compiler_pic='-fpic'
7866 lt_prog_compiler_static='-Bstatic'
7867 ;;
7868 ccc*)
7869 lt_prog_compiler_wl='-Wl,'
7870 # All Alpha code is PIC.
7871 lt_prog_compiler_static='-non_shared'
7872 ;;
7873 esac
7874 ;;
7875
7876 osf3* | osf4* | osf5*)
7877 lt_prog_compiler_wl='-Wl,'
7878 # All OSF/1 code is PIC.
7879 lt_prog_compiler_static='-non_shared'
7880 ;;
7881
7882 sco3.2v5*)
7883 lt_prog_compiler_pic='-Kpic'
7884 lt_prog_compiler_static='-dn'
7885 ;;
7886
7887 solaris*)
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7890 case $cc_basename in
7891 f77* | f90* | f95*)
7892 lt_prog_compiler_wl='-Qoption ld ';;
7893 *)
7894 lt_prog_compiler_wl='-Wl,';;
7895 esac
7896 ;;
7897
7898 sunos4*)
7899 lt_prog_compiler_wl='-Qoption ld '
7900 lt_prog_compiler_pic='-PIC'
7901 lt_prog_compiler_static='-Bstatic'
7902 ;;
7903
7904 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_pic='-KPIC'
7907 lt_prog_compiler_static='-Bstatic'
7908 ;;
7909
7910 sysv4*MP*)
7911 if test -d /usr/nec ;then
7912 lt_prog_compiler_pic='-Kconform_pic'
7913 lt_prog_compiler_static='-Bstatic'
7914 fi
7915 ;;
7916
7917 unicos*)
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_can_build_shared=no
7920 ;;
7921
7922 uts4*)
7923 lt_prog_compiler_pic='-pic'
7924 lt_prog_compiler_static='-Bstatic'
7925 ;;
7926
7927 *)
7928 lt_prog_compiler_can_build_shared=no
7929 ;;
7930 esac
7931 fi
7932
7933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7934echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7935
7936#
7937# Check to make sure the PIC flag actually works.
7938#
7939if test -n "$lt_prog_compiler_pic"; then
7940
7941{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7942echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7943if test "${lt_prog_compiler_pic_works+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 lt_prog_compiler_pic_works=no
7947 ac_outfile=conftest.$ac_objext
7948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7949 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7950 # Insert the option either (1) after the last *FLAGS variable, or
7951 # (2) before a word containing "conftest.", or (3) at the end.
7952 # Note that $ac_compile itself does not contain backslashes and begins
7953 # with a dollar sign (not a hyphen), so the echo should work correctly.
7954 # The option is referenced via a variable to avoid confusing sed.
7955 lt_compile=`echo "$ac_compile" | $SED \
7956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958 -e 's:$: $lt_compiler_flag:'`
7959 (eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
7960 (eval "$lt_compile" 2>conftest.err)
7961 ac_status=$?
7962 cat conftest.err >&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 if (exit $ac_status) && test -s "$ac_outfile"; then
7965 # The compiler can only warn and ignore the option if not recognized
7966 # So say no if there are warnings other than the usual output.
7967 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7968 $SED '/^$/d' conftest.err >conftest.er2
7969 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7970 lt_prog_compiler_pic_works=yes
7971 fi
7972 fi
7973 $rm conftest*
7974
7975fi
7976{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7977echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7978
7979if test x"$lt_prog_compiler_pic_works" = xyes; then
7980 case $lt_prog_compiler_pic in
7981 "" | " "*) ;;
7982 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7983 esac
7984else
7985 lt_prog_compiler_pic=
7986 lt_prog_compiler_can_build_shared=no
7987fi
7988
7989fi
7990case $host_os in
7991 # For platforms which do not support PIC, -DPIC is meaningless:
7992 *djgpp*)
7993 lt_prog_compiler_pic=
7994 ;;
7995 *)
7996 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7997 ;;
7998esac
7999
8000{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8001echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8002if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005 lt_cv_prog_compiler_c_o=no
8006 $rm -r conftest 2>/dev/null
8007 mkdir conftest
8008 cd conftest
8009 mkdir out
8010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8011
8012 lt_compiler_flag="-o out/conftest2.$ac_objext"
8013 # Insert the option either (1) after the last *FLAGS variable, or
8014 # (2) before a word containing "conftest.", or (3) at the end.
8015 # Note that $ac_compile itself does not contain backslashes and begins
8016 # with a dollar sign (not a hyphen), so the echo should work correctly.
8017 lt_compile=`echo "$ac_compile" | $SED \
8018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020 -e 's:$: $lt_compiler_flag:'`
8021 (eval echo "\"\$as_me:8021: $lt_compile\"" >&5)
8022 (eval "$lt_compile" 2>out/conftest.err)
8023 ac_status=$?
8024 cat out/conftest.err >&5
8025 echo "$as_me:8025: \$? = $ac_status" >&5
8026 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8027 then
8028 # The compiler can only warn and ignore the option if not recognized
8029 # So say no if there are warnings
8030 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8031 $SED '/^$/d' out/conftest.err >out/conftest.er2
8032 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8033 lt_cv_prog_compiler_c_o=yes
8034 fi
8035 fi
8036 chmod u+w . 2>&5
8037 $rm conftest*
8038 # SGI C++ compiler will create directory out/ii_files/ for
8039 # template instantiation
8040 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8041 $rm out/* && rmdir out
8042 cd ..
8043 rmdir conftest
8044 $rm conftest*
8045
8046fi
8047{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8048echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8049
8050
8051hard_links="nottested"
8052if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8053 # do not overwrite the value of need_locks provided by the user
8054 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8055echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8056 hard_links=yes
8057 $rm conftest*
8058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8059 touch conftest.a
8060 ln conftest.a conftest.b 2>&5 || hard_links=no
8061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8062 { echo "$as_me:$LINENO: result: $hard_links" >&5
8063echo "${ECHO_T}$hard_links" >&6; }
8064 if test "$hard_links" = no; then
8065 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8066echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8067 need_locks=warn
8068 fi
8069else
8070 need_locks=no
8071fi
8072
8073{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8074echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8075
8076 runpath_var=
8077 allow_undefined_flag=
8078 enable_shared_with_static_runtimes=no
8079 archive_cmds=
8080 archive_expsym_cmds=
8081 old_archive_From_new_cmds=
8082 old_archive_from_expsyms_cmds=
8083 export_dynamic_flag_spec=
8084 whole_archive_flag_spec=
8085 thread_safe_flag_spec=
8086 hardcode_libdir_flag_spec=
8087 hardcode_libdir_flag_spec_ld=
8088 hardcode_libdir_separator=
8089 hardcode_direct=no
8090 hardcode_minus_L=no
8091 hardcode_shlibpath_var=unsupported
8092 link_all_deplibs=unknown
8093 hardcode_automatic=no
8094 module_cmds=
8095 module_expsym_cmds=
8096 always_export_symbols=no
8097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8098 # include_expsyms should be a list of space-separated symbols to be *always*
8099 # included in the symbol list
8100 include_expsyms=
8101 # exclude_expsyms can be an extended regexp of symbols to exclude
8102 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8104 # as well as any symbol that contains `d'.
8105 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8107 # platforms (ab)use it in PIC code, but their linkers get confused if
8108 # the symbol is explicitly referenced. Since portable code cannot
8109 # rely on this symbol name, it's probably fine to never include it in
8110 # preloaded symbol tables.
8111 extract_expsyms_cmds=
8112 # Just being paranoid about ensuring that cc_basename is set.
8113 for cc_temp in $compiler""; do
8114 case $cc_temp in
8115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8117 \-*) ;;
8118 *) break;;
8119 esac
8120done
8121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8122
8123 case $host_os in
8124 cygwin* | mingw* | pw32*)
8125 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8126 # When not using gcc, we currently assume that we are using
8127 # Microsoft Visual C++.
8128 if test "$GCC" != yes; then
8129 with_gnu_ld=no
8130 fi
8131 ;;
8132 openbsd*)
8133 with_gnu_ld=no
8134 ;;
8135 esac
8136
8137 ld_shlibs=yes
8138 if test "$with_gnu_ld" = yes; then
8139 # If archive_cmds runs LD, not CC, wlarc should be empty
8140 wlarc='${wl}'
8141
8142 # Set some defaults for GNU ld with shared library support. These
8143 # are reset later if shared libraries are not supported. Putting them
8144 # here allows them to be overridden if necessary.
8145 runpath_var=LD_RUN_PATH
8146 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8147 export_dynamic_flag_spec='${wl}--export-dynamic'
8148 # ancient GNU ld didn't support --whole-archive et. al.
8149 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8150 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8151 else
8152 whole_archive_flag_spec=
8153 fi
8154 supports_anon_versioning=no
8155 case `$LD -v 2>/dev/null` in
8156 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8157 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8158 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8159 *\ 2.11.*) ;; # other 2.11 versions
8160 *) supports_anon_versioning=yes ;;
8161 esac
8162
8163 # See if GNU ld supports shared libraries.
8164 case $host_os in
8165 aix3* | aix4* | aix5*)
8166 # On AIX/PPC, the GNU linker is very broken
8167 if test "$host_cpu" != ia64; then
8168 ld_shlibs=no
8169 cat <<EOF 1>&2
8170
8171*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8172*** to be unable to reliably create shared libraries on AIX.
8173*** Therefore, libtool is disabling shared libraries support. If you
8174*** really care for shared libraries, you may want to modify your PATH
8175*** so that a non-GNU linker is found, and then restart.
8176
8177EOF
8178 fi
8179 ;;
8180
8181 amigaos*)
8182 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)'
8183 hardcode_libdir_flag_spec='-L$libdir'
8184 hardcode_minus_L=yes
8185
8186 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8187 # that the semantics of dynamic libraries on AmigaOS, at least up
8188 # to version 4, is to share data among multiple programs linked
8189 # with the same dynamic library. Since this doesn't match the
8190 # behavior of shared libraries on other platforms, we can't use
8191 # them.
8192 ld_shlibs=no
8193 ;;
8194
8195 beos*)
8196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8197 allow_undefined_flag=unsupported
8198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8199 # support --undefined. This deserves some investigation. FIXME
8200 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201 else
8202 ld_shlibs=no
8203 fi
8204 ;;
8205
8206 cygwin* | mingw* | pw32*)
8207 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8208 # as there is no search path for DLLs.
8209 hardcode_libdir_flag_spec='-L$libdir'
8210 allow_undefined_flag=unsupported
8211 always_export_symbols=no
8212 enable_shared_with_static_runtimes=yes
8213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8214
8215 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8217 # If the export-symbols file already is a .def file (1st line
8218 # is EXPORTS), use it as is; otherwise, prepend...
8219 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8220 cp $export_symbols $output_objdir/$soname.def;
8221 else
8222 echo EXPORTS > $output_objdir/$soname.def;
8223 cat $export_symbols >> $output_objdir/$soname.def;
8224 fi~
8225 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8226 else
8227 ld_shlibs=no
8228 fi
8229 ;;
8230
8231 linux*)
8232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8233 tmp_addflag=
8234 case $cc_basename,$host_cpu in
8235 pgcc*) # Portland Group C compiler
8236 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8237 tmp_addflag=' $pic_flag'
8238 ;;
8239 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8240 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8241 tmp_addflag=' $pic_flag -Mnomain' ;;
8242 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8243 tmp_addflag=' -i_dynamic' ;;
8244 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8245 tmp_addflag=' -i_dynamic -nofor_main' ;;
8246 ifc* | ifort*) # Intel Fortran compiler
8247 tmp_addflag=' -nofor_main' ;;
8248 esac
8249 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250
8251 if test $supports_anon_versioning = yes; then
8252 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8254 $echo "local: *; };" >> $output_objdir/$libname.ver~
8255 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8256 fi
8257 else
8258 ld_shlibs=no
8259 fi
8260 ;;
8261
8262 netbsd*)
8263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8264 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8265 wlarc=
8266 else
8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8269 fi
8270 ;;
8271
8272 solaris* | sysv5*)
8273 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8274 ld_shlibs=no
8275 cat <<EOF 1>&2
8276
8277*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8278*** create shared libraries on Solaris systems. Therefore, libtool
8279*** is disabling shared libraries support. We urge you to upgrade GNU
8280*** binutils to release 2.9.1 or newer. Another option is to modify
8281*** your PATH or compiler configuration so that the native linker is
8282*** used, and then restart.
8283
8284EOF
8285 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288 else
8289 ld_shlibs=no
8290 fi
8291 ;;
8292
8293 sunos4*)
8294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8295 wlarc=
8296 hardcode_direct=yes
8297 hardcode_shlibpath_var=no
8298 ;;
8299
8300 *)
8301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8304 else
8305 ld_shlibs=no
8306 fi
8307 ;;
8308 esac
8309
8310 if test "$ld_shlibs" = no; then
8311 runpath_var=
8312 hardcode_libdir_flag_spec=
8313 export_dynamic_flag_spec=
8314 whole_archive_flag_spec=
8315 fi
8316 else
8317 # PORTME fill in a description of your system's linker (not GNU ld)
8318 case $host_os in
8319 aix3*)
8320 allow_undefined_flag=unsupported
8321 always_export_symbols=yes
8322 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'
8323 # Note: this linker hardcodes the directories in LIBPATH if there
8324 # are no directories specified by -L.
8325 hardcode_minus_L=yes
8326 if test "$GCC" = yes && test -z "$link_static_flag"; then
8327 # Neither direct hardcoding nor static linking is supported with a
8328 # broken collect2.
8329 hardcode_direct=unsupported
8330 fi
8331 ;;
8332
8333 aix4* | aix5*)
8334 if test "$host_cpu" = ia64; then
8335 # On IA64, the linker does run time linking by default, so we don't
8336 # have to do anything special.
8337 aix_use_runtimelinking=no
8338 exp_sym_flag='-Bexport'
8339 no_entry_flag=""
8340 else
8341 # If we're using GNU nm, then we don't want the "-C" option.
8342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8344 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'
8345 else
8346 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'
8347 fi
8348 aix_use_runtimelinking=no
8349
8350 # Test if we are trying to use run time linking or normal
8351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8352 # need to do runtime linking.
8353 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8354 for ld_flag in $LDFLAGS; do
8355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8356 aix_use_runtimelinking=yes
8357 break
8358 fi
8359 done
8360 esac
8361
8362 exp_sym_flag='-bexport'
8363 no_entry_flag='-bnoentry'
8364 fi
8365
8366 # When large executables or shared objects are built, AIX ld can
8367 # have problems creating the table of contents. If linking a library
8368 # or program results in "error TOC overflow" add -mminimal-toc to
8369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8371
8372 archive_cmds=''
8373 hardcode_direct=yes
8374 hardcode_libdir_separator=':'
8375 link_all_deplibs=yes
8376
8377 if test "$GCC" = yes; then
8378 case $host_os in aix4.[012]|aix4.[012].*)
8379 # We only want to do this on AIX 4.2 and lower, the check
8380 # below for broken collect2 doesn't work under 4.3+
8381 collect2name=`${CC} -print-prog-name=collect2`
8382 if test -f "$collect2name" && \
8383 strings "$collect2name" | grep resolve_lib_name >/dev/null
8384 then
8385 # We have reworked collect2
8386 hardcode_direct=yes
8387 else
8388 # We have old collect2
8389 hardcode_direct=unsupported
8390 # It fails to find uninstalled libraries when the uninstalled
8391 # path is not listed in the libpath. Setting hardcode_minus_L
8392 # to unsupported forces relinking
8393 hardcode_minus_L=yes
8394 hardcode_libdir_flag_spec='-L$libdir'
8395 hardcode_libdir_separator=
8396 fi
8397 esac
8398 shared_flag='-shared'
8399 if test "$aix_use_runtimelinking" = yes; then
8400 shared_flag="$shared_flag "'${wl}-G'
8401 fi
8402 else
8403 # not using gcc
8404 if test "$host_cpu" = ia64; then
8405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8406 # chokes on -Wl,-G. The following line is correct:
8407 shared_flag='-G'
8408 else
8409 if test "$aix_use_runtimelinking" = yes; then
8410 shared_flag='${wl}-G'
8411 else
8412 shared_flag='${wl}-bM:SRE'
8413 fi
8414 fi
8415 fi
8416
8417 # It seems that -bexpall does not export symbols beginning with
8418 # underscore (_), so it is better to generate a list of symbols to export.
8419 always_export_symbols=yes
8420 if test "$aix_use_runtimelinking" = yes; then
8421 # Warning - without using the other runtime loading flags (-brtl),
8422 # -berok will link without error, but may produce a broken library.
8423 allow_undefined_flag='-berok'
8424 # Determine the default libpath from the value encoded in an empty executable.
8425 cat >conftest.$ac_ext <<_ACEOF
8426/* confdefs.h. */
8427_ACEOF
8428cat confdefs.h >>conftest.$ac_ext
8429cat >>conftest.$ac_ext <<_ACEOF
8430/* end confdefs.h. */
8431
8432int
8433main ()
8434{
8435
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440rm -f conftest.$ac_objext conftest$ac_exeext
8441if { (ac_try="$ac_link"
8442case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445esac
8446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest$ac_exeext &&
8457 $as_test_x conftest$ac_exeext; then
8458
8459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8460}'`
8461# Check for a 64-bit object if we didn't find anything.
8462if 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; }
8463}'`; fi
8464else
8465 echo "$as_me: failed program was:" >&5
8466sed 's/^/| /' conftest.$ac_ext >&5
8467
8468
8469fi
8470
8471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472 conftest$ac_exeext conftest.$ac_ext
8473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474
8475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8477 else
8478 if test "$host_cpu" = ia64; then
8479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480 allow_undefined_flag="-z nodefs"
8481 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"
8482 else
8483 # Determine the default libpath from the value encoded in an empty executable.
8484 cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
8490
8491int
8492main ()
8493{
8494
8495 ;
8496 return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (ac_try="$ac_link"
8501case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_link") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest$ac_exeext &&
8516 $as_test_x conftest$ac_exeext; then
8517
8518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8519}'`
8520# Check for a 64-bit object if we didn't find anything.
8521if 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; }
8522}'`; fi
8523else
8524 echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527
8528fi
8529
8530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8531 conftest$ac_exeext conftest.$ac_ext
8532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8533
8534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8535 # Warning - without using the other run time loading flags,
8536 # -berok will link without error, but may produce a broken library.
8537 no_undefined_flag=' ${wl}-bernotok'
8538 allow_undefined_flag=' ${wl}-berok'
8539 # -bexpall does not export symbols beginning with underscore (_)
8540 always_export_symbols=yes
8541 # Exported symbols can be pulled into shared objects from archives
8542 whole_archive_flag_spec=' '
8543 archive_cmds_need_lc=yes
8544 # This is similar to how AIX traditionally builds its shared libraries.
8545 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'
8546 fi
8547 fi
8548 ;;
8549
8550 amigaos*)
8551 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)'
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 hardcode_minus_L=yes
8554 # see comment about different semantics on the GNU ld section
8555 ld_shlibs=no
8556 ;;
8557
8558 bsdi[45]*)
8559 export_dynamic_flag_spec=-rdynamic
8560 ;;
8561
8562 cygwin* | mingw* | pw32*)
8563 # When not using gcc, we currently assume that we are using
8564 # Microsoft Visual C++.
8565 # hardcode_libdir_flag_spec is actually meaningless, as there is
8566 # no search path for DLLs.
8567 hardcode_libdir_flag_spec=' '
8568 allow_undefined_flag=unsupported
8569 # Tell ltmain to make .lib files, not .a files.
8570 libext=lib
8571 # Tell ltmain to make .dll files, not .so files.
8572 shrext_cmds=".dll"
8573 # FIXME: Setting linknames here is a bad hack.
8574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8575 # The linker will automatically build a .lib file if we build a DLL.
8576 old_archive_From_new_cmds='true'
8577 # FIXME: Should let the user specify the lib program.
8578 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8579 fix_srcfile_path='`cygpath -w "$srcfile"`'
8580 enable_shared_with_static_runtimes=yes
8581 ;;
8582
8583 darwin* | rhapsody*)
8584 case $host_os in
8585 rhapsody* | darwin1.[012])
8586 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8587 ;;
8588 *) # Darwin 1.3 on
8589 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8590 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8591 else
8592 case ${MACOSX_DEPLOYMENT_TARGET} in
8593 10.[012])
8594 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8595 ;;
8596 10.*)
8597 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8598 ;;
8599 esac
8600 fi
8601 ;;
8602 esac
8603 archive_cmds_need_lc=no
8604 hardcode_direct=no
8605 hardcode_automatic=yes
8606 hardcode_shlibpath_var=unsupported
8607 whole_archive_flag_spec=''
8608 link_all_deplibs=yes
8609 if test "$GCC" = yes ; then
8610 output_verbose_link_cmd='echo'
8611 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8612 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8614 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8615 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8616 else
8617 case $cc_basename in
8618 xlc*)
8619 output_verbose_link_cmd='echo'
8620 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8621 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8622 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8623 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8624 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8625 ;;
8626 *)
8627 ld_shlibs=no
8628 ;;
8629 esac
8630 fi
8631 ;;
8632
8633 dgux*)
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_libdir_flag_spec='-L$libdir'
8636 hardcode_shlibpath_var=no
8637 ;;
8638
8639 freebsd1*)
8640 ld_shlibs=no
8641 ;;
8642
8643 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8644 # support. Future versions do this automatically, but an explicit c++rt0.o
8645 # does not break anything, and helps significantly (at the cost of a little
8646 # extra space).
8647 freebsd2.2*)
8648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8649 hardcode_libdir_flag_spec='-R$libdir'
8650 hardcode_direct=yes
8651 hardcode_shlibpath_var=no
8652 ;;
8653
8654 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8655 freebsd2*)
8656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_direct=yes
8658 hardcode_minus_L=yes
8659 hardcode_shlibpath_var=no
8660 ;;
8661
8662 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8663 freebsd* | kfreebsd*-gnu | dragonfly*)
8664 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8665 hardcode_libdir_flag_spec='-R$libdir'
8666 hardcode_direct=yes
8667 hardcode_shlibpath_var=no
8668 ;;
8669
8670 hpux9*)
8671 if test "$GCC" = yes; then
8672 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'
8673 else
8674 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'
8675 fi
8676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8677 hardcode_libdir_separator=:
8678 hardcode_direct=yes
8679
8680 # hardcode_minus_L: Not really in the search PATH,
8681 # but as the default location of the library.
8682 hardcode_minus_L=yes
8683 export_dynamic_flag_spec='${wl}-E'
8684 ;;
8685
8686 hpux10* | hpux11*)
8687 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8688 case $host_cpu in
8689 hppa*64*|ia64*)
8690 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 ;;
8692 *)
8693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8694 ;;
8695 esac
8696 else
8697 case $host_cpu in
8698 hppa*64*|ia64*)
8699 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8700 ;;
8701 *)
8702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8703 ;;
8704 esac
8705 fi
8706 if test "$with_gnu_ld" = no; then
8707 case $host_cpu in
8708 hppa*64*)
8709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8710 hardcode_libdir_flag_spec_ld='+b $libdir'
8711 hardcode_libdir_separator=:
8712 hardcode_direct=no
8713 hardcode_shlibpath_var=no
8714 ;;
8715 ia64*)
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_direct=no
8718 hardcode_shlibpath_var=no
8719
8720 # hardcode_minus_L: Not really in the search PATH,
8721 # but as the default location of the library.
8722 hardcode_minus_L=yes
8723 ;;
8724 *)
8725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8726 hardcode_libdir_separator=:
8727 hardcode_direct=yes
8728 export_dynamic_flag_spec='${wl}-E'
8729
8730 # hardcode_minus_L: Not really in the search PATH,
8731 # but as the default location of the library.
8732 hardcode_minus_L=yes
8733 ;;
8734 esac
8735 fi
8736 ;;
8737
8738 irix5* | irix6* | nonstopux*)
8739 if test "$GCC" = yes; then
8740 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'
8741 else
8742 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'
8743 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8744 fi
8745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8746 hardcode_libdir_separator=:
8747 link_all_deplibs=yes
8748 ;;
8749
8750 netbsd*)
8751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8753 else
8754 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8755 fi
8756 hardcode_libdir_flag_spec='-R$libdir'
8757 hardcode_direct=yes
8758 hardcode_shlibpath_var=no
8759 ;;
8760
8761 newsos6)
8762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_direct=yes
8764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765 hardcode_libdir_separator=:
8766 hardcode_shlibpath_var=no
8767 ;;
8768
8769 openbsd*)
8770 hardcode_direct=yes
8771 hardcode_shlibpath_var=no
8772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8776 export_dynamic_flag_spec='${wl}-E'
8777 else
8778 case $host_os in
8779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='-R$libdir'
8782 ;;
8783 *)
8784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786 ;;
8787 esac
8788 fi
8789 ;;
8790
8791 os2*)
8792 hardcode_libdir_flag_spec='-L$libdir'
8793 hardcode_minus_L=yes
8794 allow_undefined_flag=unsupported
8795 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'
8796 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8797 ;;
8798
8799 osf3*)
8800 if test "$GCC" = yes; then
8801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8802 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'
8803 else
8804 allow_undefined_flag=' -expect_unresolved \*'
8805 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'
8806 fi
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 hardcode_libdir_separator=:
8809 ;;
8810
8811 osf4* | osf5*) # as osf3* with the addition of -msym flag
8812 if test "$GCC" = yes; then
8813 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8814 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'
8815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816 else
8817 allow_undefined_flag=' -expect_unresolved \*'
8818 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'
8819 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8820 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8821
8822 # Both c and cxx compiler support -rpath directly
8823 hardcode_libdir_flag_spec='-rpath $libdir'
8824 fi
8825 hardcode_libdir_separator=:
8826 ;;
8827
8828 sco3.2v5*)
8829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830 hardcode_shlibpath_var=no
8831 export_dynamic_flag_spec='${wl}-Bexport'
8832 runpath_var=LD_RUN_PATH
8833 hardcode_runpath_var=yes
8834 ;;
8835
8836 solaris*)
8837 no_undefined_flag=' -z text'
8838 if test "$GCC" = yes; then
8839 wlarc='${wl}'
8840 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8842 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8843 else
8844 wlarc=''
8845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8848 fi
8849 hardcode_libdir_flag_spec='-R$libdir'
8850 hardcode_shlibpath_var=no
8851 case $host_os in
8852 solaris2.[0-5] | solaris2.[0-5].*) ;;
8853 *)
8854 # The compiler driver will combine linker options so we
8855 # cannot just pass the convience library names through
8856 # without $wl, iff we do not link with $LD.
8857 # Luckily, gcc supports the same syntax we need for Sun Studio.
8858 # Supported since Solaris 2.6 (maybe 2.5.1?)
8859 case $wlarc in
8860 '')
8861 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8862 *)
8863 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8864 esac ;;
8865 esac
8866 link_all_deplibs=yes
8867 ;;
8868
8869 sunos4*)
8870 if test "x$host_vendor" = xsequent; then
8871 # Use $CC to link under sequent, because it throws in some extra .o
8872 # files that make .init and .fini sections work.
8873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8874 else
8875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8876 fi
8877 hardcode_libdir_flag_spec='-L$libdir'
8878 hardcode_direct=yes
8879 hardcode_minus_L=yes
8880 hardcode_shlibpath_var=no
8881 ;;
8882
8883 sysv4)
8884 case $host_vendor in
8885 sni)
8886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887 hardcode_direct=yes # is this really true???
8888 ;;
8889 siemens)
8890 ## LD is ld it makes a PLAMLIB
8891 ## CC just makes a GrossModule.
8892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8893 reload_cmds='$CC -r -o $output$reload_objs'
8894 hardcode_direct=no
8895 ;;
8896 motorola)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8899 ;;
8900 esac
8901 runpath_var='LD_RUN_PATH'
8902 hardcode_shlibpath_var=no
8903 ;;
8904
8905 sysv4.3*)
8906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_shlibpath_var=no
8908 export_dynamic_flag_spec='-Bexport'
8909 ;;
8910
8911 sysv4*MP*)
8912 if test -d /usr/nec; then
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_shlibpath_var=no
8915 runpath_var=LD_RUN_PATH
8916 hardcode_runpath_var=yes
8917 ld_shlibs=yes
8918 fi
8919 ;;
8920
8921 sysv4.2uw2*)
8922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_direct=yes
8924 hardcode_minus_L=no
8925 hardcode_shlibpath_var=no
8926 hardcode_runpath_var=yes
8927 runpath_var=LD_RUN_PATH
8928 ;;
8929
8930 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8931 no_undefined_flag='${wl}-z ${wl}text'
8932 if test "$GCC" = yes; then
8933 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8934 else
8935 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 fi
8937 runpath_var='LD_RUN_PATH'
8938 hardcode_shlibpath_var=no
8939 ;;
8940
8941 sysv5*)
8942 no_undefined_flag=' -z text'
8943 # $CC -shared without GNU ld will not create a library from C++
8944 # object files and a static libstdc++, better avoid it by now
8945 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8948 hardcode_libdir_flag_spec=
8949 hardcode_shlibpath_var=no
8950 runpath_var='LD_RUN_PATH'
8951 ;;
8952
8953 uts4*)
8954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_shlibpath_var=no
8957 ;;
8958
8959 *)
8960 ld_shlibs=no
8961 ;;
8962 esac
8963 fi
8964
8965{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8966echo "${ECHO_T}$ld_shlibs" >&6; }
8967test "$ld_shlibs" = no && can_build_shared=no
8968
8969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8970if test "$GCC" = yes; then
8971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8972fi
8973
8974#
8975# Do we need to explicitly link libc?
8976#
8977case "x$archive_cmds_need_lc" in
8978x|xyes)
8979 # Assume -lc should be added
8980 archive_cmds_need_lc=yes
8981
8982 if test "$enable_shared" = yes && test "$GCC" = yes; then
8983 case $archive_cmds in
8984 *'~'*)
8985 # FIXME: we may have to deal with multi-command sequences.
8986 ;;
8987 '$CC '*)
8988 # Test whether the compiler implicitly links with -lc since on some
8989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8990 # to ld, don't add -lc before -lgcc.
8991 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8992echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8993 $rm conftest*
8994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8995
8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } 2>conftest.err; then
9001 soname=conftest
9002 lib=conftest
9003 libobjs=conftest.$ac_objext
9004 deplibs=
9005 wl=$lt_prog_compiler_wl
9006 compiler_flags=-v
9007 linker_flags=-v
9008 verstring=
9009 output_objdir=.
9010 libname=conftest
9011 lt_save_allow_undefined_flag=$allow_undefined_flag
9012 allow_undefined_flag=
9013 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9014 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }
9018 then
9019 archive_cmds_need_lc=no
9020 else
9021 archive_cmds_need_lc=yes
9022 fi
9023 allow_undefined_flag=$lt_save_allow_undefined_flag
9024 else
9025 cat conftest.err 1>&5
9026 fi
9027 $rm conftest*
9028 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9029echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9030 ;;
9031 esac
9032 fi
9033 ;;
9034esac
9035
9036{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9037echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9038library_names_spec=
9039libname_spec='lib$name'
9040soname_spec=
9041shrext_cmds=".so"
9042postinstall_cmds=
9043postuninstall_cmds=
9044finish_cmds=
9045finish_eval=
9046shlibpath_var=
9047shlibpath_overrides_runpath=unknown
9048version_type=none
9049dynamic_linker="$host_os ld.so"
9050sys_lib_dlsearch_path_spec="/lib /usr/lib"
9051if test "$GCC" = yes; then
9052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9053 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9054 # if the path contains ";" then we assume it to be the separator
9055 # otherwise default to the standard path separator (i.e. ":") - it is
9056 # assumed that no part of a normal pathname contains ";" but that should
9057 # okay in the real world where ";" in dirpaths is itself problematic.
9058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9059 else
9060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9061 fi
9062else
9063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9064fi
9065need_lib_prefix=unknown
9066hardcode_into_libs=no
9067
9068# when you set need_version to no, make sure it does not cause -set_version
9069# flags to be left without arguments
9070need_version=unknown
9071
9072case $host_os in
9073aix3*)
9074 version_type=linux
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9076 shlibpath_var=LIBPATH
9077
9078 # AIX 3 has no versioning support, so we append a major version to the name.
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 ;;
9081
9082aix4* | aix5*)
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 hardcode_into_libs=yes
9087 if test "$host_cpu" = ia64; then
9088 # AIX 5 supports IA64
9089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 else
9092 # With GCC up to 2.95.x, collect2 would create an import file
9093 # for dependence libraries. The import file would start with
9094 # the line `#! .'. This would cause the generated library to
9095 # depend on `.', always an invalid library. This was fixed in
9096 # development snapshots of GCC prior to 3.0.
9097 case $host_os in
9098 aix4 | aix4.[01] | aix4.[01].*)
9099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9100 echo ' yes '
9101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9102 :
9103 else
9104 can_build_shared=no
9105 fi
9106 ;;
9107 esac
9108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9109 # soname into executable. Probably we can add versioning support to
9110 # collect2, so additional links can be useful in future.
9111 if test "$aix_use_runtimelinking" = yes; then
9112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9113 # instead of lib<name>.a to let people know that these are not
9114 # typical AIX shared libraries.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 else
9117 # We preserve .a as extension for shared libraries through AIX4.2
9118 # and later when we are not doing run time linking.
9119 library_names_spec='${libname}${release}.a $libname.a'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 fi
9122 shlibpath_var=LIBPATH
9123 fi
9124 ;;
9125
9126amigaos*)
9127 library_names_spec='$libname.ixlibrary $libname.a'
9128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9129 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'
9130 ;;
9131
9132beos*)
9133 library_names_spec='${libname}${shared_ext}'
9134 dynamic_linker="$host_os ld.so"
9135 shlibpath_var=LIBRARY_PATH
9136 ;;
9137
9138bsdi[45]*)
9139 version_type=linux
9140 need_version=no
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9147 # the default ld.so.conf also contains /usr/contrib/lib and
9148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9149 # libtool to hard-code these into programs
9150 ;;
9151
9152cygwin* | mingw* | pw32*)
9153 version_type=windows
9154 shrext_cmds=".dll"
9155 need_version=no
9156 need_lib_prefix=no
9157
9158 case $GCC,$host_os in
9159 yes,cygwin* | yes,mingw* | yes,pw32*)
9160 library_names_spec='$libname.dll.a'
9161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9162 postinstall_cmds='base_file=`basename \${file}`~
9163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9164 dldir=$destdir/`dirname \$dlpath`~
9165 test -d \$dldir || mkdir -p \$dldir~
9166 $install_prog $dir/$dlname \$dldir/$dlname~
9167 chmod a+x \$dldir/$dlname'
9168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9169 dlpath=$dir/\$dldll~
9170 $rm \$dlpath'
9171 shlibpath_overrides_runpath=yes
9172
9173 case $host_os in
9174 cygwin*)
9175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9178 ;;
9179 mingw*)
9180 # MinGW DLLs use traditional 'lib' prefix
9181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9184 # It is most probably a Windows format PATH printed by
9185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9186 # path with ; separators, and with drive letters. We can handle the
9187 # drive letters (cygwin fileutils understands them), so leave them,
9188 # especially as we might pass files found there to a mingw objdump,
9189 # which wouldn't understand a cygwinified path. Ahh.
9190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9191 else
9192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9193 fi
9194 ;;
9195 pw32*)
9196 # pw32 DLLs use 'pw' prefix rather than 'lib'
9197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9198 ;;
9199 esac
9200 ;;
9201
9202 *)
9203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9204 ;;
9205 esac
9206 dynamic_linker='Win32 ld.exe'
9207 # FIXME: first we should search . and the directory the executable is in
9208 shlibpath_var=PATH
9209 ;;
9210
9211darwin* | rhapsody*)
9212 dynamic_linker="$host_os dyld"
9213 version_type=darwin
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9217 soname_spec='${libname}${release}${major}$shared_ext'
9218 shlibpath_overrides_runpath=yes
9219 shlibpath_var=DYLD_LIBRARY_PATH
9220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9222 if test "$GCC" = yes; then
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9224 else
9225 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9226 fi
9227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9228 ;;
9229
9230dgux*)
9231 version_type=linux
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 ;;
9238
9239freebsd1*)
9240 dynamic_linker=no
9241 ;;
9242
9243kfreebsd*-gnu)
9244 version_type=linux
9245 need_lib_prefix=no
9246 need_version=no
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=no
9251 hardcode_into_libs=yes
9252 dynamic_linker='GNU ld.so'
9253 ;;
9254
9255freebsd* | dragonfly*)
9256 # DragonFly does not have aout. When/if they implement a new
9257 # versioning mechanism, adjust this.
9258 if test -x /usr/bin/objformat; then
9259 objformat=`/usr/bin/objformat`
9260 else
9261 case $host_os in
9262 freebsd[123]*) objformat=aout ;;
9263 *) objformat=elf ;;
9264 esac
9265 fi
9266 version_type=freebsd-$objformat
9267 case $version_type in
9268 freebsd-elf*)
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9270 need_version=no
9271 need_lib_prefix=no
9272 ;;
9273 freebsd-*)
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9275 need_version=yes
9276 ;;
9277 esac
9278 shlibpath_var=LD_LIBRARY_PATH
9279 case $host_os in
9280 freebsd2*)
9281 shlibpath_overrides_runpath=yes
9282 ;;
9283 freebsd3.[01]* | freebsdelf3.[01]*)
9284 shlibpath_overrides_runpath=yes
9285 hardcode_into_libs=yes
9286 ;;
9287 *) # from 3.2 on
9288 shlibpath_overrides_runpath=no
9289 hardcode_into_libs=yes
9290 ;;
9291 esac
9292 ;;
9293
9294gnu*)
9295 version_type=linux
9296 need_lib_prefix=no
9297 need_version=no
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 hardcode_into_libs=yes
9302 ;;
9303
9304hpux9* | hpux10* | hpux11*)
9305 # Give a soname corresponding to the major version so that dld.sl refuses to
9306 # link against other versions.
9307 version_type=sunos
9308 need_lib_prefix=no
9309 need_version=no
9310 case $host_cpu in
9311 ia64*)
9312 shrext_cmds='.so'
9313 hardcode_into_libs=yes
9314 dynamic_linker="$host_os dld.so"
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 if test "X$HPUX_IA64_MODE" = X32; then
9320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9321 else
9322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9323 fi
9324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9325 ;;
9326 hppa*64*)
9327 shrext_cmds='.sl'
9328 hardcode_into_libs=yes
9329 dynamic_linker="$host_os dld.sl"
9330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9336 ;;
9337 *)
9338 shrext_cmds='.sl'
9339 dynamic_linker="$host_os dld.sl"
9340 shlibpath_var=SHLIB_PATH
9341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 ;;
9345 esac
9346 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9347 postinstall_cmds='chmod 555 $lib'
9348 ;;
9349
9350irix5* | irix6* | nonstopux*)
9351 case $host_os in
9352 nonstopux*) version_type=nonstopux ;;
9353 *)
9354 if test "$lt_cv_prog_gnu_ld" = yes; then
9355 version_type=linux
9356 else
9357 version_type=irix
9358 fi ;;
9359 esac
9360 need_lib_prefix=no
9361 need_version=no
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9364 case $host_os in
9365 irix5* | nonstopux*)
9366 libsuff= shlibsuff=
9367 ;;
9368 *)
9369 case $LD in # libtool.m4 will add one of these switches to LD
9370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9371 libsuff= shlibsuff= libmagic=32-bit;;
9372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9373 libsuff=32 shlibsuff=N32 libmagic=N32;;
9374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9376 *) libsuff= shlibsuff= libmagic=never-match;;
9377 esac
9378 ;;
9379 esac
9380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9381 shlibpath_overrides_runpath=no
9382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9384 hardcode_into_libs=yes
9385 ;;
9386
9387# No shared lib support for Linux oldld, aout, or coff.
9388linux*oldld* | linux*aout* | linux*coff*)
9389 dynamic_linker=no
9390 ;;
9391
9392# This must be Linux ELF.
9393linux*)
9394 version_type=linux
9395 need_lib_prefix=no
9396 need_version=no
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=no
9402 # This implies no fast_install, which is unacceptable.
9403 # Some rework will be needed to allow for fast_install
9404 # before this can be enabled.
9405 hardcode_into_libs=yes
9406
9407 # Append ld.so.conf contents to the search path
9408 if test -f /etc/ld.so.conf; then
9409 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9410 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9411 fi
9412
9413 # We used to test for /lib/ld.so.1 and disable shared libraries on
9414 # powerpc, because MkLinux only supported shared libraries with the
9415 # GNU dynamic linker. Since this was broken with cross compilers,
9416 # most powerpc-linux boxes support dynamic linking these days and
9417 # people can always --disable-shared, the test was removed, and we
9418 # assume the GNU/Linux dynamic linker is in use.
9419 dynamic_linker='GNU/Linux ld.so'
9420 ;;
9421
9422knetbsd*-gnu)
9423 version_type=linux
9424 need_lib_prefix=no
9425 need_version=no
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 shlibpath_overrides_runpath=no
9430 hardcode_into_libs=yes
9431 dynamic_linker='GNU ld.so'
9432 ;;
9433
9434netbsd*)
9435 version_type=sunos
9436 need_lib_prefix=no
9437 need_version=no
9438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9441 dynamic_linker='NetBSD (a.out) ld.so'
9442 else
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 dynamic_linker='NetBSD ld.elf_so'
9446 fi
9447 shlibpath_var=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath=yes
9449 hardcode_into_libs=yes
9450 ;;
9451
9452newsos6)
9453 version_type=linux
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes
9457 ;;
9458
9459nto-qnx*)
9460 version_type=linux
9461 need_lib_prefix=no
9462 need_version=no
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes
9467 ;;
9468
9469openbsd*)
9470 version_type=sunos
9471 need_lib_prefix=no
9472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9473 case $host_os in
9474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9475 *) need_version=no ;;
9476 esac
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9481 case $host_os in
9482 openbsd2.[89] | openbsd2.[89].*)
9483 shlibpath_overrides_runpath=no
9484 ;;
9485 *)
9486 shlibpath_overrides_runpath=yes
9487 ;;
9488 esac
9489 else
9490 shlibpath_overrides_runpath=yes
9491 fi
9492 ;;
9493
9494os2*)
9495 libname_spec='$name'
9496 shrext_cmds=".dll"
9497 need_lib_prefix=no
9498 library_names_spec='$libname${shared_ext} $libname.a'
9499 dynamic_linker='OS/2 ld.exe'
9500 shlibpath_var=LIBPATH
9501 ;;
9502
9503osf3* | osf4* | osf5*)
9504 version_type=osf
9505 need_lib_prefix=no
9506 need_version=no
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9512 ;;
9513
9514sco3.2v5*)
9515 version_type=osf
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 ;;
9520
9521solaris*)
9522 version_type=linux
9523 need_lib_prefix=no
9524 need_version=no
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 shlibpath_overrides_runpath=yes
9529 hardcode_into_libs=yes
9530 # ldd complains unless libraries are executable
9531 postinstall_cmds='chmod +x $lib'
9532 ;;
9533
9534sunos4*)
9535 version_type=sunos
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 shlibpath_overrides_runpath=yes
9540 if test "$with_gnu_ld" = yes; then
9541 need_lib_prefix=no
9542 fi
9543 need_version=yes
9544 ;;
9545
9546sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9547 version_type=linux
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 case $host_vendor in
9552 sni)
9553 shlibpath_overrides_runpath=no
9554 need_lib_prefix=no
9555 export_dynamic_flag_spec='${wl}-Blargedynsym'
9556 runpath_var=LD_RUN_PATH
9557 ;;
9558 siemens)
9559 need_lib_prefix=no
9560 ;;
9561 motorola)
9562 need_lib_prefix=no
9563 need_version=no
9564 shlibpath_overrides_runpath=no
9565 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9566 ;;
9567 esac
9568 ;;
9569
9570sysv4*MP*)
9571 if test -d /usr/nec ;then
9572 version_type=linux
9573 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9574 soname_spec='$libname${shared_ext}.$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 fi
9577 ;;
9578
9579uts4*)
9580 version_type=linux
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 ;;
9585
9586*)
9587 dynamic_linker=no
9588 ;;
9589esac
9590{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9591echo "${ECHO_T}$dynamic_linker" >&6; }
9592test "$dynamic_linker" = no && can_build_shared=no
9593
9594{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9595echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9596hardcode_action=
9597if test -n "$hardcode_libdir_flag_spec" || \
9598 test -n "$runpath_var" || \
9599 test "X$hardcode_automatic" = "Xyes" ; then
9600
9601 # We can hardcode non-existant directories.
9602 if test "$hardcode_direct" != no &&
9603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9604 # have to relink, otherwise we might link with an installed library
9605 # when we should be linking with a yet-to-be-installed one
9606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9607 test "$hardcode_minus_L" != no; then
9608 # Linking always hardcodes the temporary library directory.
9609 hardcode_action=relink
9610 else
9611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9612 hardcode_action=immediate
9613 fi
9614else
9615 # We cannot hardcode anything, or else we can only hardcode existing
9616 # directories.
9617 hardcode_action=unsupported
9618fi
9619{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9620echo "${ECHO_T}$hardcode_action" >&6; }
9621
9622if test "$hardcode_action" = relink; then
9623 # Fast installation is not supported
9624 enable_fast_install=no
9625elif test "$shlibpath_overrides_runpath" = yes ||
9626 test "$enable_shared" = no; then
9627 # Fast installation is not necessary
9628 enable_fast_install=needless
9629fi
9630
9631striplib=
9632old_striplib=
9633{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9634echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9635if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9638 { echo "$as_me:$LINENO: result: yes" >&5
9639echo "${ECHO_T}yes" >&6; }
9640else
9641# FIXME - insert some real tests, host_os isn't really good enough
9642 case $host_os in
9643 darwin*)
9644 if test -n "$STRIP" ; then
9645 striplib="$STRIP -x"
9646 { echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6; }
9648 else
9649 { echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6; }
9651fi
9652 ;;
9653 *)
9654 { echo "$as_me:$LINENO: result: no" >&5
9655echo "${ECHO_T}no" >&6; }
9656 ;;
9657 esac
9658fi
9659
9660if test "x$enable_dlopen" != xyes; then
9661 enable_dlopen=unknown
9662 enable_dlopen_self=unknown
9663 enable_dlopen_self_static=unknown
9664else
9665 lt_cv_dlopen=no
9666 lt_cv_dlopen_libs=
9667
9668 case $host_os in
9669 beos*)
9670 lt_cv_dlopen="load_add_on"
9671 lt_cv_dlopen_libs=
9672 lt_cv_dlopen_self=yes
9673 ;;
9674
9675 mingw* | pw32*)
9676 lt_cv_dlopen="LoadLibrary"
9677 lt_cv_dlopen_libs=
9678 ;;
9679
9680 cygwin*)
9681 lt_cv_dlopen="dlopen"
9682 lt_cv_dlopen_libs=
9683 ;;
9684
9685 darwin*)
9686 # if libdl is installed we need to link against it
9687 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-ldl $LIBS"
9694cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h. */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h. */
9700
9701/* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9704#ifdef __cplusplus
9705extern "C"
9706#endif
9707char dlopen ();
9708int
9709main ()
9710{
9711return dlopen ();
9712 ;
9713 return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
9717if { (ac_try="$ac_link"
9718case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest$ac_exeext &&
9733 $as_test_x conftest$ac_exeext; then
9734 ac_cv_lib_dl_dlopen=yes
9735else
9736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_cv_lib_dl_dlopen=no
9740fi
9741
9742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743 conftest$ac_exeext conftest.$ac_ext
9744LIBS=$ac_check_lib_save_LIBS
9745fi
9746{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9747echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9748if test $ac_cv_lib_dl_dlopen = yes; then
9749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9750else
9751
9752 lt_cv_dlopen="dyld"
9753 lt_cv_dlopen_libs=
9754 lt_cv_dlopen_self=yes
9755
9756fi
9757
9758 ;;
9759
9760 *)
9761 { echo "$as_me:$LINENO: checking for shl_load" >&5
9762echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9763if test "${ac_cv_func_shl_load+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765else
9766 cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9774#define shl_load innocuous_shl_load
9775
9776/* System header to define __stub macros and hopefully few prototypes,
9777 which can conflict with char shl_load (); below.
9778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9779 <limits.h> exists even on freestanding compilers. */
9780
9781#ifdef __STDC__
9782# include <limits.h>
9783#else
9784# include <assert.h>
9785#endif
9786
9787#undef shl_load
9788
9789/* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792#ifdef __cplusplus
9793extern "C"
9794#endif
9795char shl_load ();
9796/* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799#if defined __stub_shl_load || defined __stub___shl_load
9800choke me
9801#endif
9802
9803int
9804main ()
9805{
9806return shl_load ();
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext conftest$ac_exeext
9812if { (ac_try="$ac_link"
9813case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest$ac_exeext &&
9828 $as_test_x conftest$ac_exeext; then
9829 ac_cv_func_shl_load=yes
9830else
9831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_func_shl_load=no
9835fi
9836
9837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9838 conftest$ac_exeext conftest.$ac_ext
9839fi
9840{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9841echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9842if test $ac_cv_func_shl_load = yes; then
9843 lt_cv_dlopen="shl_load"
9844else
9845 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9846echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9847if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850 ac_check_lib_save_LIBS=$LIBS
9851LIBS="-ldld $LIBS"
9852cat >conftest.$ac_ext <<_ACEOF
9853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
9857/* end confdefs.h. */
9858
9859/* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9862#ifdef __cplusplus
9863extern "C"
9864#endif
9865char shl_load ();
9866int
9867main ()
9868{
9869return shl_load ();
9870 ;
9871 return 0;
9872}
9873_ACEOF
9874rm -f conftest.$ac_objext conftest$ac_exeext
9875if { (ac_try="$ac_link"
9876case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest$ac_exeext &&
9891 $as_test_x conftest$ac_exeext; then
9892 ac_cv_lib_dld_shl_load=yes
9893else
9894 echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_cv_lib_dld_shl_load=no
9898fi
9899
9900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 conftest$ac_exeext conftest.$ac_ext
9902LIBS=$ac_check_lib_save_LIBS
9903fi
9904{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9905echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9906if test $ac_cv_lib_dld_shl_load = yes; then
9907 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9908else
9909 { echo "$as_me:$LINENO: checking for dlopen" >&5
9910echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9911if test "${ac_cv_func_dlopen+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914 cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h. */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h. */
9920/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9922#define dlopen innocuous_dlopen
9923
9924/* System header to define __stub macros and hopefully few prototypes,
9925 which can conflict with char dlopen (); below.
9926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9927 <limits.h> exists even on freestanding compilers. */
9928
9929#ifdef __STDC__
9930# include <limits.h>
9931#else
9932# include <assert.h>
9933#endif
9934
9935#undef dlopen
9936
9937/* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9940#ifdef __cplusplus
9941extern "C"
9942#endif
9943char dlopen ();
9944/* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947#if defined __stub_dlopen || defined __stub___dlopen
9948choke me
9949#endif
9950
9951int
9952main ()
9953{
9954return dlopen ();
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (ac_try="$ac_link"
9961case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest$ac_exeext &&
9976 $as_test_x conftest$ac_exeext; then
9977 ac_cv_func_dlopen=yes
9978else
9979 echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 ac_cv_func_dlopen=no
9983fi
9984
9985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9987fi
9988{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9989echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9990if test $ac_cv_func_dlopen = yes; then
9991 lt_cv_dlopen="dlopen"
9992else
9993 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9995if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998 ac_check_lib_save_LIBS=$LIBS
9999LIBS="-ldl $LIBS"
10000cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006
10007/* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010#ifdef __cplusplus
10011extern "C"
10012#endif
10013char dlopen ();
10014int
10015main ()
10016{
10017return dlopen ();
10018 ;
10019 return 0;
10020}
10021_ACEOF
10022rm -f conftest.$ac_objext conftest$ac_exeext
10023if { (ac_try="$ac_link"
10024case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest$ac_exeext &&
10039 $as_test_x conftest$ac_exeext; then
10040 ac_cv_lib_dl_dlopen=yes
10041else
10042 echo "$as_me: failed program was:" >&5
10043sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 ac_cv_lib_dl_dlopen=no
10046fi
10047
10048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049 conftest$ac_exeext conftest.$ac_ext
10050LIBS=$ac_check_lib_save_LIBS
10051fi
10052{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10053echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10054if test $ac_cv_lib_dl_dlopen = yes; then
10055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10056else
10057 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10058echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10059if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 ac_check_lib_save_LIBS=$LIBS
10063LIBS="-lsvld $LIBS"
10064cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
10070
10071/* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074#ifdef __cplusplus
10075extern "C"
10076#endif
10077char dlopen ();
10078int
10079main ()
10080{
10081return dlopen ();
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086rm -f conftest.$ac_objext conftest$ac_exeext
10087if { (ac_try="$ac_link"
10088case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091esac
10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest$ac_exeext &&
10103 $as_test_x conftest$ac_exeext; then
10104 ac_cv_lib_svld_dlopen=yes
10105else
10106 echo "$as_me: failed program was:" >&5
10107sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_cv_lib_svld_dlopen=no
10110fi
10111
10112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10113 conftest$ac_exeext conftest.$ac_ext
10114LIBS=$ac_check_lib_save_LIBS
10115fi
10116{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10117echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10118if test $ac_cv_lib_svld_dlopen = yes; then
10119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10120else
10121 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10122echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10123if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 ac_check_lib_save_LIBS=$LIBS
10127LIBS="-ldld $LIBS"
10128cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h. */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h. */
10134
10135/* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138#ifdef __cplusplus
10139extern "C"
10140#endif
10141char dld_link ();
10142int
10143main ()
10144{
10145return dld_link ();
10146 ;
10147 return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
10151if { (ac_try="$ac_link"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest$ac_exeext &&
10167 $as_test_x conftest$ac_exeext; then
10168 ac_cv_lib_dld_dld_link=yes
10169else
10170 echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_cv_lib_dld_dld_link=no
10174fi
10175
10176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10177 conftest$ac_exeext conftest.$ac_ext
10178LIBS=$ac_check_lib_save_LIBS
10179fi
10180{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10182if test $ac_cv_lib_dld_dld_link = yes; then
10183 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10184fi
10185
10186
10187fi
10188
10189
10190fi
10191
10192
10193fi
10194
10195
10196fi
10197
10198
10199fi
10200
10201 ;;
10202 esac
10203
10204 if test "x$lt_cv_dlopen" != xno; then
10205 enable_dlopen=yes
10206 else
10207 enable_dlopen=no
10208 fi
10209
10210 case $lt_cv_dlopen in
10211 dlopen)
10212 save_CPPFLAGS="$CPPFLAGS"
10213 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10214
10215 save_LDFLAGS="$LDFLAGS"
10216 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10217
10218 save_LIBS="$LIBS"
10219 LIBS="$lt_cv_dlopen_libs $LIBS"
10220
10221 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10222echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10223if test "${lt_cv_dlopen_self+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 if test "$cross_compiling" = yes; then :
10227 lt_cv_dlopen_self=cross
10228else
10229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10230 lt_status=$lt_dlunknown
10231 cat > conftest.$ac_ext <<EOF
10232#line 10232 "configure"
10233#include "confdefs.h"
10234
10235#if HAVE_DLFCN_H
10236#include <dlfcn.h>
10237#endif
10238
10239#include <stdio.h>
10240
10241#ifdef RTLD_GLOBAL
10242# define LT_DLGLOBAL RTLD_GLOBAL
10243#else
10244# ifdef DL_GLOBAL
10245# define LT_DLGLOBAL DL_GLOBAL
10246# else
10247# define LT_DLGLOBAL 0
10248# endif
10249#endif
10250
10251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10252 find out it does not work in some platform. */
10253#ifndef LT_DLLAZY_OR_NOW
10254# ifdef RTLD_LAZY
10255# define LT_DLLAZY_OR_NOW RTLD_LAZY
10256# else
10257# ifdef DL_LAZY
10258# define LT_DLLAZY_OR_NOW DL_LAZY
10259# else
10260# ifdef RTLD_NOW
10261# define LT_DLLAZY_OR_NOW RTLD_NOW
10262# else
10263# ifdef DL_NOW
10264# define LT_DLLAZY_OR_NOW DL_NOW
10265# else
10266# define LT_DLLAZY_OR_NOW 0
10267# endif
10268# endif
10269# endif
10270# endif
10271#endif
10272
10273#ifdef __cplusplus
10274extern "C" void exit (int);
10275#endif
10276
10277void fnord() { int i=42;}
10278int main ()
10279{
10280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10281 int status = $lt_dlunknown;
10282
10283 if (self)
10284 {
10285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10287 /* dlclose (self); */
10288 }
10289
10290 exit (status);
10291}
10292EOF
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10298 (./conftest; exit; ) >&5 2>/dev/null
10299 lt_status=$?
10300 case x$lt_status in
10301 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10302 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10303 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10304 esac
10305 else :
10306 # compilation failed
10307 lt_cv_dlopen_self=no
10308 fi
10309fi
10310rm -fr conftest*
10311
10312
10313fi
10314{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10315echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10316
10317 if test "x$lt_cv_dlopen_self" = xyes; then
10318 LDFLAGS="$LDFLAGS $link_static_flag"
10319 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10320echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10321if test "${lt_cv_dlopen_self_static+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324 if test "$cross_compiling" = yes; then :
10325 lt_cv_dlopen_self_static=cross
10326else
10327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10328 lt_status=$lt_dlunknown
10329 cat > conftest.$ac_ext <<EOF
10330#line 10330 "configure"
10331#include "confdefs.h"
10332
10333#if HAVE_DLFCN_H
10334#include <dlfcn.h>
10335#endif
10336
10337#include <stdio.h>
10338
10339#ifdef RTLD_GLOBAL
10340# define LT_DLGLOBAL RTLD_GLOBAL
10341#else
10342# ifdef DL_GLOBAL
10343# define LT_DLGLOBAL DL_GLOBAL
10344# else
10345# define LT_DLGLOBAL 0
10346# endif
10347#endif
10348
10349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10350 find out it does not work in some platform. */
10351#ifndef LT_DLLAZY_OR_NOW
10352# ifdef RTLD_LAZY
10353# define LT_DLLAZY_OR_NOW RTLD_LAZY
10354# else
10355# ifdef DL_LAZY
10356# define LT_DLLAZY_OR_NOW DL_LAZY
10357# else
10358# ifdef RTLD_NOW
10359# define LT_DLLAZY_OR_NOW RTLD_NOW
10360# else
10361# ifdef DL_NOW
10362# define LT_DLLAZY_OR_NOW DL_NOW
10363# else
10364# define LT_DLLAZY_OR_NOW 0
10365# endif
10366# endif
10367# endif
10368# endif
10369#endif
10370
10371#ifdef __cplusplus
10372extern "C" void exit (int);
10373#endif
10374
10375void fnord() { int i=42;}
10376int main ()
10377{
10378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10379 int status = $lt_dlunknown;
10380
10381 if (self)
10382 {
10383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10385 /* dlclose (self); */
10386 }
10387
10388 exit (status);
10389}
10390EOF
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10396 (./conftest; exit; ) >&5 2>/dev/null
10397 lt_status=$?
10398 case x$lt_status in
10399 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10400 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10401 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10402 esac
10403 else :
10404 # compilation failed
10405 lt_cv_dlopen_self_static=no
10406 fi
10407fi
10408rm -fr conftest*
10409
10410
10411fi
10412{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10413echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10414 fi
10415
10416 CPPFLAGS="$save_CPPFLAGS"
10417 LDFLAGS="$save_LDFLAGS"
10418 LIBS="$save_LIBS"
10419 ;;
10420 esac
10421
10422 case $lt_cv_dlopen_self in
10423 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10424 *) enable_dlopen_self=unknown ;;
10425 esac
10426
10427 case $lt_cv_dlopen_self_static in
10428 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10429 *) enable_dlopen_self_static=unknown ;;
10430 esac
10431fi
10432
10433
10434# Report which librarie types wil actually be built
10435{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10436echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10437{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10438echo "${ECHO_T}$can_build_shared" >&6; }
10439
10440{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10441echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10442test "$can_build_shared" = "no" && enable_shared=no
10443
10444# On AIX, shared libraries and static libraries use the same namespace, and
10445# are all built from PIC.
10446case $host_os in
10447aix3*)
10448 test "$enable_shared" = yes && enable_static=no
10449 if test -n "$RANLIB"; then
10450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10451 postinstall_cmds='$RANLIB $lib'
10452 fi
10453 ;;
10454
10455aix4* | aix5*)
10456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10457 test "$enable_shared" = yes && enable_static=no
10458 fi
10459 ;;
10460esac
10461{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10462echo "${ECHO_T}$enable_shared" >&6; }
10463
10464{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10465echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10466# Make sure either enable_shared or enable_static is yes.
10467test "$enable_shared" = yes || enable_static=yes
10468{ echo "$as_me:$LINENO: result: $enable_static" >&5
10469echo "${ECHO_T}$enable_static" >&6; }
10470
10471# The else clause should only fire when bootstrapping the
10472# libtool distribution, otherwise you forgot to ship ltmain.sh
10473# with your package, and you will get complaints that there are
10474# no rules to generate ltmain.sh.
10475if test -f "$ltmain"; then
10476 # See if we are running on zsh, and set the options which allow our commands through
10477 # without removal of \ escapes.
10478 if test -n "${ZSH_VERSION+set}" ; then
10479 setopt NO_GLOB_SUBST
10480 fi
10481 # Now quote all the things that may contain metacharacters while being
10482 # careful not to overquote the AC_SUBSTed values. We take copies of the
10483 # variables and quote the copies for generation of the libtool script.
10484 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10485 SED SHELL STRIP \
10486 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10487 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10488 deplibs_check_method reload_flag reload_cmds need_locks \
10489 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10490 lt_cv_sys_global_symbol_to_c_name_address \
10491 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10492 old_postinstall_cmds old_postuninstall_cmds \
10493 compiler \
10494 CC \
10495 LD \
10496 lt_prog_compiler_wl \
10497 lt_prog_compiler_pic \
10498 lt_prog_compiler_static \
10499 lt_prog_compiler_no_builtin_flag \
10500 export_dynamic_flag_spec \
10501 thread_safe_flag_spec \
10502 whole_archive_flag_spec \
10503 enable_shared_with_static_runtimes \
10504 old_archive_cmds \
10505 old_archive_from_new_cmds \
10506 predep_objects \
10507 postdep_objects \
10508 predeps \
10509 postdeps \
10510 compiler_lib_search_path \
10511 archive_cmds \
10512 archive_expsym_cmds \
10513 postinstall_cmds \
10514 postuninstall_cmds \
10515 old_archive_from_expsyms_cmds \
10516 allow_undefined_flag \
10517 no_undefined_flag \
10518 export_symbols_cmds \
10519 hardcode_libdir_flag_spec \
10520 hardcode_libdir_flag_spec_ld \
10521 hardcode_libdir_separator \
10522 hardcode_automatic \
10523 module_cmds \
10524 module_expsym_cmds \
10525 lt_cv_prog_compiler_c_o \
10526 exclude_expsyms \
10527 include_expsyms; do
10528
10529 case $var in
10530 old_archive_cmds | \
10531 old_archive_from_new_cmds | \
10532 archive_cmds | \
10533 archive_expsym_cmds | \
10534 module_cmds | \
10535 module_expsym_cmds | \
10536 old_archive_from_expsyms_cmds | \
10537 export_symbols_cmds | \
10538 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10539 postinstall_cmds | postuninstall_cmds | \
10540 old_postinstall_cmds | old_postuninstall_cmds | \
10541 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10542 # Double-quote double-evaled strings.
10543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10544 ;;
10545 *)
10546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10547 ;;
10548 esac
10549 done
10550
10551 case $lt_echo in
10552 *'\$0 --fallback-echo"')
10553 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10554 ;;
10555 esac
10556
10557cfgfile="${ofile}T"
10558 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10559 $rm -f "$cfgfile"
10560 { echo "$as_me:$LINENO: creating $ofile" >&5
10561echo "$as_me: creating $ofile" >&6;}
10562
10563 cat <<__EOF__ >> "$cfgfile"
10564#! $SHELL
10565
10566# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10567# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10568# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10569#
10570# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10571# Free Software Foundation, Inc.
10572#
10573# This file is part of GNU Libtool:
10574# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10575#
10576# This program is free software; you can redistribute it and/or modify
10577# it under the terms of the GNU General Public License as published by
10578# the Free Software Foundation; either version 2 of the License, or
10579# (at your option) any later version.
10580#
10581# This program is distributed in the hope that it will be useful, but
10582# WITHOUT ANY WARRANTY; without even the implied warranty of
10583# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10584# General Public License for more details.
10585#
10586# You should have received a copy of the GNU General Public License
10587# along with this program; if not, write to the Free Software
10588# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10589#
10590# As a special exception to the GNU General Public License, if you
10591# distribute this file as part of a program that contains a
10592# configuration script generated by Autoconf, you may include it under
10593# the same distribution terms that you use for the rest of that program.
10594
10595# A sed program that does not truncate output.
10596SED=$lt_SED
10597
10598# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10599Xsed="$SED -e 1s/^X//"
10600
10601# The HP-UX ksh and POSIX shell print the target directory to stdout
10602# if CDPATH is set.
10603(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10604
10605# The names of the tagged configurations supported by this script.
10606available_tags=
10607
10608# ### BEGIN LIBTOOL CONFIG
10609
10610# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10611
10612# Shell to use when invoking shell scripts.
10613SHELL=$lt_SHELL
10614
10615# Whether or not to build shared libraries.
10616build_libtool_libs=$enable_shared
10617
10618# Whether or not to build static libraries.
10619build_old_libs=$enable_static
10620
10621# Whether or not to add -lc for building shared libraries.
10622build_libtool_need_lc=$archive_cmds_need_lc
10623
10624# Whether or not to disallow shared libs when runtime libs are static
10625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10626
10627# Whether or not to optimize for fast installation.
10628fast_install=$enable_fast_install
10629
10630# The host system.
10631host_alias=$host_alias
10632host=$host
10633host_os=$host_os
10634
10635# The build system.
10636build_alias=$build_alias
10637build=$build
10638build_os=$build_os
10639
10640# An echo program that does not interpret backslashes.
10641echo=$lt_echo
10642
10643# The archiver.
10644AR=$lt_AR
10645AR_FLAGS=$lt_AR_FLAGS
10646
10647# A C compiler.
10648LTCC=$lt_LTCC
10649
10650# A language-specific compiler.
10651CC=$lt_compiler
10652
10653# Is the compiler the GNU C compiler?
10654with_gcc=$GCC
10655
10656# An ERE matcher.
10657EGREP=$lt_EGREP
10658
10659# The linker used to build libraries.
10660LD=$lt_LD
10661
10662# Whether we need hard or soft links.
10663LN_S=$lt_LN_S
10664
10665# A BSD-compatible nm program.
10666NM=$lt_NM
10667
10668# A symbol stripping program
10669STRIP=$lt_STRIP
10670
10671# Used to examine libraries when file_magic_cmd begins "file"
10672MAGIC_CMD=$MAGIC_CMD
10673
10674# Used on cygwin: DLL creation program.
10675DLLTOOL="$DLLTOOL"
10676
10677# Used on cygwin: object dumper.
10678OBJDUMP="$OBJDUMP"
10679
10680# Used on cygwin: assembler.
10681AS="$AS"
10682
10683# The name of the directory that contains temporary libtool files.
10684objdir=$objdir
10685
10686# How to create reloadable object files.
10687reload_flag=$lt_reload_flag
10688reload_cmds=$lt_reload_cmds
10689
10690# How to pass a linker flag through the compiler.
10691wl=$lt_lt_prog_compiler_wl
10692
10693# Object file suffix (normally "o").
10694objext="$ac_objext"
10695
10696# Old archive suffix (normally "a").
10697libext="$libext"
10698
10699# Shared library suffix (normally ".so").
10700shrext_cmds='$shrext_cmds'
10701
10702# Executable file suffix (normally "").
10703exeext="$exeext"
10704
10705# Additional compiler flags for building library objects.
10706pic_flag=$lt_lt_prog_compiler_pic
10707pic_mode=$pic_mode
10708
10709# What is the maximum length of a command?
10710max_cmd_len=$lt_cv_sys_max_cmd_len
10711
10712# Does compiler simultaneously support -c and -o options?
10713compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10714
10715# Must we lock files when doing compilation?
10716need_locks=$lt_need_locks
10717
10718# Do we need the lib prefix for modules?
10719need_lib_prefix=$need_lib_prefix
10720
10721# Do we need a version for libraries?
10722need_version=$need_version
10723
10724# Whether dlopen is supported.
10725dlopen_support=$enable_dlopen
10726
10727# Whether dlopen of programs is supported.
10728dlopen_self=$enable_dlopen_self
10729
10730# Whether dlopen of statically linked programs is supported.
10731dlopen_self_static=$enable_dlopen_self_static
10732
10733# Compiler flag to prevent dynamic linking.
10734link_static_flag=$lt_lt_prog_compiler_static
10735
10736# Compiler flag to turn off builtin functions.
10737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10738
10739# Compiler flag to allow reflexive dlopens.
10740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10741
10742# Compiler flag to generate shared objects directly from archives.
10743whole_archive_flag_spec=$lt_whole_archive_flag_spec
10744
10745# Compiler flag to generate thread-safe objects.
10746thread_safe_flag_spec=$lt_thread_safe_flag_spec
10747
10748# Library versioning type.
10749version_type=$version_type
10750
10751# Format of library name prefix.
10752libname_spec=$lt_libname_spec
10753
10754# List of archive names. First name is the real one, the rest are links.
10755# The last name is the one that the linker finds with -lNAME.
10756library_names_spec=$lt_library_names_spec
10757
10758# The coded name of the library, if different from the real name.
10759soname_spec=$lt_soname_spec
10760
10761# Commands used to build and install an old-style archive.
10762RANLIB=$lt_RANLIB
10763old_archive_cmds=$lt_old_archive_cmds
10764old_postinstall_cmds=$lt_old_postinstall_cmds
10765old_postuninstall_cmds=$lt_old_postuninstall_cmds
10766
10767# Create an old-style archive from a shared archive.
10768old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10769
10770# Create a temporary old-style archive to link instead of a shared archive.
10771old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10772
10773# Commands used to build and install a shared archive.
10774archive_cmds=$lt_archive_cmds
10775archive_expsym_cmds=$lt_archive_expsym_cmds
10776postinstall_cmds=$lt_postinstall_cmds
10777postuninstall_cmds=$lt_postuninstall_cmds
10778
10779# Commands used to build a loadable module (assumed same as above if empty)
10780module_cmds=$lt_module_cmds
10781module_expsym_cmds=$lt_module_expsym_cmds
10782
10783# Commands to strip libraries.
10784old_striplib=$lt_old_striplib
10785striplib=$lt_striplib
10786
10787# Dependencies to place before the objects being linked to create a
10788# shared library.
10789predep_objects=$lt_predep_objects
10790
10791# Dependencies to place after the objects being linked to create a
10792# shared library.
10793postdep_objects=$lt_postdep_objects
10794
10795# Dependencies to place before the objects being linked to create a
10796# shared library.
10797predeps=$lt_predeps
10798
10799# Dependencies to place after the objects being linked to create a
10800# shared library.
10801postdeps=$lt_postdeps
10802
10803# The library search path used internally by the compiler when linking
10804# a shared library.
10805compiler_lib_search_path=$lt_compiler_lib_search_path
10806
10807# Method to check whether dependent libraries are shared objects.
10808deplibs_check_method=$lt_deplibs_check_method
10809
10810# Command to use when deplibs_check_method == file_magic.
10811file_magic_cmd=$lt_file_magic_cmd
10812
10813# Flag that allows shared libraries with undefined symbols to be built.
10814allow_undefined_flag=$lt_allow_undefined_flag
10815
10816# Flag that forces no undefined symbols.
10817no_undefined_flag=$lt_no_undefined_flag
10818
10819# Commands used to finish a libtool library installation in a directory.
10820finish_cmds=$lt_finish_cmds
10821
10822# Same as above, but a single script fragment to be evaled but not shown.
10823finish_eval=$lt_finish_eval
10824
10825# Take the output of nm and produce a listing of raw symbols and C names.
10826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10827
10828# Transform the output of nm in a proper C declaration
10829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10830
10831# Transform the output of nm in a C name address pair
10832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10833
10834# This is the shared library runtime path variable.
10835runpath_var=$runpath_var
10836
10837# This is the shared library path variable.
10838shlibpath_var=$shlibpath_var
10839
10840# Is shlibpath searched before the hard-coded library search path?
10841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10842
10843# How to hardcode a shared library path into an executable.
10844hardcode_action=$hardcode_action
10845
10846# Whether we should hardcode library paths into libraries.
10847hardcode_into_libs=$hardcode_into_libs
10848
10849# Flag to hardcode \$libdir into a binary during linking.
10850# This must work even if \$libdir does not exist.
10851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10852
10853# If ld is used when linking, flag to hardcode \$libdir into
10854# a binary during linking. This must work even if \$libdir does
10855# not exist.
10856hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10857
10858# Whether we need a single -rpath flag with a separated argument.
10859hardcode_libdir_separator=$lt_hardcode_libdir_separator
10860
10861# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10862# resulting binary.
10863hardcode_direct=$hardcode_direct
10864
10865# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10866# resulting binary.
10867hardcode_minus_L=$hardcode_minus_L
10868
10869# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10870# the resulting binary.
10871hardcode_shlibpath_var=$hardcode_shlibpath_var
10872
10873# Set to yes if building a shared library automatically hardcodes DIR into the library
10874# and all subsequent libraries and executables linked against it.
10875hardcode_automatic=$hardcode_automatic
10876
10877# Variables whose values should be saved in libtool wrapper scripts and
10878# restored at relink time.
10879variables_saved_for_relink="$variables_saved_for_relink"
10880
10881# Whether libtool must link a program against all its dependency libraries.
10882link_all_deplibs=$link_all_deplibs
10883
10884# Compile-time system search path for libraries
10885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10886
10887# Run-time system search path for libraries
10888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10889
10890# Fix the shell variable \$srcfile for the compiler.
10891fix_srcfile_path="$fix_srcfile_path"
10892
10893# Set to yes if exported symbols are required.
10894always_export_symbols=$always_export_symbols
10895
10896# The commands to list exported symbols.
10897export_symbols_cmds=$lt_export_symbols_cmds
10898
10899# The commands to extract the exported symbol list from a shared archive.
10900extract_expsyms_cmds=$lt_extract_expsyms_cmds
10901
10902# Symbols that should not be listed in the preloaded symbols.
10903exclude_expsyms=$lt_exclude_expsyms
10904
10905# Symbols that must always be exported.
10906include_expsyms=$lt_include_expsyms
10907
10908# ### END LIBTOOL CONFIG
10909
10910__EOF__
10911
10912
10913 case $host_os in
10914 aix3*)
10915 cat <<\EOF >> "$cfgfile"
10916
10917# AIX sometimes has problems with the GCC collect2 program. For some
10918# reason, if we set the COLLECT_NAMES environment variable, the problems
10919# vanish in a puff of smoke.
10920if test "X${COLLECT_NAMES+set}" != Xset; then
10921 COLLECT_NAMES=
10922 export COLLECT_NAMES
10923fi
10924EOF
10925 ;;
10926 esac
10927
10928 # We use sed instead of cat because bash on DJGPP gets confused if
10929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10930 # text mode, it properly converts lines to CR/LF. This bash problem
10931 # is reportedly fixed, but why not run on old versions too?
10932 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10933
10934 mv -f "$cfgfile" "$ofile" || \
10935 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10936 chmod +x "$ofile"
10937
10938else
10939 # If there is no Makefile yet, we rely on a make rule to execute
10940 # `config.status --recheck' to rerun these tests and create the
10941 # libtool script then.
10942 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10943 if test -f "$ltmain_in"; then
10944 test -f Makefile && make "$ltmain"
10945 fi
10946fi
10947
10948
10949ac_ext=c
10950ac_cpp='$CPP $CPPFLAGS'
10951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953ac_compiler_gnu=$ac_cv_c_compiler_gnu
10954
10955CC="$lt_save_CC"
10956
10957
10958# Check whether --with-tags was given.
10959if test "${with_tags+set}" = set; then
10960 withval=$with_tags; tagnames="$withval"
10961fi
10962
10963
10964if test -f "$ltmain" && test -n "$tagnames"; then
10965 if test ! -f "${ofile}"; then
10966 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10967echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10968 fi
10969
10970 if test -z "$LTCC"; then
10971 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10972 if test -z "$LTCC"; then
10973 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10974echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10975 else
10976 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10977echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10978 fi
10979 fi
10980
10981 # Extract list of available tagged configurations in $ofile.
10982 # Note that this assumes the entire list is on one line.
10983 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10984
10985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10986 for tagname in $tagnames; do
10987 IFS="$lt_save_ifs"
10988 # Check whether tagname contains only valid characters
10989 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10990 "") ;;
10991 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10992echo "$as_me: error: invalid tag name: $tagname" >&2;}
10993 { (exit 1); exit 1; }; }
10994 ;;
10995 esac
10996
10997 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10998 then
10999 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11000echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11001 { (exit 1); exit 1; }; }
11002 fi
11003
11004 # Update the list of available tags.
11005 if test -n "$tagname"; then
11006 echo appending configuration tag \"$tagname\" to $ofile
11007
11008 case $tagname in
11009 CXX)
11010 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11011 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11012 (test "X$CXX" != "Xg++"))) ; then
11013 ac_ext=cpp
11014ac_cpp='$CXXCPP $CPPFLAGS'
11015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11018
11019
11020
11021
11022archive_cmds_need_lc_CXX=no
11023allow_undefined_flag_CXX=
11024always_export_symbols_CXX=no
11025archive_expsym_cmds_CXX=
11026export_dynamic_flag_spec_CXX=
11027hardcode_direct_CXX=no
11028hardcode_libdir_flag_spec_CXX=
11029hardcode_libdir_flag_spec_ld_CXX=
11030hardcode_libdir_separator_CXX=
11031hardcode_minus_L_CXX=no
11032hardcode_automatic_CXX=no
11033module_cmds_CXX=
11034module_expsym_cmds_CXX=
11035link_all_deplibs_CXX=unknown
11036old_archive_cmds_CXX=$old_archive_cmds
11037no_undefined_flag_CXX=
11038whole_archive_flag_spec_CXX=
11039enable_shared_with_static_runtimes_CXX=no
11040
11041# Dependencies to place before and after the object being linked:
11042predep_objects_CXX=
11043postdep_objects_CXX=
11044predeps_CXX=
11045postdeps_CXX=
11046compiler_lib_search_path_CXX=
11047
11048# Source file extension for C++ test sources.
11049ac_ext=cpp
11050
11051# Object file extension for compiled C++ test sources.
11052objext=o
11053objext_CXX=$objext
11054
11055# Code to be used in simple compile tests
11056lt_simple_compile_test_code="int some_variable = 0;\n"
11057
11058# Code to be used in simple link tests
11059lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11060
11061# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11062
11063# If no C compiler was specified, use CC.
11064LTCC=${LTCC-"$CC"}
11065
11066# Allow CC to be a program name with arguments.
11067compiler=$CC
11068
11069
11070# save warnings/boilerplate of simple test code
11071ac_outfile=conftest.$ac_objext
11072printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11074_lt_compiler_boilerplate=`cat conftest.err`
11075$rm conftest*
11076
11077ac_outfile=conftest.$ac_objext
11078printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11080_lt_linker_boilerplate=`cat conftest.err`
11081$rm conftest*
11082
11083
11084# Allow CC to be a program name with arguments.
11085lt_save_CC=$CC
11086lt_save_LD=$LD
11087lt_save_GCC=$GCC
11088GCC=$GXX
11089lt_save_with_gnu_ld=$with_gnu_ld
11090lt_save_path_LD=$lt_cv_path_LD
11091if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11092 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11093else
11094 unset lt_cv_prog_gnu_ld
11095fi
11096if test -n "${lt_cv_path_LDCXX+set}"; then
11097 lt_cv_path_LD=$lt_cv_path_LDCXX
11098else
11099 unset lt_cv_path_LD
11100fi
11101test -z "${LDCXX+set}" || LD=$LDCXX
11102CC=${CXX-"c++"}
11103compiler=$CC
11104compiler_CXX=$CC
11105for cc_temp in $compiler""; do
11106 case $cc_temp in
11107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11109 \-*) ;;
11110 *) break;;
11111 esac
11112done
11113cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11114
11115
11116# We don't want -fno-exception wen compiling C++ code, so set the
11117# no_builtin_flag separately
11118if test "$GXX" = yes; then
11119 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11120else
11121 lt_prog_compiler_no_builtin_flag_CXX=
11122fi
11123
11124if test "$GXX" = yes; then
11125 # Set up default GNU C++ configuration
11126
11127
11128# Check whether --with-gnu-ld was given.
11129if test "${with_gnu_ld+set}" = set; then
11130 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11131else
11132 with_gnu_ld=no
11133fi
11134
11135ac_prog=ld
11136if test "$GCC" = yes; then
11137 # Check if gcc -print-prog-name=ld gives a path.
11138 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11139echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11140 case $host in
11141 *-*-mingw*)
11142 # gcc leaves a trailing carriage return which upsets mingw
11143 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11144 *)
11145 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11146 esac
11147 case $ac_prog in
11148 # Accept absolute paths.
11149 [\\/]* | ?:[\\/]*)
11150 re_direlt='/[^/][^/]*/\.\./'
11151 # Canonicalize the pathname of ld
11152 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11153 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11154 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11155 done
11156 test -z "$LD" && LD="$ac_prog"
11157 ;;
11158 "")
11159 # If it fails, then pretend we aren't using GCC.
11160 ac_prog=ld
11161 ;;
11162 *)
11163 # If it is relative, then search for the first ld in PATH.
11164 with_gnu_ld=unknown
11165 ;;
11166 esac
11167elif test "$with_gnu_ld" = yes; then
11168 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11169echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11170else
11171 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11172echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11173fi
11174if test "${lt_cv_path_LD+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177 if test -z "$LD"; then
11178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11179 for ac_dir in $PATH; do
11180 IFS="$lt_save_ifs"
11181 test -z "$ac_dir" && ac_dir=.
11182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11183 lt_cv_path_LD="$ac_dir/$ac_prog"
11184 # Check to see if the program is GNU ld. I'd rather use --version,
11185 # but apparently some variants of GNU ld only accept -v.
11186 # Break only if it was the GNU/non-GNU ld that we prefer.
11187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11188 *GNU* | *'with BFD'*)
11189 test "$with_gnu_ld" != no && break
11190 ;;
11191 *)
11192 test "$with_gnu_ld" != yes && break
11193 ;;
11194 esac
11195 fi
11196 done
11197 IFS="$lt_save_ifs"
11198else
11199 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11200fi
11201fi
11202
11203LD="$lt_cv_path_LD"
11204if test -n "$LD"; then
11205 { echo "$as_me:$LINENO: result: $LD" >&5
11206echo "${ECHO_T}$LD" >&6; }
11207else
11208 { echo "$as_me:$LINENO: result: no" >&5
11209echo "${ECHO_T}no" >&6; }
11210fi
11211test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11212echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11213 { (exit 1); exit 1; }; }
11214{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11215echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11216if test "${lt_cv_prog_gnu_ld+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11220case `$LD -v 2>&1 </dev/null` in
11221*GNU* | *'with BFD'*)
11222 lt_cv_prog_gnu_ld=yes
11223 ;;
11224*)
11225 lt_cv_prog_gnu_ld=no
11226 ;;
11227esac
11228fi
11229{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11230echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11231with_gnu_ld=$lt_cv_prog_gnu_ld
11232
11233
11234
11235 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11236 # archiving commands below assume that GNU ld is being used.
11237 if test "$with_gnu_ld" = yes; then
11238 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11239 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'
11240
11241 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11243
11244 # If archive_cmds runs LD, not CC, wlarc should be empty
11245 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11246 # investigate it a little bit more. (MM)
11247 wlarc='${wl}'
11248
11249 # ancient GNU ld didn't support --whole-archive et. al.
11250 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11251 grep 'no-whole-archive' > /dev/null; then
11252 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11253 else
11254 whole_archive_flag_spec_CXX=
11255 fi
11256 else
11257 with_gnu_ld=no
11258 wlarc=
11259
11260 # A generic and very simple default shared library creation
11261 # command for GNU C++ for the case where it uses the native
11262 # linker, instead of GNU ld. If possible, this setting should
11263 # overridden to take advantage of the native linker features on
11264 # the platform it is being used on.
11265 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11266 fi
11267
11268 # Commands to make compiler produce verbose output that lists
11269 # what "hidden" libraries, object files and flags are used when
11270 # linking a shared library.
11271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11272
11273else
11274 GXX=no
11275 with_gnu_ld=no
11276 wlarc=
11277fi
11278
11279# PORTME: fill in a description of your system's C++ link characteristics
11280{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11281echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11282ld_shlibs_CXX=yes
11283case $host_os in
11284 aix3*)
11285 # FIXME: insert proper C++ library support
11286 ld_shlibs_CXX=no
11287 ;;
11288 aix4* | aix5*)
11289 if test "$host_cpu" = ia64; then
11290 # On IA64, the linker does run time linking by default, so we don't
11291 # have to do anything special.
11292 aix_use_runtimelinking=no
11293 exp_sym_flag='-Bexport'
11294 no_entry_flag=""
11295 else
11296 aix_use_runtimelinking=no
11297
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
11301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11302 for ld_flag in $LDFLAGS; do
11303 case $ld_flag in
11304 *-brtl*)
11305 aix_use_runtimelinking=yes
11306 break
11307 ;;
11308 esac
11309 done
11310 esac
11311
11312 exp_sym_flag='-bexport'
11313 no_entry_flag='-bnoentry'
11314 fi
11315
11316 # When large executables or shared objects are built, AIX ld can
11317 # have problems creating the table of contents. If linking a library
11318 # or program results in "error TOC overflow" add -mminimal-toc to
11319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11321
11322 archive_cmds_CXX=''
11323 hardcode_direct_CXX=yes
11324 hardcode_libdir_separator_CXX=':'
11325 link_all_deplibs_CXX=yes
11326
11327 if test "$GXX" = yes; then
11328 case $host_os in aix4.[012]|aix4.[012].*)
11329 # We only want to do this on AIX 4.2 and lower, the check
11330 # below for broken collect2 doesn't work under 4.3+
11331 collect2name=`${CC} -print-prog-name=collect2`
11332 if test -f "$collect2name" && \
11333 strings "$collect2name" | grep resolve_lib_name >/dev/null
11334 then
11335 # We have reworked collect2
11336 hardcode_direct_CXX=yes
11337 else
11338 # We have old collect2
11339 hardcode_direct_CXX=unsupported
11340 # It fails to find uninstalled libraries when the uninstalled
11341 # path is not listed in the libpath. Setting hardcode_minus_L
11342 # to unsupported forces relinking
11343 hardcode_minus_L_CXX=yes
11344 hardcode_libdir_flag_spec_CXX='-L$libdir'
11345 hardcode_libdir_separator_CXX=
11346 fi
11347 esac
11348 shared_flag='-shared'
11349 if test "$aix_use_runtimelinking" = yes; then
11350 shared_flag="$shared_flag "'${wl}-G'
11351 fi
11352 else
11353 # not using gcc
11354 if test "$host_cpu" = ia64; then
11355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11356 # chokes on -Wl,-G. The following line is correct:
11357 shared_flag='-G'
11358 else
11359 if test "$aix_use_runtimelinking" = yes; then
11360 shared_flag='${wl}-G'
11361 else
11362 shared_flag='${wl}-bM:SRE'
11363 fi
11364 fi
11365 fi
11366
11367 # It seems that -bexpall does not export symbols beginning with
11368 # underscore (_), so it is better to generate a list of symbols to export.
11369 always_export_symbols_CXX=yes
11370 if test "$aix_use_runtimelinking" = yes; then
11371 # Warning - without using the other runtime loading flags (-brtl),
11372 # -berok will link without error, but may produce a broken library.
11373 allow_undefined_flag_CXX='-berok'
11374 # Determine the default libpath from the value encoded in an empty executable.
11375 cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
11381
11382int
11383main ()
11384{
11385
11386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext conftest$ac_exeext
11391if { (ac_try="$ac_link"
11392case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_link") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } && {
11404 test -z "$ac_cxx_werror_flag" ||
11405 test ! -s conftest.err
11406 } && test -s conftest$ac_exeext &&
11407 $as_test_x conftest$ac_exeext; then
11408
11409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11410}'`
11411# Check for a 64-bit object if we didn't find anything.
11412if 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; }
11413}'`; fi
11414else
11415 echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418
11419fi
11420
11421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11422 conftest$ac_exeext conftest.$ac_ext
11423if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11424
11425 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11426
11427 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11428 else
11429 if test "$host_cpu" = ia64; then
11430 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11431 allow_undefined_flag_CXX="-z nodefs"
11432 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"
11433 else
11434 # Determine the default libpath from the value encoded in an empty executable.
11435 cat >conftest.$ac_ext <<_ACEOF
11436/* confdefs.h. */
11437_ACEOF
11438cat confdefs.h >>conftest.$ac_ext
11439cat >>conftest.$ac_ext <<_ACEOF
11440/* end confdefs.h. */
11441
11442int
11443main ()
11444{
11445
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450rm -f conftest.$ac_objext conftest$ac_exeext
11451if { (ac_try="$ac_link"
11452case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_link") 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } && {
11464 test -z "$ac_cxx_werror_flag" ||
11465 test ! -s conftest.err
11466 } && test -s conftest$ac_exeext &&
11467 $as_test_x conftest$ac_exeext; then
11468
11469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11470}'`
11471# Check for a 64-bit object if we didn't find anything.
11472if 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; }
11473}'`; fi
11474else
11475 echo "$as_me: failed program was:" >&5
11476sed 's/^/| /' conftest.$ac_ext >&5
11477
11478
11479fi
11480
11481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11482 conftest$ac_exeext conftest.$ac_ext
11483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11484
11485 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11486 # Warning - without using the other run time loading flags,
11487 # -berok will link without error, but may produce a broken library.
11488 no_undefined_flag_CXX=' ${wl}-bernotok'
11489 allow_undefined_flag_CXX=' ${wl}-berok'
11490 # -bexpall does not export symbols beginning with underscore (_)
11491 always_export_symbols_CXX=yes
11492 # Exported symbols can be pulled into shared objects from archives
11493 whole_archive_flag_spec_CXX=' '
11494 archive_cmds_need_lc_CXX=yes
11495 # This is similar to how AIX traditionally builds its shared libraries.
11496 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'
11497 fi
11498 fi
11499 ;;
11500 chorus*)
11501 case $cc_basename in
11502 *)
11503 # FIXME: insert proper C++ library support
11504 ld_shlibs_CXX=no
11505 ;;
11506 esac
11507 ;;
11508
11509
11510 cygwin* | mingw* | pw32*)
11511 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11512 # as there is no search path for DLLs.
11513 hardcode_libdir_flag_spec_CXX='-L$libdir'
11514 allow_undefined_flag_CXX=unsupported
11515 always_export_symbols_CXX=no
11516 enable_shared_with_static_runtimes_CXX=yes
11517
11518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11520 # If the export-symbols file already is a .def file (1st line
11521 # is EXPORTS), use it as is; otherwise, prepend...
11522 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11523 cp $export_symbols $output_objdir/$soname.def;
11524 else
11525 echo EXPORTS > $output_objdir/$soname.def;
11526 cat $export_symbols >> $output_objdir/$soname.def;
11527 fi~
11528 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11529 else
11530 ld_shlibs_CXX=no
11531 fi
11532 ;;
11533 darwin* | rhapsody*)
11534 case $host_os in
11535 rhapsody* | darwin1.[012])
11536 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11537 ;;
11538 *) # Darwin 1.3 on
11539 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11540 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11541 else
11542 case ${MACOSX_DEPLOYMENT_TARGET} in
11543 10.[012])
11544 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11545 ;;
11546 10.*)
11547 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11548 ;;
11549 esac
11550 fi
11551 ;;
11552 esac
11553 archive_cmds_need_lc_CXX=no
11554 hardcode_direct_CXX=no
11555 hardcode_automatic_CXX=yes
11556 hardcode_shlibpath_var_CXX=unsupported
11557 whole_archive_flag_spec_CXX=''
11558 link_all_deplibs_CXX=yes
11559
11560 if test "$GXX" = yes ; then
11561 lt_int_apple_cc_single_mod=no
11562 output_verbose_link_cmd='echo'
11563 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11564 lt_int_apple_cc_single_mod=yes
11565 fi
11566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11567 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11568 else
11569 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11570 fi
11571 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11573 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11574 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11575 else
11576 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11577 fi
11578 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11579 else
11580 case $cc_basename in
11581 xlc*)
11582 output_verbose_link_cmd='echo'
11583 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11586 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11587 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11588 ;;
11589 *)
11590 ld_shlibs_CXX=no
11591 ;;
11592 esac
11593 fi
11594 ;;
11595
11596 dgux*)
11597 case $cc_basename in
11598 ec++*)
11599 # FIXME: insert proper C++ library support
11600 ld_shlibs_CXX=no
11601 ;;
11602 ghcx*)
11603 # Green Hills C++ Compiler
11604 # FIXME: insert proper C++ library support
11605 ld_shlibs_CXX=no
11606 ;;
11607 *)
11608 # FIXME: insert proper C++ library support
11609 ld_shlibs_CXX=no
11610 ;;
11611 esac
11612 ;;
11613 freebsd[12]*)
11614 # C++ shared libraries reported to be fairly broken before switch to ELF
11615 ld_shlibs_CXX=no
11616 ;;
11617 freebsd-elf*)
11618 archive_cmds_need_lc_CXX=no
11619 ;;
11620 freebsd* | kfreebsd*-gnu | dragonfly*)
11621 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11622 # conventions
11623 ld_shlibs_CXX=yes
11624 ;;
11625 gnu*)
11626 ;;
11627 hpux9*)
11628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11629 hardcode_libdir_separator_CXX=:
11630 export_dynamic_flag_spec_CXX='${wl}-E'
11631 hardcode_direct_CXX=yes
11632 hardcode_minus_L_CXX=yes # Not in the search PATH,
11633 # but as the default
11634 # location of the library.
11635
11636 case $cc_basename in
11637 CC*)
11638 # FIXME: insert proper C++ library support
11639 ld_shlibs_CXX=no
11640 ;;
11641 aCC*)
11642 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'
11643 # Commands to make compiler produce verbose output that lists
11644 # what "hidden" libraries, object files and flags are used when
11645 # linking a shared library.
11646 #
11647 # There doesn't appear to be a way to prevent this compiler from
11648 # explicitly linking system object files so we need to strip them
11649 # from the output so that they don't get included in the library
11650 # dependencies.
11651 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11652 ;;
11653 *)
11654 if test "$GXX" = yes; then
11655 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'
11656 else
11657 # FIXME: insert proper C++ library support
11658 ld_shlibs_CXX=no
11659 fi
11660 ;;
11661 esac
11662 ;;
11663 hpux10*|hpux11*)
11664 if test $with_gnu_ld = no; then
11665 case $host_cpu in
11666 hppa*64*)
11667 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11668 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11669 hardcode_libdir_separator_CXX=:
11670 ;;
11671 ia64*)
11672 hardcode_libdir_flag_spec_CXX='-L$libdir'
11673 ;;
11674 *)
11675 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11676 hardcode_libdir_separator_CXX=:
11677 export_dynamic_flag_spec_CXX='${wl}-E'
11678 ;;
11679 esac
11680 fi
11681 case $host_cpu in
11682 hppa*64*)
11683 hardcode_direct_CXX=no
11684 hardcode_shlibpath_var_CXX=no
11685 ;;
11686 ia64*)
11687 hardcode_direct_CXX=no
11688 hardcode_shlibpath_var_CXX=no
11689 hardcode_minus_L_CXX=yes # Not in the search PATH,
11690 # but as the default
11691 # location of the library.
11692 ;;
11693 *)
11694 hardcode_direct_CXX=yes
11695 hardcode_minus_L_CXX=yes # Not in the search PATH,
11696 # but as the default
11697 # location of the library.
11698 ;;
11699 esac
11700
11701 case $cc_basename in
11702 CC*)
11703 # FIXME: insert proper C++ library support
11704 ld_shlibs_CXX=no
11705 ;;
11706 aCC*)
11707 case $host_cpu in
11708 hppa*64*|ia64*)
11709 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11710 ;;
11711 *)
11712 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713 ;;
11714 esac
11715 # Commands to make compiler produce verbose output that lists
11716 # what "hidden" libraries, object files and flags are used when
11717 # linking a shared library.
11718 #
11719 # There doesn't appear to be a way to prevent this compiler from
11720 # explicitly linking system object files so we need to strip them
11721 # from the output so that they don't get included in the library
11722 # dependencies.
11723 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11724 ;;
11725 *)
11726 if test "$GXX" = yes; then
11727 if test $with_gnu_ld = no; then
11728 case $host_cpu in
11729 ia64*|hppa*64*)
11730 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11731 ;;
11732 *)
11733 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'
11734 ;;
11735 esac
11736 fi
11737 else
11738 # FIXME: insert proper C++ library support
11739 ld_shlibs_CXX=no
11740 fi
11741 ;;
11742 esac
11743 ;;
11744 irix5* | irix6*)
11745 case $cc_basename in
11746 CC*)
11747 # SGI C++
11748 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11749
11750 # Archives containing C++ object files must be created using
11751 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11752 # necessary to make sure instantiated templates are included
11753 # in the archive.
11754 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11755 ;;
11756 *)
11757 if test "$GXX" = yes; then
11758 if test "$with_gnu_ld" = no; then
11759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11760 else
11761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11762 fi
11763 fi
11764 link_all_deplibs_CXX=yes
11765 ;;
11766 esac
11767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11768 hardcode_libdir_separator_CXX=:
11769 ;;
11770 linux*)
11771 case $cc_basename in
11772 KCC*)
11773 # Kuck and Associates, Inc. (KAI) C++ Compiler
11774
11775 # KCC will only create a shared library if the output file
11776 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11777 # to its proper name (with version) after linking.
11778 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11779 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11780 # Commands to make compiler produce verbose output that lists
11781 # what "hidden" libraries, object files and flags are used when
11782 # linking a shared library.
11783 #
11784 # There doesn't appear to be a way to prevent this compiler from
11785 # explicitly linking system object files so we need to strip them
11786 # from the output so that they don't get included in the library
11787 # dependencies.
11788 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11789
11790 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11792
11793 # Archives containing C++ object files must be created using
11794 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11795 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11796 ;;
11797 icpc*)
11798 # Intel C++
11799 with_gnu_ld=yes
11800 # version 8.0 and above of icpc choke on multiply defined symbols
11801 # if we add $predep_objects and $postdep_objects, however 7.1 and
11802 # earlier do not add the objects themselves.
11803 case `$CC -V 2>&1` in
11804 *"Version 7."*)
11805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11806 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11807 ;;
11808 *) # Version 8.0 or newer
11809 tmp_idyn=
11810 case $host_cpu in
11811 ia64*) tmp_idyn=' -i_dynamic';;
11812 esac
11813 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11814 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11815 ;;
11816 esac
11817 archive_cmds_need_lc_CXX=no
11818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11820 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11821 ;;
11822 pgCC*)
11823 # Portland Group C++ compiler
11824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11825 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11826
11827 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11828 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11829 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11830 ;;
11831 cxx*)
11832 # Compaq C++
11833 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834 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'
11835
11836 runpath_var=LD_RUN_PATH
11837 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11838 hardcode_libdir_separator_CXX=:
11839
11840 # Commands to make compiler produce verbose output that lists
11841 # what "hidden" libraries, object files and flags are used when
11842 # linking a shared library.
11843 #
11844 # There doesn't appear to be a way to prevent this compiler from
11845 # explicitly linking system object files so we need to strip them
11846 # from the output so that they don't get included in the library
11847 # dependencies.
11848 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'
11849 ;;
11850 esac
11851 ;;
11852 lynxos*)
11853 # FIXME: insert proper C++ library support
11854 ld_shlibs_CXX=no
11855 ;;
11856 m88k*)
11857 # FIXME: insert proper C++ library support
11858 ld_shlibs_CXX=no
11859 ;;
11860 mvs*)
11861 case $cc_basename in
11862 cxx*)
11863 # FIXME: insert proper C++ library support
11864 ld_shlibs_CXX=no
11865 ;;
11866 *)
11867 # FIXME: insert proper C++ library support
11868 ld_shlibs_CXX=no
11869 ;;
11870 esac
11871 ;;
11872 netbsd*)
11873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11874 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11875 wlarc=
11876 hardcode_libdir_flag_spec_CXX='-R$libdir'
11877 hardcode_direct_CXX=yes
11878 hardcode_shlibpath_var_CXX=no
11879 fi
11880 # Workaround some broken pre-1.5 toolchains
11881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11882 ;;
11883 openbsd2*)
11884 # C++ shared libraries are fairly broken
11885 ld_shlibs_CXX=no
11886 ;;
11887 openbsd*)
11888 hardcode_direct_CXX=yes
11889 hardcode_shlibpath_var_CXX=no
11890 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11893 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11894 export_dynamic_flag_spec_CXX='${wl}-E'
11895 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11896 fi
11897 output_verbose_link_cmd='echo'
11898 ;;
11899 osf3*)
11900 case $cc_basename in
11901 KCC*)
11902 # Kuck and Associates, Inc. (KAI) C++ Compiler
11903
11904 # KCC will only create a shared library if the output file
11905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11906 # to its proper name (with version) after linking.
11907 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11908
11909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11910 hardcode_libdir_separator_CXX=:
11911
11912 # Archives containing C++ object files must be created using
11913 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11914 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11915
11916 ;;
11917 RCC*)
11918 # Rational C++ 2.4.1
11919 # FIXME: insert proper C++ library support
11920 ld_shlibs_CXX=no
11921 ;;
11922 cxx*)
11923 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11924 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11925
11926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11927 hardcode_libdir_separator_CXX=:
11928
11929 # Commands to make compiler produce verbose output that lists
11930 # what "hidden" libraries, object files and flags are used when
11931 # linking a shared library.
11932 #
11933 # There doesn't appear to be a way to prevent this compiler from
11934 # explicitly linking system object files so we need to strip them
11935 # from the output so that they don't get included in the library
11936 # dependencies.
11937 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'
11938 ;;
11939 *)
11940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11942 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11943
11944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11945 hardcode_libdir_separator_CXX=:
11946
11947 # Commands to make compiler produce verbose output that lists
11948 # what "hidden" libraries, object files and flags are used when
11949 # linking a shared library.
11950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11951
11952 else
11953 # FIXME: insert proper C++ library support
11954 ld_shlibs_CXX=no
11955 fi
11956 ;;
11957 esac
11958 ;;
11959 osf4* | osf5*)
11960 case $cc_basename in
11961 KCC*)
11962 # Kuck and Associates, Inc. (KAI) C++ Compiler
11963
11964 # KCC will only create a shared library if the output file
11965 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11966 # to its proper name (with version) after linking.
11967 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11968
11969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11970 hardcode_libdir_separator_CXX=:
11971
11972 # Archives containing C++ object files must be created using
11973 # the KAI C++ compiler.
11974 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11975 ;;
11976 RCC*)
11977 # Rational C++ 2.4.1
11978 # FIXME: insert proper C++ library support
11979 ld_shlibs_CXX=no
11980 ;;
11981 cxx*)
11982 allow_undefined_flag_CXX=' -expect_unresolved \*'
11983 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11984 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11985 echo "-hidden">> $lib.exp~
11986 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11987 $rm $lib.exp'
11988
11989 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11990 hardcode_libdir_separator_CXX=:
11991
11992 # Commands to make compiler produce verbose output that lists
11993 # what "hidden" libraries, object files and flags are used when
11994 # linking a shared library.
11995 #
11996 # There doesn't appear to be a way to prevent this compiler from
11997 # explicitly linking system object files so we need to strip them
11998 # from the output so that they don't get included in the library
11999 # dependencies.
12000 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'
12001 ;;
12002 *)
12003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12005 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12006
12007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12008 hardcode_libdir_separator_CXX=:
12009
12010 # Commands to make compiler produce verbose output that lists
12011 # what "hidden" libraries, object files and flags are used when
12012 # linking a shared library.
12013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12014
12015 else
12016 # FIXME: insert proper C++ library support
12017 ld_shlibs_CXX=no
12018 fi
12019 ;;
12020 esac
12021 ;;
12022 psos*)
12023 # FIXME: insert proper C++ library support
12024 ld_shlibs_CXX=no
12025 ;;
12026 sco*)
12027 archive_cmds_need_lc_CXX=no
12028 case $cc_basename in
12029 CC*)
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12032 ;;
12033 *)
12034 # FIXME: insert proper C++ library support
12035 ld_shlibs_CXX=no
12036 ;;
12037 esac
12038 ;;
12039 sunos4*)
12040 case $cc_basename in
12041 CC*)
12042 # Sun C++ 4.x
12043 # FIXME: insert proper C++ library support
12044 ld_shlibs_CXX=no
12045 ;;
12046 lcc*)
12047 # Lucid
12048 # FIXME: insert proper C++ library support
12049 ld_shlibs_CXX=no
12050 ;;
12051 *)
12052 # FIXME: insert proper C++ library support
12053 ld_shlibs_CXX=no
12054 ;;
12055 esac
12056 ;;
12057 solaris*)
12058 case $cc_basename in
12059 CC*)
12060 # Sun C++ 4.2, 5.x and Centerline C++
12061 archive_cmds_need_lc_CXX=yes
12062 no_undefined_flag_CXX=' -zdefs'
12063 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12064 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12065 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12066
12067 hardcode_libdir_flag_spec_CXX='-R$libdir'
12068 hardcode_shlibpath_var_CXX=no
12069 case $host_os in
12070 solaris2.[0-5] | solaris2.[0-5].*) ;;
12071 *)
12072 # The C++ compiler is used as linker so we must use $wl
12073 # flag to pass the commands to the underlying system
12074 # linker. We must also pass each convience library through
12075 # to the system linker between allextract/defaultextract.
12076 # The C++ compiler will combine linker options so we
12077 # cannot just pass the convience library names through
12078 # without $wl.
12079 # Supported since Solaris 2.6 (maybe 2.5.1?)
12080 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12081 ;;
12082 esac
12083 link_all_deplibs_CXX=yes
12084
12085 output_verbose_link_cmd='echo'
12086
12087 # Archives containing C++ object files must be created using
12088 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12089 # necessary to make sure instantiated templates are included
12090 # in the archive.
12091 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12092 ;;
12093 gcx*)
12094 # Green Hills C++ Compiler
12095 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12096
12097 # The C++ compiler must be used to create the archive.
12098 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12099 ;;
12100 *)
12101 # GNU C++ compiler with Solaris linker
12102 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12103 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12104 if $CC --version | grep -v '^2\.7' > /dev/null; then
12105 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12106 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12107 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12108
12109 # Commands to make compiler produce verbose output that lists
12110 # what "hidden" libraries, object files and flags are used when
12111 # linking a shared library.
12112 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12113 else
12114 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12115 # platform.
12116 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12117 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12118 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12119
12120 # Commands to make compiler produce verbose output that lists
12121 # what "hidden" libraries, object files and flags are used when
12122 # linking a shared library.
12123 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12124 fi
12125
12126 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12127 fi
12128 ;;
12129 esac
12130 ;;
12131 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12132 archive_cmds_need_lc_CXX=no
12133 ;;
12134 tandem*)
12135 case $cc_basename in
12136 NCC*)
12137 # NonStop-UX NCC 3.20
12138 # FIXME: insert proper C++ library support
12139 ld_shlibs_CXX=no
12140 ;;
12141 *)
12142 # FIXME: insert proper C++ library support
12143 ld_shlibs_CXX=no
12144 ;;
12145 esac
12146 ;;
12147 vxworks*)
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12150 ;;
12151 *)
12152 # FIXME: insert proper C++ library support
12153 ld_shlibs_CXX=no
12154 ;;
12155esac
12156{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12157echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12158test "$ld_shlibs_CXX" = no && can_build_shared=no
12159
12160GCC_CXX="$GXX"
12161LD_CXX="$LD"
12162
12163
12164cat > conftest.$ac_ext <<EOF
12165class Foo
12166{
12167public:
12168 Foo (void) { a = 0; }
12169private:
12170 int a;
12171};
12172EOF
12173
12174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175 (eval $ac_compile) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; then
12179 # Parse the compiler output and extract the necessary
12180 # objects, libraries and library flags.
12181
12182 # Sentinel used to keep track of whether or not we are before
12183 # the conftest object file.
12184 pre_test_object_deps_done=no
12185
12186 # The `*' in the case matches for architectures that use `case' in
12187 # $output_verbose_cmd can trigger glob expansion during the loop
12188 # eval without this substitution.
12189 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12190
12191 for p in `eval $output_verbose_link_cmd`; do
12192 case $p in
12193
12194 -L* | -R* | -l*)
12195 # Some compilers place space between "-{L,R}" and the path.
12196 # Remove the space.
12197 if test $p = "-L" \
12198 || test $p = "-R"; then
12199 prev=$p
12200 continue
12201 else
12202 prev=
12203 fi
12204
12205 if test "$pre_test_object_deps_done" = no; then
12206 case $p in
12207 -L* | -R*)
12208 # Internal compiler library paths should come after those
12209 # provided the user. The postdeps already come after the
12210 # user supplied libs so there is no need to process them.
12211 if test -z "$compiler_lib_search_path_CXX"; then
12212 compiler_lib_search_path_CXX="${prev}${p}"
12213 else
12214 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12215 fi
12216 ;;
12217 # The "-l" case would never come before the object being
12218 # linked, so don't bother handling this case.
12219 esac
12220 else
12221 if test -z "$postdeps_CXX"; then
12222 postdeps_CXX="${prev}${p}"
12223 else
12224 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12225 fi
12226 fi
12227 ;;
12228
12229 *.$objext)
12230 # This assumes that the test object file only shows up
12231 # once in the compiler output.
12232 if test "$p" = "conftest.$objext"; then
12233 pre_test_object_deps_done=yes
12234 continue
12235 fi
12236
12237 if test "$pre_test_object_deps_done" = no; then
12238 if test -z "$predep_objects_CXX"; then
12239 predep_objects_CXX="$p"
12240 else
12241 predep_objects_CXX="$predep_objects_CXX $p"
12242 fi
12243 else
12244 if test -z "$postdep_objects_CXX"; then
12245 postdep_objects_CXX="$p"
12246 else
12247 postdep_objects_CXX="$postdep_objects_CXX $p"
12248 fi
12249 fi
12250 ;;
12251
12252 *) ;; # Ignore the rest.
12253
12254 esac
12255 done
12256
12257 # Clean up.
12258 rm -f a.out a.exe
12259else
12260 echo "libtool.m4: error: problem compiling CXX test program"
12261fi
12262
12263$rm -f confest.$objext
12264
12265# PORTME: override above test on systems where it is broken
12266case $host_os in
12267solaris*)
12268 case $cc_basename in
12269 CC*)
12270 # Adding this requires a known-good setup of shared libraries for
12271 # Sun compiler versions before 5.6, else PIC objects from an old
12272 # archive will be linked into the output, leading to subtle bugs.
12273 postdeps_CXX='-lCstd -lCrun'
12274 ;;
12275 esac
12276esac
12277
12278
12279case " $postdeps_CXX " in
12280*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12281esac
12282
12283lt_prog_compiler_wl_CXX=
12284lt_prog_compiler_pic_CXX=
12285lt_prog_compiler_static_CXX=
12286
12287{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12288echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12289
12290 # C++ specific cases for pic, static, wl, etc.
12291 if test "$GXX" = yes; then
12292 lt_prog_compiler_wl_CXX='-Wl,'
12293 lt_prog_compiler_static_CXX='-static'
12294
12295 case $host_os in
12296 aix*)
12297 # All AIX code is PIC.
12298 if test "$host_cpu" = ia64; then
12299 # AIX 5 now supports IA64 processor
12300 lt_prog_compiler_static_CXX='-Bstatic'
12301 fi
12302 ;;
12303 amigaos*)
12304 # FIXME: we need at least 68020 code to build shared libraries, but
12305 # adding the `-m68020' flag to GCC prevents building anything better,
12306 # like `-m68040'.
12307 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12308 ;;
12309 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12310 # PIC is the default for these OSes.
12311 ;;
12312 mingw* | os2* | pw32*)
12313 # This hack is so that the source file can tell whether it is being
12314 # built for inclusion in a dll (and should export symbols for example).
12315 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12316 ;;
12317 darwin* | rhapsody*)
12318 # PIC is the default on this platform
12319 # Common symbols not allowed in MH_DYLIB files
12320 lt_prog_compiler_pic_CXX='-fno-common'
12321 ;;
12322 *djgpp*)
12323 # DJGPP does not support shared libraries at all
12324 lt_prog_compiler_pic_CXX=
12325 ;;
12326 sysv4*MP*)
12327 if test -d /usr/nec; then
12328 lt_prog_compiler_pic_CXX=-Kconform_pic
12329 fi
12330 ;;
12331 hpux*)
12332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12333 # not for PA HP-UX.
12334 case $host_cpu in
12335 hppa*64*|ia64*)
12336 ;;
12337 *)
12338 lt_prog_compiler_pic_CXX='-fPIC'
12339 ;;
12340 esac
12341 ;;
12342 *)
12343 lt_prog_compiler_pic_CXX='-fPIC'
12344 ;;
12345 esac
12346 else
12347 case $host_os in
12348 aix4* | aix5*)
12349 # All AIX code is PIC.
12350 if test "$host_cpu" = ia64; then
12351 # AIX 5 now supports IA64 processor
12352 lt_prog_compiler_static_CXX='-Bstatic'
12353 else
12354 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12355 fi
12356 ;;
12357 chorus*)
12358 case $cc_basename in
12359 cxch68*)
12360 # Green Hills C++ Compiler
12361 # _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"
12362 ;;
12363 esac
12364 ;;
12365 darwin*)
12366 # PIC is the default on this platform
12367 # Common symbols not allowed in MH_DYLIB files
12368 case $cc_basename in
12369 xlc*)
12370 lt_prog_compiler_pic_CXX='-qnocommon'
12371 lt_prog_compiler_wl_CXX='-Wl,'
12372 ;;
12373 esac
12374 ;;
12375 dgux*)
12376 case $cc_basename in
12377 ec++*)
12378 lt_prog_compiler_pic_CXX='-KPIC'
12379 ;;
12380 ghcx*)
12381 # Green Hills C++ Compiler
12382 lt_prog_compiler_pic_CXX='-pic'
12383 ;;
12384 *)
12385 ;;
12386 esac
12387 ;;
12388 freebsd* | kfreebsd*-gnu | dragonfly*)
12389 # FreeBSD uses GNU C++
12390 ;;
12391 hpux9* | hpux10* | hpux11*)
12392 case $cc_basename in
12393 CC*)
12394 lt_prog_compiler_wl_CXX='-Wl,'
12395 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12396 if test "$host_cpu" != ia64; then
12397 lt_prog_compiler_pic_CXX='+Z'
12398 fi
12399 ;;
12400 aCC*)
12401 lt_prog_compiler_wl_CXX='-Wl,'
12402 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12403 case $host_cpu in
12404 hppa*64*|ia64*)
12405 # +Z the default
12406 ;;
12407 *)
12408 lt_prog_compiler_pic_CXX='+Z'
12409 ;;
12410 esac
12411 ;;
12412 *)
12413 ;;
12414 esac
12415 ;;
12416 irix5* | irix6* | nonstopux*)
12417 case $cc_basename in
12418 CC*)
12419 lt_prog_compiler_wl_CXX='-Wl,'
12420 lt_prog_compiler_static_CXX='-non_shared'
12421 # CC pic flag -KPIC is the default.
12422 ;;
12423 *)
12424 ;;
12425 esac
12426 ;;
12427 linux*)
12428 case $cc_basename in
12429 KCC*)
12430 # KAI C++ Compiler
12431 lt_prog_compiler_wl_CXX='--backend -Wl,'
12432 lt_prog_compiler_pic_CXX='-fPIC'
12433 ;;
12434 icpc* | ecpc*)
12435 # Intel C++
12436 lt_prog_compiler_wl_CXX='-Wl,'
12437 lt_prog_compiler_pic_CXX='-KPIC'
12438 lt_prog_compiler_static_CXX='-static'
12439 ;;
12440 pgCC*)
12441 # Portland Group C++ compiler.
12442 lt_prog_compiler_wl_CXX='-Wl,'
12443 lt_prog_compiler_pic_CXX='-fpic'
12444 lt_prog_compiler_static_CXX='-Bstatic'
12445 ;;
12446 cxx*)
12447 # Compaq C++
12448 # Make sure the PIC flag is empty. It appears that all Alpha
12449 # Linux and Compaq Tru64 Unix objects are PIC.
12450 lt_prog_compiler_pic_CXX=
12451 lt_prog_compiler_static_CXX='-non_shared'
12452 ;;
12453 *)
12454 ;;
12455 esac
12456 ;;
12457 lynxos*)
12458 ;;
12459 m88k*)
12460 ;;
12461 mvs*)
12462 case $cc_basename in
12463 cxx*)
12464 lt_prog_compiler_pic_CXX='-W c,exportall'
12465 ;;
12466 *)
12467 ;;
12468 esac
12469 ;;
12470 netbsd*)
12471 ;;
12472 osf3* | osf4* | osf5*)
12473 case $cc_basename in
12474 KCC*)
12475 lt_prog_compiler_wl_CXX='--backend -Wl,'
12476 ;;
12477 RCC*)
12478 # Rational C++ 2.4.1
12479 lt_prog_compiler_pic_CXX='-pic'
12480 ;;
12481 cxx*)
12482 # Digital/Compaq C++
12483 lt_prog_compiler_wl_CXX='-Wl,'
12484 # Make sure the PIC flag is empty. It appears that all Alpha
12485 # Linux and Compaq Tru64 Unix objects are PIC.
12486 lt_prog_compiler_pic_CXX=
12487 lt_prog_compiler_static_CXX='-non_shared'
12488 ;;
12489 *)
12490 ;;
12491 esac
12492 ;;
12493 psos*)
12494 ;;
12495 sco*)
12496 case $cc_basename in
12497 CC*)
12498 lt_prog_compiler_pic_CXX='-fPIC'
12499 ;;
12500 *)
12501 ;;
12502 esac
12503 ;;
12504 solaris*)
12505 case $cc_basename in
12506 CC*)
12507 # Sun C++ 4.2, 5.x and Centerline C++
12508 lt_prog_compiler_pic_CXX='-KPIC'
12509 lt_prog_compiler_static_CXX='-Bstatic'
12510 lt_prog_compiler_wl_CXX='-Qoption ld '
12511 ;;
12512 gcx*)
12513 # Green Hills C++ Compiler
12514 lt_prog_compiler_pic_CXX='-PIC'
12515 ;;
12516 *)
12517 ;;
12518 esac
12519 ;;
12520 sunos4*)
12521 case $cc_basename in
12522 CC*)
12523 # Sun C++ 4.x
12524 lt_prog_compiler_pic_CXX='-pic'
12525 lt_prog_compiler_static_CXX='-Bstatic'
12526 ;;
12527 lcc*)
12528 # Lucid
12529 lt_prog_compiler_pic_CXX='-pic'
12530 ;;
12531 *)
12532 ;;
12533 esac
12534 ;;
12535 tandem*)
12536 case $cc_basename in
12537 NCC*)
12538 # NonStop-UX NCC 3.20
12539 lt_prog_compiler_pic_CXX='-KPIC'
12540 ;;
12541 *)
12542 ;;
12543 esac
12544 ;;
12545 unixware*)
12546 ;;
12547 vxworks*)
12548 ;;
12549 *)
12550 lt_prog_compiler_can_build_shared_CXX=no
12551 ;;
12552 esac
12553 fi
12554
12555{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12556echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12557
12558#
12559# Check to make sure the PIC flag actually works.
12560#
12561if test -n "$lt_prog_compiler_pic_CXX"; then
12562
12563{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12564echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12565if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568 lt_prog_compiler_pic_works_CXX=no
12569 ac_outfile=conftest.$ac_objext
12570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12571 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12572 # Insert the option either (1) after the last *FLAGS variable, or
12573 # (2) before a word containing "conftest.", or (3) at the end.
12574 # Note that $ac_compile itself does not contain backslashes and begins
12575 # with a dollar sign (not a hyphen), so the echo should work correctly.
12576 # The option is referenced via a variable to avoid confusing sed.
12577 lt_compile=`echo "$ac_compile" | $SED \
12578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12580 -e 's:$: $lt_compiler_flag:'`
12581 (eval echo "\"\$as_me:12581: $lt_compile\"" >&5)
12582 (eval "$lt_compile" 2>conftest.err)
12583 ac_status=$?
12584 cat conftest.err >&5
12585 echo "$as_me:12585: \$? = $ac_status" >&5
12586 if (exit $ac_status) && test -s "$ac_outfile"; then
12587 # The compiler can only warn and ignore the option if not recognized
12588 # So say no if there are warnings other than the usual output.
12589 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12590 $SED '/^$/d' conftest.err >conftest.er2
12591 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12592 lt_prog_compiler_pic_works_CXX=yes
12593 fi
12594 fi
12595 $rm conftest*
12596
12597fi
12598{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12599echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12600
12601if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12602 case $lt_prog_compiler_pic_CXX in
12603 "" | " "*) ;;
12604 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12605 esac
12606else
12607 lt_prog_compiler_pic_CXX=
12608 lt_prog_compiler_can_build_shared_CXX=no
12609fi
12610
12611fi
12612case $host_os in
12613 # For platforms which do not support PIC, -DPIC is meaningless:
12614 *djgpp*)
12615 lt_prog_compiler_pic_CXX=
12616 ;;
12617 *)
12618 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12619 ;;
12620esac
12621
12622{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12623echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12624if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
12627 lt_cv_prog_compiler_c_o_CXX=no
12628 $rm -r conftest 2>/dev/null
12629 mkdir conftest
12630 cd conftest
12631 mkdir out
12632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12633
12634 lt_compiler_flag="-o out/conftest2.$ac_objext"
12635 # Insert the option either (1) after the last *FLAGS variable, or
12636 # (2) before a word containing "conftest.", or (3) at the end.
12637 # Note that $ac_compile itself does not contain backslashes and begins
12638 # with a dollar sign (not a hyphen), so the echo should work correctly.
12639 lt_compile=`echo "$ac_compile" | $SED \
12640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12642 -e 's:$: $lt_compiler_flag:'`
12643 (eval echo "\"\$as_me:12643: $lt_compile\"" >&5)
12644 (eval "$lt_compile" 2>out/conftest.err)
12645 ac_status=$?
12646 cat out/conftest.err >&5
12647 echo "$as_me:12647: \$? = $ac_status" >&5
12648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12649 then
12650 # The compiler can only warn and ignore the option if not recognized
12651 # So say no if there are warnings
12652 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12653 $SED '/^$/d' out/conftest.err >out/conftest.er2
12654 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12655 lt_cv_prog_compiler_c_o_CXX=yes
12656 fi
12657 fi
12658 chmod u+w . 2>&5
12659 $rm conftest*
12660 # SGI C++ compiler will create directory out/ii_files/ for
12661 # template instantiation
12662 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12663 $rm out/* && rmdir out
12664 cd ..
12665 rmdir conftest
12666 $rm conftest*
12667
12668fi
12669{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12670echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12671
12672
12673hard_links="nottested"
12674if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12675 # do not overwrite the value of need_locks provided by the user
12676 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12677echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12678 hard_links=yes
12679 $rm conftest*
12680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12681 touch conftest.a
12682 ln conftest.a conftest.b 2>&5 || hard_links=no
12683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12684 { echo "$as_me:$LINENO: result: $hard_links" >&5
12685echo "${ECHO_T}$hard_links" >&6; }
12686 if test "$hard_links" = no; then
12687 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12688echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12689 need_locks=warn
12690 fi
12691else
12692 need_locks=no
12693fi
12694
12695{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12696echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12697
12698 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12699 case $host_os in
12700 aix4* | aix5*)
12701 # If we're using GNU nm, then we don't want the "-C" option.
12702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12703 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12704 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'
12705 else
12706 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'
12707 fi
12708 ;;
12709 pw32*)
12710 export_symbols_cmds_CXX="$ltdll_cmds"
12711 ;;
12712 cygwin* | mingw*)
12713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12714 ;;
12715 *)
12716 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12717 ;;
12718 esac
12719
12720{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12721echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12722test "$ld_shlibs_CXX" = no && can_build_shared=no
12723
12724variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12725if test "$GCC" = yes; then
12726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12727fi
12728
12729#
12730# Do we need to explicitly link libc?
12731#
12732case "x$archive_cmds_need_lc_CXX" in
12733x|xyes)
12734 # Assume -lc should be added
12735 archive_cmds_need_lc_CXX=yes
12736
12737 if test "$enable_shared" = yes && test "$GCC" = yes; then
12738 case $archive_cmds_CXX in
12739 *'~'*)
12740 # FIXME: we may have to deal with multi-command sequences.
12741 ;;
12742 '$CC '*)
12743 # Test whether the compiler implicitly links with -lc since on some
12744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12745 # to ld, don't add -lc before -lgcc.
12746 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12747echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12748 $rm conftest*
12749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12750
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } 2>conftest.err; then
12756 soname=conftest
12757 lib=conftest
12758 libobjs=conftest.$ac_objext
12759 deplibs=
12760 wl=$lt_prog_compiler_wl_CXX
12761 compiler_flags=-v
12762 linker_flags=-v
12763 verstring=
12764 output_objdir=.
12765 libname=conftest
12766 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12767 allow_undefined_flag_CXX=
12768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12769 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }
12773 then
12774 archive_cmds_need_lc_CXX=no
12775 else
12776 archive_cmds_need_lc_CXX=yes
12777 fi
12778 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12779 else
12780 cat conftest.err 1>&5
12781 fi
12782 $rm conftest*
12783 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12784echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12785 ;;
12786 esac
12787 fi
12788 ;;
12789esac
12790
12791{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12792echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12793library_names_spec=
12794libname_spec='lib$name'
12795soname_spec=
12796shrext_cmds=".so"
12797postinstall_cmds=
12798postuninstall_cmds=
12799finish_cmds=
12800finish_eval=
12801shlibpath_var=
12802shlibpath_overrides_runpath=unknown
12803version_type=none
12804dynamic_linker="$host_os ld.so"
12805sys_lib_dlsearch_path_spec="/lib /usr/lib"
12806if test "$GCC" = yes; then
12807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12809 # if the path contains ";" then we assume it to be the separator
12810 # otherwise default to the standard path separator (i.e. ":") - it is
12811 # assumed that no part of a normal pathname contains ";" but that should
12812 # okay in the real world where ";" in dirpaths is itself problematic.
12813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12814 else
12815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12816 fi
12817else
12818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12819fi
12820need_lib_prefix=unknown
12821hardcode_into_libs=no
12822
12823# when you set need_version to no, make sure it does not cause -set_version
12824# flags to be left without arguments
12825need_version=unknown
12826
12827case $host_os in
12828aix3*)
12829 version_type=linux
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12831 shlibpath_var=LIBPATH
12832
12833 # AIX 3 has no versioning support, so we append a major version to the name.
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 ;;
12836
12837aix4* | aix5*)
12838 version_type=linux
12839 need_lib_prefix=no
12840 need_version=no
12841 hardcode_into_libs=yes
12842 if test "$host_cpu" = ia64; then
12843 # AIX 5 supports IA64
12844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 else
12847 # With GCC up to 2.95.x, collect2 would create an import file
12848 # for dependence libraries. The import file would start with
12849 # the line `#! .'. This would cause the generated library to
12850 # depend on `.', always an invalid library. This was fixed in
12851 # development snapshots of GCC prior to 3.0.
12852 case $host_os in
12853 aix4 | aix4.[01] | aix4.[01].*)
12854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12855 echo ' yes '
12856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12857 :
12858 else
12859 can_build_shared=no
12860 fi
12861 ;;
12862 esac
12863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12864 # soname into executable. Probably we can add versioning support to
12865 # collect2, so additional links can be useful in future.
12866 if test "$aix_use_runtimelinking" = yes; then
12867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12868 # instead of lib<name>.a to let people know that these are not
12869 # typical AIX shared libraries.
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871 else
12872 # We preserve .a as extension for shared libraries through AIX4.2
12873 # and later when we are not doing run time linking.
12874 library_names_spec='${libname}${release}.a $libname.a'
12875 soname_spec='${libname}${release}${shared_ext}$major'
12876 fi
12877 shlibpath_var=LIBPATH
12878 fi
12879 ;;
12880
12881amigaos*)
12882 library_names_spec='$libname.ixlibrary $libname.a'
12883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12884 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'
12885 ;;
12886
12887beos*)
12888 library_names_spec='${libname}${shared_ext}'
12889 dynamic_linker="$host_os ld.so"
12890 shlibpath_var=LIBRARY_PATH
12891 ;;
12892
12893bsdi[45]*)
12894 version_type=linux
12895 need_version=no
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12902 # the default ld.so.conf also contains /usr/contrib/lib and
12903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12904 # libtool to hard-code these into programs
12905 ;;
12906
12907cygwin* | mingw* | pw32*)
12908 version_type=windows
12909 shrext_cmds=".dll"
12910 need_version=no
12911 need_lib_prefix=no
12912
12913 case $GCC,$host_os in
12914 yes,cygwin* | yes,mingw* | yes,pw32*)
12915 library_names_spec='$libname.dll.a'
12916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12917 postinstall_cmds='base_file=`basename \${file}`~
12918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12919 dldir=$destdir/`dirname \$dlpath`~
12920 test -d \$dldir || mkdir -p \$dldir~
12921 $install_prog $dir/$dlname \$dldir/$dlname~
12922 chmod a+x \$dldir/$dlname'
12923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12924 dlpath=$dir/\$dldll~
12925 $rm \$dlpath'
12926 shlibpath_overrides_runpath=yes
12927
12928 case $host_os in
12929 cygwin*)
12930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12933 ;;
12934 mingw*)
12935 # MinGW DLLs use traditional 'lib' prefix
12936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12939 # It is most probably a Windows format PATH printed by
12940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12941 # path with ; separators, and with drive letters. We can handle the
12942 # drive letters (cygwin fileutils understands them), so leave them,
12943 # especially as we might pass files found there to a mingw objdump,
12944 # which wouldn't understand a cygwinified path. Ahh.
12945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12946 else
12947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12948 fi
12949 ;;
12950 pw32*)
12951 # pw32 DLLs use 'pw' prefix rather than 'lib'
12952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12953 ;;
12954 esac
12955 ;;
12956
12957 *)
12958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12959 ;;
12960 esac
12961 dynamic_linker='Win32 ld.exe'
12962 # FIXME: first we should search . and the directory the executable is in
12963 shlibpath_var=PATH
12964 ;;
12965
12966darwin* | rhapsody*)
12967 dynamic_linker="$host_os dyld"
12968 version_type=darwin
12969 need_lib_prefix=no
12970 need_version=no
12971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12972 soname_spec='${libname}${release}${major}$shared_ext'
12973 shlibpath_overrides_runpath=yes
12974 shlibpath_var=DYLD_LIBRARY_PATH
12975 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12977 if test "$GCC" = yes; then
12978 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12979 else
12980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12981 fi
12982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12983 ;;
12984
12985dgux*)
12986 version_type=linux
12987 need_lib_prefix=no
12988 need_version=no
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12990 soname_spec='${libname}${release}${shared_ext}$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 ;;
12993
12994freebsd1*)
12995 dynamic_linker=no
12996 ;;
12997
12998kfreebsd*-gnu)
12999 version_type=linux
13000 need_lib_prefix=no
13001 need_version=no
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13003 soname_spec='${libname}${release}${shared_ext}$major'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=no
13006 hardcode_into_libs=yes
13007 dynamic_linker='GNU ld.so'
13008 ;;
13009
13010freebsd* | dragonfly*)
13011 # DragonFly does not have aout. When/if they implement a new
13012 # versioning mechanism, adjust this.
13013 if test -x /usr/bin/objformat; then
13014 objformat=`/usr/bin/objformat`
13015 else
13016 case $host_os in
13017 freebsd[123]*) objformat=aout ;;
13018 *) objformat=elf ;;
13019 esac
13020 fi
13021 version_type=freebsd-$objformat
13022 case $version_type in
13023 freebsd-elf*)
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13025 need_version=no
13026 need_lib_prefix=no
13027 ;;
13028 freebsd-*)
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13030 need_version=yes
13031 ;;
13032 esac
13033 shlibpath_var=LD_LIBRARY_PATH
13034 case $host_os in
13035 freebsd2*)
13036 shlibpath_overrides_runpath=yes
13037 ;;
13038 freebsd3.[01]* | freebsdelf3.[01]*)
13039 shlibpath_overrides_runpath=yes
13040 hardcode_into_libs=yes
13041 ;;
13042 *) # from 3.2 on
13043 shlibpath_overrides_runpath=no
13044 hardcode_into_libs=yes
13045 ;;
13046 esac
13047 ;;
13048
13049gnu*)
13050 version_type=linux
13051 need_lib_prefix=no
13052 need_version=no
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13054 soname_spec='${libname}${release}${shared_ext}$major'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 hardcode_into_libs=yes
13057 ;;
13058
13059hpux9* | hpux10* | hpux11*)
13060 # Give a soname corresponding to the major version so that dld.sl refuses to
13061 # link against other versions.
13062 version_type=sunos
13063 need_lib_prefix=no
13064 need_version=no
13065 case $host_cpu in
13066 ia64*)
13067 shrext_cmds='.so'
13068 hardcode_into_libs=yes
13069 dynamic_linker="$host_os dld.so"
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 if test "X$HPUX_IA64_MODE" = X32; then
13075 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13076 else
13077 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13078 fi
13079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13080 ;;
13081 hppa*64*)
13082 shrext_cmds='.sl'
13083 hardcode_into_libs=yes
13084 dynamic_linker="$host_os dld.sl"
13085 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 soname_spec='${libname}${release}${shared_ext}$major'
13089 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13091 ;;
13092 *)
13093 shrext_cmds='.sl'
13094 dynamic_linker="$host_os dld.sl"
13095 shlibpath_var=SHLIB_PATH
13096 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 ;;
13100 esac
13101 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13102 postinstall_cmds='chmod 555 $lib'
13103 ;;
13104
13105irix5* | irix6* | nonstopux*)
13106 case $host_os in
13107 nonstopux*) version_type=nonstopux ;;
13108 *)
13109 if test "$lt_cv_prog_gnu_ld" = yes; then
13110 version_type=linux
13111 else
13112 version_type=irix
13113 fi ;;
13114 esac
13115 need_lib_prefix=no
13116 need_version=no
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13119 case $host_os in
13120 irix5* | nonstopux*)
13121 libsuff= shlibsuff=
13122 ;;
13123 *)
13124 case $LD in # libtool.m4 will add one of these switches to LD
13125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13126 libsuff= shlibsuff= libmagic=32-bit;;
13127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13128 libsuff=32 shlibsuff=N32 libmagic=N32;;
13129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13131 *) libsuff= shlibsuff= libmagic=never-match;;
13132 esac
13133 ;;
13134 esac
13135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13136 shlibpath_overrides_runpath=no
13137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13139 hardcode_into_libs=yes
13140 ;;
13141
13142# No shared lib support for Linux oldld, aout, or coff.
13143linux*oldld* | linux*aout* | linux*coff*)
13144 dynamic_linker=no
13145 ;;
13146
13147# This must be Linux ELF.
13148linux*)
13149 version_type=linux
13150 need_lib_prefix=no
13151 need_version=no
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 shlibpath_overrides_runpath=no
13157 # This implies no fast_install, which is unacceptable.
13158 # Some rework will be needed to allow for fast_install
13159 # before this can be enabled.
13160 hardcode_into_libs=yes
13161
13162 # Append ld.so.conf contents to the search path
13163 if test -f /etc/ld.so.conf; then
13164 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13166 fi
13167
13168 # We used to test for /lib/ld.so.1 and disable shared libraries on
13169 # powerpc, because MkLinux only supported shared libraries with the
13170 # GNU dynamic linker. Since this was broken with cross compilers,
13171 # most powerpc-linux boxes support dynamic linking these days and
13172 # people can always --disable-shared, the test was removed, and we
13173 # assume the GNU/Linux dynamic linker is in use.
13174 dynamic_linker='GNU/Linux ld.so'
13175 ;;
13176
13177knetbsd*-gnu)
13178 version_type=linux
13179 need_lib_prefix=no
13180 need_version=no
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 shlibpath_var=LD_LIBRARY_PATH
13184 shlibpath_overrides_runpath=no
13185 hardcode_into_libs=yes
13186 dynamic_linker='GNU ld.so'
13187 ;;
13188
13189netbsd*)
13190 version_type=sunos
13191 need_lib_prefix=no
13192 need_version=no
13193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13196 dynamic_linker='NetBSD (a.out) ld.so'
13197 else
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 dynamic_linker='NetBSD ld.elf_so'
13201 fi
13202 shlibpath_var=LD_LIBRARY_PATH
13203 shlibpath_overrides_runpath=yes
13204 hardcode_into_libs=yes
13205 ;;
13206
13207newsos6)
13208 version_type=linux
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=yes
13212 ;;
13213
13214nto-qnx*)
13215 version_type=linux
13216 need_lib_prefix=no
13217 need_version=no
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 shlibpath_overrides_runpath=yes
13222 ;;
13223
13224openbsd*)
13225 version_type=sunos
13226 need_lib_prefix=no
13227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13228 case $host_os in
13229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13230 *) need_version=no ;;
13231 esac
13232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13234 shlibpath_var=LD_LIBRARY_PATH
13235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13236 case $host_os in
13237 openbsd2.[89] | openbsd2.[89].*)
13238 shlibpath_overrides_runpath=no
13239 ;;
13240 *)
13241 shlibpath_overrides_runpath=yes
13242 ;;
13243 esac
13244 else
13245 shlibpath_overrides_runpath=yes
13246 fi
13247 ;;
13248
13249os2*)
13250 libname_spec='$name'
13251 shrext_cmds=".dll"
13252 need_lib_prefix=no
13253 library_names_spec='$libname${shared_ext} $libname.a'
13254 dynamic_linker='OS/2 ld.exe'
13255 shlibpath_var=LIBPATH
13256 ;;
13257
13258osf3* | osf4* | osf5*)
13259 version_type=osf
13260 need_lib_prefix=no
13261 need_version=no
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13264 shlibpath_var=LD_LIBRARY_PATH
13265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13267 ;;
13268
13269sco3.2v5*)
13270 version_type=osf
13271 soname_spec='${libname}${release}${shared_ext}$major'
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 ;;
13275
13276solaris*)
13277 version_type=linux
13278 need_lib_prefix=no
13279 need_version=no
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13281 soname_spec='${libname}${release}${shared_ext}$major'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 shlibpath_overrides_runpath=yes
13284 hardcode_into_libs=yes
13285 # ldd complains unless libraries are executable
13286 postinstall_cmds='chmod +x $lib'
13287 ;;
13288
13289sunos4*)
13290 version_type=sunos
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13293 shlibpath_var=LD_LIBRARY_PATH
13294 shlibpath_overrides_runpath=yes
13295 if test "$with_gnu_ld" = yes; then
13296 need_lib_prefix=no
13297 fi
13298 need_version=yes
13299 ;;
13300
13301sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13302 version_type=linux
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 case $host_vendor in
13307 sni)
13308 shlibpath_overrides_runpath=no
13309 need_lib_prefix=no
13310 export_dynamic_flag_spec='${wl}-Blargedynsym'
13311 runpath_var=LD_RUN_PATH
13312 ;;
13313 siemens)
13314 need_lib_prefix=no
13315 ;;
13316 motorola)
13317 need_lib_prefix=no
13318 need_version=no
13319 shlibpath_overrides_runpath=no
13320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13321 ;;
13322 esac
13323 ;;
13324
13325sysv4*MP*)
13326 if test -d /usr/nec ;then
13327 version_type=linux
13328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13329 soname_spec='$libname${shared_ext}.$major'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 fi
13332 ;;
13333
13334uts4*)
13335 version_type=linux
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 ;;
13340
13341*)
13342 dynamic_linker=no
13343 ;;
13344esac
13345{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13346echo "${ECHO_T}$dynamic_linker" >&6; }
13347test "$dynamic_linker" = no && can_build_shared=no
13348
13349{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13350echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13351hardcode_action_CXX=
13352if test -n "$hardcode_libdir_flag_spec_CXX" || \
13353 test -n "$runpath_var_CXX" || \
13354 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13355
13356 # We can hardcode non-existant directories.
13357 if test "$hardcode_direct_CXX" != no &&
13358 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13359 # have to relink, otherwise we might link with an installed library
13360 # when we should be linking with a yet-to-be-installed one
13361 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13362 test "$hardcode_minus_L_CXX" != no; then
13363 # Linking always hardcodes the temporary library directory.
13364 hardcode_action_CXX=relink
13365 else
13366 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13367 hardcode_action_CXX=immediate
13368 fi
13369else
13370 # We cannot hardcode anything, or else we can only hardcode existing
13371 # directories.
13372 hardcode_action_CXX=unsupported
13373fi
13374{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13375echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13376
13377if test "$hardcode_action_CXX" = relink; then
13378 # Fast installation is not supported
13379 enable_fast_install=no
13380elif test "$shlibpath_overrides_runpath" = yes ||
13381 test "$enable_shared" = no; then
13382 # Fast installation is not necessary
13383 enable_fast_install=needless
13384fi
13385
13386striplib=
13387old_striplib=
13388{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13389echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13390if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13393 { echo "$as_me:$LINENO: result: yes" >&5
13394echo "${ECHO_T}yes" >&6; }
13395else
13396# FIXME - insert some real tests, host_os isn't really good enough
13397 case $host_os in
13398 darwin*)
13399 if test -n "$STRIP" ; then
13400 striplib="$STRIP -x"
13401 { echo "$as_me:$LINENO: result: yes" >&5
13402echo "${ECHO_T}yes" >&6; }
13403 else
13404 { echo "$as_me:$LINENO: result: no" >&5
13405echo "${ECHO_T}no" >&6; }
13406fi
13407 ;;
13408 *)
13409 { echo "$as_me:$LINENO: result: no" >&5
13410echo "${ECHO_T}no" >&6; }
13411 ;;
13412 esac
13413fi
13414
13415if test "x$enable_dlopen" != xyes; then
13416 enable_dlopen=unknown
13417 enable_dlopen_self=unknown
13418 enable_dlopen_self_static=unknown
13419else
13420 lt_cv_dlopen=no
13421 lt_cv_dlopen_libs=
13422
13423 case $host_os in
13424 beos*)
13425 lt_cv_dlopen="load_add_on"
13426 lt_cv_dlopen_libs=
13427 lt_cv_dlopen_self=yes
13428 ;;
13429
13430 mingw* | pw32*)
13431 lt_cv_dlopen="LoadLibrary"
13432 lt_cv_dlopen_libs=
13433 ;;
13434
13435 cygwin*)
13436 lt_cv_dlopen="dlopen"
13437 lt_cv_dlopen_libs=
13438 ;;
13439
13440 darwin*)
13441 # if libdl is installed we need to link against it
13442 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13443echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13444if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
13447 ac_check_lib_save_LIBS=$LIBS
13448LIBS="-ldl $LIBS"
13449cat >conftest.$ac_ext <<_ACEOF
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
13454/* end confdefs.h. */
13455
13456/* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459#ifdef __cplusplus
13460extern "C"
13461#endif
13462char dlopen ();
13463int
13464main ()
13465{
13466return dlopen ();
13467 ;
13468 return 0;
13469}
13470_ACEOF
13471rm -f conftest.$ac_objext conftest$ac_exeext
13472if { (ac_try="$ac_link"
13473case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476esac
13477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_link") 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_cxx_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext &&
13488 $as_test_x conftest$ac_exeext; then
13489 ac_cv_lib_dl_dlopen=yes
13490else
13491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494 ac_cv_lib_dl_dlopen=no
13495fi
13496
13497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498 conftest$ac_exeext conftest.$ac_ext
13499LIBS=$ac_check_lib_save_LIBS
13500fi
13501{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13502echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13503if test $ac_cv_lib_dl_dlopen = yes; then
13504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13505else
13506
13507 lt_cv_dlopen="dyld"
13508 lt_cv_dlopen_libs=
13509 lt_cv_dlopen_self=yes
13510
13511fi
13512
13513 ;;
13514
13515 *)
13516 { echo "$as_me:$LINENO: checking for shl_load" >&5
13517echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13518if test "${ac_cv_func_shl_load+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520else
13521 cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
13527/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13529#define shl_load innocuous_shl_load
13530
13531/* System header to define __stub macros and hopefully few prototypes,
13532 which can conflict with char shl_load (); below.
13533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13534 <limits.h> exists even on freestanding compilers. */
13535
13536#ifdef __STDC__
13537# include <limits.h>
13538#else
13539# include <assert.h>
13540#endif
13541
13542#undef shl_load
13543
13544/* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547#ifdef __cplusplus
13548extern "C"
13549#endif
13550char shl_load ();
13551/* The GNU C library defines this for functions which it implements
13552 to always fail with ENOSYS. Some functions are actually named
13553 something starting with __ and the normal name is an alias. */
13554#if defined __stub_shl_load || defined __stub___shl_load
13555choke me
13556#endif
13557
13558int
13559main ()
13560{
13561return shl_load ();
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566rm -f conftest.$ac_objext conftest$ac_exeext
13567if { (ac_try="$ac_link"
13568case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_cxx_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest$ac_exeext &&
13583 $as_test_x conftest$ac_exeext; then
13584 ac_cv_func_shl_load=yes
13585else
13586 echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_func_shl_load=no
13590fi
13591
13592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13593 conftest$ac_exeext conftest.$ac_ext
13594fi
13595{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13596echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13597if test $ac_cv_func_shl_load = yes; then
13598 lt_cv_dlopen="shl_load"
13599else
13600 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13601echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13602if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605 ac_check_lib_save_LIBS=$LIBS
13606LIBS="-ldld $LIBS"
13607cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613
13614/* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617#ifdef __cplusplus
13618extern "C"
13619#endif
13620char shl_load ();
13621int
13622main ()
13623{
13624return shl_load ();
13625 ;
13626 return 0;
13627}
13628_ACEOF
13629rm -f conftest.$ac_objext conftest$ac_exeext
13630if { (ac_try="$ac_link"
13631case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634esac
13635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_link") 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_cxx_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest$ac_exeext &&
13646 $as_test_x conftest$ac_exeext; then
13647 ac_cv_lib_dld_shl_load=yes
13648else
13649 echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652 ac_cv_lib_dld_shl_load=no
13653fi
13654
13655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13656 conftest$ac_exeext conftest.$ac_ext
13657LIBS=$ac_check_lib_save_LIBS
13658fi
13659{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13660echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13661if test $ac_cv_lib_dld_shl_load = yes; then
13662 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13663else
13664 { echo "$as_me:$LINENO: checking for dlopen" >&5
13665echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13666if test "${ac_cv_func_dlopen+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
13675/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13677#define dlopen innocuous_dlopen
13678
13679/* System header to define __stub macros and hopefully few prototypes,
13680 which can conflict with char dlopen (); below.
13681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13682 <limits.h> exists even on freestanding compilers. */
13683
13684#ifdef __STDC__
13685# include <limits.h>
13686#else
13687# include <assert.h>
13688#endif
13689
13690#undef dlopen
13691
13692/* Override any GCC internal prototype to avoid an error.
13693 Use char because int might match the return type of a GCC
13694 builtin and then its argument prototype would still apply. */
13695#ifdef __cplusplus
13696extern "C"
13697#endif
13698char dlopen ();
13699/* The GNU C library defines this for functions which it implements
13700 to always fail with ENOSYS. Some functions are actually named
13701 something starting with __ and the normal name is an alias. */
13702#if defined __stub_dlopen || defined __stub___dlopen
13703choke me
13704#endif
13705
13706int
13707main ()
13708{
13709return dlopen ();
13710 ;
13711 return 0;
13712}
13713_ACEOF
13714rm -f conftest.$ac_objext conftest$ac_exeext
13715if { (ac_try="$ac_link"
13716case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719esac
13720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_link") 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } && {
13728 test -z "$ac_cxx_werror_flag" ||
13729 test ! -s conftest.err
13730 } && test -s conftest$ac_exeext &&
13731 $as_test_x conftest$ac_exeext; then
13732 ac_cv_func_dlopen=yes
13733else
13734 echo "$as_me: failed program was:" >&5
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_cv_func_dlopen=no
13738fi
13739
13740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13741 conftest$ac_exeext conftest.$ac_ext
13742fi
13743{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13744echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13745if test $ac_cv_func_dlopen = yes; then
13746 lt_cv_dlopen="dlopen"
13747else
13748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13749echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753 ac_check_lib_save_LIBS=$LIBS
13754LIBS="-ldl $LIBS"
13755cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761
13762/* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13765#ifdef __cplusplus
13766extern "C"
13767#endif
13768char dlopen ();
13769int
13770main ()
13771{
13772return dlopen ();
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext conftest$ac_exeext
13778if { (ac_try="$ac_link"
13779case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_link") 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_cxx_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest$ac_exeext &&
13794 $as_test_x conftest$ac_exeext; then
13795 ac_cv_lib_dl_dlopen=yes
13796else
13797 echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 ac_cv_lib_dl_dlopen=no
13801fi
13802
13803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804 conftest$ac_exeext conftest.$ac_ext
13805LIBS=$ac_check_lib_save_LIBS
13806fi
13807{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13808echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13809if test $ac_cv_lib_dl_dlopen = yes; then
13810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13811else
13812 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13813echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13814if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 ac_check_lib_save_LIBS=$LIBS
13818LIBS="-lsvld $LIBS"
13819cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
13825
13826/* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply. */
13829#ifdef __cplusplus
13830extern "C"
13831#endif
13832char dlopen ();
13833int
13834main ()
13835{
13836return dlopen ();
13837 ;
13838 return 0;
13839}
13840_ACEOF
13841rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (ac_try="$ac_link"
13843case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13849 ac_status=$?
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } && {
13855 test -z "$ac_cxx_werror_flag" ||
13856 test ! -s conftest.err
13857 } && test -s conftest$ac_exeext &&
13858 $as_test_x conftest$ac_exeext; then
13859 ac_cv_lib_svld_dlopen=yes
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864 ac_cv_lib_svld_dlopen=no
13865fi
13866
13867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13868 conftest$ac_exeext conftest.$ac_ext
13869LIBS=$ac_check_lib_save_LIBS
13870fi
13871{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13872echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13873if test $ac_cv_lib_svld_dlopen = yes; then
13874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13875else
13876 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13877echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13878if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881 ac_check_lib_save_LIBS=$LIBS
13882LIBS="-ldld $LIBS"
13883cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
13889
13890/* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char dld_link ();
13897int
13898main ()
13899{
13900return dld_link ();
13901 ;
13902 return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext conftest$ac_exeext
13906if { (ac_try="$ac_link"
13907case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910esac
13911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_cxx_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest$ac_exeext &&
13922 $as_test_x conftest$ac_exeext; then
13923 ac_cv_lib_dld_dld_link=yes
13924else
13925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928 ac_cv_lib_dld_dld_link=no
13929fi
13930
13931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13932 conftest$ac_exeext conftest.$ac_ext
13933LIBS=$ac_check_lib_save_LIBS
13934fi
13935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13936echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13937if test $ac_cv_lib_dld_dld_link = yes; then
13938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13939fi
13940
13941
13942fi
13943
13944
13945fi
13946
13947
13948fi
13949
13950
13951fi
13952
13953
13954fi
13955
13956 ;;
13957 esac
13958
13959 if test "x$lt_cv_dlopen" != xno; then
13960 enable_dlopen=yes
13961 else
13962 enable_dlopen=no
13963 fi
13964
13965 case $lt_cv_dlopen in
13966 dlopen)
13967 save_CPPFLAGS="$CPPFLAGS"
13968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13969
13970 save_LDFLAGS="$LDFLAGS"
13971 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13972
13973 save_LIBS="$LIBS"
13974 LIBS="$lt_cv_dlopen_libs $LIBS"
13975
13976 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13977echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13978if test "${lt_cv_dlopen_self+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980else
13981 if test "$cross_compiling" = yes; then :
13982 lt_cv_dlopen_self=cross
13983else
13984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13985 lt_status=$lt_dlunknown
13986 cat > conftest.$ac_ext <<EOF
13987#line 13987 "configure"
13988#include "confdefs.h"
13989
13990#if HAVE_DLFCN_H
13991#include <dlfcn.h>
13992#endif
13993
13994#include <stdio.h>
13995
13996#ifdef RTLD_GLOBAL
13997# define LT_DLGLOBAL RTLD_GLOBAL
13998#else
13999# ifdef DL_GLOBAL
14000# define LT_DLGLOBAL DL_GLOBAL
14001# else
14002# define LT_DLGLOBAL 0
14003# endif
14004#endif
14005
14006/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14007 find out it does not work in some platform. */
14008#ifndef LT_DLLAZY_OR_NOW
14009# ifdef RTLD_LAZY
14010# define LT_DLLAZY_OR_NOW RTLD_LAZY
14011# else
14012# ifdef DL_LAZY
14013# define LT_DLLAZY_OR_NOW DL_LAZY
14014# else
14015# ifdef RTLD_NOW
14016# define LT_DLLAZY_OR_NOW RTLD_NOW
14017# else
14018# ifdef DL_NOW
14019# define LT_DLLAZY_OR_NOW DL_NOW
14020# else
14021# define LT_DLLAZY_OR_NOW 0
14022# endif
14023# endif
14024# endif
14025# endif
14026#endif
14027
14028#ifdef __cplusplus
14029extern "C" void exit (int);
14030#endif
14031
14032void fnord() { int i=42;}
14033int main ()
14034{
14035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14036 int status = $lt_dlunknown;
14037
14038 if (self)
14039 {
14040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14042 /* dlclose (self); */
14043 }
14044
14045 exit (status);
14046}
14047EOF
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049 (eval $ac_link) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14053 (./conftest; exit; ) >&5 2>/dev/null
14054 lt_status=$?
14055 case x$lt_status in
14056 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14057 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14058 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14059 esac
14060 else :
14061 # compilation failed
14062 lt_cv_dlopen_self=no
14063 fi
14064fi
14065rm -fr conftest*
14066
14067
14068fi
14069{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14070echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
14071
14072 if test "x$lt_cv_dlopen_self" = xyes; then
14073 LDFLAGS="$LDFLAGS $link_static_flag"
14074 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14075echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
14076if test "${lt_cv_dlopen_self_static+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078else
14079 if test "$cross_compiling" = yes; then :
14080 lt_cv_dlopen_self_static=cross
14081else
14082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14083 lt_status=$lt_dlunknown
14084 cat > conftest.$ac_ext <<EOF
14085#line 14085 "configure"
14086#include "confdefs.h"
14087
14088#if HAVE_DLFCN_H
14089#include <dlfcn.h>
14090#endif
14091
14092#include <stdio.h>
14093
14094#ifdef RTLD_GLOBAL
14095# define LT_DLGLOBAL RTLD_GLOBAL
14096#else
14097# ifdef DL_GLOBAL
14098# define LT_DLGLOBAL DL_GLOBAL
14099# else
14100# define LT_DLGLOBAL 0
14101# endif
14102#endif
14103
14104/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14105 find out it does not work in some platform. */
14106#ifndef LT_DLLAZY_OR_NOW
14107# ifdef RTLD_LAZY
14108# define LT_DLLAZY_OR_NOW RTLD_LAZY
14109# else
14110# ifdef DL_LAZY
14111# define LT_DLLAZY_OR_NOW DL_LAZY
14112# else
14113# ifdef RTLD_NOW
14114# define LT_DLLAZY_OR_NOW RTLD_NOW
14115# else
14116# ifdef DL_NOW
14117# define LT_DLLAZY_OR_NOW DL_NOW
14118# else
14119# define LT_DLLAZY_OR_NOW 0
14120# endif
14121# endif
14122# endif
14123# endif
14124#endif
14125
14126#ifdef __cplusplus
14127extern "C" void exit (int);
14128#endif
14129
14130void fnord() { int i=42;}
14131int main ()
14132{
14133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14134 int status = $lt_dlunknown;
14135
14136 if (self)
14137 {
14138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14140 /* dlclose (self); */
14141 }
14142
14143 exit (status);
14144}
14145EOF
14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14151 (./conftest; exit; ) >&5 2>/dev/null
14152 lt_status=$?
14153 case x$lt_status in
14154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14156 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14157 esac
14158 else :
14159 # compilation failed
14160 lt_cv_dlopen_self_static=no
14161 fi
14162fi
14163rm -fr conftest*
14164
14165
14166fi
14167{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14168echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14169 fi
14170
14171 CPPFLAGS="$save_CPPFLAGS"
14172 LDFLAGS="$save_LDFLAGS"
14173 LIBS="$save_LIBS"
14174 ;;
14175 esac
14176
14177 case $lt_cv_dlopen_self in
14178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14179 *) enable_dlopen_self=unknown ;;
14180 esac
14181
14182 case $lt_cv_dlopen_self_static in
14183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14184 *) enable_dlopen_self_static=unknown ;;
14185 esac
14186fi
14187
14188
14189# The else clause should only fire when bootstrapping the
14190# libtool distribution, otherwise you forgot to ship ltmain.sh
14191# with your package, and you will get complaints that there are
14192# no rules to generate ltmain.sh.
14193if test -f "$ltmain"; then
14194 # See if we are running on zsh, and set the options which allow our commands through
14195 # without removal of \ escapes.
14196 if test -n "${ZSH_VERSION+set}" ; then
14197 setopt NO_GLOB_SUBST
14198 fi
14199 # Now quote all the things that may contain metacharacters while being
14200 # careful not to overquote the AC_SUBSTed values. We take copies of the
14201 # variables and quote the copies for generation of the libtool script.
14202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14203 SED SHELL STRIP \
14204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14206 deplibs_check_method reload_flag reload_cmds need_locks \
14207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14208 lt_cv_sys_global_symbol_to_c_name_address \
14209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14210 old_postinstall_cmds old_postuninstall_cmds \
14211 compiler_CXX \
14212 CC_CXX \
14213 LD_CXX \
14214 lt_prog_compiler_wl_CXX \
14215 lt_prog_compiler_pic_CXX \
14216 lt_prog_compiler_static_CXX \
14217 lt_prog_compiler_no_builtin_flag_CXX \
14218 export_dynamic_flag_spec_CXX \
14219 thread_safe_flag_spec_CXX \
14220 whole_archive_flag_spec_CXX \
14221 enable_shared_with_static_runtimes_CXX \
14222 old_archive_cmds_CXX \
14223 old_archive_from_new_cmds_CXX \
14224 predep_objects_CXX \
14225 postdep_objects_CXX \
14226 predeps_CXX \
14227 postdeps_CXX \
14228 compiler_lib_search_path_CXX \
14229 archive_cmds_CXX \
14230 archive_expsym_cmds_CXX \
14231 postinstall_cmds_CXX \
14232 postuninstall_cmds_CXX \
14233 old_archive_from_expsyms_cmds_CXX \
14234 allow_undefined_flag_CXX \
14235 no_undefined_flag_CXX \
14236 export_symbols_cmds_CXX \
14237 hardcode_libdir_flag_spec_CXX \
14238 hardcode_libdir_flag_spec_ld_CXX \
14239 hardcode_libdir_separator_CXX \
14240 hardcode_automatic_CXX \
14241 module_cmds_CXX \
14242 module_expsym_cmds_CXX \
14243 lt_cv_prog_compiler_c_o_CXX \
14244 exclude_expsyms_CXX \
14245 include_expsyms_CXX; do
14246
14247 case $var in
14248 old_archive_cmds_CXX | \
14249 old_archive_from_new_cmds_CXX | \
14250 archive_cmds_CXX | \
14251 archive_expsym_cmds_CXX | \
14252 module_cmds_CXX | \
14253 module_expsym_cmds_CXX | \
14254 old_archive_from_expsyms_cmds_CXX | \
14255 export_symbols_cmds_CXX | \
14256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14257 postinstall_cmds | postuninstall_cmds | \
14258 old_postinstall_cmds | old_postuninstall_cmds | \
14259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14260 # Double-quote double-evaled strings.
14261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14262 ;;
14263 *)
14264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14265 ;;
14266 esac
14267 done
14268
14269 case $lt_echo in
14270 *'\$0 --fallback-echo"')
14271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14272 ;;
14273 esac
14274
14275cfgfile="$ofile"
14276
14277 cat <<__EOF__ >> "$cfgfile"
14278# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14279
14280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14281
14282# Shell to use when invoking shell scripts.
14283SHELL=$lt_SHELL
14284
14285# Whether or not to build shared libraries.
14286build_libtool_libs=$enable_shared
14287
14288# Whether or not to build static libraries.
14289build_old_libs=$enable_static
14290
14291# Whether or not to add -lc for building shared libraries.
14292build_libtool_need_lc=$archive_cmds_need_lc_CXX
14293
14294# Whether or not to disallow shared libs when runtime libs are static
14295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14296
14297# Whether or not to optimize for fast installation.
14298fast_install=$enable_fast_install
14299
14300# The host system.
14301host_alias=$host_alias
14302host=$host
14303host_os=$host_os
14304
14305# The build system.
14306build_alias=$build_alias
14307build=$build
14308build_os=$build_os
14309
14310# An echo program that does not interpret backslashes.
14311echo=$lt_echo
14312
14313# The archiver.
14314AR=$lt_AR
14315AR_FLAGS=$lt_AR_FLAGS
14316
14317# A C compiler.
14318LTCC=$lt_LTCC
14319
14320# A language-specific compiler.
14321CC=$lt_compiler_CXX
14322
14323# Is the compiler the GNU C compiler?
14324with_gcc=$GCC_CXX
14325
14326# An ERE matcher.
14327EGREP=$lt_EGREP
14328
14329# The linker used to build libraries.
14330LD=$lt_LD_CXX
14331
14332# Whether we need hard or soft links.
14333LN_S=$lt_LN_S
14334
14335# A BSD-compatible nm program.
14336NM=$lt_NM
14337
14338# A symbol stripping program
14339STRIP=$lt_STRIP
14340
14341# Used to examine libraries when file_magic_cmd begins "file"
14342MAGIC_CMD=$MAGIC_CMD
14343
14344# Used on cygwin: DLL creation program.
14345DLLTOOL="$DLLTOOL"
14346
14347# Used on cygwin: object dumper.
14348OBJDUMP="$OBJDUMP"
14349
14350# Used on cygwin: assembler.
14351AS="$AS"
14352
14353# The name of the directory that contains temporary libtool files.
14354objdir=$objdir
14355
14356# How to create reloadable object files.
14357reload_flag=$lt_reload_flag
14358reload_cmds=$lt_reload_cmds
14359
14360# How to pass a linker flag through the compiler.
14361wl=$lt_lt_prog_compiler_wl_CXX
14362
14363# Object file suffix (normally "o").
14364objext="$ac_objext"
14365
14366# Old archive suffix (normally "a").
14367libext="$libext"
14368
14369# Shared library suffix (normally ".so").
14370shrext_cmds='$shrext_cmds'
14371
14372# Executable file suffix (normally "").
14373exeext="$exeext"
14374
14375# Additional compiler flags for building library objects.
14376pic_flag=$lt_lt_prog_compiler_pic_CXX
14377pic_mode=$pic_mode
14378
14379# What is the maximum length of a command?
14380max_cmd_len=$lt_cv_sys_max_cmd_len
14381
14382# Does compiler simultaneously support -c and -o options?
14383compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14384
14385# Must we lock files when doing compilation?
14386need_locks=$lt_need_locks
14387
14388# Do we need the lib prefix for modules?
14389need_lib_prefix=$need_lib_prefix
14390
14391# Do we need a version for libraries?
14392need_version=$need_version
14393
14394# Whether dlopen is supported.
14395dlopen_support=$enable_dlopen
14396
14397# Whether dlopen of programs is supported.
14398dlopen_self=$enable_dlopen_self
14399
14400# Whether dlopen of statically linked programs is supported.
14401dlopen_self_static=$enable_dlopen_self_static
14402
14403# Compiler flag to prevent dynamic linking.
14404link_static_flag=$lt_lt_prog_compiler_static_CXX
14405
14406# Compiler flag to turn off builtin functions.
14407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14408
14409# Compiler flag to allow reflexive dlopens.
14410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14411
14412# Compiler flag to generate shared objects directly from archives.
14413whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14414
14415# Compiler flag to generate thread-safe objects.
14416thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14417
14418# Library versioning type.
14419version_type=$version_type
14420
14421# Format of library name prefix.
14422libname_spec=$lt_libname_spec
14423
14424# List of archive names. First name is the real one, the rest are links.
14425# The last name is the one that the linker finds with -lNAME.
14426library_names_spec=$lt_library_names_spec
14427
14428# The coded name of the library, if different from the real name.
14429soname_spec=$lt_soname_spec
14430
14431# Commands used to build and install an old-style archive.
14432RANLIB=$lt_RANLIB
14433old_archive_cmds=$lt_old_archive_cmds_CXX
14434old_postinstall_cmds=$lt_old_postinstall_cmds
14435old_postuninstall_cmds=$lt_old_postuninstall_cmds
14436
14437# Create an old-style archive from a shared archive.
14438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14439
14440# Create a temporary old-style archive to link instead of a shared archive.
14441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14442
14443# Commands used to build and install a shared archive.
14444archive_cmds=$lt_archive_cmds_CXX
14445archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14446postinstall_cmds=$lt_postinstall_cmds
14447postuninstall_cmds=$lt_postuninstall_cmds
14448
14449# Commands used to build a loadable module (assumed same as above if empty)
14450module_cmds=$lt_module_cmds_CXX
14451module_expsym_cmds=$lt_module_expsym_cmds_CXX
14452
14453# Commands to strip libraries.
14454old_striplib=$lt_old_striplib
14455striplib=$lt_striplib
14456
14457# Dependencies to place before the objects being linked to create a
14458# shared library.
14459predep_objects=$lt_predep_objects_CXX
14460
14461# Dependencies to place after the objects being linked to create a
14462# shared library.
14463postdep_objects=$lt_postdep_objects_CXX
14464
14465# Dependencies to place before the objects being linked to create a
14466# shared library.
14467predeps=$lt_predeps_CXX
14468
14469# Dependencies to place after the objects being linked to create a
14470# shared library.
14471postdeps=$lt_postdeps_CXX
14472
14473# The library search path used internally by the compiler when linking
14474# a shared library.
14475compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14476
14477# Method to check whether dependent libraries are shared objects.
14478deplibs_check_method=$lt_deplibs_check_method
14479
14480# Command to use when deplibs_check_method == file_magic.
14481file_magic_cmd=$lt_file_magic_cmd
14482
14483# Flag that allows shared libraries with undefined symbols to be built.
14484allow_undefined_flag=$lt_allow_undefined_flag_CXX
14485
14486# Flag that forces no undefined symbols.
14487no_undefined_flag=$lt_no_undefined_flag_CXX
14488
14489# Commands used to finish a libtool library installation in a directory.
14490finish_cmds=$lt_finish_cmds
14491
14492# Same as above, but a single script fragment to be evaled but not shown.
14493finish_eval=$lt_finish_eval
14494
14495# Take the output of nm and produce a listing of raw symbols and C names.
14496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14497
14498# Transform the output of nm in a proper C declaration
14499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14500
14501# Transform the output of nm in a C name address pair
14502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14503
14504# This is the shared library runtime path variable.
14505runpath_var=$runpath_var
14506
14507# This is the shared library path variable.
14508shlibpath_var=$shlibpath_var
14509
14510# Is shlibpath searched before the hard-coded library search path?
14511shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14512
14513# How to hardcode a shared library path into an executable.
14514hardcode_action=$hardcode_action_CXX
14515
14516# Whether we should hardcode library paths into libraries.
14517hardcode_into_libs=$hardcode_into_libs
14518
14519# Flag to hardcode \$libdir into a binary during linking.
14520# This must work even if \$libdir does not exist.
14521hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14522
14523# If ld is used when linking, flag to hardcode \$libdir into
14524# a binary during linking. This must work even if \$libdir does
14525# not exist.
14526hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14527
14528# Whether we need a single -rpath flag with a separated argument.
14529hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14530
14531# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14532# resulting binary.
14533hardcode_direct=$hardcode_direct_CXX
14534
14535# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14536# resulting binary.
14537hardcode_minus_L=$hardcode_minus_L_CXX
14538
14539# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14540# the resulting binary.
14541hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14542
14543# Set to yes if building a shared library automatically hardcodes DIR into the library
14544# and all subsequent libraries and executables linked against it.
14545hardcode_automatic=$hardcode_automatic_CXX
14546
14547# Variables whose values should be saved in libtool wrapper scripts and
14548# restored at relink time.
14549variables_saved_for_relink="$variables_saved_for_relink"
14550
14551# Whether libtool must link a program against all its dependency libraries.
14552link_all_deplibs=$link_all_deplibs_CXX
14553
14554# Compile-time system search path for libraries
14555sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14556
14557# Run-time system search path for libraries
14558sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14559
14560# Fix the shell variable \$srcfile for the compiler.
14561fix_srcfile_path="$fix_srcfile_path_CXX"
14562
14563# Set to yes if exported symbols are required.
14564always_export_symbols=$always_export_symbols_CXX
14565
14566# The commands to list exported symbols.
14567export_symbols_cmds=$lt_export_symbols_cmds_CXX
14568
14569# The commands to extract the exported symbol list from a shared archive.
14570extract_expsyms_cmds=$lt_extract_expsyms_cmds
14571
14572# Symbols that should not be listed in the preloaded symbols.
14573exclude_expsyms=$lt_exclude_expsyms_CXX
14574
14575# Symbols that must always be exported.
14576include_expsyms=$lt_include_expsyms_CXX
14577
14578# ### END LIBTOOL TAG CONFIG: $tagname
14579
14580__EOF__
14581
14582
14583else
14584 # If there is no Makefile yet, we rely on a make rule to execute
14585 # `config.status --recheck' to rerun these tests and create the
14586 # libtool script then.
14587 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14588 if test -f "$ltmain_in"; then
14589 test -f Makefile && make "$ltmain"
14590 fi
14591fi
14592
14593
14594ac_ext=c
14595ac_cpp='$CPP $CPPFLAGS'
14596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599
14600CC=$lt_save_CC
14601LDCXX=$LD
14602LD=$lt_save_LD
14603GCC=$lt_save_GCC
14604with_gnu_ldcxx=$with_gnu_ld
14605with_gnu_ld=$lt_save_with_gnu_ld
14606lt_cv_path_LDCXX=$lt_cv_path_LD
14607lt_cv_path_LD=$lt_save_path_LD
14608lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14609lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14610
14611 else
14612 tagname=""
14613 fi
14614 ;;
14615
14616 F77)
14617 if test -n "$F77" && test "X$F77" != "Xno"; then
14618
14619ac_ext=f
14620ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14621ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14623
14624
14625archive_cmds_need_lc_F77=no
14626allow_undefined_flag_F77=
14627always_export_symbols_F77=no
14628archive_expsym_cmds_F77=
14629export_dynamic_flag_spec_F77=
14630hardcode_direct_F77=no
14631hardcode_libdir_flag_spec_F77=
14632hardcode_libdir_flag_spec_ld_F77=
14633hardcode_libdir_separator_F77=
14634hardcode_minus_L_F77=no
14635hardcode_automatic_F77=no
14636module_cmds_F77=
14637module_expsym_cmds_F77=
14638link_all_deplibs_F77=unknown
14639old_archive_cmds_F77=$old_archive_cmds
14640no_undefined_flag_F77=
14641whole_archive_flag_spec_F77=
14642enable_shared_with_static_runtimes_F77=no
14643
14644# Source file extension for f77 test sources.
14645ac_ext=f
14646
14647# Object file extension for compiled f77 test sources.
14648objext=o
14649objext_F77=$objext
14650
14651# Code to be used in simple compile tests
14652lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14653
14654# Code to be used in simple link tests
14655lt_simple_link_test_code=" program t\n end\n"
14656
14657# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14658
14659# If no C compiler was specified, use CC.
14660LTCC=${LTCC-"$CC"}
14661
14662# Allow CC to be a program name with arguments.
14663compiler=$CC
14664
14665
14666# save warnings/boilerplate of simple test code
14667ac_outfile=conftest.$ac_objext
14668printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14669eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14670_lt_compiler_boilerplate=`cat conftest.err`
14671$rm conftest*
14672
14673ac_outfile=conftest.$ac_objext
14674printf "$lt_simple_link_test_code" >conftest.$ac_ext
14675eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14676_lt_linker_boilerplate=`cat conftest.err`
14677$rm conftest*
14678
14679
14680# Allow CC to be a program name with arguments.
14681lt_save_CC="$CC"
14682CC=${F77-"f77"}
14683compiler=$CC
14684compiler_F77=$CC
14685for cc_temp in $compiler""; do
14686 case $cc_temp in
14687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14689 \-*) ;;
14690 *) break;;
14691 esac
14692done
14693cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14694
14695
14696{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14697echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14698{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14699echo "${ECHO_T}$can_build_shared" >&6; }
14700
14701{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14702echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14703test "$can_build_shared" = "no" && enable_shared=no
14704
14705# On AIX, shared libraries and static libraries use the same namespace, and
14706# are all built from PIC.
14707case $host_os in
14708aix3*)
14709 test "$enable_shared" = yes && enable_static=no
14710 if test -n "$RANLIB"; then
14711 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14712 postinstall_cmds='$RANLIB $lib'
14713 fi
14714 ;;
14715aix4* | aix5*)
14716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14717 test "$enable_shared" = yes && enable_static=no
14718 fi
14719 ;;
14720esac
14721{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14722echo "${ECHO_T}$enable_shared" >&6; }
14723
14724{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14725echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14726# Make sure either enable_shared or enable_static is yes.
14727test "$enable_shared" = yes || enable_static=yes
14728{ echo "$as_me:$LINENO: result: $enable_static" >&5
14729echo "${ECHO_T}$enable_static" >&6; }
14730
14731test "$ld_shlibs_F77" = no && can_build_shared=no
14732
14733GCC_F77="$G77"
14734LD_F77="$LD"
14735
14736lt_prog_compiler_wl_F77=
14737lt_prog_compiler_pic_F77=
14738lt_prog_compiler_static_F77=
14739
14740{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14741echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14742
14743 if test "$GCC" = yes; then
14744 lt_prog_compiler_wl_F77='-Wl,'
14745 lt_prog_compiler_static_F77='-static'
14746
14747 case $host_os in
14748 aix*)
14749 # All AIX code is PIC.
14750 if test "$host_cpu" = ia64; then
14751 # AIX 5 now supports IA64 processor
14752 lt_prog_compiler_static_F77='-Bstatic'
14753 fi
14754 ;;
14755
14756 amigaos*)
14757 # FIXME: we need at least 68020 code to build shared libraries, but
14758 # adding the `-m68020' flag to GCC prevents building anything better,
14759 # like `-m68040'.
14760 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14761 ;;
14762
14763 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14764 # PIC is the default for these OSes.
14765 ;;
14766
14767 mingw* | pw32* | os2*)
14768 # This hack is so that the source file can tell whether it is being
14769 # built for inclusion in a dll (and should export symbols for example).
14770 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14771 ;;
14772
14773 darwin* | rhapsody*)
14774 # PIC is the default on this platform
14775 # Common symbols not allowed in MH_DYLIB files
14776 lt_prog_compiler_pic_F77='-fno-common'
14777 ;;
14778
14779 msdosdjgpp*)
14780 # Just because we use GCC doesn't mean we suddenly get shared libraries
14781 # on systems that don't support them.
14782 lt_prog_compiler_can_build_shared_F77=no
14783 enable_shared=no
14784 ;;
14785
14786 sysv4*MP*)
14787 if test -d /usr/nec; then
14788 lt_prog_compiler_pic_F77=-Kconform_pic
14789 fi
14790 ;;
14791
14792 hpux*)
14793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14794 # not for PA HP-UX.
14795 case $host_cpu in
14796 hppa*64*|ia64*)
14797 # +Z the default
14798 ;;
14799 *)
14800 lt_prog_compiler_pic_F77='-fPIC'
14801 ;;
14802 esac
14803 ;;
14804
14805 *)
14806 lt_prog_compiler_pic_F77='-fPIC'
14807 ;;
14808 esac
14809 else
14810 # PORTME Check for flag to pass linker flags through the system compiler.
14811 case $host_os in
14812 aix*)
14813 lt_prog_compiler_wl_F77='-Wl,'
14814 if test "$host_cpu" = ia64; then
14815 # AIX 5 now supports IA64 processor
14816 lt_prog_compiler_static_F77='-Bstatic'
14817 else
14818 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14819 fi
14820 ;;
14821 darwin*)
14822 # PIC is the default on this platform
14823 # Common symbols not allowed in MH_DYLIB files
14824 case $cc_basename in
14825 xlc*)
14826 lt_prog_compiler_pic_F77='-qnocommon'
14827 lt_prog_compiler_wl_F77='-Wl,'
14828 ;;
14829 esac
14830 ;;
14831
14832 mingw* | pw32* | os2*)
14833 # This hack is so that the source file can tell whether it is being
14834 # built for inclusion in a dll (and should export symbols for example).
14835 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14836 ;;
14837
14838 hpux9* | hpux10* | hpux11*)
14839 lt_prog_compiler_wl_F77='-Wl,'
14840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14841 # not for PA HP-UX.
14842 case $host_cpu in
14843 hppa*64*|ia64*)
14844 # +Z the default
14845 ;;
14846 *)
14847 lt_prog_compiler_pic_F77='+Z'
14848 ;;
14849 esac
14850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14851 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14852 ;;
14853
14854 irix5* | irix6* | nonstopux*)
14855 lt_prog_compiler_wl_F77='-Wl,'
14856 # PIC (with -KPIC) is the default.
14857 lt_prog_compiler_static_F77='-non_shared'
14858 ;;
14859
14860 newsos6)
14861 lt_prog_compiler_pic_F77='-KPIC'
14862 lt_prog_compiler_static_F77='-Bstatic'
14863 ;;
14864
14865 linux*)
14866 case $cc_basename in
14867 icc* | ecc*)
14868 lt_prog_compiler_wl_F77='-Wl,'
14869 lt_prog_compiler_pic_F77='-KPIC'
14870 lt_prog_compiler_static_F77='-static'
14871 ;;
14872 pgcc* | pgf77* | pgf90* | pgf95*)
14873 # Portland Group compilers (*not* the Pentium gcc compiler,
14874 # which looks to be a dead project)
14875 lt_prog_compiler_wl_F77='-Wl,'
14876 lt_prog_compiler_pic_F77='-fpic'
14877 lt_prog_compiler_static_F77='-Bstatic'
14878 ;;
14879 ccc*)
14880 lt_prog_compiler_wl_F77='-Wl,'
14881 # All Alpha code is PIC.
14882 lt_prog_compiler_static_F77='-non_shared'
14883 ;;
14884 esac
14885 ;;
14886
14887 osf3* | osf4* | osf5*)
14888 lt_prog_compiler_wl_F77='-Wl,'
14889 # All OSF/1 code is PIC.
14890 lt_prog_compiler_static_F77='-non_shared'
14891 ;;
14892
14893 sco3.2v5*)
14894 lt_prog_compiler_pic_F77='-Kpic'
14895 lt_prog_compiler_static_F77='-dn'
14896 ;;
14897
14898 solaris*)
14899 lt_prog_compiler_pic_F77='-KPIC'
14900 lt_prog_compiler_static_F77='-Bstatic'
14901 case $cc_basename in
14902 f77* | f90* | f95*)
14903 lt_prog_compiler_wl_F77='-Qoption ld ';;
14904 *)
14905 lt_prog_compiler_wl_F77='-Wl,';;
14906 esac
14907 ;;
14908
14909 sunos4*)
14910 lt_prog_compiler_wl_F77='-Qoption ld '
14911 lt_prog_compiler_pic_F77='-PIC'
14912 lt_prog_compiler_static_F77='-Bstatic'
14913 ;;
14914
14915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14916 lt_prog_compiler_wl_F77='-Wl,'
14917 lt_prog_compiler_pic_F77='-KPIC'
14918 lt_prog_compiler_static_F77='-Bstatic'
14919 ;;
14920
14921 sysv4*MP*)
14922 if test -d /usr/nec ;then
14923 lt_prog_compiler_pic_F77='-Kconform_pic'
14924 lt_prog_compiler_static_F77='-Bstatic'
14925 fi
14926 ;;
14927
14928 unicos*)
14929 lt_prog_compiler_wl_F77='-Wl,'
14930 lt_prog_compiler_can_build_shared_F77=no
14931 ;;
14932
14933 uts4*)
14934 lt_prog_compiler_pic_F77='-pic'
14935 lt_prog_compiler_static_F77='-Bstatic'
14936 ;;
14937
14938 *)
14939 lt_prog_compiler_can_build_shared_F77=no
14940 ;;
14941 esac
14942 fi
14943
14944{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14945echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14946
14947#
14948# Check to make sure the PIC flag actually works.
14949#
14950if test -n "$lt_prog_compiler_pic_F77"; then
14951
14952{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14953echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14954if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956else
14957 lt_prog_compiler_pic_works_F77=no
14958 ac_outfile=conftest.$ac_objext
14959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14960 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14961 # Insert the option either (1) after the last *FLAGS variable, or
14962 # (2) before a word containing "conftest.", or (3) at the end.
14963 # Note that $ac_compile itself does not contain backslashes and begins
14964 # with a dollar sign (not a hyphen), so the echo should work correctly.
14965 # The option is referenced via a variable to avoid confusing sed.
14966 lt_compile=`echo "$ac_compile" | $SED \
14967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14969 -e 's:$: $lt_compiler_flag:'`
14970 (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
14971 (eval "$lt_compile" 2>conftest.err)
14972 ac_status=$?
14973 cat conftest.err >&5
14974 echo "$as_me:14974: \$? = $ac_status" >&5
14975 if (exit $ac_status) && test -s "$ac_outfile"; then
14976 # The compiler can only warn and ignore the option if not recognized
14977 # So say no if there are warnings other than the usual output.
14978 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14979 $SED '/^$/d' conftest.err >conftest.er2
14980 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14981 lt_prog_compiler_pic_works_F77=yes
14982 fi
14983 fi
14984 $rm conftest*
14985
14986fi
14987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14988echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14989
14990if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14991 case $lt_prog_compiler_pic_F77 in
14992 "" | " "*) ;;
14993 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14994 esac
14995else
14996 lt_prog_compiler_pic_F77=
14997 lt_prog_compiler_can_build_shared_F77=no
14998fi
14999
15000fi
15001case $host_os in
15002 # For platforms which do not support PIC, -DPIC is meaningless:
15003 *djgpp*)
15004 lt_prog_compiler_pic_F77=
15005 ;;
15006 *)
15007 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15008 ;;
15009esac
15010
15011{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15012echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15013if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016 lt_cv_prog_compiler_c_o_F77=no
15017 $rm -r conftest 2>/dev/null
15018 mkdir conftest
15019 cd conftest
15020 mkdir out
15021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022
15023 lt_compiler_flag="-o out/conftest2.$ac_objext"
15024 # Insert the option either (1) after the last *FLAGS variable, or
15025 # (2) before a word containing "conftest.", or (3) at the end.
15026 # Note that $ac_compile itself does not contain backslashes and begins
15027 # with a dollar sign (not a hyphen), so the echo should work correctly.
15028 lt_compile=`echo "$ac_compile" | $SED \
15029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031 -e 's:$: $lt_compiler_flag:'`
15032 (eval echo "\"\$as_me:15032: $lt_compile\"" >&5)
15033 (eval "$lt_compile" 2>out/conftest.err)
15034 ac_status=$?
15035 cat out/conftest.err >&5
15036 echo "$as_me:15036: \$? = $ac_status" >&5
15037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15038 then
15039 # The compiler can only warn and ignore the option if not recognized
15040 # So say no if there are warnings
15041 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15042 $SED '/^$/d' out/conftest.err >out/conftest.er2
15043 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15044 lt_cv_prog_compiler_c_o_F77=yes
15045 fi
15046 fi
15047 chmod u+w . 2>&5
15048 $rm conftest*
15049 # SGI C++ compiler will create directory out/ii_files/ for
15050 # template instantiation
15051 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15052 $rm out/* && rmdir out
15053 cd ..
15054 rmdir conftest
15055 $rm conftest*
15056
15057fi
15058{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15059echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15060
15061
15062hard_links="nottested"
15063if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15064 # do not overwrite the value of need_locks provided by the user
15065 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15066echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15067 hard_links=yes
15068 $rm conftest*
15069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15070 touch conftest.a
15071 ln conftest.a conftest.b 2>&5 || hard_links=no
15072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15073 { echo "$as_me:$LINENO: result: $hard_links" >&5
15074echo "${ECHO_T}$hard_links" >&6; }
15075 if test "$hard_links" = no; then
15076 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15077echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15078 need_locks=warn
15079 fi
15080else
15081 need_locks=no
15082fi
15083
15084{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15085echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15086
15087 runpath_var=
15088 allow_undefined_flag_F77=
15089 enable_shared_with_static_runtimes_F77=no
15090 archive_cmds_F77=
15091 archive_expsym_cmds_F77=
15092 old_archive_From_new_cmds_F77=
15093 old_archive_from_expsyms_cmds_F77=
15094 export_dynamic_flag_spec_F77=
15095 whole_archive_flag_spec_F77=
15096 thread_safe_flag_spec_F77=
15097 hardcode_libdir_flag_spec_F77=
15098 hardcode_libdir_flag_spec_ld_F77=
15099 hardcode_libdir_separator_F77=
15100 hardcode_direct_F77=no
15101 hardcode_minus_L_F77=no
15102 hardcode_shlibpath_var_F77=unsupported
15103 link_all_deplibs_F77=unknown
15104 hardcode_automatic_F77=no
15105 module_cmds_F77=
15106 module_expsym_cmds_F77=
15107 always_export_symbols_F77=no
15108 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15109 # include_expsyms should be a list of space-separated symbols to be *always*
15110 # included in the symbol list
15111 include_expsyms_F77=
15112 # exclude_expsyms can be an extended regexp of symbols to exclude
15113 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15114 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15115 # as well as any symbol that contains `d'.
15116 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15117 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15118 # platforms (ab)use it in PIC code, but their linkers get confused if
15119 # the symbol is explicitly referenced. Since portable code cannot
15120 # rely on this symbol name, it's probably fine to never include it in
15121 # preloaded symbol tables.
15122 extract_expsyms_cmds=
15123 # Just being paranoid about ensuring that cc_basename is set.
15124 for cc_temp in $compiler""; do
15125 case $cc_temp in
15126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15128 \-*) ;;
15129 *) break;;
15130 esac
15131done
15132cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15133
15134 case $host_os in
15135 cygwin* | mingw* | pw32*)
15136 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15137 # When not using gcc, we currently assume that we are using
15138 # Microsoft Visual C++.
15139 if test "$GCC" != yes; then
15140 with_gnu_ld=no
15141 fi
15142 ;;
15143 openbsd*)
15144 with_gnu_ld=no
15145 ;;
15146 esac
15147
15148 ld_shlibs_F77=yes
15149 if test "$with_gnu_ld" = yes; then
15150 # If archive_cmds runs LD, not CC, wlarc should be empty
15151 wlarc='${wl}'
15152
15153 # Set some defaults for GNU ld with shared library support. These
15154 # are reset later if shared libraries are not supported. Putting them
15155 # here allows them to be overridden if necessary.
15156 runpath_var=LD_RUN_PATH
15157 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15158 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15159 # ancient GNU ld didn't support --whole-archive et. al.
15160 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15161 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15162 else
15163 whole_archive_flag_spec_F77=
15164 fi
15165 supports_anon_versioning=no
15166 case `$LD -v 2>/dev/null` in
15167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15170 *\ 2.11.*) ;; # other 2.11 versions
15171 *) supports_anon_versioning=yes ;;
15172 esac
15173
15174 # See if GNU ld supports shared libraries.
15175 case $host_os in
15176 aix3* | aix4* | aix5*)
15177 # On AIX/PPC, the GNU linker is very broken
15178 if test "$host_cpu" != ia64; then
15179 ld_shlibs_F77=no
15180 cat <<EOF 1>&2
15181
15182*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15183*** to be unable to reliably create shared libraries on AIX.
15184*** Therefore, libtool is disabling shared libraries support. If you
15185*** really care for shared libraries, you may want to modify your PATH
15186*** so that a non-GNU linker is found, and then restart.
15187
15188EOF
15189 fi
15190 ;;
15191
15192 amigaos*)
15193 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15194 hardcode_libdir_flag_spec_F77='-L$libdir'
15195 hardcode_minus_L_F77=yes
15196
15197 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15198 # that the semantics of dynamic libraries on AmigaOS, at least up
15199 # to version 4, is to share data among multiple programs linked
15200 # with the same dynamic library. Since this doesn't match the
15201 # behavior of shared libraries on other platforms, we can't use
15202 # them.
15203 ld_shlibs_F77=no
15204 ;;
15205
15206 beos*)
15207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15208 allow_undefined_flag_F77=unsupported
15209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15210 # support --undefined. This deserves some investigation. FIXME
15211 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 else
15213 ld_shlibs_F77=no
15214 fi
15215 ;;
15216
15217 cygwin* | mingw* | pw32*)
15218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15219 # as there is no search path for DLLs.
15220 hardcode_libdir_flag_spec_F77='-L$libdir'
15221 allow_undefined_flag_F77=unsupported
15222 always_export_symbols_F77=no
15223 enable_shared_with_static_runtimes_F77=yes
15224 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15225
15226 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15227 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15228 # If the export-symbols file already is a .def file (1st line
15229 # is EXPORTS), use it as is; otherwise, prepend...
15230 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15231 cp $export_symbols $output_objdir/$soname.def;
15232 else
15233 echo EXPORTS > $output_objdir/$soname.def;
15234 cat $export_symbols >> $output_objdir/$soname.def;
15235 fi~
15236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15237 else
15238 ld_shlibs_F77=no
15239 fi
15240 ;;
15241
15242 linux*)
15243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244 tmp_addflag=
15245 case $cc_basename,$host_cpu in
15246 pgcc*) # Portland Group C compiler
15247 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15248 tmp_addflag=' $pic_flag'
15249 ;;
15250 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15251 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15252 tmp_addflag=' $pic_flag -Mnomain' ;;
15253 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15254 tmp_addflag=' -i_dynamic' ;;
15255 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15256 tmp_addflag=' -i_dynamic -nofor_main' ;;
15257 ifc* | ifort*) # Intel Fortran compiler
15258 tmp_addflag=' -nofor_main' ;;
15259 esac
15260 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15261
15262 if test $supports_anon_versioning = yes; then
15263 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15265 $echo "local: *; };" >> $output_objdir/$libname.ver~
15266 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15267 fi
15268 else
15269 ld_shlibs_F77=no
15270 fi
15271 ;;
15272
15273 netbsd*)
15274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15275 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15276 wlarc=
15277 else
15278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15279 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15280 fi
15281 ;;
15282
15283 solaris* | sysv5*)
15284 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15285 ld_shlibs_F77=no
15286 cat <<EOF 1>&2
15287
15288*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15289*** create shared libraries on Solaris systems. Therefore, libtool
15290*** is disabling shared libraries support. We urge you to upgrade GNU
15291*** binutils to release 2.9.1 or newer. Another option is to modify
15292*** your PATH or compiler configuration so that the native linker is
15293*** used, and then restart.
15294
15295EOF
15296 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15299 else
15300 ld_shlibs_F77=no
15301 fi
15302 ;;
15303
15304 sunos4*)
15305 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15306 wlarc=
15307 hardcode_direct_F77=yes
15308 hardcode_shlibpath_var_F77=no
15309 ;;
15310
15311 *)
15312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15315 else
15316 ld_shlibs_F77=no
15317 fi
15318 ;;
15319 esac
15320
15321 if test "$ld_shlibs_F77" = no; then
15322 runpath_var=
15323 hardcode_libdir_flag_spec_F77=
15324 export_dynamic_flag_spec_F77=
15325 whole_archive_flag_spec_F77=
15326 fi
15327 else
15328 # PORTME fill in a description of your system's linker (not GNU ld)
15329 case $host_os in
15330 aix3*)
15331 allow_undefined_flag_F77=unsupported
15332 always_export_symbols_F77=yes
15333 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15334 # Note: this linker hardcodes the directories in LIBPATH if there
15335 # are no directories specified by -L.
15336 hardcode_minus_L_F77=yes
15337 if test "$GCC" = yes && test -z "$link_static_flag"; then
15338 # Neither direct hardcoding nor static linking is supported with a
15339 # broken collect2.
15340 hardcode_direct_F77=unsupported
15341 fi
15342 ;;
15343
15344 aix4* | aix5*)
15345 if test "$host_cpu" = ia64; then
15346 # On IA64, the linker does run time linking by default, so we don't
15347 # have to do anything special.
15348 aix_use_runtimelinking=no
15349 exp_sym_flag='-Bexport'
15350 no_entry_flag=""
15351 else
15352 # If we're using GNU nm, then we don't want the "-C" option.
15353 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15354 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15355 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15356 else
15357 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15358 fi
15359 aix_use_runtimelinking=no
15360
15361 # Test if we are trying to use run time linking or normal
15362 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15363 # need to do runtime linking.
15364 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15365 for ld_flag in $LDFLAGS; do
15366 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15367 aix_use_runtimelinking=yes
15368 break
15369 fi
15370 done
15371 esac
15372
15373 exp_sym_flag='-bexport'
15374 no_entry_flag='-bnoentry'
15375 fi
15376
15377 # When large executables or shared objects are built, AIX ld can
15378 # have problems creating the table of contents. If linking a library
15379 # or program results in "error TOC overflow" add -mminimal-toc to
15380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15382
15383 archive_cmds_F77=''
15384 hardcode_direct_F77=yes
15385 hardcode_libdir_separator_F77=':'
15386 link_all_deplibs_F77=yes
15387
15388 if test "$GCC" = yes; then
15389 case $host_os in aix4.[012]|aix4.[012].*)
15390 # We only want to do this on AIX 4.2 and lower, the check
15391 # below for broken collect2 doesn't work under 4.3+
15392 collect2name=`${CC} -print-prog-name=collect2`
15393 if test -f "$collect2name" && \
15394 strings "$collect2name" | grep resolve_lib_name >/dev/null
15395 then
15396 # We have reworked collect2
15397 hardcode_direct_F77=yes
15398 else
15399 # We have old collect2
15400 hardcode_direct_F77=unsupported
15401 # It fails to find uninstalled libraries when the uninstalled
15402 # path is not listed in the libpath. Setting hardcode_minus_L
15403 # to unsupported forces relinking
15404 hardcode_minus_L_F77=yes
15405 hardcode_libdir_flag_spec_F77='-L$libdir'
15406 hardcode_libdir_separator_F77=
15407 fi
15408 esac
15409 shared_flag='-shared'
15410 if test "$aix_use_runtimelinking" = yes; then
15411 shared_flag="$shared_flag "'${wl}-G'
15412 fi
15413 else
15414 # not using gcc
15415 if test "$host_cpu" = ia64; then
15416 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15417 # chokes on -Wl,-G. The following line is correct:
15418 shared_flag='-G'
15419 else
15420 if test "$aix_use_runtimelinking" = yes; then
15421 shared_flag='${wl}-G'
15422 else
15423 shared_flag='${wl}-bM:SRE'
15424 fi
15425 fi
15426 fi
15427
15428 # It seems that -bexpall does not export symbols beginning with
15429 # underscore (_), so it is better to generate a list of symbols to export.
15430 always_export_symbols_F77=yes
15431 if test "$aix_use_runtimelinking" = yes; then
15432 # Warning - without using the other runtime loading flags (-brtl),
15433 # -berok will link without error, but may produce a broken library.
15434 allow_undefined_flag_F77='-berok'
15435 # Determine the default libpath from the value encoded in an empty executable.
15436 cat >conftest.$ac_ext <<_ACEOF
15437 program main
15438
15439 end
15440_ACEOF
15441rm -f conftest.$ac_objext conftest$ac_exeext
15442if { (ac_try="$ac_link"
15443case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_f77_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459
15460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15461}'`
15462# Check for a 64-bit object if we didn't find anything.
15463if 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; }
15464}'`; fi
15465else
15466 echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469
15470fi
15471
15472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15473 conftest$ac_exeext conftest.$ac_ext
15474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15475
15476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15477 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15478 else
15479 if test "$host_cpu" = ia64; then
15480 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15481 allow_undefined_flag_F77="-z nodefs"
15482 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15483 else
15484 # Determine the default libpath from the value encoded in an empty executable.
15485 cat >conftest.$ac_ext <<_ACEOF
15486 program main
15487
15488 end
15489_ACEOF
15490rm -f conftest.$ac_objext conftest$ac_exeext
15491if { (ac_try="$ac_link"
15492case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495esac
15496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_link") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_f77_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest$ac_exeext &&
15507 $as_test_x conftest$ac_exeext; then
15508
15509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15510}'`
15511# Check for a 64-bit object if we didn't find anything.
15512if 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; }
15513}'`; fi
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518
15519fi
15520
15521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522 conftest$ac_exeext conftest.$ac_ext
15523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15524
15525 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15526 # Warning - without using the other run time loading flags,
15527 # -berok will link without error, but may produce a broken library.
15528 no_undefined_flag_F77=' ${wl}-bernotok'
15529 allow_undefined_flag_F77=' ${wl}-berok'
15530 # -bexpall does not export symbols beginning with underscore (_)
15531 always_export_symbols_F77=yes
15532 # Exported symbols can be pulled into shared objects from archives
15533 whole_archive_flag_spec_F77=' '
15534 archive_cmds_need_lc_F77=yes
15535 # This is similar to how AIX traditionally builds its shared libraries.
15536 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15537 fi
15538 fi
15539 ;;
15540
15541 amigaos*)
15542 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15543 hardcode_libdir_flag_spec_F77='-L$libdir'
15544 hardcode_minus_L_F77=yes
15545 # see comment about different semantics on the GNU ld section
15546 ld_shlibs_F77=no
15547 ;;
15548
15549 bsdi[45]*)
15550 export_dynamic_flag_spec_F77=-rdynamic
15551 ;;
15552
15553 cygwin* | mingw* | pw32*)
15554 # When not using gcc, we currently assume that we are using
15555 # Microsoft Visual C++.
15556 # hardcode_libdir_flag_spec is actually meaningless, as there is
15557 # no search path for DLLs.
15558 hardcode_libdir_flag_spec_F77=' '
15559 allow_undefined_flag_F77=unsupported
15560 # Tell ltmain to make .lib files, not .a files.
15561 libext=lib
15562 # Tell ltmain to make .dll files, not .so files.
15563 shrext_cmds=".dll"
15564 # FIXME: Setting linknames here is a bad hack.
15565 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15566 # The linker will automatically build a .lib file if we build a DLL.
15567 old_archive_From_new_cmds_F77='true'
15568 # FIXME: Should let the user specify the lib program.
15569 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15570 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15571 enable_shared_with_static_runtimes_F77=yes
15572 ;;
15573
15574 darwin* | rhapsody*)
15575 case $host_os in
15576 rhapsody* | darwin1.[012])
15577 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15578 ;;
15579 *) # Darwin 1.3 on
15580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15581 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15582 else
15583 case ${MACOSX_DEPLOYMENT_TARGET} in
15584 10.[012])
15585 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15586 ;;
15587 10.*)
15588 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15589 ;;
15590 esac
15591 fi
15592 ;;
15593 esac
15594 archive_cmds_need_lc_F77=no
15595 hardcode_direct_F77=no
15596 hardcode_automatic_F77=yes
15597 hardcode_shlibpath_var_F77=unsupported
15598 whole_archive_flag_spec_F77=''
15599 link_all_deplibs_F77=yes
15600 if test "$GCC" = yes ; then
15601 output_verbose_link_cmd='echo'
15602 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15603 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15605 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15606 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15607 else
15608 case $cc_basename in
15609 xlc*)
15610 output_verbose_link_cmd='echo'
15611 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15612 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15614 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15615 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15616 ;;
15617 *)
15618 ld_shlibs_F77=no
15619 ;;
15620 esac
15621 fi
15622 ;;
15623
15624 dgux*)
15625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_libdir_flag_spec_F77='-L$libdir'
15627 hardcode_shlibpath_var_F77=no
15628 ;;
15629
15630 freebsd1*)
15631 ld_shlibs_F77=no
15632 ;;
15633
15634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15635 # support. Future versions do this automatically, but an explicit c++rt0.o
15636 # does not break anything, and helps significantly (at the cost of a little
15637 # extra space).
15638 freebsd2.2*)
15639 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15640 hardcode_libdir_flag_spec_F77='-R$libdir'
15641 hardcode_direct_F77=yes
15642 hardcode_shlibpath_var_F77=no
15643 ;;
15644
15645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15646 freebsd2*)
15647 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15648 hardcode_direct_F77=yes
15649 hardcode_minus_L_F77=yes
15650 hardcode_shlibpath_var_F77=no
15651 ;;
15652
15653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15654 freebsd* | kfreebsd*-gnu | dragonfly*)
15655 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15656 hardcode_libdir_flag_spec_F77='-R$libdir'
15657 hardcode_direct_F77=yes
15658 hardcode_shlibpath_var_F77=no
15659 ;;
15660
15661 hpux9*)
15662 if test "$GCC" = yes; then
15663 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15664 else
15665 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15666 fi
15667 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15668 hardcode_libdir_separator_F77=:
15669 hardcode_direct_F77=yes
15670
15671 # hardcode_minus_L: Not really in the search PATH,
15672 # but as the default location of the library.
15673 hardcode_minus_L_F77=yes
15674 export_dynamic_flag_spec_F77='${wl}-E'
15675 ;;
15676
15677 hpux10* | hpux11*)
15678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15679 case $host_cpu in
15680 hppa*64*|ia64*)
15681 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15682 ;;
15683 *)
15684 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15685 ;;
15686 esac
15687 else
15688 case $host_cpu in
15689 hppa*64*|ia64*)
15690 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 ;;
15692 *)
15693 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15694 ;;
15695 esac
15696 fi
15697 if test "$with_gnu_ld" = no; then
15698 case $host_cpu in
15699 hppa*64*)
15700 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15701 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15702 hardcode_libdir_separator_F77=:
15703 hardcode_direct_F77=no
15704 hardcode_shlibpath_var_F77=no
15705 ;;
15706 ia64*)
15707 hardcode_libdir_flag_spec_F77='-L$libdir'
15708 hardcode_direct_F77=no
15709 hardcode_shlibpath_var_F77=no
15710
15711 # hardcode_minus_L: Not really in the search PATH,
15712 # but as the default location of the library.
15713 hardcode_minus_L_F77=yes
15714 ;;
15715 *)
15716 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15717 hardcode_libdir_separator_F77=:
15718 hardcode_direct_F77=yes
15719 export_dynamic_flag_spec_F77='${wl}-E'
15720
15721 # hardcode_minus_L: Not really in the search PATH,
15722 # but as the default location of the library.
15723 hardcode_minus_L_F77=yes
15724 ;;
15725 esac
15726 fi
15727 ;;
15728
15729 irix5* | irix6* | nonstopux*)
15730 if test "$GCC" = yes; then
15731 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15732 else
15733 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15734 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15735 fi
15736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15737 hardcode_libdir_separator_F77=:
15738 link_all_deplibs_F77=yes
15739 ;;
15740
15741 netbsd*)
15742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15743 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15744 else
15745 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15746 fi
15747 hardcode_libdir_flag_spec_F77='-R$libdir'
15748 hardcode_direct_F77=yes
15749 hardcode_shlibpath_var_F77=no
15750 ;;
15751
15752 newsos6)
15753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_direct_F77=yes
15755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15756 hardcode_libdir_separator_F77=:
15757 hardcode_shlibpath_var_F77=no
15758 ;;
15759
15760 openbsd*)
15761 hardcode_direct_F77=yes
15762 hardcode_shlibpath_var_F77=no
15763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15764 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15765 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15767 export_dynamic_flag_spec_F77='${wl}-E'
15768 else
15769 case $host_os in
15770 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15771 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_libdir_flag_spec_F77='-R$libdir'
15773 ;;
15774 *)
15775 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15776 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15777 ;;
15778 esac
15779 fi
15780 ;;
15781
15782 os2*)
15783 hardcode_libdir_flag_spec_F77='-L$libdir'
15784 hardcode_minus_L_F77=yes
15785 allow_undefined_flag_F77=unsupported
15786 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15787 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15788 ;;
15789
15790 osf3*)
15791 if test "$GCC" = yes; then
15792 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15793 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15794 else
15795 allow_undefined_flag_F77=' -expect_unresolved \*'
15796 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15797 fi
15798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15799 hardcode_libdir_separator_F77=:
15800 ;;
15801
15802 osf4* | osf5*) # as osf3* with the addition of -msym flag
15803 if test "$GCC" = yes; then
15804 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15805 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15806 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15807 else
15808 allow_undefined_flag_F77=' -expect_unresolved \*'
15809 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15810 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15811 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15812
15813 # Both c and cxx compiler support -rpath directly
15814 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15815 fi
15816 hardcode_libdir_separator_F77=:
15817 ;;
15818
15819 sco3.2v5*)
15820 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_shlibpath_var_F77=no
15822 export_dynamic_flag_spec_F77='${wl}-Bexport'
15823 runpath_var=LD_RUN_PATH
15824 hardcode_runpath_var=yes
15825 ;;
15826
15827 solaris*)
15828 no_undefined_flag_F77=' -z text'
15829 if test "$GCC" = yes; then
15830 wlarc='${wl}'
15831 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15833 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15834 else
15835 wlarc=''
15836 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15839 fi
15840 hardcode_libdir_flag_spec_F77='-R$libdir'
15841 hardcode_shlibpath_var_F77=no
15842 case $host_os in
15843 solaris2.[0-5] | solaris2.[0-5].*) ;;
15844 *)
15845 # The compiler driver will combine linker options so we
15846 # cannot just pass the convience library names through
15847 # without $wl, iff we do not link with $LD.
15848 # Luckily, gcc supports the same syntax we need for Sun Studio.
15849 # Supported since Solaris 2.6 (maybe 2.5.1?)
15850 case $wlarc in
15851 '')
15852 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15853 *)
15854 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15855 esac ;;
15856 esac
15857 link_all_deplibs_F77=yes
15858 ;;
15859
15860 sunos4*)
15861 if test "x$host_vendor" = xsequent; then
15862 # Use $CC to link under sequent, because it throws in some extra .o
15863 # files that make .init and .fini sections work.
15864 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15865 else
15866 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15867 fi
15868 hardcode_libdir_flag_spec_F77='-L$libdir'
15869 hardcode_direct_F77=yes
15870 hardcode_minus_L_F77=yes
15871 hardcode_shlibpath_var_F77=no
15872 ;;
15873
15874 sysv4)
15875 case $host_vendor in
15876 sni)
15877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15878 hardcode_direct_F77=yes # is this really true???
15879 ;;
15880 siemens)
15881 ## LD is ld it makes a PLAMLIB
15882 ## CC just makes a GrossModule.
15883 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15884 reload_cmds_F77='$CC -r -o $output$reload_objs'
15885 hardcode_direct_F77=no
15886 ;;
15887 motorola)
15888 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15890 ;;
15891 esac
15892 runpath_var='LD_RUN_PATH'
15893 hardcode_shlibpath_var_F77=no
15894 ;;
15895
15896 sysv4.3*)
15897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_shlibpath_var_F77=no
15899 export_dynamic_flag_spec_F77='-Bexport'
15900 ;;
15901
15902 sysv4*MP*)
15903 if test -d /usr/nec; then
15904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15905 hardcode_shlibpath_var_F77=no
15906 runpath_var=LD_RUN_PATH
15907 hardcode_runpath_var=yes
15908 ld_shlibs_F77=yes
15909 fi
15910 ;;
15911
15912 sysv4.2uw2*)
15913 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15914 hardcode_direct_F77=yes
15915 hardcode_minus_L_F77=no
15916 hardcode_shlibpath_var_F77=no
15917 hardcode_runpath_var=yes
15918 runpath_var=LD_RUN_PATH
15919 ;;
15920
15921 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15922 no_undefined_flag_F77='${wl}-z ${wl}text'
15923 if test "$GCC" = yes; then
15924 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 else
15926 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15927 fi
15928 runpath_var='LD_RUN_PATH'
15929 hardcode_shlibpath_var_F77=no
15930 ;;
15931
15932 sysv5*)
15933 no_undefined_flag_F77=' -z text'
15934 # $CC -shared without GNU ld will not create a library from C++
15935 # object files and a static libstdc++, better avoid it by now
15936 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15937 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15938 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15939 hardcode_libdir_flag_spec_F77=
15940 hardcode_shlibpath_var_F77=no
15941 runpath_var='LD_RUN_PATH'
15942 ;;
15943
15944 uts4*)
15945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946 hardcode_libdir_flag_spec_F77='-L$libdir'
15947 hardcode_shlibpath_var_F77=no
15948 ;;
15949
15950 *)
15951 ld_shlibs_F77=no
15952 ;;
15953 esac
15954 fi
15955
15956{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15957echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15958test "$ld_shlibs_F77" = no && can_build_shared=no
15959
15960variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15961if test "$GCC" = yes; then
15962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15963fi
15964
15965#
15966# Do we need to explicitly link libc?
15967#
15968case "x$archive_cmds_need_lc_F77" in
15969x|xyes)
15970 # Assume -lc should be added
15971 archive_cmds_need_lc_F77=yes
15972
15973 if test "$enable_shared" = yes && test "$GCC" = yes; then
15974 case $archive_cmds_F77 in
15975 *'~'*)
15976 # FIXME: we may have to deal with multi-command sequences.
15977 ;;
15978 '$CC '*)
15979 # Test whether the compiler implicitly links with -lc since on some
15980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15981 # to ld, don't add -lc before -lgcc.
15982 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15983echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15984 $rm conftest*
15985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15986
15987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988 (eval $ac_compile) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } 2>conftest.err; then
15992 soname=conftest
15993 lib=conftest
15994 libobjs=conftest.$ac_objext
15995 deplibs=
15996 wl=$lt_prog_compiler_wl_F77
15997 compiler_flags=-v
15998 linker_flags=-v
15999 verstring=
16000 output_objdir=.
16001 libname=conftest
16002 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16003 allow_undefined_flag_F77=
16004 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16005 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }
16009 then
16010 archive_cmds_need_lc_F77=no
16011 else
16012 archive_cmds_need_lc_F77=yes
16013 fi
16014 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16015 else
16016 cat conftest.err 1>&5
16017 fi
16018 $rm conftest*
16019 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16020echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16021 ;;
16022 esac
16023 fi
16024 ;;
16025esac
16026
16027{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16028echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16029library_names_spec=
16030libname_spec='lib$name'
16031soname_spec=
16032shrext_cmds=".so"
16033postinstall_cmds=
16034postuninstall_cmds=
16035finish_cmds=
16036finish_eval=
16037shlibpath_var=
16038shlibpath_overrides_runpath=unknown
16039version_type=none
16040dynamic_linker="$host_os ld.so"
16041sys_lib_dlsearch_path_spec="/lib /usr/lib"
16042if test "$GCC" = yes; then
16043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16044 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16045 # if the path contains ";" then we assume it to be the separator
16046 # otherwise default to the standard path separator (i.e. ":") - it is
16047 # assumed that no part of a normal pathname contains ";" but that should
16048 # okay in the real world where ";" in dirpaths is itself problematic.
16049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16050 else
16051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16052 fi
16053else
16054 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16055fi
16056need_lib_prefix=unknown
16057hardcode_into_libs=no
16058
16059# when you set need_version to no, make sure it does not cause -set_version
16060# flags to be left without arguments
16061need_version=unknown
16062
16063case $host_os in
16064aix3*)
16065 version_type=linux
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16067 shlibpath_var=LIBPATH
16068
16069 # AIX 3 has no versioning support, so we append a major version to the name.
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 ;;
16072
16073aix4* | aix5*)
16074 version_type=linux
16075 need_lib_prefix=no
16076 need_version=no
16077 hardcode_into_libs=yes
16078 if test "$host_cpu" = ia64; then
16079 # AIX 5 supports IA64
16080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 else
16083 # With GCC up to 2.95.x, collect2 would create an import file
16084 # for dependence libraries. The import file would start with
16085 # the line `#! .'. This would cause the generated library to
16086 # depend on `.', always an invalid library. This was fixed in
16087 # development snapshots of GCC prior to 3.0.
16088 case $host_os in
16089 aix4 | aix4.[01] | aix4.[01].*)
16090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16091 echo ' yes '
16092 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16093 :
16094 else
16095 can_build_shared=no
16096 fi
16097 ;;
16098 esac
16099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16100 # soname into executable. Probably we can add versioning support to
16101 # collect2, so additional links can be useful in future.
16102 if test "$aix_use_runtimelinking" = yes; then
16103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16104 # instead of lib<name>.a to let people know that these are not
16105 # typical AIX shared libraries.
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 else
16108 # We preserve .a as extension for shared libraries through AIX4.2
16109 # and later when we are not doing run time linking.
16110 library_names_spec='${libname}${release}.a $libname.a'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 fi
16113 shlibpath_var=LIBPATH
16114 fi
16115 ;;
16116
16117amigaos*)
16118 library_names_spec='$libname.ixlibrary $libname.a'
16119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16120 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'
16121 ;;
16122
16123beos*)
16124 library_names_spec='${libname}${shared_ext}'
16125 dynamic_linker="$host_os ld.so"
16126 shlibpath_var=LIBRARY_PATH
16127 ;;
16128
16129bsdi[45]*)
16130 version_type=linux
16131 need_version=no
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16137 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16138 # the default ld.so.conf also contains /usr/contrib/lib and
16139 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16140 # libtool to hard-code these into programs
16141 ;;
16142
16143cygwin* | mingw* | pw32*)
16144 version_type=windows
16145 shrext_cmds=".dll"
16146 need_version=no
16147 need_lib_prefix=no
16148
16149 case $GCC,$host_os in
16150 yes,cygwin* | yes,mingw* | yes,pw32*)
16151 library_names_spec='$libname.dll.a'
16152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16153 postinstall_cmds='base_file=`basename \${file}`~
16154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16155 dldir=$destdir/`dirname \$dlpath`~
16156 test -d \$dldir || mkdir -p \$dldir~
16157 $install_prog $dir/$dlname \$dldir/$dlname~
16158 chmod a+x \$dldir/$dlname'
16159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16160 dlpath=$dir/\$dldll~
16161 $rm \$dlpath'
16162 shlibpath_overrides_runpath=yes
16163
16164 case $host_os in
16165 cygwin*)
16166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16168 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16169 ;;
16170 mingw*)
16171 # MinGW DLLs use traditional 'lib' prefix
16172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16174 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16175 # It is most probably a Windows format PATH printed by
16176 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16177 # path with ; separators, and with drive letters. We can handle the
16178 # drive letters (cygwin fileutils understands them), so leave them,
16179 # especially as we might pass files found there to a mingw objdump,
16180 # which wouldn't understand a cygwinified path. Ahh.
16181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16182 else
16183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16184 fi
16185 ;;
16186 pw32*)
16187 # pw32 DLLs use 'pw' prefix rather than 'lib'
16188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16189 ;;
16190 esac
16191 ;;
16192
16193 *)
16194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16195 ;;
16196 esac
16197 dynamic_linker='Win32 ld.exe'
16198 # FIXME: first we should search . and the directory the executable is in
16199 shlibpath_var=PATH
16200 ;;
16201
16202darwin* | rhapsody*)
16203 dynamic_linker="$host_os dyld"
16204 version_type=darwin
16205 need_lib_prefix=no
16206 need_version=no
16207 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16208 soname_spec='${libname}${release}${major}$shared_ext'
16209 shlibpath_overrides_runpath=yes
16210 shlibpath_var=DYLD_LIBRARY_PATH
16211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16212 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16213 if test "$GCC" = yes; then
16214 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16215 else
16216 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16217 fi
16218 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16219 ;;
16220
16221dgux*)
16222 version_type=linux
16223 need_lib_prefix=no
16224 need_version=no
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 ;;
16229
16230freebsd1*)
16231 dynamic_linker=no
16232 ;;
16233
16234kfreebsd*-gnu)
16235 version_type=linux
16236 need_lib_prefix=no
16237 need_version=no
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 shlibpath_overrides_runpath=no
16242 hardcode_into_libs=yes
16243 dynamic_linker='GNU ld.so'
16244 ;;
16245
16246freebsd* | dragonfly*)
16247 # DragonFly does not have aout. When/if they implement a new
16248 # versioning mechanism, adjust this.
16249 if test -x /usr/bin/objformat; then
16250 objformat=`/usr/bin/objformat`
16251 else
16252 case $host_os in
16253 freebsd[123]*) objformat=aout ;;
16254 *) objformat=elf ;;
16255 esac
16256 fi
16257 version_type=freebsd-$objformat
16258 case $version_type in
16259 freebsd-elf*)
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16261 need_version=no
16262 need_lib_prefix=no
16263 ;;
16264 freebsd-*)
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16266 need_version=yes
16267 ;;
16268 esac
16269 shlibpath_var=LD_LIBRARY_PATH
16270 case $host_os in
16271 freebsd2*)
16272 shlibpath_overrides_runpath=yes
16273 ;;
16274 freebsd3.[01]* | freebsdelf3.[01]*)
16275 shlibpath_overrides_runpath=yes
16276 hardcode_into_libs=yes
16277 ;;
16278 *) # from 3.2 on
16279 shlibpath_overrides_runpath=no
16280 hardcode_into_libs=yes
16281 ;;
16282 esac
16283 ;;
16284
16285gnu*)
16286 version_type=linux
16287 need_lib_prefix=no
16288 need_version=no
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 hardcode_into_libs=yes
16293 ;;
16294
16295hpux9* | hpux10* | hpux11*)
16296 # Give a soname corresponding to the major version so that dld.sl refuses to
16297 # link against other versions.
16298 version_type=sunos
16299 need_lib_prefix=no
16300 need_version=no
16301 case $host_cpu in
16302 ia64*)
16303 shrext_cmds='.so'
16304 hardcode_into_libs=yes
16305 dynamic_linker="$host_os dld.so"
16306 shlibpath_var=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 if test "X$HPUX_IA64_MODE" = X32; then
16311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16312 else
16313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16314 fi
16315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16316 ;;
16317 hppa*64*)
16318 shrext_cmds='.sl'
16319 hardcode_into_libs=yes
16320 dynamic_linker="$host_os dld.sl"
16321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 soname_spec='${libname}${release}${shared_ext}$major'
16325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16327 ;;
16328 *)
16329 shrext_cmds='.sl'
16330 dynamic_linker="$host_os dld.sl"
16331 shlibpath_var=SHLIB_PATH
16332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 ;;
16336 esac
16337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16338 postinstall_cmds='chmod 555 $lib'
16339 ;;
16340
16341irix5* | irix6* | nonstopux*)
16342 case $host_os in
16343 nonstopux*) version_type=nonstopux ;;
16344 *)
16345 if test "$lt_cv_prog_gnu_ld" = yes; then
16346 version_type=linux
16347 else
16348 version_type=irix
16349 fi ;;
16350 esac
16351 need_lib_prefix=no
16352 need_version=no
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16355 case $host_os in
16356 irix5* | nonstopux*)
16357 libsuff= shlibsuff=
16358 ;;
16359 *)
16360 case $LD in # libtool.m4 will add one of these switches to LD
16361 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16362 libsuff= shlibsuff= libmagic=32-bit;;
16363 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16364 libsuff=32 shlibsuff=N32 libmagic=N32;;
16365 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16366 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16367 *) libsuff= shlibsuff= libmagic=never-match;;
16368 esac
16369 ;;
16370 esac
16371 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16372 shlibpath_overrides_runpath=no
16373 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16374 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16375 hardcode_into_libs=yes
16376 ;;
16377
16378# No shared lib support for Linux oldld, aout, or coff.
16379linux*oldld* | linux*aout* | linux*coff*)
16380 dynamic_linker=no
16381 ;;
16382
16383# This must be Linux ELF.
16384linux*)
16385 version_type=linux
16386 need_lib_prefix=no
16387 need_version=no
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 shlibpath_overrides_runpath=no
16393 # This implies no fast_install, which is unacceptable.
16394 # Some rework will be needed to allow for fast_install
16395 # before this can be enabled.
16396 hardcode_into_libs=yes
16397
16398 # Append ld.so.conf contents to the search path
16399 if test -f /etc/ld.so.conf; then
16400 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16402 fi
16403
16404 # We used to test for /lib/ld.so.1 and disable shared libraries on
16405 # powerpc, because MkLinux only supported shared libraries with the
16406 # GNU dynamic linker. Since this was broken with cross compilers,
16407 # most powerpc-linux boxes support dynamic linking these days and
16408 # people can always --disable-shared, the test was removed, and we
16409 # assume the GNU/Linux dynamic linker is in use.
16410 dynamic_linker='GNU/Linux ld.so'
16411 ;;
16412
16413knetbsd*-gnu)
16414 version_type=linux
16415 need_lib_prefix=no
16416 need_version=no
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=no
16421 hardcode_into_libs=yes
16422 dynamic_linker='GNU ld.so'
16423 ;;
16424
16425netbsd*)
16426 version_type=sunos
16427 need_lib_prefix=no
16428 need_version=no
16429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16432 dynamic_linker='NetBSD (a.out) ld.so'
16433 else
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
16436 dynamic_linker='NetBSD ld.elf_so'
16437 fi
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16440 hardcode_into_libs=yes
16441 ;;
16442
16443newsos6)
16444 version_type=linux
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 shlibpath_overrides_runpath=yes
16448 ;;
16449
16450nto-qnx*)
16451 version_type=linux
16452 need_lib_prefix=no
16453 need_version=no
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 shlibpath_overrides_runpath=yes
16458 ;;
16459
16460openbsd*)
16461 version_type=sunos
16462 need_lib_prefix=no
16463 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16464 case $host_os in
16465 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16466 *) need_version=no ;;
16467 esac
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16472 case $host_os in
16473 openbsd2.[89] | openbsd2.[89].*)
16474 shlibpath_overrides_runpath=no
16475 ;;
16476 *)
16477 shlibpath_overrides_runpath=yes
16478 ;;
16479 esac
16480 else
16481 shlibpath_overrides_runpath=yes
16482 fi
16483 ;;
16484
16485os2*)
16486 libname_spec='$name'
16487 shrext_cmds=".dll"
16488 need_lib_prefix=no
16489 library_names_spec='$libname${shared_ext} $libname.a'
16490 dynamic_linker='OS/2 ld.exe'
16491 shlibpath_var=LIBPATH
16492 ;;
16493
16494osf3* | osf4* | osf5*)
16495 version_type=osf
16496 need_lib_prefix=no
16497 need_version=no
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16503 ;;
16504
16505sco3.2v5*)
16506 version_type=osf
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 shlibpath_var=LD_LIBRARY_PATH
16510 ;;
16511
16512solaris*)
16513 version_type=linux
16514 need_lib_prefix=no
16515 need_version=no
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath=yes
16520 hardcode_into_libs=yes
16521 # ldd complains unless libraries are executable
16522 postinstall_cmds='chmod +x $lib'
16523 ;;
16524
16525sunos4*)
16526 version_type=sunos
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath=yes
16531 if test "$with_gnu_ld" = yes; then
16532 need_lib_prefix=no
16533 fi
16534 need_version=yes
16535 ;;
16536
16537sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16538 version_type=linux
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 case $host_vendor in
16543 sni)
16544 shlibpath_overrides_runpath=no
16545 need_lib_prefix=no
16546 export_dynamic_flag_spec='${wl}-Blargedynsym'
16547 runpath_var=LD_RUN_PATH
16548 ;;
16549 siemens)
16550 need_lib_prefix=no
16551 ;;
16552 motorola)
16553 need_lib_prefix=no
16554 need_version=no
16555 shlibpath_overrides_runpath=no
16556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16557 ;;
16558 esac
16559 ;;
16560
16561sysv4*MP*)
16562 if test -d /usr/nec ;then
16563 version_type=linux
16564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16565 soname_spec='$libname${shared_ext}.$major'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 fi
16568 ;;
16569
16570uts4*)
16571 version_type=linux
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 ;;
16576
16577*)
16578 dynamic_linker=no
16579 ;;
16580esac
16581{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16582echo "${ECHO_T}$dynamic_linker" >&6; }
16583test "$dynamic_linker" = no && can_build_shared=no
16584
16585{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16586echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16587hardcode_action_F77=
16588if test -n "$hardcode_libdir_flag_spec_F77" || \
16589 test -n "$runpath_var_F77" || \
16590 test "X$hardcode_automatic_F77" = "Xyes" ; then
16591
16592 # We can hardcode non-existant directories.
16593 if test "$hardcode_direct_F77" != no &&
16594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16595 # have to relink, otherwise we might link with an installed library
16596 # when we should be linking with a yet-to-be-installed one
16597 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16598 test "$hardcode_minus_L_F77" != no; then
16599 # Linking always hardcodes the temporary library directory.
16600 hardcode_action_F77=relink
16601 else
16602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16603 hardcode_action_F77=immediate
16604 fi
16605else
16606 # We cannot hardcode anything, or else we can only hardcode existing
16607 # directories.
16608 hardcode_action_F77=unsupported
16609fi
16610{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16611echo "${ECHO_T}$hardcode_action_F77" >&6; }
16612
16613if test "$hardcode_action_F77" = relink; then
16614 # Fast installation is not supported
16615 enable_fast_install=no
16616elif test "$shlibpath_overrides_runpath" = yes ||
16617 test "$enable_shared" = no; then
16618 # Fast installation is not necessary
16619 enable_fast_install=needless
16620fi
16621
16622striplib=
16623old_striplib=
16624{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16625echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16626if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630echo "${ECHO_T}yes" >&6; }
16631else
16632# FIXME - insert some real tests, host_os isn't really good enough
16633 case $host_os in
16634 darwin*)
16635 if test -n "$STRIP" ; then
16636 striplib="$STRIP -x"
16637 { echo "$as_me:$LINENO: result: yes" >&5
16638echo "${ECHO_T}yes" >&6; }
16639 else
16640 { echo "$as_me:$LINENO: result: no" >&5
16641echo "${ECHO_T}no" >&6; }
16642fi
16643 ;;
16644 *)
16645 { echo "$as_me:$LINENO: result: no" >&5
16646echo "${ECHO_T}no" >&6; }
16647 ;;
16648 esac
16649fi
16650
16651
16652
16653# The else clause should only fire when bootstrapping the
16654# libtool distribution, otherwise you forgot to ship ltmain.sh
16655# with your package, and you will get complaints that there are
16656# no rules to generate ltmain.sh.
16657if test -f "$ltmain"; then
16658 # See if we are running on zsh, and set the options which allow our commands through
16659 # without removal of \ escapes.
16660 if test -n "${ZSH_VERSION+set}" ; then
16661 setopt NO_GLOB_SUBST
16662 fi
16663 # Now quote all the things that may contain metacharacters while being
16664 # careful not to overquote the AC_SUBSTed values. We take copies of the
16665 # variables and quote the copies for generation of the libtool script.
16666 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16667 SED SHELL STRIP \
16668 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16669 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16670 deplibs_check_method reload_flag reload_cmds need_locks \
16671 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16672 lt_cv_sys_global_symbol_to_c_name_address \
16673 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16674 old_postinstall_cmds old_postuninstall_cmds \
16675 compiler_F77 \
16676 CC_F77 \
16677 LD_F77 \
16678 lt_prog_compiler_wl_F77 \
16679 lt_prog_compiler_pic_F77 \
16680 lt_prog_compiler_static_F77 \
16681 lt_prog_compiler_no_builtin_flag_F77 \
16682 export_dynamic_flag_spec_F77 \
16683 thread_safe_flag_spec_F77 \
16684 whole_archive_flag_spec_F77 \
16685 enable_shared_with_static_runtimes_F77 \
16686 old_archive_cmds_F77 \
16687 old_archive_from_new_cmds_F77 \
16688 predep_objects_F77 \
16689 postdep_objects_F77 \
16690 predeps_F77 \
16691 postdeps_F77 \
16692 compiler_lib_search_path_F77 \
16693 archive_cmds_F77 \
16694 archive_expsym_cmds_F77 \
16695 postinstall_cmds_F77 \
16696 postuninstall_cmds_F77 \
16697 old_archive_from_expsyms_cmds_F77 \
16698 allow_undefined_flag_F77 \
16699 no_undefined_flag_F77 \
16700 export_symbols_cmds_F77 \
16701 hardcode_libdir_flag_spec_F77 \
16702 hardcode_libdir_flag_spec_ld_F77 \
16703 hardcode_libdir_separator_F77 \
16704 hardcode_automatic_F77 \
16705 module_cmds_F77 \
16706 module_expsym_cmds_F77 \
16707 lt_cv_prog_compiler_c_o_F77 \
16708 exclude_expsyms_F77 \
16709 include_expsyms_F77; do
16710
16711 case $var in
16712 old_archive_cmds_F77 | \
16713 old_archive_from_new_cmds_F77 | \
16714 archive_cmds_F77 | \
16715 archive_expsym_cmds_F77 | \
16716 module_cmds_F77 | \
16717 module_expsym_cmds_F77 | \
16718 old_archive_from_expsyms_cmds_F77 | \
16719 export_symbols_cmds_F77 | \
16720 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16721 postinstall_cmds | postuninstall_cmds | \
16722 old_postinstall_cmds | old_postuninstall_cmds | \
16723 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16724 # Double-quote double-evaled strings.
16725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16726 ;;
16727 *)
16728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16729 ;;
16730 esac
16731 done
16732
16733 case $lt_echo in
16734 *'\$0 --fallback-echo"')
16735 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16736 ;;
16737 esac
16738
16739cfgfile="$ofile"
16740
16741 cat <<__EOF__ >> "$cfgfile"
16742# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16743
16744# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16745
16746# Shell to use when invoking shell scripts.
16747SHELL=$lt_SHELL
16748
16749# Whether or not to build shared libraries.
16750build_libtool_libs=$enable_shared
16751
16752# Whether or not to build static libraries.
16753build_old_libs=$enable_static
16754
16755# Whether or not to add -lc for building shared libraries.
16756build_libtool_need_lc=$archive_cmds_need_lc_F77
16757
16758# Whether or not to disallow shared libs when runtime libs are static
16759allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16760
16761# Whether or not to optimize for fast installation.
16762fast_install=$enable_fast_install
16763
16764# The host system.
16765host_alias=$host_alias
16766host=$host
16767host_os=$host_os
16768
16769# The build system.
16770build_alias=$build_alias
16771build=$build
16772build_os=$build_os
16773
16774# An echo program that does not interpret backslashes.
16775echo=$lt_echo
16776
16777# The archiver.
16778AR=$lt_AR
16779AR_FLAGS=$lt_AR_FLAGS
16780
16781# A C compiler.
16782LTCC=$lt_LTCC
16783
16784# A language-specific compiler.
16785CC=$lt_compiler_F77
16786
16787# Is the compiler the GNU C compiler?
16788with_gcc=$GCC_F77
16789
16790# An ERE matcher.
16791EGREP=$lt_EGREP
16792
16793# The linker used to build libraries.
16794LD=$lt_LD_F77
16795
16796# Whether we need hard or soft links.
16797LN_S=$lt_LN_S
16798
16799# A BSD-compatible nm program.
16800NM=$lt_NM
16801
16802# A symbol stripping program
16803STRIP=$lt_STRIP
16804
16805# Used to examine libraries when file_magic_cmd begins "file"
16806MAGIC_CMD=$MAGIC_CMD
16807
16808# Used on cygwin: DLL creation program.
16809DLLTOOL="$DLLTOOL"
16810
16811# Used on cygwin: object dumper.
16812OBJDUMP="$OBJDUMP"
16813
16814# Used on cygwin: assembler.
16815AS="$AS"
16816
16817# The name of the directory that contains temporary libtool files.
16818objdir=$objdir
16819
16820# How to create reloadable object files.
16821reload_flag=$lt_reload_flag
16822reload_cmds=$lt_reload_cmds
16823
16824# How to pass a linker flag through the compiler.
16825wl=$lt_lt_prog_compiler_wl_F77
16826
16827# Object file suffix (normally "o").
16828objext="$ac_objext"
16829
16830# Old archive suffix (normally "a").
16831libext="$libext"
16832
16833# Shared library suffix (normally ".so").
16834shrext_cmds='$shrext_cmds'
16835
16836# Executable file suffix (normally "").
16837exeext="$exeext"
16838
16839# Additional compiler flags for building library objects.
16840pic_flag=$lt_lt_prog_compiler_pic_F77
16841pic_mode=$pic_mode
16842
16843# What is the maximum length of a command?
16844max_cmd_len=$lt_cv_sys_max_cmd_len
16845
16846# Does compiler simultaneously support -c and -o options?
16847compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16848
16849# Must we lock files when doing compilation?
16850need_locks=$lt_need_locks
16851
16852# Do we need the lib prefix for modules?
16853need_lib_prefix=$need_lib_prefix
16854
16855# Do we need a version for libraries?
16856need_version=$need_version
16857
16858# Whether dlopen is supported.
16859dlopen_support=$enable_dlopen
16860
16861# Whether dlopen of programs is supported.
16862dlopen_self=$enable_dlopen_self
16863
16864# Whether dlopen of statically linked programs is supported.
16865dlopen_self_static=$enable_dlopen_self_static
16866
16867# Compiler flag to prevent dynamic linking.
16868link_static_flag=$lt_lt_prog_compiler_static_F77
16869
16870# Compiler flag to turn off builtin functions.
16871no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16872
16873# Compiler flag to allow reflexive dlopens.
16874export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16875
16876# Compiler flag to generate shared objects directly from archives.
16877whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16878
16879# Compiler flag to generate thread-safe objects.
16880thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16881
16882# Library versioning type.
16883version_type=$version_type
16884
16885# Format of library name prefix.
16886libname_spec=$lt_libname_spec
16887
16888# List of archive names. First name is the real one, the rest are links.
16889# The last name is the one that the linker finds with -lNAME.
16890library_names_spec=$lt_library_names_spec
16891
16892# The coded name of the library, if different from the real name.
16893soname_spec=$lt_soname_spec
16894
16895# Commands used to build and install an old-style archive.
16896RANLIB=$lt_RANLIB
16897old_archive_cmds=$lt_old_archive_cmds_F77
16898old_postinstall_cmds=$lt_old_postinstall_cmds
16899old_postuninstall_cmds=$lt_old_postuninstall_cmds
16900
16901# Create an old-style archive from a shared archive.
16902old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16903
16904# Create a temporary old-style archive to link instead of a shared archive.
16905old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16906
16907# Commands used to build and install a shared archive.
16908archive_cmds=$lt_archive_cmds_F77
16909archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16910postinstall_cmds=$lt_postinstall_cmds
16911postuninstall_cmds=$lt_postuninstall_cmds
16912
16913# Commands used to build a loadable module (assumed same as above if empty)
16914module_cmds=$lt_module_cmds_F77
16915module_expsym_cmds=$lt_module_expsym_cmds_F77
16916
16917# Commands to strip libraries.
16918old_striplib=$lt_old_striplib
16919striplib=$lt_striplib
16920
16921# Dependencies to place before the objects being linked to create a
16922# shared library.
16923predep_objects=$lt_predep_objects_F77
16924
16925# Dependencies to place after the objects being linked to create a
16926# shared library.
16927postdep_objects=$lt_postdep_objects_F77
16928
16929# Dependencies to place before the objects being linked to create a
16930# shared library.
16931predeps=$lt_predeps_F77
16932
16933# Dependencies to place after the objects being linked to create a
16934# shared library.
16935postdeps=$lt_postdeps_F77
16936
16937# The library search path used internally by the compiler when linking
16938# a shared library.
16939compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16940
16941# Method to check whether dependent libraries are shared objects.
16942deplibs_check_method=$lt_deplibs_check_method
16943
16944# Command to use when deplibs_check_method == file_magic.
16945file_magic_cmd=$lt_file_magic_cmd
16946
16947# Flag that allows shared libraries with undefined symbols to be built.
16948allow_undefined_flag=$lt_allow_undefined_flag_F77
16949
16950# Flag that forces no undefined symbols.
16951no_undefined_flag=$lt_no_undefined_flag_F77
16952
16953# Commands used to finish a libtool library installation in a directory.
16954finish_cmds=$lt_finish_cmds
16955
16956# Same as above, but a single script fragment to be evaled but not shown.
16957finish_eval=$lt_finish_eval
16958
16959# Take the output of nm and produce a listing of raw symbols and C names.
16960global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16961
16962# Transform the output of nm in a proper C declaration
16963global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16964
16965# Transform the output of nm in a C name address pair
16966global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16967
16968# This is the shared library runtime path variable.
16969runpath_var=$runpath_var
16970
16971# This is the shared library path variable.
16972shlibpath_var=$shlibpath_var
16973
16974# Is shlibpath searched before the hard-coded library search path?
16975shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16976
16977# How to hardcode a shared library path into an executable.
16978hardcode_action=$hardcode_action_F77
16979
16980# Whether we should hardcode library paths into libraries.
16981hardcode_into_libs=$hardcode_into_libs
16982
16983# Flag to hardcode \$libdir into a binary during linking.
16984# This must work even if \$libdir does not exist.
16985hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16986
16987# If ld is used when linking, flag to hardcode \$libdir into
16988# a binary during linking. This must work even if \$libdir does
16989# not exist.
16990hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16991
16992# Whether we need a single -rpath flag with a separated argument.
16993hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16994
16995# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16996# resulting binary.
16997hardcode_direct=$hardcode_direct_F77
16998
16999# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17000# resulting binary.
17001hardcode_minus_L=$hardcode_minus_L_F77
17002
17003# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17004# the resulting binary.
17005hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17006
17007# Set to yes if building a shared library automatically hardcodes DIR into the library
17008# and all subsequent libraries and executables linked against it.
17009hardcode_automatic=$hardcode_automatic_F77
17010
17011# Variables whose values should be saved in libtool wrapper scripts and
17012# restored at relink time.
17013variables_saved_for_relink="$variables_saved_for_relink"
17014
17015# Whether libtool must link a program against all its dependency libraries.
17016link_all_deplibs=$link_all_deplibs_F77
17017
17018# Compile-time system search path for libraries
17019sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17020
17021# Run-time system search path for libraries
17022sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17023
17024# Fix the shell variable \$srcfile for the compiler.
17025fix_srcfile_path="$fix_srcfile_path_F77"
17026
17027# Set to yes if exported symbols are required.
17028always_export_symbols=$always_export_symbols_F77
17029
17030# The commands to list exported symbols.
17031export_symbols_cmds=$lt_export_symbols_cmds_F77
17032
17033# The commands to extract the exported symbol list from a shared archive.
17034extract_expsyms_cmds=$lt_extract_expsyms_cmds
17035
17036# Symbols that should not be listed in the preloaded symbols.
17037exclude_expsyms=$lt_exclude_expsyms_F77
17038
17039# Symbols that must always be exported.
17040include_expsyms=$lt_include_expsyms_F77
17041
17042# ### END LIBTOOL TAG CONFIG: $tagname
17043
17044__EOF__
17045
17046
17047else
17048 # If there is no Makefile yet, we rely on a make rule to execute
17049 # `config.status --recheck' to rerun these tests and create the
17050 # libtool script then.
17051 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17052 if test -f "$ltmain_in"; then
17053 test -f Makefile && make "$ltmain"
17054 fi
17055fi
17056
17057
17058ac_ext=c
17059ac_cpp='$CPP $CPPFLAGS'
17060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17062ac_compiler_gnu=$ac_cv_c_compiler_gnu
17063
17064CC="$lt_save_CC"
17065
17066 else
17067 tagname=""
17068 fi
17069 ;;
17070
17071 GCJ)
17072 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17073
17074
17075# Source file extension for Java test sources.
17076ac_ext=java
17077
17078# Object file extension for compiled Java test sources.
17079objext=o
17080objext_GCJ=$objext
17081
17082# Code to be used in simple compile tests
17083lt_simple_compile_test_code="class foo {}\n"
17084
17085# Code to be used in simple link tests
17086lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17087
17088# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17089
17090# If no C compiler was specified, use CC.
17091LTCC=${LTCC-"$CC"}
17092
17093# Allow CC to be a program name with arguments.
17094compiler=$CC
17095
17096
17097# save warnings/boilerplate of simple test code
17098ac_outfile=conftest.$ac_objext
17099printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17100eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17101_lt_compiler_boilerplate=`cat conftest.err`
17102$rm conftest*
17103
17104ac_outfile=conftest.$ac_objext
17105printf "$lt_simple_link_test_code" >conftest.$ac_ext
17106eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17107_lt_linker_boilerplate=`cat conftest.err`
17108$rm conftest*
17109
17110
17111# Allow CC to be a program name with arguments.
17112lt_save_CC="$CC"
17113CC=${GCJ-"gcj"}
17114compiler=$CC
17115compiler_GCJ=$CC
17116for cc_temp in $compiler""; do
17117 case $cc_temp in
17118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17120 \-*) ;;
17121 *) break;;
17122 esac
17123done
17124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17125
17126
17127# GCJ did not exist at the time GCC didn't implicitly link libc in.
17128archive_cmds_need_lc_GCJ=no
17129
17130old_archive_cmds_GCJ=$old_archive_cmds
17131
17132
17133lt_prog_compiler_no_builtin_flag_GCJ=
17134
17135if test "$GCC" = yes; then
17136 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17137
17138
17139{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17140echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17141if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144 lt_cv_prog_compiler_rtti_exceptions=no
17145 ac_outfile=conftest.$ac_objext
17146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17147 lt_compiler_flag="-fno-rtti -fno-exceptions"
17148 # Insert the option either (1) after the last *FLAGS variable, or
17149 # (2) before a word containing "conftest.", or (3) at the end.
17150 # Note that $ac_compile itself does not contain backslashes and begins
17151 # with a dollar sign (not a hyphen), so the echo should work correctly.
17152 # The option is referenced via a variable to avoid confusing sed.
17153 lt_compile=`echo "$ac_compile" | $SED \
17154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17156 -e 's:$: $lt_compiler_flag:'`
17157 (eval echo "\"\$as_me:17157: $lt_compile\"" >&5)
17158 (eval "$lt_compile" 2>conftest.err)
17159 ac_status=$?
17160 cat conftest.err >&5
17161 echo "$as_me:17161: \$? = $ac_status" >&5
17162 if (exit $ac_status) && test -s "$ac_outfile"; then
17163 # The compiler can only warn and ignore the option if not recognized
17164 # So say no if there are warnings other than the usual output.
17165 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17166 $SED '/^$/d' conftest.err >conftest.er2
17167 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17168 lt_cv_prog_compiler_rtti_exceptions=yes
17169 fi
17170 fi
17171 $rm conftest*
17172
17173fi
17174{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17175echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17176
17177if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17178 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17179else
17180 :
17181fi
17182
17183fi
17184
17185lt_prog_compiler_wl_GCJ=
17186lt_prog_compiler_pic_GCJ=
17187lt_prog_compiler_static_GCJ=
17188
17189{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17191
17192 if test "$GCC" = yes; then
17193 lt_prog_compiler_wl_GCJ='-Wl,'
17194 lt_prog_compiler_static_GCJ='-static'
17195
17196 case $host_os in
17197 aix*)
17198 # All AIX code is PIC.
17199 if test "$host_cpu" = ia64; then
17200 # AIX 5 now supports IA64 processor
17201 lt_prog_compiler_static_GCJ='-Bstatic'
17202 fi
17203 ;;
17204
17205 amigaos*)
17206 # FIXME: we need at least 68020 code to build shared libraries, but
17207 # adding the `-m68020' flag to GCC prevents building anything better,
17208 # like `-m68040'.
17209 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17210 ;;
17211
17212 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17213 # PIC is the default for these OSes.
17214 ;;
17215
17216 mingw* | pw32* | os2*)
17217 # This hack is so that the source file can tell whether it is being
17218 # built for inclusion in a dll (and should export symbols for example).
17219 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17220 ;;
17221
17222 darwin* | rhapsody*)
17223 # PIC is the default on this platform
17224 # Common symbols not allowed in MH_DYLIB files
17225 lt_prog_compiler_pic_GCJ='-fno-common'
17226 ;;
17227
17228 msdosdjgpp*)
17229 # Just because we use GCC doesn't mean we suddenly get shared libraries
17230 # on systems that don't support them.
17231 lt_prog_compiler_can_build_shared_GCJ=no
17232 enable_shared=no
17233 ;;
17234
17235 sysv4*MP*)
17236 if test -d /usr/nec; then
17237 lt_prog_compiler_pic_GCJ=-Kconform_pic
17238 fi
17239 ;;
17240
17241 hpux*)
17242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17243 # not for PA HP-UX.
17244 case $host_cpu in
17245 hppa*64*|ia64*)
17246 # +Z the default
17247 ;;
17248 *)
17249 lt_prog_compiler_pic_GCJ='-fPIC'
17250 ;;
17251 esac
17252 ;;
17253
17254 *)
17255 lt_prog_compiler_pic_GCJ='-fPIC'
17256 ;;
17257 esac
17258 else
17259 # PORTME Check for flag to pass linker flags through the system compiler.
17260 case $host_os in
17261 aix*)
17262 lt_prog_compiler_wl_GCJ='-Wl,'
17263 if test "$host_cpu" = ia64; then
17264 # AIX 5 now supports IA64 processor
17265 lt_prog_compiler_static_GCJ='-Bstatic'
17266 else
17267 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17268 fi
17269 ;;
17270 darwin*)
17271 # PIC is the default on this platform
17272 # Common symbols not allowed in MH_DYLIB files
17273 case $cc_basename in
17274 xlc*)
17275 lt_prog_compiler_pic_GCJ='-qnocommon'
17276 lt_prog_compiler_wl_GCJ='-Wl,'
17277 ;;
17278 esac
17279 ;;
17280
17281 mingw* | pw32* | os2*)
17282 # This hack is so that the source file can tell whether it is being
17283 # built for inclusion in a dll (and should export symbols for example).
17284 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17285 ;;
17286
17287 hpux9* | hpux10* | hpux11*)
17288 lt_prog_compiler_wl_GCJ='-Wl,'
17289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17290 # not for PA HP-UX.
17291 case $host_cpu in
17292 hppa*64*|ia64*)
17293 # +Z the default
17294 ;;
17295 *)
17296 lt_prog_compiler_pic_GCJ='+Z'
17297 ;;
17298 esac
17299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17300 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17301 ;;
17302
17303 irix5* | irix6* | nonstopux*)
17304 lt_prog_compiler_wl_GCJ='-Wl,'
17305 # PIC (with -KPIC) is the default.
17306 lt_prog_compiler_static_GCJ='-non_shared'
17307 ;;
17308
17309 newsos6)
17310 lt_prog_compiler_pic_GCJ='-KPIC'
17311 lt_prog_compiler_static_GCJ='-Bstatic'
17312 ;;
17313
17314 linux*)
17315 case $cc_basename in
17316 icc* | ecc*)
17317 lt_prog_compiler_wl_GCJ='-Wl,'
17318 lt_prog_compiler_pic_GCJ='-KPIC'
17319 lt_prog_compiler_static_GCJ='-static'
17320 ;;
17321 pgcc* | pgf77* | pgf90* | pgf95*)
17322 # Portland Group compilers (*not* the Pentium gcc compiler,
17323 # which looks to be a dead project)
17324 lt_prog_compiler_wl_GCJ='-Wl,'
17325 lt_prog_compiler_pic_GCJ='-fpic'
17326 lt_prog_compiler_static_GCJ='-Bstatic'
17327 ;;
17328 ccc*)
17329 lt_prog_compiler_wl_GCJ='-Wl,'
17330 # All Alpha code is PIC.
17331 lt_prog_compiler_static_GCJ='-non_shared'
17332 ;;
17333 esac
17334 ;;
17335
17336 osf3* | osf4* | osf5*)
17337 lt_prog_compiler_wl_GCJ='-Wl,'
17338 # All OSF/1 code is PIC.
17339 lt_prog_compiler_static_GCJ='-non_shared'
17340 ;;
17341
17342 sco3.2v5*)
17343 lt_prog_compiler_pic_GCJ='-Kpic'
17344 lt_prog_compiler_static_GCJ='-dn'
17345 ;;
17346
17347 solaris*)
17348 lt_prog_compiler_pic_GCJ='-KPIC'
17349 lt_prog_compiler_static_GCJ='-Bstatic'
17350 case $cc_basename in
17351 f77* | f90* | f95*)
17352 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17353 *)
17354 lt_prog_compiler_wl_GCJ='-Wl,';;
17355 esac
17356 ;;
17357
17358 sunos4*)
17359 lt_prog_compiler_wl_GCJ='-Qoption ld '
17360 lt_prog_compiler_pic_GCJ='-PIC'
17361 lt_prog_compiler_static_GCJ='-Bstatic'
17362 ;;
17363
17364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17365 lt_prog_compiler_wl_GCJ='-Wl,'
17366 lt_prog_compiler_pic_GCJ='-KPIC'
17367 lt_prog_compiler_static_GCJ='-Bstatic'
17368 ;;
17369
17370 sysv4*MP*)
17371 if test -d /usr/nec ;then
17372 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17373 lt_prog_compiler_static_GCJ='-Bstatic'
17374 fi
17375 ;;
17376
17377 unicos*)
17378 lt_prog_compiler_wl_GCJ='-Wl,'
17379 lt_prog_compiler_can_build_shared_GCJ=no
17380 ;;
17381
17382 uts4*)
17383 lt_prog_compiler_pic_GCJ='-pic'
17384 lt_prog_compiler_static_GCJ='-Bstatic'
17385 ;;
17386
17387 *)
17388 lt_prog_compiler_can_build_shared_GCJ=no
17389 ;;
17390 esac
17391 fi
17392
17393{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17394echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17395
17396#
17397# Check to make sure the PIC flag actually works.
17398#
17399if test -n "$lt_prog_compiler_pic_GCJ"; then
17400
17401{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17402echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17403if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405else
17406 lt_prog_compiler_pic_works_GCJ=no
17407 ac_outfile=conftest.$ac_objext
17408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17409 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17410 # Insert the option either (1) after the last *FLAGS variable, or
17411 # (2) before a word containing "conftest.", or (3) at the end.
17412 # Note that $ac_compile itself does not contain backslashes and begins
17413 # with a dollar sign (not a hyphen), so the echo should work correctly.
17414 # The option is referenced via a variable to avoid confusing sed.
17415 lt_compile=`echo "$ac_compile" | $SED \
17416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17418 -e 's:$: $lt_compiler_flag:'`
17419 (eval echo "\"\$as_me:17419: $lt_compile\"" >&5)
17420 (eval "$lt_compile" 2>conftest.err)
17421 ac_status=$?
17422 cat conftest.err >&5
17423 echo "$as_me:17423: \$? = $ac_status" >&5
17424 if (exit $ac_status) && test -s "$ac_outfile"; then
17425 # The compiler can only warn and ignore the option if not recognized
17426 # So say no if there are warnings other than the usual output.
17427 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17428 $SED '/^$/d' conftest.err >conftest.er2
17429 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17430 lt_prog_compiler_pic_works_GCJ=yes
17431 fi
17432 fi
17433 $rm conftest*
17434
17435fi
17436{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17437echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17438
17439if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17440 case $lt_prog_compiler_pic_GCJ in
17441 "" | " "*) ;;
17442 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17443 esac
17444else
17445 lt_prog_compiler_pic_GCJ=
17446 lt_prog_compiler_can_build_shared_GCJ=no
17447fi
17448
17449fi
17450case $host_os in
17451 # For platforms which do not support PIC, -DPIC is meaningless:
17452 *djgpp*)
17453 lt_prog_compiler_pic_GCJ=
17454 ;;
17455 *)
17456 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17457 ;;
17458esac
17459
17460{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17461echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17462if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464else
17465 lt_cv_prog_compiler_c_o_GCJ=no
17466 $rm -r conftest 2>/dev/null
17467 mkdir conftest
17468 cd conftest
17469 mkdir out
17470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17471
17472 lt_compiler_flag="-o out/conftest2.$ac_objext"
17473 # Insert the option either (1) after the last *FLAGS variable, or
17474 # (2) before a word containing "conftest.", or (3) at the end.
17475 # Note that $ac_compile itself does not contain backslashes and begins
17476 # with a dollar sign (not a hyphen), so the echo should work correctly.
17477 lt_compile=`echo "$ac_compile" | $SED \
17478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17480 -e 's:$: $lt_compiler_flag:'`
17481 (eval echo "\"\$as_me:17481: $lt_compile\"" >&5)
17482 (eval "$lt_compile" 2>out/conftest.err)
17483 ac_status=$?
17484 cat out/conftest.err >&5
17485 echo "$as_me:17485: \$? = $ac_status" >&5
17486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17487 then
17488 # The compiler can only warn and ignore the option if not recognized
17489 # So say no if there are warnings
17490 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17491 $SED '/^$/d' out/conftest.err >out/conftest.er2
17492 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17493 lt_cv_prog_compiler_c_o_GCJ=yes
17494 fi
17495 fi
17496 chmod u+w . 2>&5
17497 $rm conftest*
17498 # SGI C++ compiler will create directory out/ii_files/ for
17499 # template instantiation
17500 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17501 $rm out/* && rmdir out
17502 cd ..
17503 rmdir conftest
17504 $rm conftest*
17505
17506fi
17507{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17508echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17509
17510
17511hard_links="nottested"
17512if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17513 # do not overwrite the value of need_locks provided by the user
17514 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17515echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17516 hard_links=yes
17517 $rm conftest*
17518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17519 touch conftest.a
17520 ln conftest.a conftest.b 2>&5 || hard_links=no
17521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17522 { echo "$as_me:$LINENO: result: $hard_links" >&5
17523echo "${ECHO_T}$hard_links" >&6; }
17524 if test "$hard_links" = no; then
17525 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17526echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17527 need_locks=warn
17528 fi
17529else
17530 need_locks=no
17531fi
17532
17533{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17534echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17535
17536 runpath_var=
17537 allow_undefined_flag_GCJ=
17538 enable_shared_with_static_runtimes_GCJ=no
17539 archive_cmds_GCJ=
17540 archive_expsym_cmds_GCJ=
17541 old_archive_From_new_cmds_GCJ=
17542 old_archive_from_expsyms_cmds_GCJ=
17543 export_dynamic_flag_spec_GCJ=
17544 whole_archive_flag_spec_GCJ=
17545 thread_safe_flag_spec_GCJ=
17546 hardcode_libdir_flag_spec_GCJ=
17547 hardcode_libdir_flag_spec_ld_GCJ=
17548 hardcode_libdir_separator_GCJ=
17549 hardcode_direct_GCJ=no
17550 hardcode_minus_L_GCJ=no
17551 hardcode_shlibpath_var_GCJ=unsupported
17552 link_all_deplibs_GCJ=unknown
17553 hardcode_automatic_GCJ=no
17554 module_cmds_GCJ=
17555 module_expsym_cmds_GCJ=
17556 always_export_symbols_GCJ=no
17557 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17558 # include_expsyms should be a list of space-separated symbols to be *always*
17559 # included in the symbol list
17560 include_expsyms_GCJ=
17561 # exclude_expsyms can be an extended regexp of symbols to exclude
17562 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17563 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17564 # as well as any symbol that contains `d'.
17565 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17567 # platforms (ab)use it in PIC code, but their linkers get confused if
17568 # the symbol is explicitly referenced. Since portable code cannot
17569 # rely on this symbol name, it's probably fine to never include it in
17570 # preloaded symbol tables.
17571 extract_expsyms_cmds=
17572 # Just being paranoid about ensuring that cc_basename is set.
17573 for cc_temp in $compiler""; do
17574 case $cc_temp in
17575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17577 \-*) ;;
17578 *) break;;
17579 esac
17580done
17581cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17582
17583 case $host_os in
17584 cygwin* | mingw* | pw32*)
17585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17586 # When not using gcc, we currently assume that we are using
17587 # Microsoft Visual C++.
17588 if test "$GCC" != yes; then
17589 with_gnu_ld=no
17590 fi
17591 ;;
17592 openbsd*)
17593 with_gnu_ld=no
17594 ;;
17595 esac
17596
17597 ld_shlibs_GCJ=yes
17598 if test "$with_gnu_ld" = yes; then
17599 # If archive_cmds runs LD, not CC, wlarc should be empty
17600 wlarc='${wl}'
17601
17602 # Set some defaults for GNU ld with shared library support. These
17603 # are reset later if shared libraries are not supported. Putting them
17604 # here allows them to be overridden if necessary.
17605 runpath_var=LD_RUN_PATH
17606 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17607 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17608 # ancient GNU ld didn't support --whole-archive et. al.
17609 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17610 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17611 else
17612 whole_archive_flag_spec_GCJ=
17613 fi
17614 supports_anon_versioning=no
17615 case `$LD -v 2>/dev/null` in
17616 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17617 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17618 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17619 *\ 2.11.*) ;; # other 2.11 versions
17620 *) supports_anon_versioning=yes ;;
17621 esac
17622
17623 # See if GNU ld supports shared libraries.
17624 case $host_os in
17625 aix3* | aix4* | aix5*)
17626 # On AIX/PPC, the GNU linker is very broken
17627 if test "$host_cpu" != ia64; then
17628 ld_shlibs_GCJ=no
17629 cat <<EOF 1>&2
17630
17631*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17632*** to be unable to reliably create shared libraries on AIX.
17633*** Therefore, libtool is disabling shared libraries support. If you
17634*** really care for shared libraries, you may want to modify your PATH
17635*** so that a non-GNU linker is found, and then restart.
17636
17637EOF
17638 fi
17639 ;;
17640
17641 amigaos*)
17642 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)'
17643 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17644 hardcode_minus_L_GCJ=yes
17645
17646 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17647 # that the semantics of dynamic libraries on AmigaOS, at least up
17648 # to version 4, is to share data among multiple programs linked
17649 # with the same dynamic library. Since this doesn't match the
17650 # behavior of shared libraries on other platforms, we can't use
17651 # them.
17652 ld_shlibs_GCJ=no
17653 ;;
17654
17655 beos*)
17656 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17657 allow_undefined_flag_GCJ=unsupported
17658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17659 # support --undefined. This deserves some investigation. FIXME
17660 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17661 else
17662 ld_shlibs_GCJ=no
17663 fi
17664 ;;
17665
17666 cygwin* | mingw* | pw32*)
17667 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17668 # as there is no search path for DLLs.
17669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17670 allow_undefined_flag_GCJ=unsupported
17671 always_export_symbols_GCJ=no
17672 enable_shared_with_static_runtimes_GCJ=yes
17673 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17674
17675 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17676 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17677 # If the export-symbols file already is a .def file (1st line
17678 # is EXPORTS), use it as is; otherwise, prepend...
17679 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17680 cp $export_symbols $output_objdir/$soname.def;
17681 else
17682 echo EXPORTS > $output_objdir/$soname.def;
17683 cat $export_symbols >> $output_objdir/$soname.def;
17684 fi~
17685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17686 else
17687 ld_shlibs_GCJ=no
17688 fi
17689 ;;
17690
17691 linux*)
17692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17693 tmp_addflag=
17694 case $cc_basename,$host_cpu in
17695 pgcc*) # Portland Group C compiler
17696 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17697 tmp_addflag=' $pic_flag'
17698 ;;
17699 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17700 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17701 tmp_addflag=' $pic_flag -Mnomain' ;;
17702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17703 tmp_addflag=' -i_dynamic' ;;
17704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17705 tmp_addflag=' -i_dynamic -nofor_main' ;;
17706 ifc* | ifort*) # Intel Fortran compiler
17707 tmp_addflag=' -nofor_main' ;;
17708 esac
17709 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17710
17711 if test $supports_anon_versioning = yes; then
17712 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17714 $echo "local: *; };" >> $output_objdir/$libname.ver~
17715 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17716 fi
17717 else
17718 ld_shlibs_GCJ=no
17719 fi
17720 ;;
17721
17722 netbsd*)
17723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17724 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17725 wlarc=
17726 else
17727 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17728 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17729 fi
17730 ;;
17731
17732 solaris* | sysv5*)
17733 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17734 ld_shlibs_GCJ=no
17735 cat <<EOF 1>&2
17736
17737*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17738*** create shared libraries on Solaris systems. Therefore, libtool
17739*** is disabling shared libraries support. We urge you to upgrade GNU
17740*** binutils to release 2.9.1 or newer. Another option is to modify
17741*** your PATH or compiler configuration so that the native linker is
17742*** used, and then restart.
17743
17744EOF
17745 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17746 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17747 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17748 else
17749 ld_shlibs_GCJ=no
17750 fi
17751 ;;
17752
17753 sunos4*)
17754 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17755 wlarc=
17756 hardcode_direct_GCJ=yes
17757 hardcode_shlibpath_var_GCJ=no
17758 ;;
17759
17760 *)
17761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17762 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17763 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17764 else
17765 ld_shlibs_GCJ=no
17766 fi
17767 ;;
17768 esac
17769
17770 if test "$ld_shlibs_GCJ" = no; then
17771 runpath_var=
17772 hardcode_libdir_flag_spec_GCJ=
17773 export_dynamic_flag_spec_GCJ=
17774 whole_archive_flag_spec_GCJ=
17775 fi
17776 else
17777 # PORTME fill in a description of your system's linker (not GNU ld)
17778 case $host_os in
17779 aix3*)
17780 allow_undefined_flag_GCJ=unsupported
17781 always_export_symbols_GCJ=yes
17782 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'
17783 # Note: this linker hardcodes the directories in LIBPATH if there
17784 # are no directories specified by -L.
17785 hardcode_minus_L_GCJ=yes
17786 if test "$GCC" = yes && test -z "$link_static_flag"; then
17787 # Neither direct hardcoding nor static linking is supported with a
17788 # broken collect2.
17789 hardcode_direct_GCJ=unsupported
17790 fi
17791 ;;
17792
17793 aix4* | aix5*)
17794 if test "$host_cpu" = ia64; then
17795 # On IA64, the linker does run time linking by default, so we don't
17796 # have to do anything special.
17797 aix_use_runtimelinking=no
17798 exp_sym_flag='-Bexport'
17799 no_entry_flag=""
17800 else
17801 # If we're using GNU nm, then we don't want the "-C" option.
17802 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17803 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17804 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'
17805 else
17806 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'
17807 fi
17808 aix_use_runtimelinking=no
17809
17810 # Test if we are trying to use run time linking or normal
17811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17812 # need to do runtime linking.
17813 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17814 for ld_flag in $LDFLAGS; do
17815 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17816 aix_use_runtimelinking=yes
17817 break
17818 fi
17819 done
17820 esac
17821
17822 exp_sym_flag='-bexport'
17823 no_entry_flag='-bnoentry'
17824 fi
17825
17826 # When large executables or shared objects are built, AIX ld can
17827 # have problems creating the table of contents. If linking a library
17828 # or program results in "error TOC overflow" add -mminimal-toc to
17829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17831
17832 archive_cmds_GCJ=''
17833 hardcode_direct_GCJ=yes
17834 hardcode_libdir_separator_GCJ=':'
17835 link_all_deplibs_GCJ=yes
17836
17837 if test "$GCC" = yes; then
17838 case $host_os in aix4.[012]|aix4.[012].*)
17839 # We only want to do this on AIX 4.2 and lower, the check
17840 # below for broken collect2 doesn't work under 4.3+
17841 collect2name=`${CC} -print-prog-name=collect2`
17842 if test -f "$collect2name" && \
17843 strings "$collect2name" | grep resolve_lib_name >/dev/null
17844 then
17845 # We have reworked collect2
17846 hardcode_direct_GCJ=yes
17847 else
17848 # We have old collect2
17849 hardcode_direct_GCJ=unsupported
17850 # It fails to find uninstalled libraries when the uninstalled
17851 # path is not listed in the libpath. Setting hardcode_minus_L
17852 # to unsupported forces relinking
17853 hardcode_minus_L_GCJ=yes
17854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17855 hardcode_libdir_separator_GCJ=
17856 fi
17857 esac
17858 shared_flag='-shared'
17859 if test "$aix_use_runtimelinking" = yes; then
17860 shared_flag="$shared_flag "'${wl}-G'
17861 fi
17862 else
17863 # not using gcc
17864 if test "$host_cpu" = ia64; then
17865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17866 # chokes on -Wl,-G. The following line is correct:
17867 shared_flag='-G'
17868 else
17869 if test "$aix_use_runtimelinking" = yes; then
17870 shared_flag='${wl}-G'
17871 else
17872 shared_flag='${wl}-bM:SRE'
17873 fi
17874 fi
17875 fi
17876
17877 # It seems that -bexpall does not export symbols beginning with
17878 # underscore (_), so it is better to generate a list of symbols to export.
17879 always_export_symbols_GCJ=yes
17880 if test "$aix_use_runtimelinking" = yes; then
17881 # Warning - without using the other runtime loading flags (-brtl),
17882 # -berok will link without error, but may produce a broken library.
17883 allow_undefined_flag_GCJ='-berok'
17884 # Determine the default libpath from the value encoded in an empty executable.
17885 cat >conftest.$ac_ext <<_ACEOF
17886/* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
17891
17892int
17893main ()
17894{
17895
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext conftest$ac_exeext
17901if { (ac_try="$ac_link"
17902case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905esac
17906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_link") 2>conftest.er1
17908 ac_status=$?
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } && {
17914 test -z "$ac_c_werror_flag" ||
17915 test ! -s conftest.err
17916 } && test -s conftest$ac_exeext &&
17917 $as_test_x conftest$ac_exeext; then
17918
17919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17920}'`
17921# Check for a 64-bit object if we didn't find anything.
17922if 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; }
17923}'`; fi
17924else
17925 echo "$as_me: failed program was:" >&5
17926sed 's/^/| /' conftest.$ac_ext >&5
17927
17928
17929fi
17930
17931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17932 conftest$ac_exeext conftest.$ac_ext
17933if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17934
17935 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17936 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17937 else
17938 if test "$host_cpu" = ia64; then
17939 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17940 allow_undefined_flag_GCJ="-z nodefs"
17941 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"
17942 else
17943 # Determine the default libpath from the value encoded in an empty executable.
17944 cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950
17951int
17952main ()
17953{
17954
17955 ;
17956 return 0;
17957}
17958_ACEOF
17959rm -f conftest.$ac_objext conftest$ac_exeext
17960if { (ac_try="$ac_link"
17961case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964esac
17965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977
17978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17979}'`
17980# Check for a 64-bit object if we didn't find anything.
17981if 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; }
17982}'`; fi
17983else
17984 echo "$as_me: failed program was:" >&5
17985sed 's/^/| /' conftest.$ac_ext >&5
17986
17987
17988fi
17989
17990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17992if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17993
17994 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17995 # Warning - without using the other run time loading flags,
17996 # -berok will link without error, but may produce a broken library.
17997 no_undefined_flag_GCJ=' ${wl}-bernotok'
17998 allow_undefined_flag_GCJ=' ${wl}-berok'
17999 # -bexpall does not export symbols beginning with underscore (_)
18000 always_export_symbols_GCJ=yes
18001 # Exported symbols can be pulled into shared objects from archives
18002 whole_archive_flag_spec_GCJ=' '
18003 archive_cmds_need_lc_GCJ=yes
18004 # This is similar to how AIX traditionally builds its shared libraries.
18005 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'
18006 fi
18007 fi
18008 ;;
18009
18010 amigaos*)
18011 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)'
18012 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18013 hardcode_minus_L_GCJ=yes
18014 # see comment about different semantics on the GNU ld section
18015 ld_shlibs_GCJ=no
18016 ;;
18017
18018 bsdi[45]*)
18019 export_dynamic_flag_spec_GCJ=-rdynamic
18020 ;;
18021
18022 cygwin* | mingw* | pw32*)
18023 # When not using gcc, we currently assume that we are using
18024 # Microsoft Visual C++.
18025 # hardcode_libdir_flag_spec is actually meaningless, as there is
18026 # no search path for DLLs.
18027 hardcode_libdir_flag_spec_GCJ=' '
18028 allow_undefined_flag_GCJ=unsupported
18029 # Tell ltmain to make .lib files, not .a files.
18030 libext=lib
18031 # Tell ltmain to make .dll files, not .so files.
18032 shrext_cmds=".dll"
18033 # FIXME: Setting linknames here is a bad hack.
18034 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18035 # The linker will automatically build a .lib file if we build a DLL.
18036 old_archive_From_new_cmds_GCJ='true'
18037 # FIXME: Should let the user specify the lib program.
18038 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18039 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18040 enable_shared_with_static_runtimes_GCJ=yes
18041 ;;
18042
18043 darwin* | rhapsody*)
18044 case $host_os in
18045 rhapsody* | darwin1.[012])
18046 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18047 ;;
18048 *) # Darwin 1.3 on
18049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18050 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18051 else
18052 case ${MACOSX_DEPLOYMENT_TARGET} in
18053 10.[012])
18054 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18055 ;;
18056 10.*)
18057 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18058 ;;
18059 esac
18060 fi
18061 ;;
18062 esac
18063 archive_cmds_need_lc_GCJ=no
18064 hardcode_direct_GCJ=no
18065 hardcode_automatic_GCJ=yes
18066 hardcode_shlibpath_var_GCJ=unsupported
18067 whole_archive_flag_spec_GCJ=''
18068 link_all_deplibs_GCJ=yes
18069 if test "$GCC" = yes ; then
18070 output_verbose_link_cmd='echo'
18071 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18072 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18073 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18074 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18075 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18076 else
18077 case $cc_basename in
18078 xlc*)
18079 output_verbose_link_cmd='echo'
18080 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18081 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18083 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18084 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18085 ;;
18086 *)
18087 ld_shlibs_GCJ=no
18088 ;;
18089 esac
18090 fi
18091 ;;
18092
18093 dgux*)
18094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18096 hardcode_shlibpath_var_GCJ=no
18097 ;;
18098
18099 freebsd1*)
18100 ld_shlibs_GCJ=no
18101 ;;
18102
18103 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18104 # support. Future versions do this automatically, but an explicit c++rt0.o
18105 # does not break anything, and helps significantly (at the cost of a little
18106 # extra space).
18107 freebsd2.2*)
18108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18109 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18110 hardcode_direct_GCJ=yes
18111 hardcode_shlibpath_var_GCJ=no
18112 ;;
18113
18114 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18115 freebsd2*)
18116 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18117 hardcode_direct_GCJ=yes
18118 hardcode_minus_L_GCJ=yes
18119 hardcode_shlibpath_var_GCJ=no
18120 ;;
18121
18122 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18123 freebsd* | kfreebsd*-gnu | dragonfly*)
18124 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18125 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18126 hardcode_direct_GCJ=yes
18127 hardcode_shlibpath_var_GCJ=no
18128 ;;
18129
18130 hpux9*)
18131 if test "$GCC" = yes; then
18132 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'
18133 else
18134 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'
18135 fi
18136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18137 hardcode_libdir_separator_GCJ=:
18138 hardcode_direct_GCJ=yes
18139
18140 # hardcode_minus_L: Not really in the search PATH,
18141 # but as the default location of the library.
18142 hardcode_minus_L_GCJ=yes
18143 export_dynamic_flag_spec_GCJ='${wl}-E'
18144 ;;
18145
18146 hpux10* | hpux11*)
18147 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18148 case $host_cpu in
18149 hppa*64*|ia64*)
18150 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18151 ;;
18152 *)
18153 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18154 ;;
18155 esac
18156 else
18157 case $host_cpu in
18158 hppa*64*|ia64*)
18159 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18160 ;;
18161 *)
18162 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18163 ;;
18164 esac
18165 fi
18166 if test "$with_gnu_ld" = no; then
18167 case $host_cpu in
18168 hppa*64*)
18169 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18170 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18171 hardcode_libdir_separator_GCJ=:
18172 hardcode_direct_GCJ=no
18173 hardcode_shlibpath_var_GCJ=no
18174 ;;
18175 ia64*)
18176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18177 hardcode_direct_GCJ=no
18178 hardcode_shlibpath_var_GCJ=no
18179
18180 # hardcode_minus_L: Not really in the search PATH,
18181 # but as the default location of the library.
18182 hardcode_minus_L_GCJ=yes
18183 ;;
18184 *)
18185 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18186 hardcode_libdir_separator_GCJ=:
18187 hardcode_direct_GCJ=yes
18188 export_dynamic_flag_spec_GCJ='${wl}-E'
18189
18190 # hardcode_minus_L: Not really in the search PATH,
18191 # but as the default location of the library.
18192 hardcode_minus_L_GCJ=yes
18193 ;;
18194 esac
18195 fi
18196 ;;
18197
18198 irix5* | irix6* | nonstopux*)
18199 if test "$GCC" = yes; then
18200 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'
18201 else
18202 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'
18203 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18204 fi
18205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18206 hardcode_libdir_separator_GCJ=:
18207 link_all_deplibs_GCJ=yes
18208 ;;
18209
18210 netbsd*)
18211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18212 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18213 else
18214 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18215 fi
18216 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18217 hardcode_direct_GCJ=yes
18218 hardcode_shlibpath_var_GCJ=no
18219 ;;
18220
18221 newsos6)
18222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18223 hardcode_direct_GCJ=yes
18224 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18225 hardcode_libdir_separator_GCJ=:
18226 hardcode_shlibpath_var_GCJ=no
18227 ;;
18228
18229 openbsd*)
18230 hardcode_direct_GCJ=yes
18231 hardcode_shlibpath_var_GCJ=no
18232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18233 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18234 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18236 export_dynamic_flag_spec_GCJ='${wl}-E'
18237 else
18238 case $host_os in
18239 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18240 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18241 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18242 ;;
18243 *)
18244 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18245 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18246 ;;
18247 esac
18248 fi
18249 ;;
18250
18251 os2*)
18252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18253 hardcode_minus_L_GCJ=yes
18254 allow_undefined_flag_GCJ=unsupported
18255 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'
18256 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18257 ;;
18258
18259 osf3*)
18260 if test "$GCC" = yes; then
18261 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18262 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'
18263 else
18264 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18265 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'
18266 fi
18267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18268 hardcode_libdir_separator_GCJ=:
18269 ;;
18270
18271 osf4* | osf5*) # as osf3* with the addition of -msym flag
18272 if test "$GCC" = yes; then
18273 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18274 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'
18275 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18276 else
18277 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18278 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'
18279 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18280 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18281
18282 # Both c and cxx compiler support -rpath directly
18283 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18284 fi
18285 hardcode_libdir_separator_GCJ=:
18286 ;;
18287
18288 sco3.2v5*)
18289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_shlibpath_var_GCJ=no
18291 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18292 runpath_var=LD_RUN_PATH
18293 hardcode_runpath_var=yes
18294 ;;
18295
18296 solaris*)
18297 no_undefined_flag_GCJ=' -z text'
18298 if test "$GCC" = yes; then
18299 wlarc='${wl}'
18300 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18302 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18303 else
18304 wlarc=''
18305 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18308 fi
18309 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18310 hardcode_shlibpath_var_GCJ=no
18311 case $host_os in
18312 solaris2.[0-5] | solaris2.[0-5].*) ;;
18313 *)
18314 # The compiler driver will combine linker options so we
18315 # cannot just pass the convience library names through
18316 # without $wl, iff we do not link with $LD.
18317 # Luckily, gcc supports the same syntax we need for Sun Studio.
18318 # Supported since Solaris 2.6 (maybe 2.5.1?)
18319 case $wlarc in
18320 '')
18321 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18322 *)
18323 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18324 esac ;;
18325 esac
18326 link_all_deplibs_GCJ=yes
18327 ;;
18328
18329 sunos4*)
18330 if test "x$host_vendor" = xsequent; then
18331 # Use $CC to link under sequent, because it throws in some extra .o
18332 # files that make .init and .fini sections work.
18333 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18334 else
18335 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18336 fi
18337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18338 hardcode_direct_GCJ=yes
18339 hardcode_minus_L_GCJ=yes
18340 hardcode_shlibpath_var_GCJ=no
18341 ;;
18342
18343 sysv4)
18344 case $host_vendor in
18345 sni)
18346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18347 hardcode_direct_GCJ=yes # is this really true???
18348 ;;
18349 siemens)
18350 ## LD is ld it makes a PLAMLIB
18351 ## CC just makes a GrossModule.
18352 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18353 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18354 hardcode_direct_GCJ=no
18355 ;;
18356 motorola)
18357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18359 ;;
18360 esac
18361 runpath_var='LD_RUN_PATH'
18362 hardcode_shlibpath_var_GCJ=no
18363 ;;
18364
18365 sysv4.3*)
18366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18367 hardcode_shlibpath_var_GCJ=no
18368 export_dynamic_flag_spec_GCJ='-Bexport'
18369 ;;
18370
18371 sysv4*MP*)
18372 if test -d /usr/nec; then
18373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374 hardcode_shlibpath_var_GCJ=no
18375 runpath_var=LD_RUN_PATH
18376 hardcode_runpath_var=yes
18377 ld_shlibs_GCJ=yes
18378 fi
18379 ;;
18380
18381 sysv4.2uw2*)
18382 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18383 hardcode_direct_GCJ=yes
18384 hardcode_minus_L_GCJ=no
18385 hardcode_shlibpath_var_GCJ=no
18386 hardcode_runpath_var=yes
18387 runpath_var=LD_RUN_PATH
18388 ;;
18389
18390 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18391 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18392 if test "$GCC" = yes; then
18393 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18394 else
18395 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18396 fi
18397 runpath_var='LD_RUN_PATH'
18398 hardcode_shlibpath_var_GCJ=no
18399 ;;
18400
18401 sysv5*)
18402 no_undefined_flag_GCJ=' -z text'
18403 # $CC -shared without GNU ld will not create a library from C++
18404 # object files and a static libstdc++, better avoid it by now
18405 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18406 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18407 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18408 hardcode_libdir_flag_spec_GCJ=
18409 hardcode_shlibpath_var_GCJ=no
18410 runpath_var='LD_RUN_PATH'
18411 ;;
18412
18413 uts4*)
18414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18416 hardcode_shlibpath_var_GCJ=no
18417 ;;
18418
18419 *)
18420 ld_shlibs_GCJ=no
18421 ;;
18422 esac
18423 fi
18424
18425{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18426echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18427test "$ld_shlibs_GCJ" = no && can_build_shared=no
18428
18429variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18430if test "$GCC" = yes; then
18431 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18432fi
18433
18434#
18435# Do we need to explicitly link libc?
18436#
18437case "x$archive_cmds_need_lc_GCJ" in
18438x|xyes)
18439 # Assume -lc should be added
18440 archive_cmds_need_lc_GCJ=yes
18441
18442 if test "$enable_shared" = yes && test "$GCC" = yes; then
18443 case $archive_cmds_GCJ in
18444 *'~'*)
18445 # FIXME: we may have to deal with multi-command sequences.
18446 ;;
18447 '$CC '*)
18448 # Test whether the compiler implicitly links with -lc since on some
18449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18450 # to ld, don't add -lc before -lgcc.
18451 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18452echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18453 $rm conftest*
18454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18455
18456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18457 (eval $ac_compile) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } 2>conftest.err; then
18461 soname=conftest
18462 lib=conftest
18463 libobjs=conftest.$ac_objext
18464 deplibs=
18465 wl=$lt_prog_compiler_wl_GCJ
18466 compiler_flags=-v
18467 linker_flags=-v
18468 verstring=
18469 output_objdir=.
18470 libname=conftest
18471 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18472 allow_undefined_flag_GCJ=
18473 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18474 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }
18478 then
18479 archive_cmds_need_lc_GCJ=no
18480 else
18481 archive_cmds_need_lc_GCJ=yes
18482 fi
18483 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18484 else
18485 cat conftest.err 1>&5
18486 fi
18487 $rm conftest*
18488 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18489echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18490 ;;
18491 esac
18492 fi
18493 ;;
18494esac
18495
18496{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18497echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18498library_names_spec=
18499libname_spec='lib$name'
18500soname_spec=
18501shrext_cmds=".so"
18502postinstall_cmds=
18503postuninstall_cmds=
18504finish_cmds=
18505finish_eval=
18506shlibpath_var=
18507shlibpath_overrides_runpath=unknown
18508version_type=none
18509dynamic_linker="$host_os ld.so"
18510sys_lib_dlsearch_path_spec="/lib /usr/lib"
18511if test "$GCC" = yes; then
18512 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18513 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18514 # if the path contains ";" then we assume it to be the separator
18515 # otherwise default to the standard path separator (i.e. ":") - it is
18516 # assumed that no part of a normal pathname contains ";" but that should
18517 # okay in the real world where ";" in dirpaths is itself problematic.
18518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18519 else
18520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18521 fi
18522else
18523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18524fi
18525need_lib_prefix=unknown
18526hardcode_into_libs=no
18527
18528# when you set need_version to no, make sure it does not cause -set_version
18529# flags to be left without arguments
18530need_version=unknown
18531
18532case $host_os in
18533aix3*)
18534 version_type=linux
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18536 shlibpath_var=LIBPATH
18537
18538 # AIX 3 has no versioning support, so we append a major version to the name.
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 ;;
18541
18542aix4* | aix5*)
18543 version_type=linux
18544 need_lib_prefix=no
18545 need_version=no
18546 hardcode_into_libs=yes
18547 if test "$host_cpu" = ia64; then
18548 # AIX 5 supports IA64
18549 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 else
18552 # With GCC up to 2.95.x, collect2 would create an import file
18553 # for dependence libraries. The import file would start with
18554 # the line `#! .'. This would cause the generated library to
18555 # depend on `.', always an invalid library. This was fixed in
18556 # development snapshots of GCC prior to 3.0.
18557 case $host_os in
18558 aix4 | aix4.[01] | aix4.[01].*)
18559 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18560 echo ' yes '
18561 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18562 :
18563 else
18564 can_build_shared=no
18565 fi
18566 ;;
18567 esac
18568 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18569 # soname into executable. Probably we can add versioning support to
18570 # collect2, so additional links can be useful in future.
18571 if test "$aix_use_runtimelinking" = yes; then
18572 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18573 # instead of lib<name>.a to let people know that these are not
18574 # typical AIX shared libraries.
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 else
18577 # We preserve .a as extension for shared libraries through AIX4.2
18578 # and later when we are not doing run time linking.
18579 library_names_spec='${libname}${release}.a $libname.a'
18580 soname_spec='${libname}${release}${shared_ext}$major'
18581 fi
18582 shlibpath_var=LIBPATH
18583 fi
18584 ;;
18585
18586amigaos*)
18587 library_names_spec='$libname.ixlibrary $libname.a'
18588 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18589 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'
18590 ;;
18591
18592beos*)
18593 library_names_spec='${libname}${shared_ext}'
18594 dynamic_linker="$host_os ld.so"
18595 shlibpath_var=LIBRARY_PATH
18596 ;;
18597
18598bsdi[45]*)
18599 version_type=linux
18600 need_version=no
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18604 shlibpath_var=LD_LIBRARY_PATH
18605 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18606 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18607 # the default ld.so.conf also contains /usr/contrib/lib and
18608 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18609 # libtool to hard-code these into programs
18610 ;;
18611
18612cygwin* | mingw* | pw32*)
18613 version_type=windows
18614 shrext_cmds=".dll"
18615 need_version=no
18616 need_lib_prefix=no
18617
18618 case $GCC,$host_os in
18619 yes,cygwin* | yes,mingw* | yes,pw32*)
18620 library_names_spec='$libname.dll.a'
18621 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18622 postinstall_cmds='base_file=`basename \${file}`~
18623 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18624 dldir=$destdir/`dirname \$dlpath`~
18625 test -d \$dldir || mkdir -p \$dldir~
18626 $install_prog $dir/$dlname \$dldir/$dlname~
18627 chmod a+x \$dldir/$dlname'
18628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18629 dlpath=$dir/\$dldll~
18630 $rm \$dlpath'
18631 shlibpath_overrides_runpath=yes
18632
18633 case $host_os in
18634 cygwin*)
18635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18637 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18638 ;;
18639 mingw*)
18640 # MinGW DLLs use traditional 'lib' prefix
18641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18643 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18644 # It is most probably a Windows format PATH printed by
18645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18646 # path with ; separators, and with drive letters. We can handle the
18647 # drive letters (cygwin fileutils understands them), so leave them,
18648 # especially as we might pass files found there to a mingw objdump,
18649 # which wouldn't understand a cygwinified path. Ahh.
18650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18651 else
18652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18653 fi
18654 ;;
18655 pw32*)
18656 # pw32 DLLs use 'pw' prefix rather than 'lib'
18657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18658 ;;
18659 esac
18660 ;;
18661
18662 *)
18663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18664 ;;
18665 esac
18666 dynamic_linker='Win32 ld.exe'
18667 # FIXME: first we should search . and the directory the executable is in
18668 shlibpath_var=PATH
18669 ;;
18670
18671darwin* | rhapsody*)
18672 dynamic_linker="$host_os dyld"
18673 version_type=darwin
18674 need_lib_prefix=no
18675 need_version=no
18676 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18677 soname_spec='${libname}${release}${major}$shared_ext'
18678 shlibpath_overrides_runpath=yes
18679 shlibpath_var=DYLD_LIBRARY_PATH
18680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18681 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18682 if test "$GCC" = yes; then
18683 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18684 else
18685 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18686 fi
18687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18688 ;;
18689
18690dgux*)
18691 version_type=linux
18692 need_lib_prefix=no
18693 need_version=no
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 shlibpath_var=LD_LIBRARY_PATH
18697 ;;
18698
18699freebsd1*)
18700 dynamic_linker=no
18701 ;;
18702
18703kfreebsd*-gnu)
18704 version_type=linux
18705 need_lib_prefix=no
18706 need_version=no
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=no
18711 hardcode_into_libs=yes
18712 dynamic_linker='GNU ld.so'
18713 ;;
18714
18715freebsd* | dragonfly*)
18716 # DragonFly does not have aout. When/if they implement a new
18717 # versioning mechanism, adjust this.
18718 if test -x /usr/bin/objformat; then
18719 objformat=`/usr/bin/objformat`
18720 else
18721 case $host_os in
18722 freebsd[123]*) objformat=aout ;;
18723 *) objformat=elf ;;
18724 esac
18725 fi
18726 version_type=freebsd-$objformat
18727 case $version_type in
18728 freebsd-elf*)
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18730 need_version=no
18731 need_lib_prefix=no
18732 ;;
18733 freebsd-*)
18734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18735 need_version=yes
18736 ;;
18737 esac
18738 shlibpath_var=LD_LIBRARY_PATH
18739 case $host_os in
18740 freebsd2*)
18741 shlibpath_overrides_runpath=yes
18742 ;;
18743 freebsd3.[01]* | freebsdelf3.[01]*)
18744 shlibpath_overrides_runpath=yes
18745 hardcode_into_libs=yes
18746 ;;
18747 *) # from 3.2 on
18748 shlibpath_overrides_runpath=no
18749 hardcode_into_libs=yes
18750 ;;
18751 esac
18752 ;;
18753
18754gnu*)
18755 version_type=linux
18756 need_lib_prefix=no
18757 need_version=no
18758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18759 soname_spec='${libname}${release}${shared_ext}$major'
18760 shlibpath_var=LD_LIBRARY_PATH
18761 hardcode_into_libs=yes
18762 ;;
18763
18764hpux9* | hpux10* | hpux11*)
18765 # Give a soname corresponding to the major version so that dld.sl refuses to
18766 # link against other versions.
18767 version_type=sunos
18768 need_lib_prefix=no
18769 need_version=no
18770 case $host_cpu in
18771 ia64*)
18772 shrext_cmds='.so'
18773 hardcode_into_libs=yes
18774 dynamic_linker="$host_os dld.so"
18775 shlibpath_var=LD_LIBRARY_PATH
18776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 if test "X$HPUX_IA64_MODE" = X32; then
18780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18781 else
18782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18783 fi
18784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18785 ;;
18786 hppa*64*)
18787 shrext_cmds='.sl'
18788 hardcode_into_libs=yes
18789 dynamic_linker="$host_os dld.sl"
18790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18796 ;;
18797 *)
18798 shrext_cmds='.sl'
18799 dynamic_linker="$host_os dld.sl"
18800 shlibpath_var=SHLIB_PATH
18801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803 soname_spec='${libname}${release}${shared_ext}$major'
18804 ;;
18805 esac
18806 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18807 postinstall_cmds='chmod 555 $lib'
18808 ;;
18809
18810irix5* | irix6* | nonstopux*)
18811 case $host_os in
18812 nonstopux*) version_type=nonstopux ;;
18813 *)
18814 if test "$lt_cv_prog_gnu_ld" = yes; then
18815 version_type=linux
18816 else
18817 version_type=irix
18818 fi ;;
18819 esac
18820 need_lib_prefix=no
18821 need_version=no
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18824 case $host_os in
18825 irix5* | nonstopux*)
18826 libsuff= shlibsuff=
18827 ;;
18828 *)
18829 case $LD in # libtool.m4 will add one of these switches to LD
18830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18831 libsuff= shlibsuff= libmagic=32-bit;;
18832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18833 libsuff=32 shlibsuff=N32 libmagic=N32;;
18834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18836 *) libsuff= shlibsuff= libmagic=never-match;;
18837 esac
18838 ;;
18839 esac
18840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18841 shlibpath_overrides_runpath=no
18842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18844 hardcode_into_libs=yes
18845 ;;
18846
18847# No shared lib support for Linux oldld, aout, or coff.
18848linux*oldld* | linux*aout* | linux*coff*)
18849 dynamic_linker=no
18850 ;;
18851
18852# This must be Linux ELF.
18853linux*)
18854 version_type=linux
18855 need_lib_prefix=no
18856 need_version=no
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18858 soname_spec='${libname}${release}${shared_ext}$major'
18859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18860 shlibpath_var=LD_LIBRARY_PATH
18861 shlibpath_overrides_runpath=no
18862 # This implies no fast_install, which is unacceptable.
18863 # Some rework will be needed to allow for fast_install
18864 # before this can be enabled.
18865 hardcode_into_libs=yes
18866
18867 # Append ld.so.conf contents to the search path
18868 if test -f /etc/ld.so.conf; then
18869 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18871 fi
18872
18873 # We used to test for /lib/ld.so.1 and disable shared libraries on
18874 # powerpc, because MkLinux only supported shared libraries with the
18875 # GNU dynamic linker. Since this was broken with cross compilers,
18876 # most powerpc-linux boxes support dynamic linking these days and
18877 # people can always --disable-shared, the test was removed, and we
18878 # assume the GNU/Linux dynamic linker is in use.
18879 dynamic_linker='GNU/Linux ld.so'
18880 ;;
18881
18882knetbsd*-gnu)
18883 version_type=linux
18884 need_lib_prefix=no
18885 need_version=no
18886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18887 soname_spec='${libname}${release}${shared_ext}$major'
18888 shlibpath_var=LD_LIBRARY_PATH
18889 shlibpath_overrides_runpath=no
18890 hardcode_into_libs=yes
18891 dynamic_linker='GNU ld.so'
18892 ;;
18893
18894netbsd*)
18895 version_type=sunos
18896 need_lib_prefix=no
18897 need_version=no
18898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18901 dynamic_linker='NetBSD (a.out) ld.so'
18902 else
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 dynamic_linker='NetBSD ld.elf_so'
18906 fi
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=yes
18909 hardcode_into_libs=yes
18910 ;;
18911
18912newsos6)
18913 version_type=linux
18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 shlibpath_var=LD_LIBRARY_PATH
18916 shlibpath_overrides_runpath=yes
18917 ;;
18918
18919nto-qnx*)
18920 version_type=linux
18921 need_lib_prefix=no
18922 need_version=no
18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924 soname_spec='${libname}${release}${shared_ext}$major'
18925 shlibpath_var=LD_LIBRARY_PATH
18926 shlibpath_overrides_runpath=yes
18927 ;;
18928
18929openbsd*)
18930 version_type=sunos
18931 need_lib_prefix=no
18932 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18933 case $host_os in
18934 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18935 *) need_version=no ;;
18936 esac
18937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18939 shlibpath_var=LD_LIBRARY_PATH
18940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18941 case $host_os in
18942 openbsd2.[89] | openbsd2.[89].*)
18943 shlibpath_overrides_runpath=no
18944 ;;
18945 *)
18946 shlibpath_overrides_runpath=yes
18947 ;;
18948 esac
18949 else
18950 shlibpath_overrides_runpath=yes
18951 fi
18952 ;;
18953
18954os2*)
18955 libname_spec='$name'
18956 shrext_cmds=".dll"
18957 need_lib_prefix=no
18958 library_names_spec='$libname${shared_ext} $libname.a'
18959 dynamic_linker='OS/2 ld.exe'
18960 shlibpath_var=LIBPATH
18961 ;;
18962
18963osf3* | osf4* | osf5*)
18964 version_type=osf
18965 need_lib_prefix=no
18966 need_version=no
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18971 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18972 ;;
18973
18974sco3.2v5*)
18975 version_type=osf
18976 soname_spec='${libname}${release}${shared_ext}$major'
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 ;;
18980
18981solaris*)
18982 version_type=linux
18983 need_lib_prefix=no
18984 need_version=no
18985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18986 soname_spec='${libname}${release}${shared_ext}$major'
18987 shlibpath_var=LD_LIBRARY_PATH
18988 shlibpath_overrides_runpath=yes
18989 hardcode_into_libs=yes
18990 # ldd complains unless libraries are executable
18991 postinstall_cmds='chmod +x $lib'
18992 ;;
18993
18994sunos4*)
18995 version_type=sunos
18996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18998 shlibpath_var=LD_LIBRARY_PATH
18999 shlibpath_overrides_runpath=yes
19000 if test "$with_gnu_ld" = yes; then
19001 need_lib_prefix=no
19002 fi
19003 need_version=yes
19004 ;;
19005
19006sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19007 version_type=linux
19008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19009 soname_spec='${libname}${release}${shared_ext}$major'
19010 shlibpath_var=LD_LIBRARY_PATH
19011 case $host_vendor in
19012 sni)
19013 shlibpath_overrides_runpath=no
19014 need_lib_prefix=no
19015 export_dynamic_flag_spec='${wl}-Blargedynsym'
19016 runpath_var=LD_RUN_PATH
19017 ;;
19018 siemens)
19019 need_lib_prefix=no
19020 ;;
19021 motorola)
19022 need_lib_prefix=no
19023 need_version=no
19024 shlibpath_overrides_runpath=no
19025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19026 ;;
19027 esac
19028 ;;
19029
19030sysv4*MP*)
19031 if test -d /usr/nec ;then
19032 version_type=linux
19033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19034 soname_spec='$libname${shared_ext}.$major'
19035 shlibpath_var=LD_LIBRARY_PATH
19036 fi
19037 ;;
19038
19039uts4*)
19040 version_type=linux
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042 soname_spec='${libname}${release}${shared_ext}$major'
19043 shlibpath_var=LD_LIBRARY_PATH
19044 ;;
19045
19046*)
19047 dynamic_linker=no
19048 ;;
19049esac
19050{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19051echo "${ECHO_T}$dynamic_linker" >&6; }
19052test "$dynamic_linker" = no && can_build_shared=no
19053
19054{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19055echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19056hardcode_action_GCJ=
19057if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19058 test -n "$runpath_var_GCJ" || \
19059 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19060
19061 # We can hardcode non-existant directories.
19062 if test "$hardcode_direct_GCJ" != no &&
19063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19064 # have to relink, otherwise we might link with an installed library
19065 # when we should be linking with a yet-to-be-installed one
19066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19067 test "$hardcode_minus_L_GCJ" != no; then
19068 # Linking always hardcodes the temporary library directory.
19069 hardcode_action_GCJ=relink
19070 else
19071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19072 hardcode_action_GCJ=immediate
19073 fi
19074else
19075 # We cannot hardcode anything, or else we can only hardcode existing
19076 # directories.
19077 hardcode_action_GCJ=unsupported
19078fi
19079{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19080echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19081
19082if test "$hardcode_action_GCJ" = relink; then
19083 # Fast installation is not supported
19084 enable_fast_install=no
19085elif test "$shlibpath_overrides_runpath" = yes ||
19086 test "$enable_shared" = no; then
19087 # Fast installation is not necessary
19088 enable_fast_install=needless
19089fi
19090
19091striplib=
19092old_striplib=
19093{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19094echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
19095if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19096 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19097 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19098 { echo "$as_me:$LINENO: result: yes" >&5
19099echo "${ECHO_T}yes" >&6; }
19100else
19101# FIXME - insert some real tests, host_os isn't really good enough
19102 case $host_os in
19103 darwin*)
19104 if test -n "$STRIP" ; then
19105 striplib="$STRIP -x"
19106 { echo "$as_me:$LINENO: result: yes" >&5
19107echo "${ECHO_T}yes" >&6; }
19108 else
19109 { echo "$as_me:$LINENO: result: no" >&5
19110echo "${ECHO_T}no" >&6; }
19111fi
19112 ;;
19113 *)
19114 { echo "$as_me:$LINENO: result: no" >&5
19115echo "${ECHO_T}no" >&6; }
19116 ;;
19117 esac
19118fi
19119
19120if test "x$enable_dlopen" != xyes; then
19121 enable_dlopen=unknown
19122 enable_dlopen_self=unknown
19123 enable_dlopen_self_static=unknown
19124else
19125 lt_cv_dlopen=no
19126 lt_cv_dlopen_libs=
19127
19128 case $host_os in
19129 beos*)
19130 lt_cv_dlopen="load_add_on"
19131 lt_cv_dlopen_libs=
19132 lt_cv_dlopen_self=yes
19133 ;;
19134
19135 mingw* | pw32*)
19136 lt_cv_dlopen="LoadLibrary"
19137 lt_cv_dlopen_libs=
19138 ;;
19139
19140 cygwin*)
19141 lt_cv_dlopen="dlopen"
19142 lt_cv_dlopen_libs=
19143 ;;
19144
19145 darwin*)
19146 # if libdl is installed we need to link against it
19147 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19148echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19149if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19151else
19152 ac_check_lib_save_LIBS=$LIBS
19153LIBS="-ldl $LIBS"
19154cat >conftest.$ac_ext <<_ACEOF
19155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
19160
19161/* Override any GCC internal prototype to avoid an error.
19162 Use char because int might match the return type of a GCC
19163 builtin and then its argument prototype would still apply. */
19164#ifdef __cplusplus
19165extern "C"
19166#endif
19167char dlopen ();
19168int
19169main ()
19170{
19171return dlopen ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (ac_try="$ac_link"
19178case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_link") 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest$ac_exeext &&
19193 $as_test_x conftest$ac_exeext; then
19194 ac_cv_lib_dl_dlopen=yes
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 ac_cv_lib_dl_dlopen=no
19200fi
19201
19202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19203 conftest$ac_exeext conftest.$ac_ext
19204LIBS=$ac_check_lib_save_LIBS
19205fi
19206{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19207echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19208if test $ac_cv_lib_dl_dlopen = yes; then
19209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19210else
19211
19212 lt_cv_dlopen="dyld"
19213 lt_cv_dlopen_libs=
19214 lt_cv_dlopen_self=yes
19215
19216fi
19217
19218 ;;
19219
19220 *)
19221 { echo "$as_me:$LINENO: checking for shl_load" >&5
19222echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
19223if test "${ac_cv_func_shl_load+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225else
19226 cat >conftest.$ac_ext <<_ACEOF
19227/* confdefs.h. */
19228_ACEOF
19229cat confdefs.h >>conftest.$ac_ext
19230cat >>conftest.$ac_ext <<_ACEOF
19231/* end confdefs.h. */
19232/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19234#define shl_load innocuous_shl_load
19235
19236/* System header to define __stub macros and hopefully few prototypes,
19237 which can conflict with char shl_load (); below.
19238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19239 <limits.h> exists even on freestanding compilers. */
19240
19241#ifdef __STDC__
19242# include <limits.h>
19243#else
19244# include <assert.h>
19245#endif
19246
19247#undef shl_load
19248
19249/* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19252#ifdef __cplusplus
19253extern "C"
19254#endif
19255char shl_load ();
19256/* The GNU C library defines this for functions which it implements
19257 to always fail with ENOSYS. Some functions are actually named
19258 something starting with __ and the normal name is an alias. */
19259#if defined __stub_shl_load || defined __stub___shl_load
19260choke me
19261#endif
19262
19263int
19264main ()
19265{
19266return shl_load ();
19267 ;
19268 return 0;
19269}
19270_ACEOF
19271rm -f conftest.$ac_objext conftest$ac_exeext
19272if { (ac_try="$ac_link"
19273case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276esac
19277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_link") 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest$ac_exeext &&
19288 $as_test_x conftest$ac_exeext; then
19289 ac_cv_func_shl_load=yes
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_cv_func_shl_load=no
19295fi
19296
19297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19298 conftest$ac_exeext conftest.$ac_ext
19299fi
19300{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19301echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19302if test $ac_cv_func_shl_load = yes; then
19303 lt_cv_dlopen="shl_load"
19304else
19305 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19306echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
19307if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309else
19310 ac_check_lib_save_LIBS=$LIBS
19311LIBS="-ldld $LIBS"
19312cat >conftest.$ac_ext <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
19318
19319/* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19322#ifdef __cplusplus
19323extern "C"
19324#endif
19325char shl_load ();
19326int
19327main ()
19328{
19329return shl_load ();
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334rm -f conftest.$ac_objext conftest$ac_exeext
19335if { (ac_try="$ac_link"
19336case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_link") 2>conftest.er1
19342 ac_status=$?
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && {
19348 test -z "$ac_c_werror_flag" ||
19349 test ! -s conftest.err
19350 } && test -s conftest$ac_exeext &&
19351 $as_test_x conftest$ac_exeext; then
19352 ac_cv_lib_dld_shl_load=yes
19353else
19354 echo "$as_me: failed program was:" >&5
19355sed 's/^/| /' conftest.$ac_ext >&5
19356
19357 ac_cv_lib_dld_shl_load=no
19358fi
19359
19360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19361 conftest$ac_exeext conftest.$ac_ext
19362LIBS=$ac_check_lib_save_LIBS
19363fi
19364{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19365echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19366if test $ac_cv_lib_dld_shl_load = yes; then
19367 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19368else
19369 { echo "$as_me:$LINENO: checking for dlopen" >&5
19370echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
19371if test "${ac_cv_func_dlopen+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373else
19374 cat >conftest.$ac_ext <<_ACEOF
19375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
19380/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19382#define dlopen innocuous_dlopen
19383
19384/* System header to define __stub macros and hopefully few prototypes,
19385 which can conflict with char dlopen (); below.
19386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19387 <limits.h> exists even on freestanding compilers. */
19388
19389#ifdef __STDC__
19390# include <limits.h>
19391#else
19392# include <assert.h>
19393#endif
19394
19395#undef dlopen
19396
19397/* Override any GCC internal prototype to avoid an error.
19398 Use char because int might match the return type of a GCC
19399 builtin and then its argument prototype would still apply. */
19400#ifdef __cplusplus
19401extern "C"
19402#endif
19403char dlopen ();
19404/* The GNU C library defines this for functions which it implements
19405 to always fail with ENOSYS. Some functions are actually named
19406 something starting with __ and the normal name is an alias. */
19407#if defined __stub_dlopen || defined __stub___dlopen
19408choke me
19409#endif
19410
19411int
19412main ()
19413{
19414return dlopen ();
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext conftest$ac_exeext
19420if { (ac_try="$ac_link"
19421case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_link") 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest$ac_exeext &&
19436 $as_test_x conftest$ac_exeext; then
19437 ac_cv_func_dlopen=yes
19438else
19439 echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 ac_cv_func_dlopen=no
19443fi
19444
19445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19446 conftest$ac_exeext conftest.$ac_ext
19447fi
19448{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19449echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19450if test $ac_cv_func_dlopen = yes; then
19451 lt_cv_dlopen="dlopen"
19452else
19453 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19454echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19455if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19457else
19458 ac_check_lib_save_LIBS=$LIBS
19459LIBS="-ldl $LIBS"
19460cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466
19467/* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19470#ifdef __cplusplus
19471extern "C"
19472#endif
19473char dlopen ();
19474int
19475main ()
19476{
19477return dlopen ();
19478 ;
19479 return 0;
19480}
19481_ACEOF
19482rm -f conftest.$ac_objext conftest$ac_exeext
19483if { (ac_try="$ac_link"
19484case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487esac
19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 ac_cv_lib_dl_dlopen=yes
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 ac_cv_lib_dl_dlopen=no
19506fi
19507
19508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509 conftest$ac_exeext conftest.$ac_ext
19510LIBS=$ac_check_lib_save_LIBS
19511fi
19512{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19513echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19514if test $ac_cv_lib_dl_dlopen = yes; then
19515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19516else
19517 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19518echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19519if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19521else
19522 ac_check_lib_save_LIBS=$LIBS
19523LIBS="-lsvld $LIBS"
19524cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
19530
19531/* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19534#ifdef __cplusplus
19535extern "C"
19536#endif
19537char dlopen ();
19538int
19539main ()
19540{
19541return dlopen ();
19542 ;
19543 return 0;
19544}
19545_ACEOF
19546rm -f conftest.$ac_objext conftest$ac_exeext
19547if { (ac_try="$ac_link"
19548case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 ac_cv_lib_svld_dlopen=yes
19565else
19566 echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_cv_lib_svld_dlopen=no
19570fi
19571
19572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19574LIBS=$ac_check_lib_save_LIBS
19575fi
19576{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19577echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19578if test $ac_cv_lib_svld_dlopen = yes; then
19579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19580else
19581 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19582echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19583if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585else
19586 ac_check_lib_save_LIBS=$LIBS
19587LIBS="-ldld $LIBS"
19588cat >conftest.$ac_ext <<_ACEOF
19589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
19593/* end confdefs.h. */
19594
19595/* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19598#ifdef __cplusplus
19599extern "C"
19600#endif
19601char dld_link ();
19602int
19603main ()
19604{
19605return dld_link ();
19606 ;
19607 return 0;
19608}
19609_ACEOF
19610rm -f conftest.$ac_objext conftest$ac_exeext
19611if { (ac_try="$ac_link"
19612case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest$ac_exeext &&
19627 $as_test_x conftest$ac_exeext; then
19628 ac_cv_lib_dld_dld_link=yes
19629else
19630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 ac_cv_lib_dld_dld_link=no
19634fi
19635
19636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637 conftest$ac_exeext conftest.$ac_ext
19638LIBS=$ac_check_lib_save_LIBS
19639fi
19640{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19641echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19642if test $ac_cv_lib_dld_dld_link = yes; then
19643 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19644fi
19645
19646
19647fi
19648
19649
19650fi
19651
19652
19653fi
19654
19655
19656fi
19657
19658
19659fi
19660
19661 ;;
19662 esac
19663
19664 if test "x$lt_cv_dlopen" != xno; then
19665 enable_dlopen=yes
19666 else
19667 enable_dlopen=no
19668 fi
19669
19670 case $lt_cv_dlopen in
19671 dlopen)
19672 save_CPPFLAGS="$CPPFLAGS"
19673 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19674
19675 save_LDFLAGS="$LDFLAGS"
19676 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19677
19678 save_LIBS="$LIBS"
19679 LIBS="$lt_cv_dlopen_libs $LIBS"
19680
19681 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19682echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19683if test "${lt_cv_dlopen_self+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686 if test "$cross_compiling" = yes; then :
19687 lt_cv_dlopen_self=cross
19688else
19689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19690 lt_status=$lt_dlunknown
19691 cat > conftest.$ac_ext <<EOF
19692#line 19692 "configure"
19693#include "confdefs.h"
19694
19695#if HAVE_DLFCN_H
19696#include <dlfcn.h>
19697#endif
19698
19699#include <stdio.h>
19700
19701#ifdef RTLD_GLOBAL
19702# define LT_DLGLOBAL RTLD_GLOBAL
19703#else
19704# ifdef DL_GLOBAL
19705# define LT_DLGLOBAL DL_GLOBAL
19706# else
19707# define LT_DLGLOBAL 0
19708# endif
19709#endif
19710
19711/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19712 find out it does not work in some platform. */
19713#ifndef LT_DLLAZY_OR_NOW
19714# ifdef RTLD_LAZY
19715# define LT_DLLAZY_OR_NOW RTLD_LAZY
19716# else
19717# ifdef DL_LAZY
19718# define LT_DLLAZY_OR_NOW DL_LAZY
19719# else
19720# ifdef RTLD_NOW
19721# define LT_DLLAZY_OR_NOW RTLD_NOW
19722# else
19723# ifdef DL_NOW
19724# define LT_DLLAZY_OR_NOW DL_NOW
19725# else
19726# define LT_DLLAZY_OR_NOW 0
19727# endif
19728# endif
19729# endif
19730# endif
19731#endif
19732
19733#ifdef __cplusplus
19734extern "C" void exit (int);
19735#endif
19736
19737void fnord() { int i=42;}
19738int main ()
19739{
19740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19741 int status = $lt_dlunknown;
19742
19743 if (self)
19744 {
19745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19746 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19747 /* dlclose (self); */
19748 }
19749
19750 exit (status);
19751}
19752EOF
19753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754 (eval $ac_link) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19758 (./conftest; exit; ) >&5 2>/dev/null
19759 lt_status=$?
19760 case x$lt_status in
19761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19763 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19764 esac
19765 else :
19766 # compilation failed
19767 lt_cv_dlopen_self=no
19768 fi
19769fi
19770rm -fr conftest*
19771
19772
19773fi
19774{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19775echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19776
19777 if test "x$lt_cv_dlopen_self" = xyes; then
19778 LDFLAGS="$LDFLAGS $link_static_flag"
19779 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19780echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19781if test "${lt_cv_dlopen_self_static+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783else
19784 if test "$cross_compiling" = yes; then :
19785 lt_cv_dlopen_self_static=cross
19786else
19787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19788 lt_status=$lt_dlunknown
19789 cat > conftest.$ac_ext <<EOF
19790#line 19790 "configure"
19791#include "confdefs.h"
19792
19793#if HAVE_DLFCN_H
19794#include <dlfcn.h>
19795#endif
19796
19797#include <stdio.h>
19798
19799#ifdef RTLD_GLOBAL
19800# define LT_DLGLOBAL RTLD_GLOBAL
19801#else
19802# ifdef DL_GLOBAL
19803# define LT_DLGLOBAL DL_GLOBAL
19804# else
19805# define LT_DLGLOBAL 0
19806# endif
19807#endif
19808
19809/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19810 find out it does not work in some platform. */
19811#ifndef LT_DLLAZY_OR_NOW
19812# ifdef RTLD_LAZY
19813# define LT_DLLAZY_OR_NOW RTLD_LAZY
19814# else
19815# ifdef DL_LAZY
19816# define LT_DLLAZY_OR_NOW DL_LAZY
19817# else
19818# ifdef RTLD_NOW
19819# define LT_DLLAZY_OR_NOW RTLD_NOW
19820# else
19821# ifdef DL_NOW
19822# define LT_DLLAZY_OR_NOW DL_NOW
19823# else
19824# define LT_DLLAZY_OR_NOW 0
19825# endif
19826# endif
19827# endif
19828# endif
19829#endif
19830
19831#ifdef __cplusplus
19832extern "C" void exit (int);
19833#endif
19834
19835void fnord() { int i=42;}
19836int main ()
19837{
19838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19839 int status = $lt_dlunknown;
19840
19841 if (self)
19842 {
19843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19845 /* dlclose (self); */
19846 }
19847
19848 exit (status);
19849}
19850EOF
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852 (eval $ac_link) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19856 (./conftest; exit; ) >&5 2>/dev/null
19857 lt_status=$?
19858 case x$lt_status in
19859 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19860 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19861 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19862 esac
19863 else :
19864 # compilation failed
19865 lt_cv_dlopen_self_static=no
19866 fi
19867fi
19868rm -fr conftest*
19869
19870
19871fi
19872{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19873echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19874 fi
19875
19876 CPPFLAGS="$save_CPPFLAGS"
19877 LDFLAGS="$save_LDFLAGS"
19878 LIBS="$save_LIBS"
19879 ;;
19880 esac
19881
19882 case $lt_cv_dlopen_self in
19883 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19884 *) enable_dlopen_self=unknown ;;
19885 esac
19886
19887 case $lt_cv_dlopen_self_static in
19888 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19889 *) enable_dlopen_self_static=unknown ;;
19890 esac
19891fi
19892
19893
19894# The else clause should only fire when bootstrapping the
19895# libtool distribution, otherwise you forgot to ship ltmain.sh
19896# with your package, and you will get complaints that there are
19897# no rules to generate ltmain.sh.
19898if test -f "$ltmain"; then
19899 # See if we are running on zsh, and set the options which allow our commands through
19900 # without removal of \ escapes.
19901 if test -n "${ZSH_VERSION+set}" ; then
19902 setopt NO_GLOB_SUBST
19903 fi
19904 # Now quote all the things that may contain metacharacters while being
19905 # careful not to overquote the AC_SUBSTed values. We take copies of the
19906 # variables and quote the copies for generation of the libtool script.
19907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19908 SED SHELL STRIP \
19909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19911 deplibs_check_method reload_flag reload_cmds need_locks \
19912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19913 lt_cv_sys_global_symbol_to_c_name_address \
19914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19915 old_postinstall_cmds old_postuninstall_cmds \
19916 compiler_GCJ \
19917 CC_GCJ \
19918 LD_GCJ \
19919 lt_prog_compiler_wl_GCJ \
19920 lt_prog_compiler_pic_GCJ \
19921 lt_prog_compiler_static_GCJ \
19922 lt_prog_compiler_no_builtin_flag_GCJ \
19923 export_dynamic_flag_spec_GCJ \
19924 thread_safe_flag_spec_GCJ \
19925 whole_archive_flag_spec_GCJ \
19926 enable_shared_with_static_runtimes_GCJ \
19927 old_archive_cmds_GCJ \
19928 old_archive_from_new_cmds_GCJ \
19929 predep_objects_GCJ \
19930 postdep_objects_GCJ \
19931 predeps_GCJ \
19932 postdeps_GCJ \
19933 compiler_lib_search_path_GCJ \
19934 archive_cmds_GCJ \
19935 archive_expsym_cmds_GCJ \
19936 postinstall_cmds_GCJ \
19937 postuninstall_cmds_GCJ \
19938 old_archive_from_expsyms_cmds_GCJ \
19939 allow_undefined_flag_GCJ \
19940 no_undefined_flag_GCJ \
19941 export_symbols_cmds_GCJ \
19942 hardcode_libdir_flag_spec_GCJ \
19943 hardcode_libdir_flag_spec_ld_GCJ \
19944 hardcode_libdir_separator_GCJ \
19945 hardcode_automatic_GCJ \
19946 module_cmds_GCJ \
19947 module_expsym_cmds_GCJ \
19948 lt_cv_prog_compiler_c_o_GCJ \
19949 exclude_expsyms_GCJ \
19950 include_expsyms_GCJ; do
19951
19952 case $var in
19953 old_archive_cmds_GCJ | \
19954 old_archive_from_new_cmds_GCJ | \
19955 archive_cmds_GCJ | \
19956 archive_expsym_cmds_GCJ | \
19957 module_cmds_GCJ | \
19958 module_expsym_cmds_GCJ | \
19959 old_archive_from_expsyms_cmds_GCJ | \
19960 export_symbols_cmds_GCJ | \
19961 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19962 postinstall_cmds | postuninstall_cmds | \
19963 old_postinstall_cmds | old_postuninstall_cmds | \
19964 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19965 # Double-quote double-evaled strings.
19966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19967 ;;
19968 *)
19969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19970 ;;
19971 esac
19972 done
19973
19974 case $lt_echo in
19975 *'\$0 --fallback-echo"')
19976 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19977 ;;
19978 esac
19979
19980cfgfile="$ofile"
19981
19982 cat <<__EOF__ >> "$cfgfile"
19983# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19984
19985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19986
19987# Shell to use when invoking shell scripts.
19988SHELL=$lt_SHELL
19989
19990# Whether or not to build shared libraries.
19991build_libtool_libs=$enable_shared
19992
19993# Whether or not to build static libraries.
19994build_old_libs=$enable_static
19995
19996# Whether or not to add -lc for building shared libraries.
19997build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19998
19999# Whether or not to disallow shared libs when runtime libs are static
20000allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20001
20002# Whether or not to optimize for fast installation.
20003fast_install=$enable_fast_install
20004
20005# The host system.
20006host_alias=$host_alias
20007host=$host
20008host_os=$host_os
20009
20010# The build system.
20011build_alias=$build_alias
20012build=$build
20013build_os=$build_os
20014
20015# An echo program that does not interpret backslashes.
20016echo=$lt_echo
20017
20018# The archiver.
20019AR=$lt_AR
20020AR_FLAGS=$lt_AR_FLAGS
20021
20022# A C compiler.
20023LTCC=$lt_LTCC
20024
20025# A language-specific compiler.
20026CC=$lt_compiler_GCJ
20027
20028# Is the compiler the GNU C compiler?
20029with_gcc=$GCC_GCJ
20030
20031# An ERE matcher.
20032EGREP=$lt_EGREP
20033
20034# The linker used to build libraries.
20035LD=$lt_LD_GCJ
20036
20037# Whether we need hard or soft links.
20038LN_S=$lt_LN_S
20039
20040# A BSD-compatible nm program.
20041NM=$lt_NM
20042
20043# A symbol stripping program
20044STRIP=$lt_STRIP
20045
20046# Used to examine libraries when file_magic_cmd begins "file"
20047MAGIC_CMD=$MAGIC_CMD
20048
20049# Used on cygwin: DLL creation program.
20050DLLTOOL="$DLLTOOL"
20051
20052# Used on cygwin: object dumper.
20053OBJDUMP="$OBJDUMP"
20054
20055# Used on cygwin: assembler.
20056AS="$AS"
20057
20058# The name of the directory that contains temporary libtool files.
20059objdir=$objdir
20060
20061# How to create reloadable object files.
20062reload_flag=$lt_reload_flag
20063reload_cmds=$lt_reload_cmds
20064
20065# How to pass a linker flag through the compiler.
20066wl=$lt_lt_prog_compiler_wl_GCJ
20067
20068# Object file suffix (normally "o").
20069objext="$ac_objext"
20070
20071# Old archive suffix (normally "a").
20072libext="$libext"
20073
20074# Shared library suffix (normally ".so").
20075shrext_cmds='$shrext_cmds'
20076
20077# Executable file suffix (normally "").
20078exeext="$exeext"
20079
20080# Additional compiler flags for building library objects.
20081pic_flag=$lt_lt_prog_compiler_pic_GCJ
20082pic_mode=$pic_mode
20083
20084# What is the maximum length of a command?
20085max_cmd_len=$lt_cv_sys_max_cmd_len
20086
20087# Does compiler simultaneously support -c and -o options?
20088compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20089
20090# Must we lock files when doing compilation?
20091need_locks=$lt_need_locks
20092
20093# Do we need the lib prefix for modules?
20094need_lib_prefix=$need_lib_prefix
20095
20096# Do we need a version for libraries?
20097need_version=$need_version
20098
20099# Whether dlopen is supported.
20100dlopen_support=$enable_dlopen
20101
20102# Whether dlopen of programs is supported.
20103dlopen_self=$enable_dlopen_self
20104
20105# Whether dlopen of statically linked programs is supported.
20106dlopen_self_static=$enable_dlopen_self_static
20107
20108# Compiler flag to prevent dynamic linking.
20109link_static_flag=$lt_lt_prog_compiler_static_GCJ
20110
20111# Compiler flag to turn off builtin functions.
20112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20113
20114# Compiler flag to allow reflexive dlopens.
20115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20116
20117# Compiler flag to generate shared objects directly from archives.
20118whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20119
20120# Compiler flag to generate thread-safe objects.
20121thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20122
20123# Library versioning type.
20124version_type=$version_type
20125
20126# Format of library name prefix.
20127libname_spec=$lt_libname_spec
20128
20129# List of archive names. First name is the real one, the rest are links.
20130# The last name is the one that the linker finds with -lNAME.
20131library_names_spec=$lt_library_names_spec
20132
20133# The coded name of the library, if different from the real name.
20134soname_spec=$lt_soname_spec
20135
20136# Commands used to build and install an old-style archive.
20137RANLIB=$lt_RANLIB
20138old_archive_cmds=$lt_old_archive_cmds_GCJ
20139old_postinstall_cmds=$lt_old_postinstall_cmds
20140old_postuninstall_cmds=$lt_old_postuninstall_cmds
20141
20142# Create an old-style archive from a shared archive.
20143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20144
20145# Create a temporary old-style archive to link instead of a shared archive.
20146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20147
20148# Commands used to build and install a shared archive.
20149archive_cmds=$lt_archive_cmds_GCJ
20150archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20151postinstall_cmds=$lt_postinstall_cmds
20152postuninstall_cmds=$lt_postuninstall_cmds
20153
20154# Commands used to build a loadable module (assumed same as above if empty)
20155module_cmds=$lt_module_cmds_GCJ
20156module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20157
20158# Commands to strip libraries.
20159old_striplib=$lt_old_striplib
20160striplib=$lt_striplib
20161
20162# Dependencies to place before the objects being linked to create a
20163# shared library.
20164predep_objects=$lt_predep_objects_GCJ
20165
20166# Dependencies to place after the objects being linked to create a
20167# shared library.
20168postdep_objects=$lt_postdep_objects_GCJ
20169
20170# Dependencies to place before the objects being linked to create a
20171# shared library.
20172predeps=$lt_predeps_GCJ
20173
20174# Dependencies to place after the objects being linked to create a
20175# shared library.
20176postdeps=$lt_postdeps_GCJ
20177
20178# The library search path used internally by the compiler when linking
20179# a shared library.
20180compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20181
20182# Method to check whether dependent libraries are shared objects.
20183deplibs_check_method=$lt_deplibs_check_method
20184
20185# Command to use when deplibs_check_method == file_magic.
20186file_magic_cmd=$lt_file_magic_cmd
20187
20188# Flag that allows shared libraries with undefined symbols to be built.
20189allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20190
20191# Flag that forces no undefined symbols.
20192no_undefined_flag=$lt_no_undefined_flag_GCJ
20193
20194# Commands used to finish a libtool library installation in a directory.
20195finish_cmds=$lt_finish_cmds
20196
20197# Same as above, but a single script fragment to be evaled but not shown.
20198finish_eval=$lt_finish_eval
20199
20200# Take the output of nm and produce a listing of raw symbols and C names.
20201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20202
20203# Transform the output of nm in a proper C declaration
20204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20205
20206# Transform the output of nm in a C name address pair
20207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20208
20209# This is the shared library runtime path variable.
20210runpath_var=$runpath_var
20211
20212# This is the shared library path variable.
20213shlibpath_var=$shlibpath_var
20214
20215# Is shlibpath searched before the hard-coded library search path?
20216shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20217
20218# How to hardcode a shared library path into an executable.
20219hardcode_action=$hardcode_action_GCJ
20220
20221# Whether we should hardcode library paths into libraries.
20222hardcode_into_libs=$hardcode_into_libs
20223
20224# Flag to hardcode \$libdir into a binary during linking.
20225# This must work even if \$libdir does not exist.
20226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20227
20228# If ld is used when linking, flag to hardcode \$libdir into
20229# a binary during linking. This must work even if \$libdir does
20230# not exist.
20231hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20232
20233# Whether we need a single -rpath flag with a separated argument.
20234hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20235
20236# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20237# resulting binary.
20238hardcode_direct=$hardcode_direct_GCJ
20239
20240# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20241# resulting binary.
20242hardcode_minus_L=$hardcode_minus_L_GCJ
20243
20244# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20245# the resulting binary.
20246hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20247
20248# Set to yes if building a shared library automatically hardcodes DIR into the library
20249# and all subsequent libraries and executables linked against it.
20250hardcode_automatic=$hardcode_automatic_GCJ
20251
20252# Variables whose values should be saved in libtool wrapper scripts and
20253# restored at relink time.
20254variables_saved_for_relink="$variables_saved_for_relink"
20255
20256# Whether libtool must link a program against all its dependency libraries.
20257link_all_deplibs=$link_all_deplibs_GCJ
20258
20259# Compile-time system search path for libraries
20260sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20261
20262# Run-time system search path for libraries
20263sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20264
20265# Fix the shell variable \$srcfile for the compiler.
20266fix_srcfile_path="$fix_srcfile_path_GCJ"
20267
20268# Set to yes if exported symbols are required.
20269always_export_symbols=$always_export_symbols_GCJ
20270
20271# The commands to list exported symbols.
20272export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20273
20274# The commands to extract the exported symbol list from a shared archive.
20275extract_expsyms_cmds=$lt_extract_expsyms_cmds
20276
20277# Symbols that should not be listed in the preloaded symbols.
20278exclude_expsyms=$lt_exclude_expsyms_GCJ
20279
20280# Symbols that must always be exported.
20281include_expsyms=$lt_include_expsyms_GCJ
20282
20283# ### END LIBTOOL TAG CONFIG: $tagname
20284
20285__EOF__
20286
20287
20288else
20289 # If there is no Makefile yet, we rely on a make rule to execute
20290 # `config.status --recheck' to rerun these tests and create the
20291 # libtool script then.
20292 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20293 if test -f "$ltmain_in"; then
20294 test -f Makefile && make "$ltmain"
20295 fi
20296fi
20297
20298
20299ac_ext=c
20300ac_cpp='$CPP $CPPFLAGS'
20301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303ac_compiler_gnu=$ac_cv_c_compiler_gnu
20304
20305CC="$lt_save_CC"
20306
20307 else
20308 tagname=""
20309 fi
20310 ;;
20311
20312 RC)
20313
20314
20315# Source file extension for RC test sources.
20316ac_ext=rc
20317
20318# Object file extension for compiled RC test sources.
20319objext=o
20320objext_RC=$objext
20321
20322# Code to be used in simple compile tests
20323lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20324
20325# Code to be used in simple link tests
20326lt_simple_link_test_code="$lt_simple_compile_test_code"
20327
20328# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20329
20330# If no C compiler was specified, use CC.
20331LTCC=${LTCC-"$CC"}
20332
20333# Allow CC to be a program name with arguments.
20334compiler=$CC
20335
20336
20337# save warnings/boilerplate of simple test code
20338ac_outfile=conftest.$ac_objext
20339printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20340eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20341_lt_compiler_boilerplate=`cat conftest.err`
20342$rm conftest*
20343
20344ac_outfile=conftest.$ac_objext
20345printf "$lt_simple_link_test_code" >conftest.$ac_ext
20346eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20347_lt_linker_boilerplate=`cat conftest.err`
20348$rm conftest*
20349
20350
20351# Allow CC to be a program name with arguments.
20352lt_save_CC="$CC"
20353CC=${RC-"windres"}
20354compiler=$CC
20355compiler_RC=$CC
20356for cc_temp in $compiler""; do
20357 case $cc_temp in
20358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20360 \-*) ;;
20361 *) break;;
20362 esac
20363done
20364cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20365
20366lt_cv_prog_compiler_c_o_RC=yes
20367
20368# The else clause should only fire when bootstrapping the
20369# libtool distribution, otherwise you forgot to ship ltmain.sh
20370# with your package, and you will get complaints that there are
20371# no rules to generate ltmain.sh.
20372if test -f "$ltmain"; then
20373 # See if we are running on zsh, and set the options which allow our commands through
20374 # without removal of \ escapes.
20375 if test -n "${ZSH_VERSION+set}" ; then
20376 setopt NO_GLOB_SUBST
20377 fi
20378 # Now quote all the things that may contain metacharacters while being
20379 # careful not to overquote the AC_SUBSTed values. We take copies of the
20380 # variables and quote the copies for generation of the libtool script.
20381 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20382 SED SHELL STRIP \
20383 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20384 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20385 deplibs_check_method reload_flag reload_cmds need_locks \
20386 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20387 lt_cv_sys_global_symbol_to_c_name_address \
20388 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20389 old_postinstall_cmds old_postuninstall_cmds \
20390 compiler_RC \
20391 CC_RC \
20392 LD_RC \
20393 lt_prog_compiler_wl_RC \
20394 lt_prog_compiler_pic_RC \
20395 lt_prog_compiler_static_RC \
20396 lt_prog_compiler_no_builtin_flag_RC \
20397 export_dynamic_flag_spec_RC \
20398 thread_safe_flag_spec_RC \
20399 whole_archive_flag_spec_RC \
20400 enable_shared_with_static_runtimes_RC \
20401 old_archive_cmds_RC \
20402 old_archive_from_new_cmds_RC \
20403 predep_objects_RC \
20404 postdep_objects_RC \
20405 predeps_RC \
20406 postdeps_RC \
20407 compiler_lib_search_path_RC \
20408 archive_cmds_RC \
20409 archive_expsym_cmds_RC \
20410 postinstall_cmds_RC \
20411 postuninstall_cmds_RC \
20412 old_archive_from_expsyms_cmds_RC \
20413 allow_undefined_flag_RC \
20414 no_undefined_flag_RC \
20415 export_symbols_cmds_RC \
20416 hardcode_libdir_flag_spec_RC \
20417 hardcode_libdir_flag_spec_ld_RC \
20418 hardcode_libdir_separator_RC \
20419 hardcode_automatic_RC \
20420 module_cmds_RC \
20421 module_expsym_cmds_RC \
20422 lt_cv_prog_compiler_c_o_RC \
20423 exclude_expsyms_RC \
20424 include_expsyms_RC; do
20425
20426 case $var in
20427 old_archive_cmds_RC | \
20428 old_archive_from_new_cmds_RC | \
20429 archive_cmds_RC | \
20430 archive_expsym_cmds_RC | \
20431 module_cmds_RC | \
20432 module_expsym_cmds_RC | \
20433 old_archive_from_expsyms_cmds_RC | \
20434 export_symbols_cmds_RC | \
20435 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20436 postinstall_cmds | postuninstall_cmds | \
20437 old_postinstall_cmds | old_postuninstall_cmds | \
20438 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20439 # Double-quote double-evaled strings.
20440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20441 ;;
20442 *)
20443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20444 ;;
20445 esac
20446 done
20447
20448 case $lt_echo in
20449 *'\$0 --fallback-echo"')
20450 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20451 ;;
20452 esac
20453
20454cfgfile="$ofile"
20455
20456 cat <<__EOF__ >> "$cfgfile"
20457# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20458
20459# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20460
20461# Shell to use when invoking shell scripts.
20462SHELL=$lt_SHELL
20463
20464# Whether or not to build shared libraries.
20465build_libtool_libs=$enable_shared
20466
20467# Whether or not to build static libraries.
20468build_old_libs=$enable_static
20469
20470# Whether or not to add -lc for building shared libraries.
20471build_libtool_need_lc=$archive_cmds_need_lc_RC
20472
20473# Whether or not to disallow shared libs when runtime libs are static
20474allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20475
20476# Whether or not to optimize for fast installation.
20477fast_install=$enable_fast_install
20478
20479# The host system.
20480host_alias=$host_alias
20481host=$host
20482host_os=$host_os
20483
20484# The build system.
20485build_alias=$build_alias
20486build=$build
20487build_os=$build_os
20488
20489# An echo program that does not interpret backslashes.
20490echo=$lt_echo
20491
20492# The archiver.
20493AR=$lt_AR
20494AR_FLAGS=$lt_AR_FLAGS
20495
20496# A C compiler.
20497LTCC=$lt_LTCC
20498
20499# A language-specific compiler.
20500CC=$lt_compiler_RC
20501
20502# Is the compiler the GNU C compiler?
20503with_gcc=$GCC_RC
20504
20505# An ERE matcher.
20506EGREP=$lt_EGREP
20507
20508# The linker used to build libraries.
20509LD=$lt_LD_RC
20510
20511# Whether we need hard or soft links.
20512LN_S=$lt_LN_S
20513
20514# A BSD-compatible nm program.
20515NM=$lt_NM
20516
20517# A symbol stripping program
20518STRIP=$lt_STRIP
20519
20520# Used to examine libraries when file_magic_cmd begins "file"
20521MAGIC_CMD=$MAGIC_CMD
20522
20523# Used on cygwin: DLL creation program.
20524DLLTOOL="$DLLTOOL"
20525
20526# Used on cygwin: object dumper.
20527OBJDUMP="$OBJDUMP"
20528
20529# Used on cygwin: assembler.
20530AS="$AS"
20531
20532# The name of the directory that contains temporary libtool files.
20533objdir=$objdir
20534
20535# How to create reloadable object files.
20536reload_flag=$lt_reload_flag
20537reload_cmds=$lt_reload_cmds
20538
20539# How to pass a linker flag through the compiler.
20540wl=$lt_lt_prog_compiler_wl_RC
20541
20542# Object file suffix (normally "o").
20543objext="$ac_objext"
20544
20545# Old archive suffix (normally "a").
20546libext="$libext"
20547
20548# Shared library suffix (normally ".so").
20549shrext_cmds='$shrext_cmds'
20550
20551# Executable file suffix (normally "").
20552exeext="$exeext"
20553
20554# Additional compiler flags for building library objects.
20555pic_flag=$lt_lt_prog_compiler_pic_RC
20556pic_mode=$pic_mode
20557
20558# What is the maximum length of a command?
20559max_cmd_len=$lt_cv_sys_max_cmd_len
20560
20561# Does compiler simultaneously support -c and -o options?
20562compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20563
20564# Must we lock files when doing compilation?
20565need_locks=$lt_need_locks
20566
20567# Do we need the lib prefix for modules?
20568need_lib_prefix=$need_lib_prefix
20569
20570# Do we need a version for libraries?
20571need_version=$need_version
20572
20573# Whether dlopen is supported.
20574dlopen_support=$enable_dlopen
20575
20576# Whether dlopen of programs is supported.
20577dlopen_self=$enable_dlopen_self
20578
20579# Whether dlopen of statically linked programs is supported.
20580dlopen_self_static=$enable_dlopen_self_static
20581
20582# Compiler flag to prevent dynamic linking.
20583link_static_flag=$lt_lt_prog_compiler_static_RC
20584
20585# Compiler flag to turn off builtin functions.
20586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20587
20588# Compiler flag to allow reflexive dlopens.
20589export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20590
20591# Compiler flag to generate shared objects directly from archives.
20592whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20593
20594# Compiler flag to generate thread-safe objects.
20595thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20596
20597# Library versioning type.
20598version_type=$version_type
20599
20600# Format of library name prefix.
20601libname_spec=$lt_libname_spec
20602
20603# List of archive names. First name is the real one, the rest are links.
20604# The last name is the one that the linker finds with -lNAME.
20605library_names_spec=$lt_library_names_spec
20606
20607# The coded name of the library, if different from the real name.
20608soname_spec=$lt_soname_spec
20609
20610# Commands used to build and install an old-style archive.
20611RANLIB=$lt_RANLIB
20612old_archive_cmds=$lt_old_archive_cmds_RC
20613old_postinstall_cmds=$lt_old_postinstall_cmds
20614old_postuninstall_cmds=$lt_old_postuninstall_cmds
20615
20616# Create an old-style archive from a shared archive.
20617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20618
20619# Create a temporary old-style archive to link instead of a shared archive.
20620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20621
20622# Commands used to build and install a shared archive.
20623archive_cmds=$lt_archive_cmds_RC
20624archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20625postinstall_cmds=$lt_postinstall_cmds
20626postuninstall_cmds=$lt_postuninstall_cmds
20627
20628# Commands used to build a loadable module (assumed same as above if empty)
20629module_cmds=$lt_module_cmds_RC
20630module_expsym_cmds=$lt_module_expsym_cmds_RC
20631
20632# Commands to strip libraries.
20633old_striplib=$lt_old_striplib
20634striplib=$lt_striplib
20635
20636# Dependencies to place before the objects being linked to create a
20637# shared library.
20638predep_objects=$lt_predep_objects_RC
20639
20640# Dependencies to place after the objects being linked to create a
20641# shared library.
20642postdep_objects=$lt_postdep_objects_RC
20643
20644# Dependencies to place before the objects being linked to create a
20645# shared library.
20646predeps=$lt_predeps_RC
20647
20648# Dependencies to place after the objects being linked to create a
20649# shared library.
20650postdeps=$lt_postdeps_RC
20651
20652# The library search path used internally by the compiler when linking
20653# a shared library.
20654compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20655
20656# Method to check whether dependent libraries are shared objects.
20657deplibs_check_method=$lt_deplibs_check_method
20658
20659# Command to use when deplibs_check_method == file_magic.
20660file_magic_cmd=$lt_file_magic_cmd
20661
20662# Flag that allows shared libraries with undefined symbols to be built.
20663allow_undefined_flag=$lt_allow_undefined_flag_RC
20664
20665# Flag that forces no undefined symbols.
20666no_undefined_flag=$lt_no_undefined_flag_RC
20667
20668# Commands used to finish a libtool library installation in a directory.
20669finish_cmds=$lt_finish_cmds
20670
20671# Same as above, but a single script fragment to be evaled but not shown.
20672finish_eval=$lt_finish_eval
20673
20674# Take the output of nm and produce a listing of raw symbols and C names.
20675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20676
20677# Transform the output of nm in a proper C declaration
20678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20679
20680# Transform the output of nm in a C name address pair
20681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20682
20683# This is the shared library runtime path variable.
20684runpath_var=$runpath_var
20685
20686# This is the shared library path variable.
20687shlibpath_var=$shlibpath_var
20688
20689# Is shlibpath searched before the hard-coded library search path?
20690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20691
20692# How to hardcode a shared library path into an executable.
20693hardcode_action=$hardcode_action_RC
20694
20695# Whether we should hardcode library paths into libraries.
20696hardcode_into_libs=$hardcode_into_libs
20697
20698# Flag to hardcode \$libdir into a binary during linking.
20699# This must work even if \$libdir does not exist.
20700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20701
20702# If ld is used when linking, flag to hardcode \$libdir into
20703# a binary during linking. This must work even if \$libdir does
20704# not exist.
20705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20706
20707# Whether we need a single -rpath flag with a separated argument.
20708hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20709
20710# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20711# resulting binary.
20712hardcode_direct=$hardcode_direct_RC
20713
20714# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20715# resulting binary.
20716hardcode_minus_L=$hardcode_minus_L_RC
20717
20718# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20719# the resulting binary.
20720hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20721
20722# Set to yes if building a shared library automatically hardcodes DIR into the library
20723# and all subsequent libraries and executables linked against it.
20724hardcode_automatic=$hardcode_automatic_RC
20725
20726# Variables whose values should be saved in libtool wrapper scripts and
20727# restored at relink time.
20728variables_saved_for_relink="$variables_saved_for_relink"
20729
20730# Whether libtool must link a program against all its dependency libraries.
20731link_all_deplibs=$link_all_deplibs_RC
20732
20733# Compile-time system search path for libraries
20734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20735
20736# Run-time system search path for libraries
20737sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20738
20739# Fix the shell variable \$srcfile for the compiler.
20740fix_srcfile_path="$fix_srcfile_path_RC"
20741
20742# Set to yes if exported symbols are required.
20743always_export_symbols=$always_export_symbols_RC
20744
20745# The commands to list exported symbols.
20746export_symbols_cmds=$lt_export_symbols_cmds_RC
20747
20748# The commands to extract the exported symbol list from a shared archive.
20749extract_expsyms_cmds=$lt_extract_expsyms_cmds
20750
20751# Symbols that should not be listed in the preloaded symbols.
20752exclude_expsyms=$lt_exclude_expsyms_RC
20753
20754# Symbols that must always be exported.
20755include_expsyms=$lt_include_expsyms_RC
20756
20757# ### END LIBTOOL TAG CONFIG: $tagname
20758
20759__EOF__
20760
20761
20762else
20763 # If there is no Makefile yet, we rely on a make rule to execute
20764 # `config.status --recheck' to rerun these tests and create the
20765 # libtool script then.
20766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20767 if test -f "$ltmain_in"; then
20768 test -f Makefile && make "$ltmain"
20769 fi
20770fi
20771
20772
20773ac_ext=c
20774ac_cpp='$CPP $CPPFLAGS'
20775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777ac_compiler_gnu=$ac_cv_c_compiler_gnu
20778
20779CC="$lt_save_CC"
20780
20781 ;;
20782
20783 *)
20784 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20785echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20786 { (exit 1); exit 1; }; }
20787 ;;
20788 esac
20789
20790 # Append the new tag name to the list of available tags.
20791 if test -n "$tagname" ; then
20792 available_tags="$available_tags $tagname"
20793 fi
20794 fi
20795 done
20796 IFS="$lt_save_ifs"
20797
20798 # Now substitute the updated list of available tags.
20799 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20800 mv "${ofile}T" "$ofile"
20801 chmod +x "$ofile"
20802 else
20803 rm -f "${ofile}T"
20804 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20805echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20806 { (exit 1); exit 1; }; }
20807 fi
20808fi
20809
20810
20811
20812# This can be used to rebuild libtool when needed
20813LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20814
20815# Always use our own libtool.
20816LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20817
20818# Prevent multiple expansion
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840test -e site_def.h || cat <<EOF >site_def.h
20841/* Site specific definitions */
20842
20843#ifndef SITE_DEF_H
20844#define SITE_DEF_H
20845/* #define BIT_SLICER_LOG 1 */
20846/* #define CACHE_DEBUG 1 */
20847/* #define CACHE_DEBUG 2 */
20848/* #define CACHE_STATUS 1 */
20849/* #define CACHE_CONSISTENCY 1 */
20850/* #define DVB_DEMUX_LOG 1 */
20851/* #define DVB_MUX_LOG 1 */
20852/* #define RAW_DECODER_LOG 1 */
20853/* #define RAW_DECODER_PATTERN_DUMP 1 */
20854/* #define TELETEXT_DEBUG 1 */
20855#endif /* SITE_DEF_H */
20856EOF
20857
20858
20859
20860
20861
20862
20863 { echo "$as_me:$LINENO: checking if $CC supports --param inline-unit-growth=3000" >&5
20864echo $ECHO_N "checking if $CC supports --param inline-unit-growth=3000... $ECHO_C" >&6; }
20865 SAVE_CFLAGS="$CFLAGS"
20866 CFLAGS="$CFLAGS --param inline-unit-growth=3000"
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873
20874int
20875main ()
20876{
20877return 0;
20878 ;
20879 return 0;
20880}
20881_ACEOF
20882rm -f conftest.$ac_objext
20883if { (ac_try="$ac_compile"
20884case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20890 ac_status=$?
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20899 HAVE_GCC_LIMITS=yes
20900else
20901 echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 HAVE_GCC_LIMITS=no
20905fi
20906
20907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 CFLAGS="$SAVE_CFLAGS"
20909 { echo "$as_me:$LINENO: result: $HAVE_GCC_LIMITS" >&5
20910echo "${ECHO_T}$HAVE_GCC_LIMITS" >&6; }
20911
20912
20913if test "x$HAVE_GCC_LIMITS" = "xyes"; then
20914 HAVE_GCC_LIMITS_TRUE=
20915 HAVE_GCC_LIMITS_FALSE='#'
20916else
20917 HAVE_GCC_LIMITS_TRUE='#'
20918 HAVE_GCC_LIMITS_FALSE=
20919fi
20920
20921
20922
20923 { echo "$as_me:$LINENO: checking if $CC supports -std=c89" >&5
20924echo $ECHO_N "checking if $CC supports -std=c89... $ECHO_C" >&6; }
20925 SAVE_CFLAGS="$CFLAGS"
20926 CFLAGS="$CFLAGS -std=c89"
20927 cat >conftest.$ac_ext <<_ACEOF
20928/* confdefs.h. */
20929_ACEOF
20930cat confdefs.h >>conftest.$ac_ext
20931cat >>conftest.$ac_ext <<_ACEOF
20932/* end confdefs.h. */
20933
20934int
20935main ()
20936{
20937return 0;
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942rm -f conftest.$ac_objext
20943if { (ac_try="$ac_compile"
20944case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_compile") 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest.$ac_objext; then
20959 HAVE_GCC_C89_SUPPORT=yes
20960else
20961 echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964 HAVE_GCC_C89_SUPPORT=no
20965fi
20966
20967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968 CFLAGS="$SAVE_CFLAGS"
20969 { echo "$as_me:$LINENO: result: $HAVE_GCC_C89_SUPPORT" >&5
20970echo "${ECHO_T}$HAVE_GCC_C89_SUPPORT" >&6; }
20971
20972
20973if test "x$HAVE_GCC_C89_SUPPORT" = "xyes"; then
20974 HAVE_GCC_C89_SUPPORT_TRUE=
20975 HAVE_GCC_C89_SUPPORT_FALSE='#'
20976else
20977 HAVE_GCC_C89_SUPPORT_TRUE='#'
20978 HAVE_GCC_C89_SUPPORT_FALSE=
20979fi
20980
20981
20982 { echo "$as_me:$LINENO: checking if $CC supports -std=iso9899:199409" >&5
20983echo $ECHO_N "checking if $CC supports -std=iso9899:199409... $ECHO_C" >&6; }
20984 SAVE_CFLAGS="$CFLAGS"
20985 CFLAGS="$CFLAGS -std=iso9899:199409"
20986 cat >conftest.$ac_ext <<_ACEOF
20987/* confdefs.h. */
20988_ACEOF
20989cat confdefs.h >>conftest.$ac_ext
20990cat >>conftest.$ac_ext <<_ACEOF
20991/* end confdefs.h. */
20992
20993int
20994main ()
20995{
20996return 0;
20997 ;
20998 return 0;
20999}
21000_ACEOF
21001rm -f conftest.$ac_objext
21002if { (ac_try="$ac_compile"
21003case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21006esac
21007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21009 ac_status=$?
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest.$ac_objext; then
21018 HAVE_GCC_C94_SUPPORT=yes
21019else
21020 echo "$as_me: failed program was:" >&5
21021sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 HAVE_GCC_C94_SUPPORT=no
21024fi
21025
21026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 CFLAGS="$SAVE_CFLAGS"
21028 { echo "$as_me:$LINENO: result: $HAVE_GCC_C94_SUPPORT" >&5
21029echo "${ECHO_T}$HAVE_GCC_C94_SUPPORT" >&6; }
21030
21031
21032if test "x$HAVE_GCC_C94_SUPPORT" = "xyes"; then
21033 HAVE_GCC_C94_SUPPORT_TRUE=
21034 HAVE_GCC_C94_SUPPORT_FALSE='#'
21035else
21036 HAVE_GCC_C94_SUPPORT_TRUE='#'
21037 HAVE_GCC_C94_SUPPORT_FALSE=
21038fi
21039
21040
21041 { echo "$as_me:$LINENO: checking if $CC supports -std=c99" >&5
21042echo $ECHO_N "checking if $CC supports -std=c99... $ECHO_C" >&6; }
21043 SAVE_CFLAGS="$CFLAGS"
21044 CFLAGS="$CFLAGS -std=c99"
21045 cat >conftest.$ac_ext <<_ACEOF
21046/* confdefs.h. */
21047_ACEOF
21048cat confdefs.h >>conftest.$ac_ext
21049cat >>conftest.$ac_ext <<_ACEOF
21050/* end confdefs.h. */
21051
21052int
21053main ()
21054{
21055return 0;
21056 ;
21057 return 0;
21058}
21059_ACEOF
21060rm -f conftest.$ac_objext
21061if { (ac_try="$ac_compile"
21062case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065esac
21066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 HAVE_GCC_C99_SUPPORT=yes
21078else
21079 echo "$as_me: failed program was:" >&5
21080sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 HAVE_GCC_C99_SUPPORT=no
21083fi
21084
21085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 CFLAGS="$SAVE_CFLAGS"
21087 { echo "$as_me:$LINENO: result: $HAVE_GCC_C99_SUPPORT" >&5
21088echo "${ECHO_T}$HAVE_GCC_C99_SUPPORT" >&6; }
21089
21090
21091if test "x$HAVE_GCC_C99_SUPPORT" = "xyes"; then
21092 HAVE_GCC_C99_SUPPORT_TRUE=
21093 HAVE_GCC_C99_SUPPORT_FALSE='#'
21094else
21095 HAVE_GCC_C99_SUPPORT_TRUE='#'
21096 HAVE_GCC_C99_SUPPORT_FALSE=
21097fi
21098
21099
21100 { echo "$as_me:$LINENO: checking if $CXX supports -std=c++98" >&5
21101echo $ECHO_N "checking if $CXX supports -std=c++98... $ECHO_C" >&6; }
21102 SAVE_CXXFLAGS="$CXXFLAGS"
21103 CXXFLAGS="$CXXFLAGS -std=c++98"
21104 ac_ext=cpp
21105ac_cpp='$CXXCPP $CPPFLAGS'
21106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21109
21110 cat >conftest.$ac_ext <<_ACEOF
21111/* confdefs.h. */
21112_ACEOF
21113cat confdefs.h >>conftest.$ac_ext
21114cat >>conftest.$ac_ext <<_ACEOF
21115/* end confdefs.h. */
21116
21117int
21118main ()
21119{
21120return 0;
21121 ;
21122 return 0;
21123}
21124_ACEOF
21125rm -f conftest.$ac_objext
21126if { (ac_try="$ac_compile"
21127case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130esac
21131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_cxx_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 HAVE_GXX_CXX98_SUPPORT=yes
21143else
21144 echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 HAVE_GXX_CXX98_SUPPORT=no
21148fi
21149
21150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 ac_ext=c
21152ac_cpp='$CPP $CPPFLAGS'
21153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155ac_compiler_gnu=$ac_cv_c_compiler_gnu
21156
21157 CXXFLAGS="$SAVE_CXXFLAGS"
21158 { echo "$as_me:$LINENO: result: $HAVE_GXX_CXX98_SUPPORT" >&5
21159echo "${ECHO_T}$HAVE_GXX_CXX98_SUPPORT" >&6; }
21160
21161
21162if test "x$HAVE_GXX_CXX98_SUPPORT" = "xyes"; then
21163 HAVE_GXX_CXX98_SUPPORT_TRUE=
21164 HAVE_GXX_CXX98_SUPPORT_FALSE='#'
21165else
21166 HAVE_GXX_CXX98_SUPPORT_TRUE='#'
21167 HAVE_GXX_CXX98_SUPPORT_FALSE=
21168fi
21169
21170
21171
21172{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21173echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21174if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177 ac_check_lib_save_LIBS=$LIBS
21178LIBS="-lpthread $LIBS"
21179cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
21185
21186/* Override any GCC internal prototype to avoid an error.
21187 Use char because int might match the return type of a GCC
21188 builtin and then its argument prototype would still apply. */
21189#ifdef __cplusplus
21190extern "C"
21191#endif
21192char pthread_create ();
21193int
21194main ()
21195{
21196return pthread_create ();
21197 ;
21198 return 0;
21199}
21200_ACEOF
21201rm -f conftest.$ac_objext conftest$ac_exeext
21202if { (ac_try="$ac_link"
21203case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21206esac
21207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_link") 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext &&
21218 $as_test_x conftest$ac_exeext; then
21219 ac_cv_lib_pthread_pthread_create=yes
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 ac_cv_lib_pthread_pthread_create=no
21225fi
21226
21227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228 conftest$ac_exeext conftest.$ac_ext
21229LIBS=$ac_check_lib_save_LIBS
21230fi
21231{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21232echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21233if test $ac_cv_lib_pthread_pthread_create = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235#define HAVE_LIBPTHREAD 1
21236_ACEOF
21237
21238 LIBS="-lpthread $LIBS"
21239
21240else
21241
21242 cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h. */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h. */
21248
21249int
21250main ()
21251{
21252pthread_create();
21253 ;
21254 return 0;
21255}
21256_ACEOF
21257rm -f conftest.$ac_objext conftest$ac_exeext
21258if { (ac_try="$ac_link"
21259case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21262esac
21263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21264 (eval "$ac_link") 2>conftest.er1
21265 ac_status=$?
21266 grep -v '^ *+' conftest.er1 >conftest.err
21267 rm -f conftest.er1
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } && {
21271 test -z "$ac_c_werror_flag" ||
21272 test ! -s conftest.err
21273 } && test -s conftest$ac_exeext &&
21274 $as_test_x conftest$ac_exeext; then
21275 :
21276else
21277 echo "$as_me: failed program was:" >&5
21278sed 's/^/| /' conftest.$ac_ext >&5
21279
21280
21281 LDFLAGS="$LDFLAGS -pthread"
21282 cat >conftest.$ac_ext <<_ACEOF
21283/* confdefs.h. */
21284_ACEOF
21285cat confdefs.h >>conftest.$ac_ext
21286cat >>conftest.$ac_ext <<_ACEOF
21287/* end confdefs.h. */
21288
21289int
21290main ()
21291{
21292pthread_create();
21293 ;
21294 return 0;
21295}
21296_ACEOF
21297rm -f conftest.$ac_objext conftest$ac_exeext
21298if { (ac_try="$ac_link"
21299case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21302esac
21303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_link") 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest$ac_exeext &&
21314 $as_test_x conftest$ac_exeext; then
21315 :
21316else
21317 echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320
21321 { { echo "$as_me:$LINENO: error: Unable to link pthread functions" >&5
21322echo "$as_me: error: Unable to link pthread functions" >&2;}
21323 { (exit 1); exit 1; }; }
21324
21325fi
21326
21327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21328 conftest$ac_exeext conftest.$ac_ext
21329
21330fi
21331
21332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21333 conftest$ac_exeext conftest.$ac_ext
21334
21335fi
21336
21337
21338{ echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
21339echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
21340cat >conftest.$ac_ext <<_ACEOF
21341/* confdefs.h. */
21342_ACEOF
21343cat confdefs.h >>conftest.$ac_ext
21344cat >>conftest.$ac_ext <<_ACEOF
21345/* end confdefs.h. */
21346
21347#include <features.h>
21348#ifdef __GNU_LIBRARY__
21349 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21350 GLIBC21
21351 #endif
21352#endif
21353
21354_ACEOF
21355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21356 $EGREP "GLIBC21" >/dev/null 2>&1; then
21357
21358 { echo "$as_me:$LINENO: result: yes" >&5
21359echo "${ECHO_T}yes" >&6; }
21360
21361cat >>confdefs.h <<\_ACEOF
21362#define HAVE_GLIBC21 1
21363_ACEOF
21364
21365
21366else
21367
21368 { echo "$as_me:$LINENO: result: no" >&5
21369echo "${ECHO_T}no" >&6; }
21370 { echo "$as_me:$LINENO: checking for unicode library" >&5
21371echo $ECHO_N "checking for unicode library... $ECHO_C" >&6; }
21372 UNICODE_VERSION=`unicode-config --version`
21373 if test $? -eq 0; then
21374
21375cat >>confdefs.h <<\_ACEOF
21376#define HAVE_LIBUNICODE 1
21377_ACEOF
21378
21379 { echo "$as_me:$LINENO: result: $UNICODE_VERSION" >&5
21380echo "${ECHO_T}$UNICODE_VERSION" >&6; }
21381 UNICODE_CFLAGS=`unicode-config --cflags`
21382 UNICODE_LIBS=`unicode-config --libs`
21383
21384
21385 else
21386 { echo "$as_me:$LINENO: result: not present - Teletext search disabled" >&5
21387echo "${ECHO_T}not present - Teletext search disabled" >&6; }
21388 fi
21389
21390fi
21391rm -f conftest*
21392
21393
21394
21395 if test "X$prefix" = "XNONE"; then
21396 acl_final_prefix="$ac_default_prefix"
21397 else
21398 acl_final_prefix="$prefix"
21399 fi
21400 if test "X$exec_prefix" = "XNONE"; then
21401 acl_final_exec_prefix='${prefix}'
21402 else
21403 acl_final_exec_prefix="$exec_prefix"
21404 fi
21405 acl_save_prefix="$prefix"
21406 prefix="$acl_final_prefix"
21407 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21408 prefix="$acl_save_prefix"
21409
21410
21411# Check whether --with-gnu-ld was given.
21412if test "${with_gnu_ld+set}" = set; then
21413 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21414else
21415 with_gnu_ld=no
21416fi
21417
21418# Prepare PATH_SEPARATOR.
21419# The user is always right.
21420if test "${PATH_SEPARATOR+set}" != set; then
21421 echo "#! /bin/sh" >conf$$.sh
21422 echo "exit 0" >>conf$$.sh
21423 chmod +x conf$$.sh
21424 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21425 PATH_SEPARATOR=';'
21426 else
21427 PATH_SEPARATOR=:
21428 fi
21429 rm -f conf$$.sh
21430fi
21431ac_prog=ld
21432if test "$GCC" = yes; then
21433 # Check if gcc -print-prog-name=ld gives a path.
21434 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21435echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21436 case $host in
21437 *-*-mingw*)
21438 # gcc leaves a trailing carriage return which upsets mingw
21439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21440 *)
21441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21442 esac
21443 case $ac_prog in
21444 # Accept absolute paths.
21445 [\\/]* | [A-Za-z]:[\\/]*)
21446 re_direlt='/[^/][^/]*/\.\./'
21447 # Canonicalize the path of ld
21448 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21449 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21450 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21451 done
21452 test -z "$LD" && LD="$ac_prog"
21453 ;;
21454 "")
21455 # If it fails, then pretend we aren't using GCC.
21456 ac_prog=ld
21457 ;;
21458 *)
21459 # If it is relative, then search for the first ld in PATH.
21460 with_gnu_ld=unknown
21461 ;;
21462 esac
21463elif test "$with_gnu_ld" = yes; then
21464 { echo "$as_me:$LINENO: checking for GNU ld" >&5
21465echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21466else
21467 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21468echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21469fi
21470if test "${acl_cv_path_LD+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472else
21473 if test -z "$LD"; then
21474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21475 for ac_dir in $PATH; do
21476 test -z "$ac_dir" && ac_dir=.
21477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21478 acl_cv_path_LD="$ac_dir/$ac_prog"
21479 # Check to see if the program is GNU ld. I'd rather use --version,
21480 # but apparently some GNU ld's only accept -v.
21481 # Break only if it was the GNU/non-GNU ld that we prefer.
21482 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21483 *GNU* | *'with BFD'*)
21484 test "$with_gnu_ld" != no && break ;;
21485 *)
21486 test "$with_gnu_ld" != yes && break ;;
21487 esac
21488 fi
21489 done
21490 IFS="$ac_save_ifs"
21491else
21492 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21493fi
21494fi
21495
21496LD="$acl_cv_path_LD"
21497if test -n "$LD"; then
21498 { echo "$as_me:$LINENO: result: $LD" >&5
21499echo "${ECHO_T}$LD" >&6; }
21500else
21501 { echo "$as_me:$LINENO: result: no" >&5
21502echo "${ECHO_T}no" >&6; }
21503fi
21504test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21505echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21506 { (exit 1); exit 1; }; }
21507{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21508echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
21509if test "${acl_cv_prog_gnu_ld+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511else
21512 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21513case `$LD -v 2>&1 </dev/null` in
21514*GNU* | *'with BFD'*)
21515 acl_cv_prog_gnu_ld=yes ;;
21516*)
21517 acl_cv_prog_gnu_ld=no ;;
21518esac
21519fi
21520{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21521echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
21522with_gnu_ld=$acl_cv_prog_gnu_ld
21523
21524
21525
21526
21527 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21528echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21529if test "${acl_cv_rpath+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532
21533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21535 . ./conftest.sh
21536 rm -f ./conftest.sh
21537 acl_cv_rpath=done
21538
21539fi
21540{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21541echo "${ECHO_T}$acl_cv_rpath" >&6; }
21542 wl="$acl_cv_wl"
21543 libext="$acl_cv_libext"
21544 shlibext="$acl_cv_shlibext"
21545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21547 hardcode_direct="$acl_cv_hardcode_direct"
21548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21549 # Check whether --enable-rpath was given.
21550if test "${enable_rpath+set}" = set; then
21551 enableval=$enable_rpath; :
21552else
21553 enable_rpath=yes
21554fi
21555
21556
21557
21558 acl_libdirstem=lib
21559 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21560 if test -n "$searchpath"; then
21561 acl_save_IFS="${IFS= }"; IFS=":"
21562 for searchdir in $searchpath; do
21563 if test -d "$searchdir"; then
21564 case "$searchdir" in
21565 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21566 *) searchdir=`cd "$searchdir" && pwd`
21567 case "$searchdir" in
21568 */lib64 ) acl_libdirstem=lib64 ;;
21569 esac ;;
21570 esac
21571 fi
21572 done
21573 IFS="$acl_save_IFS"
21574 fi
21575
21576
21577
21578
21579
21580
21581
21582
21583 use_additional=yes
21584
21585 acl_save_prefix="$prefix"
21586 prefix="$acl_final_prefix"
21587 acl_save_exec_prefix="$exec_prefix"
21588 exec_prefix="$acl_final_exec_prefix"
21589
21590 eval additional_includedir=\"$includedir\"
21591 eval additional_libdir=\"$libdir\"
21592
21593 exec_prefix="$acl_save_exec_prefix"
21594 prefix="$acl_save_prefix"
21595
21596
21597# Check whether --with-libiconv-prefix was given.
21598if test "${with_libiconv_prefix+set}" = set; then
21599 withval=$with_libiconv_prefix;
21600 if test "X$withval" = "Xno"; then
21601 use_additional=no
21602 else
21603 if test "X$withval" = "X"; then
21604
21605 acl_save_prefix="$prefix"
21606 prefix="$acl_final_prefix"
21607 acl_save_exec_prefix="$exec_prefix"
21608 exec_prefix="$acl_final_exec_prefix"
21609
21610 eval additional_includedir=\"$includedir\"
21611 eval additional_libdir=\"$libdir\"
21612
21613 exec_prefix="$acl_save_exec_prefix"
21614 prefix="$acl_save_prefix"
21615
21616 else
21617 additional_includedir="$withval/include"
21618 additional_libdir="$withval/$acl_libdirstem"
21619 fi
21620 fi
21621
21622fi
21623
21624 LIBICONV=
21625 LTLIBICONV=
21626 INCICONV=
21627 rpathdirs=
21628 ltrpathdirs=
21629 names_already_handled=
21630 names_next_round='iconv '
21631 while test -n "$names_next_round"; do
21632 names_this_round="$names_next_round"
21633 names_next_round=
21634 for name in $names_this_round; do
21635 already_handled=
21636 for n in $names_already_handled; do
21637 if test "$n" = "$name"; then
21638 already_handled=yes
21639 break
21640 fi
21641 done
21642 if test -z "$already_handled"; then
21643 names_already_handled="$names_already_handled $name"
21644 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21645 eval value=\"\$HAVE_LIB$uppername\"
21646 if test -n "$value"; then
21647 if test "$value" = yes; then
21648 eval value=\"\$LIB$uppername\"
21649 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21650 eval value=\"\$LTLIB$uppername\"
21651 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21652 else
21653 :
21654 fi
21655 else
21656 found_dir=
21657 found_la=
21658 found_so=
21659 found_a=
21660 if test $use_additional = yes; then
21661 if test -n "$shlibext" \
21662 && { test -f "$additional_libdir/lib$name.$shlibext" \
21663 || { test "$shlibext" = dll \
21664 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
21665 found_dir="$additional_libdir"
21666 if test -f "$additional_libdir/lib$name.$shlibext"; then
21667 found_so="$additional_libdir/lib$name.$shlibext"
21668 else
21669 found_so="$additional_libdir/lib$name.dll.a"
21670 fi
21671 if test -f "$additional_libdir/lib$name.la"; then
21672 found_la="$additional_libdir/lib$name.la"
21673 fi
21674 else
21675 if test -f "$additional_libdir/lib$name.$libext"; then
21676 found_dir="$additional_libdir"
21677 found_a="$additional_libdir/lib$name.$libext"
21678 if test -f "$additional_libdir/lib$name.la"; then
21679 found_la="$additional_libdir/lib$name.la"
21680 fi
21681 fi
21682 fi
21683 fi
21684 if test "X$found_dir" = "X"; then
21685 for x in $LDFLAGS $LTLIBICONV; do
21686
21687 acl_save_prefix="$prefix"
21688 prefix="$acl_final_prefix"
21689 acl_save_exec_prefix="$exec_prefix"
21690 exec_prefix="$acl_final_exec_prefix"
21691 eval x=\"$x\"
21692 exec_prefix="$acl_save_exec_prefix"
21693 prefix="$acl_save_prefix"
21694
21695 case "$x" in
21696 -L*)
21697 dir=`echo "X$x" | sed -e 's/^X-L//'`
21698 if test -n "$shlibext" \
21699 && { test -f "$dir/lib$name.$shlibext" \
21700 || { test "$shlibext" = dll \
21701 && test -f "$dir/lib$name.dll.a"; }; }; then
21702 found_dir="$dir"
21703 if test -f "$dir/lib$name.$shlibext"; then
21704 found_so="$dir/lib$name.$shlibext"
21705 else
21706 found_so="$dir/lib$name.dll.a"
21707 fi
21708 if test -f "$dir/lib$name.la"; then
21709 found_la="$dir/lib$name.la"
21710 fi
21711 else
21712 if test -f "$dir/lib$name.$libext"; then
21713 found_dir="$dir"
21714 found_a="$dir/lib$name.$libext"
21715 if test -f "$dir/lib$name.la"; then
21716 found_la="$dir/lib$name.la"
21717 fi
21718 fi
21719 fi
21720 ;;
21721 esac
21722 if test "X$found_dir" != "X"; then
21723 break
21724 fi
21725 done
21726 fi
21727 if test "X$found_dir" != "X"; then
21728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21729 if test "X$found_so" != "X"; then
21730 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21732 else
21733 haveit=
21734 for x in $ltrpathdirs; do
21735 if test "X$x" = "X$found_dir"; then
21736 haveit=yes
21737 break
21738 fi
21739 done
21740 if test -z "$haveit"; then
21741 ltrpathdirs="$ltrpathdirs $found_dir"
21742 fi
21743 if test "$hardcode_direct" = yes; then
21744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21745 else
21746 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21748 haveit=
21749 for x in $rpathdirs; do
21750 if test "X$x" = "X$found_dir"; then
21751 haveit=yes
21752 break
21753 fi
21754 done
21755 if test -z "$haveit"; then
21756 rpathdirs="$rpathdirs $found_dir"
21757 fi
21758 else
21759 haveit=
21760 for x in $LDFLAGS $LIBICONV; do
21761
21762 acl_save_prefix="$prefix"
21763 prefix="$acl_final_prefix"
21764 acl_save_exec_prefix="$exec_prefix"
21765 exec_prefix="$acl_final_exec_prefix"
21766 eval x=\"$x\"
21767 exec_prefix="$acl_save_exec_prefix"
21768 prefix="$acl_save_prefix"
21769
21770 if test "X$x" = "X-L$found_dir"; then
21771 haveit=yes
21772 break
21773 fi
21774 done
21775 if test -z "$haveit"; then
21776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21777 fi
21778 if test "$hardcode_minus_L" != no; then
21779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21780 else
21781 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21782 fi
21783 fi
21784 fi
21785 fi
21786 else
21787 if test "X$found_a" != "X"; then
21788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21789 else
21790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21791 fi
21792 fi
21793 additional_includedir=
21794 case "$found_dir" in
21795 */$acl_libdirstem | */$acl_libdirstem/)
21796 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21797 additional_includedir="$basedir/include"
21798 ;;
21799 esac
21800 if test "X$additional_includedir" != "X"; then
21801 if test "X$additional_includedir" != "X/usr/include"; then
21802 haveit=
21803 if test "X$additional_includedir" = "X/usr/local/include"; then
21804 if test -n "$GCC"; then
21805 case $host_os in
21806 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21807 esac
21808 fi
21809 fi
21810 if test -z "$haveit"; then
21811 for x in $CPPFLAGS $INCICONV; do
21812
21813 acl_save_prefix="$prefix"
21814 prefix="$acl_final_prefix"
21815 acl_save_exec_prefix="$exec_prefix"
21816 exec_prefix="$acl_final_exec_prefix"
21817 eval x=\"$x\"
21818 exec_prefix="$acl_save_exec_prefix"
21819 prefix="$acl_save_prefix"
21820
21821 if test "X$x" = "X-I$additional_includedir"; then
21822 haveit=yes
21823 break
21824 fi
21825 done
21826 if test -z "$haveit"; then
21827 if test -d "$additional_includedir"; then
21828 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21829 fi
21830 fi
21831 fi
21832 fi
21833 fi
21834 if test -n "$found_la"; then
21835 save_libdir="$libdir"
21836 case "$found_la" in
21837 */* | *\\*) . "$found_la" ;;
21838 *) . "./$found_la" ;;
21839 esac
21840 libdir="$save_libdir"
21841 for dep in $dependency_libs; do
21842 case "$dep" in
21843 -L*)
21844 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21845 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21846 haveit=
21847 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21848 if test -n "$GCC"; then
21849 case $host_os in
21850 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21851 esac
21852 fi
21853 fi
21854 if test -z "$haveit"; then
21855 haveit=
21856 for x in $LDFLAGS $LIBICONV; do
21857
21858 acl_save_prefix="$prefix"
21859 prefix="$acl_final_prefix"
21860 acl_save_exec_prefix="$exec_prefix"
21861 exec_prefix="$acl_final_exec_prefix"
21862 eval x=\"$x\"
21863 exec_prefix="$acl_save_exec_prefix"
21864 prefix="$acl_save_prefix"
21865
21866 if test "X$x" = "X-L$additional_libdir"; then
21867 haveit=yes
21868 break
21869 fi
21870 done
21871 if test -z "$haveit"; then
21872 if test -d "$additional_libdir"; then
21873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21874 fi
21875 fi
21876 haveit=
21877 for x in $LDFLAGS $LTLIBICONV; do
21878
21879 acl_save_prefix="$prefix"
21880 prefix="$acl_final_prefix"
21881 acl_save_exec_prefix="$exec_prefix"
21882 exec_prefix="$acl_final_exec_prefix"
21883 eval x=\"$x\"
21884 exec_prefix="$acl_save_exec_prefix"
21885 prefix="$acl_save_prefix"
21886
21887 if test "X$x" = "X-L$additional_libdir"; then
21888 haveit=yes
21889 break
21890 fi
21891 done
21892 if test -z "$haveit"; then
21893 if test -d "$additional_libdir"; then
21894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21895 fi
21896 fi
21897 fi
21898 fi
21899 ;;
21900 -R*)
21901 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21902 if test "$enable_rpath" != no; then
21903 haveit=
21904 for x in $rpathdirs; do
21905 if test "X$x" = "X$dir"; then
21906 haveit=yes
21907 break
21908 fi
21909 done
21910 if test -z "$haveit"; then
21911 rpathdirs="$rpathdirs $dir"
21912 fi
21913 haveit=
21914 for x in $ltrpathdirs; do
21915 if test "X$x" = "X$dir"; then
21916 haveit=yes
21917 break
21918 fi
21919 done
21920 if test -z "$haveit"; then
21921 ltrpathdirs="$ltrpathdirs $dir"
21922 fi
21923 fi
21924 ;;
21925 -l*)
21926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21927 ;;
21928 *.la)
21929 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21930 ;;
21931 *)
21932 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21934 ;;
21935 esac
21936 done
21937 fi
21938 else
21939 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21941 fi
21942 fi
21943 fi
21944 done
21945 done
21946 if test "X$rpathdirs" != "X"; then
21947 if test -n "$hardcode_libdir_separator"; then
21948 alldirs=
21949 for found_dir in $rpathdirs; do
21950 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21951 done
21952 acl_save_libdir="$libdir"
21953 libdir="$alldirs"
21954 eval flag=\"$hardcode_libdir_flag_spec\"
21955 libdir="$acl_save_libdir"
21956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21957 else
21958 for found_dir in $rpathdirs; do
21959 acl_save_libdir="$libdir"
21960 libdir="$found_dir"
21961 eval flag=\"$hardcode_libdir_flag_spec\"
21962 libdir="$acl_save_libdir"
21963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21964 done
21965 fi
21966 fi
21967 if test "X$ltrpathdirs" != "X"; then
21968 for found_dir in $ltrpathdirs; do
21969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21970 done
21971 fi
21972
21973
21974
21975
21976
21977
21978 am_save_CPPFLAGS="$CPPFLAGS"
21979
21980 for element in $INCICONV; do
21981 haveit=
21982 for x in $CPPFLAGS; do
21983
21984 acl_save_prefix="$prefix"
21985 prefix="$acl_final_prefix"
21986 acl_save_exec_prefix="$exec_prefix"
21987 exec_prefix="$acl_final_exec_prefix"
21988 eval x=\"$x\"
21989 exec_prefix="$acl_save_exec_prefix"
21990 prefix="$acl_save_prefix"
21991
21992 if test "X$x" = "X$element"; then
21993 haveit=yes
21994 break
21995 fi
21996 done
21997 if test -z "$haveit"; then
21998 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21999 fi
22000 done
22001
22002
22003 { echo "$as_me:$LINENO: checking for iconv" >&5
22004echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22005if test "${am_cv_func_iconv+set}" = set; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22007else
22008
22009 am_cv_func_iconv="no, consider installing GNU libiconv"
22010 am_cv_lib_iconv=no
22011 cat >conftest.$ac_ext <<_ACEOF
22012/* confdefs.h. */
22013_ACEOF
22014cat confdefs.h >>conftest.$ac_ext
22015cat >>conftest.$ac_ext <<_ACEOF
22016/* end confdefs.h. */
22017#include <stdlib.h>
22018#include <iconv.h>
22019int
22020main ()
22021{
22022iconv_t cd = iconv_open("","");
22023 iconv(cd,NULL,NULL,NULL,NULL);
22024 iconv_close(cd);
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext conftest$ac_exeext
22030if { (ac_try="$ac_link"
22031case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034esac
22035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_link") 2>conftest.er1
22037 ac_status=$?
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } && {
22043 test -z "$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22045 } && test -s conftest$ac_exeext &&
22046 $as_test_x conftest$ac_exeext; then
22047 am_cv_func_iconv=yes
22048else
22049 echo "$as_me: failed program was:" >&5
22050sed 's/^/| /' conftest.$ac_ext >&5
22051
22052
22053fi
22054
22055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22056 conftest$ac_exeext conftest.$ac_ext
22057 if test "$am_cv_func_iconv" != yes; then
22058 am_save_LIBS="$LIBS"
22059 LIBS="$LIBS $LIBICONV"
22060 cat >conftest.$ac_ext <<_ACEOF
22061/* confdefs.h. */
22062_ACEOF
22063cat confdefs.h >>conftest.$ac_ext
22064cat >>conftest.$ac_ext <<_ACEOF
22065/* end confdefs.h. */
22066#include <stdlib.h>
22067#include <iconv.h>
22068int
22069main ()
22070{
22071iconv_t cd = iconv_open("","");
22072 iconv(cd,NULL,NULL,NULL,NULL);
22073 iconv_close(cd);
22074 ;
22075 return 0;
22076}
22077_ACEOF
22078rm -f conftest.$ac_objext conftest$ac_exeext
22079if { (ac_try="$ac_link"
22080case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083esac
22084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_link") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext &&
22095 $as_test_x conftest$ac_exeext; then
22096 am_cv_lib_iconv=yes
22097 am_cv_func_iconv=yes
22098else
22099 echo "$as_me: failed program was:" >&5
22100sed 's/^/| /' conftest.$ac_ext >&5
22101
22102
22103fi
22104
22105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22106 conftest$ac_exeext conftest.$ac_ext
22107 LIBS="$am_save_LIBS"
22108 fi
22109
22110fi
22111{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22112echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22113 if test "$am_cv_func_iconv" = yes; then
22114
22115cat >>confdefs.h <<\_ACEOF
22116#define HAVE_ICONV 1
22117_ACEOF
22118
22119 fi
22120 if test "$am_cv_lib_iconv" = yes; then
22121 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22122echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22123 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22124echo "${ECHO_T}$LIBICONV" >&6; }
22125 else
22126 CPPFLAGS="$am_save_CPPFLAGS"
22127 LIBICONV=
22128 LTLIBICONV=
22129 fi
22130
22131
22132
22133if test "x$am_cv_func_iconv" != xyes; then
22134 { { echo "$as_me:$LINENO: error: iconv() not found" >&5
22135echo "$as_me: error: iconv() not found" >&2;}
22136 { (exit 1); exit 1; }; }
22137fi
22138LIBS="$LIBS $LIBICONV"
22139
22140HAVE_PNG="yes"
22141{ echo "$as_me:$LINENO: checking for png_destroy_write_struct in -lpng" >&5
22142echo $ECHO_N "checking for png_destroy_write_struct in -lpng... $ECHO_C" >&6; }
22143if test "${ac_cv_lib_png_png_destroy_write_struct+set}" = set; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
22145else
22146 ac_check_lib_save_LIBS=$LIBS
22147LIBS="-lpng -lz -lm $LIBS"
22148cat >conftest.$ac_ext <<_ACEOF
22149/* confdefs.h. */
22150_ACEOF
22151cat confdefs.h >>conftest.$ac_ext
22152cat >>conftest.$ac_ext <<_ACEOF
22153/* end confdefs.h. */
22154
22155/* Override any GCC internal prototype to avoid an error.
22156 Use char because int might match the return type of a GCC
22157 builtin and then its argument prototype would still apply. */
22158#ifdef __cplusplus
22159extern "C"
22160#endif
22161char png_destroy_write_struct ();
22162int
22163main ()
22164{
22165return png_destroy_write_struct ();
22166 ;
22167 return 0;
22168}
22169_ACEOF
22170rm -f conftest.$ac_objext conftest$ac_exeext
22171if { (ac_try="$ac_link"
22172case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175esac
22176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_link") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext &&
22187 $as_test_x conftest$ac_exeext; then
22188 ac_cv_lib_png_png_destroy_write_struct=yes
22189else
22190 echo "$as_me: failed program was:" >&5
22191sed 's/^/| /' conftest.$ac_ext >&5
22192
22193 ac_cv_lib_png_png_destroy_write_struct=no
22194fi
22195
22196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22197 conftest$ac_exeext conftest.$ac_ext
22198LIBS=$ac_check_lib_save_LIBS
22199fi
22200{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_destroy_write_struct" >&5
22201echo "${ECHO_T}$ac_cv_lib_png_png_destroy_write_struct" >&6; }
22202if test $ac_cv_lib_png_png_destroy_write_struct = yes; then
22203 LIBS="$LIBS -lpng -lz"
22204else
22205 HAVE_PNG="no"
22206fi
22207
22208if test "x$HAVE_PNG" = xyes; then
22209
22210cat >>confdefs.h <<\_ACEOF
22211#define HAVE_LIBPNG 1
22212_ACEOF
22213
22214fi
22215
22216{ echo "$as_me:$LINENO: checking for X" >&5
22217echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22218
22219
22220# Check whether --with-x was given.
22221if test "${with_x+set}" = set; then
22222 withval=$with_x;
22223fi
22224
22225# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22226if test "x$with_x" = xno; then
22227 # The user explicitly disabled X.
22228 have_x=disabled
22229else
22230 case $x_includes,$x_libraries in #(
22231 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22232echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22233 { (exit 1); exit 1; }; };; #(
22234 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236else
22237 # One or both of the vars are not set, and there is no cached value.
22238ac_x_includes=no ac_x_libraries=no
22239rm -f -r conftest.dir
22240if mkdir conftest.dir; then
22241 cd conftest.dir
22242 cat >Imakefile <<'_ACEOF'
22243incroot:
22244 @echo incroot='${INCROOT}'
22245usrlibdir:
22246 @echo usrlibdir='${USRLIBDIR}'
22247libdir:
22248 @echo libdir='${LIBDIR}'
22249_ACEOF
22250 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22252 for ac_var in incroot usrlibdir libdir; do
22253 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22254 done
22255 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22256 for ac_extension in a so sl; do
22257 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22258 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22259 ac_im_usrlibdir=$ac_im_libdir; break
22260 fi
22261 done
22262 # Screen out bogus values from the imake configuration. They are
22263 # bogus both because they are the default anyway, and because
22264 # using them would break gcc on systems where it needs fixed includes.
22265 case $ac_im_incroot in
22266 /usr/include) ac_x_includes= ;;
22267 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22268 esac
22269 case $ac_im_usrlibdir in
22270 /usr/lib | /lib) ;;
22271 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22272 esac
22273 fi
22274 cd ..
22275 rm -f -r conftest.dir
22276fi
22277
22278# Standard set of common directories for X headers.
22279# Check X11 before X11Rn because it is often a symlink to the current release.
22280ac_x_header_dirs='
22281/usr/X11/include
22282/usr/X11R6/include
22283/usr/X11R5/include
22284/usr/X11R4/include
22285
22286/usr/include/X11
22287/usr/include/X11R6
22288/usr/include/X11R5
22289/usr/include/X11R4
22290
22291/usr/local/X11/include
22292/usr/local/X11R6/include
22293/usr/local/X11R5/include
22294/usr/local/X11R4/include
22295
22296/usr/local/include/X11
22297/usr/local/include/X11R6
22298/usr/local/include/X11R5
22299/usr/local/include/X11R4
22300
22301/usr/X386/include
22302/usr/x386/include
22303/usr/XFree86/include/X11
22304
22305/usr/include
22306/usr/local/include
22307/usr/unsupported/include
22308/usr/athena/include
22309/usr/local/x11r5/include
22310/usr/lpp/Xamples/include
22311
22312/usr/openwin/include
22313/usr/openwin/share/include'
22314
22315if test "$ac_x_includes" = no; then
22316 # Guess where to find include files, by looking for Xlib.h.
22317 # First, try using that file with no special directory specified.
22318 cat >conftest.$ac_ext <<_ACEOF
22319/* confdefs.h. */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
22323/* end confdefs.h. */
22324#include <X11/Xlib.h>
22325_ACEOF
22326if { (ac_try="$ac_cpp conftest.$ac_ext"
22327case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330esac
22331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } >/dev/null && {
22339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 }; then
22342 # We can compile using X headers with no special include directory.
22343ac_x_includes=
22344else
22345 echo "$as_me: failed program was:" >&5
22346sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 for ac_dir in $ac_x_header_dirs; do
22349 if test -r "$ac_dir/X11/Xlib.h"; then
22350 ac_x_includes=$ac_dir
22351 break
22352 fi
22353done
22354fi
22355
22356rm -f conftest.err conftest.$ac_ext
22357fi # $ac_x_includes = no
22358
22359if test "$ac_x_libraries" = no; then
22360 # Check for the libraries.
22361 # See if we find them without any special options.
22362 # Don't add to $LIBS permanently.
22363 ac_save_LIBS=$LIBS
22364 LIBS="-lX11 $LIBS"
22365 cat >conftest.$ac_ext <<_ACEOF
22366/* confdefs.h. */
22367_ACEOF
22368cat confdefs.h >>conftest.$ac_ext
22369cat >>conftest.$ac_ext <<_ACEOF
22370/* end confdefs.h. */
22371#include <X11/Xlib.h>
22372int
22373main ()
22374{
22375XrmInitialize ()
22376 ;
22377 return 0;
22378}
22379_ACEOF
22380rm -f conftest.$ac_objext conftest$ac_exeext
22381if { (ac_try="$ac_link"
22382case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22385esac
22386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_link") 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && {
22394 test -z "$ac_c_werror_flag" ||
22395 test ! -s conftest.err
22396 } && test -s conftest$ac_exeext &&
22397 $as_test_x conftest$ac_exeext; then
22398 LIBS=$ac_save_LIBS
22399# We can link X programs with no special library path.
22400ac_x_libraries=
22401else
22402 echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 LIBS=$ac_save_LIBS
22406for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22407do
22408 # Don't even attempt the hair of trying to link an X program!
22409 for ac_extension in a so sl; do
22410 if test -r "$ac_dir/libX11.$ac_extension"; then
22411 ac_x_libraries=$ac_dir
22412 break 2
22413 fi
22414 done
22415done
22416fi
22417
22418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22419 conftest$ac_exeext conftest.$ac_ext
22420fi # $ac_x_libraries = no
22421
22422case $ac_x_includes,$ac_x_libraries in #(
22423 no,* | *,no | *\'*)
22424 # Didn't find X, or a directory has "'" in its name.
22425 ac_cv_have_x="have_x=no";; #(
22426 *)
22427 # Record where we found X for the cache.
22428 ac_cv_have_x="have_x=yes\
22429 ac_x_includes='$ac_x_includes'\
22430 ac_x_libraries='$ac_x_libraries'"
22431esac
22432fi
22433;; #(
22434 *) have_x=yes;;
22435 esac
22436 eval "$ac_cv_have_x"
22437fi # $with_x != no
22438
22439if test "$have_x" != yes; then
22440 { echo "$as_me:$LINENO: result: $have_x" >&5
22441echo "${ECHO_T}$have_x" >&6; }
22442 no_x=yes
22443else
22444 # If each of the values was on the command line, it overrides each guess.
22445 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22446 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22447 # Update the cache value to reflect the command line values.
22448 ac_cv_have_x="have_x=yes\
22449 ac_x_includes='$x_includes'\
22450 ac_x_libraries='$x_libraries'"
22451 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22452echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22453fi
22454
22455if test "$no_x" = yes; then
22456 # Not all programs may use this symbol, but it does not hurt to define it.
22457
22458cat >>confdefs.h <<\_ACEOF
22459#define X_DISPLAY_MISSING 1
22460_ACEOF
22461
22462 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22463else
22464 if test -n "$x_includes"; then
22465 X_CFLAGS="$X_CFLAGS -I$x_includes"
22466 fi
22467
22468 # It would also be nice to do this for all -L options, not just this one.
22469 if test -n "$x_libraries"; then
22470 X_LIBS="$X_LIBS -L$x_libraries"
22471 # For Solaris; some versions of Sun CC require a space after -R and
22472 # others require no space. Words are not sufficient . . . .
22473 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22474echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22475 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22476 ac_xsave_c_werror_flag=$ac_c_werror_flag
22477 ac_c_werror_flag=yes
22478 cat >conftest.$ac_ext <<_ACEOF
22479/* confdefs.h. */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h. */
22484
22485int
22486main ()
22487{
22488
22489 ;
22490 return 0;
22491}
22492_ACEOF
22493rm -f conftest.$ac_objext conftest$ac_exeext
22494if { (ac_try="$ac_link"
22495case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498esac
22499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_link") 2>conftest.er1
22501 ac_status=$?
22502 grep -v '^ *+' conftest.er1 >conftest.err
22503 rm -f conftest.er1
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } && {
22507 test -z "$ac_c_werror_flag" ||
22508 test ! -s conftest.err
22509 } && test -s conftest$ac_exeext &&
22510 $as_test_x conftest$ac_exeext; then
22511 { echo "$as_me:$LINENO: result: no" >&5
22512echo "${ECHO_T}no" >&6; }
22513 X_LIBS="$X_LIBS -R$x_libraries"
22514else
22515 echo "$as_me: failed program was:" >&5
22516sed 's/^/| /' conftest.$ac_ext >&5
22517
22518 LIBS="$ac_xsave_LIBS -R $x_libraries"
22519 cat >conftest.$ac_ext <<_ACEOF
22520/* confdefs.h. */
22521_ACEOF
22522cat confdefs.h >>conftest.$ac_ext
22523cat >>conftest.$ac_ext <<_ACEOF
22524/* end confdefs.h. */
22525
22526int
22527main ()
22528{
22529
22530 ;
22531 return 0;
22532}
22533_ACEOF
22534rm -f conftest.$ac_objext conftest$ac_exeext
22535if { (ac_try="$ac_link"
22536case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539esac
22540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_link") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest$ac_exeext &&
22551 $as_test_x conftest$ac_exeext; then
22552 { echo "$as_me:$LINENO: result: yes" >&5
22553echo "${ECHO_T}yes" >&6; }
22554 X_LIBS="$X_LIBS -R $x_libraries"
22555else
22556 echo "$as_me: failed program was:" >&5
22557sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 { echo "$as_me:$LINENO: result: neither works" >&5
22560echo "${ECHO_T}neither works" >&6; }
22561fi
22562
22563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22564 conftest$ac_exeext conftest.$ac_ext
22565fi
22566
22567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22568 conftest$ac_exeext conftest.$ac_ext
22569 ac_c_werror_flag=$ac_xsave_c_werror_flag
22570 LIBS=$ac_xsave_LIBS
22571 fi
22572
22573 # Check for system-dependent libraries X programs must link with.
22574 # Do this before checking for the system-independent R6 libraries
22575 # (-lICE), since we may need -lsocket or whatever for X linking.
22576
22577 if test "$ISC" = yes; then
22578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22579 else
22580 # Martyn Johnson says this is needed for Ultrix, if the X
22581 # libraries were built with DECnet support. And Karl Berry says
22582 # the Alpha needs dnet_stub (dnet does not exist).
22583 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22584 cat >conftest.$ac_ext <<_ACEOF
22585/* confdefs.h. */
22586_ACEOF
22587cat confdefs.h >>conftest.$ac_ext
22588cat >>conftest.$ac_ext <<_ACEOF
22589/* end confdefs.h. */
22590
22591/* Override any GCC internal prototype to avoid an error.
22592 Use char because int might match the return type of a GCC
22593 builtin and then its argument prototype would still apply. */
22594#ifdef __cplusplus
22595extern "C"
22596#endif
22597char XOpenDisplay ();
22598int
22599main ()
22600{
22601return XOpenDisplay ();
22602 ;
22603 return 0;
22604}
22605_ACEOF
22606rm -f conftest.$ac_objext conftest$ac_exeext
22607if { (ac_try="$ac_link"
22608case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22611esac
22612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_link") 2>conftest.er1
22614 ac_status=$?
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest$ac_exeext &&
22623 $as_test_x conftest$ac_exeext; then
22624 :
22625else
22626 echo "$as_me: failed program was:" >&5
22627sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22630echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22631if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633else
22634 ac_check_lib_save_LIBS=$LIBS
22635LIBS="-ldnet $LIBS"
22636cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642
22643/* Override any GCC internal prototype to avoid an error.
22644 Use char because int might match the return type of a GCC
22645 builtin and then its argument prototype would still apply. */
22646#ifdef __cplusplus
22647extern "C"
22648#endif
22649char dnet_ntoa ();
22650int
22651main ()
22652{
22653return dnet_ntoa ();
22654 ;
22655 return 0;
22656}
22657_ACEOF
22658rm -f conftest.$ac_objext conftest$ac_exeext
22659if { (ac_try="$ac_link"
22660case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22663esac
22664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22665 (eval "$ac_link") 2>conftest.er1
22666 ac_status=$?
22667 grep -v '^ *+' conftest.er1 >conftest.err
22668 rm -f conftest.er1
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } && {
22672 test -z "$ac_c_werror_flag" ||
22673 test ! -s conftest.err
22674 } && test -s conftest$ac_exeext &&
22675 $as_test_x conftest$ac_exeext; then
22676 ac_cv_lib_dnet_dnet_ntoa=yes
22677else
22678 echo "$as_me: failed program was:" >&5
22679sed 's/^/| /' conftest.$ac_ext >&5
22680
22681 ac_cv_lib_dnet_dnet_ntoa=no
22682fi
22683
22684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22685 conftest$ac_exeext conftest.$ac_ext
22686LIBS=$ac_check_lib_save_LIBS
22687fi
22688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22689echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22690if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22691 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22692fi
22693
22694 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22695 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22696echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22697if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699else
22700 ac_check_lib_save_LIBS=$LIBS
22701LIBS="-ldnet_stub $LIBS"
22702cat >conftest.$ac_ext <<_ACEOF
22703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
22708
22709/* Override any GCC internal prototype to avoid an error.
22710 Use char because int might match the return type of a GCC
22711 builtin and then its argument prototype would still apply. */
22712#ifdef __cplusplus
22713extern "C"
22714#endif
22715char dnet_ntoa ();
22716int
22717main ()
22718{
22719return dnet_ntoa ();
22720 ;
22721 return 0;
22722}
22723_ACEOF
22724rm -f conftest.$ac_objext conftest$ac_exeext
22725if { (ac_try="$ac_link"
22726case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729esac
22730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_link") 2>conftest.er1
22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest$ac_exeext &&
22741 $as_test_x conftest$ac_exeext; then
22742 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22743else
22744 echo "$as_me: failed program was:" >&5
22745sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_lib_dnet_stub_dnet_ntoa=no
22748fi
22749
22750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22751 conftest$ac_exeext conftest.$ac_ext
22752LIBS=$ac_check_lib_save_LIBS
22753fi
22754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22755echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22756if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22758fi
22759
22760 fi
22761fi
22762
22763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22764 conftest$ac_exeext conftest.$ac_ext
22765 LIBS="$ac_xsave_LIBS"
22766
22767 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22768 # to get the SysV transport functions.
22769 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22770 # needs -lnsl.
22771 # The nsl library prevents programs from opening the X display
22772 # on Irix 5.2, according to T.E. Dickey.
22773 # The functions gethostbyname, getservbyname, and inet_addr are
22774 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22775 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22776echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22777if test "${ac_cv_func_gethostbyname+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22779else
22780 cat >conftest.$ac_ext <<_ACEOF
22781/* confdefs.h. */
22782_ACEOF
22783cat confdefs.h >>conftest.$ac_ext
22784cat >>conftest.$ac_ext <<_ACEOF
22785/* end confdefs.h. */
22786/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22788#define gethostbyname innocuous_gethostbyname
22789
22790/* System header to define __stub macros and hopefully few prototypes,
22791 which can conflict with char gethostbyname (); below.
22792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22793 <limits.h> exists even on freestanding compilers. */
22794
22795#ifdef __STDC__
22796# include <limits.h>
22797#else
22798# include <assert.h>
22799#endif
22800
22801#undef gethostbyname
22802
22803/* Override any GCC internal prototype to avoid an error.
22804 Use char because int might match the return type of a GCC
22805 builtin and then its argument prototype would still apply. */
22806#ifdef __cplusplus
22807extern "C"
22808#endif
22809char gethostbyname ();
22810/* The GNU C library defines this for functions which it implements
22811 to always fail with ENOSYS. Some functions are actually named
22812 something starting with __ and the normal name is an alias. */
22813#if defined __stub_gethostbyname || defined __stub___gethostbyname
22814choke me
22815#endif
22816
22817int
22818main ()
22819{
22820return gethostbyname ();
22821 ;
22822 return 0;
22823}
22824_ACEOF
22825rm -f conftest.$ac_objext conftest$ac_exeext
22826if { (ac_try="$ac_link"
22827case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830esac
22831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_link") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest$ac_exeext &&
22842 $as_test_x conftest$ac_exeext; then
22843 ac_cv_func_gethostbyname=yes
22844else
22845 echo "$as_me: failed program was:" >&5
22846sed 's/^/| /' conftest.$ac_ext >&5
22847
22848 ac_cv_func_gethostbyname=no
22849fi
22850
22851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852 conftest$ac_exeext conftest.$ac_ext
22853fi
22854{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22855echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22856
22857 if test $ac_cv_func_gethostbyname = no; then
22858 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22859echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22860if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22862else
22863 ac_check_lib_save_LIBS=$LIBS
22864LIBS="-lnsl $LIBS"
22865cat >conftest.$ac_ext <<_ACEOF
22866/* confdefs.h. */
22867_ACEOF
22868cat confdefs.h >>conftest.$ac_ext
22869cat >>conftest.$ac_ext <<_ACEOF
22870/* end confdefs.h. */
22871
22872/* Override any GCC internal prototype to avoid an error.
22873 Use char because int might match the return type of a GCC
22874 builtin and then its argument prototype would still apply. */
22875#ifdef __cplusplus
22876extern "C"
22877#endif
22878char gethostbyname ();
22879int
22880main ()
22881{
22882return gethostbyname ();
22883 ;
22884 return 0;
22885}
22886_ACEOF
22887rm -f conftest.$ac_objext conftest$ac_exeext
22888if { (ac_try="$ac_link"
22889case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22892esac
22893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22894 (eval "$ac_link") 2>conftest.er1
22895 ac_status=$?
22896 grep -v '^ *+' conftest.er1 >conftest.err
22897 rm -f conftest.er1
22898 cat conftest.err >&5
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); } && {
22901 test -z "$ac_c_werror_flag" ||
22902 test ! -s conftest.err
22903 } && test -s conftest$ac_exeext &&
22904 $as_test_x conftest$ac_exeext; then
22905 ac_cv_lib_nsl_gethostbyname=yes
22906else
22907 echo "$as_me: failed program was:" >&5
22908sed 's/^/| /' conftest.$ac_ext >&5
22909
22910 ac_cv_lib_nsl_gethostbyname=no
22911fi
22912
22913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22914 conftest$ac_exeext conftest.$ac_ext
22915LIBS=$ac_check_lib_save_LIBS
22916fi
22917{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22918echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22919if test $ac_cv_lib_nsl_gethostbyname = yes; then
22920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22921fi
22922
22923 if test $ac_cv_lib_nsl_gethostbyname = no; then
22924 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22925echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22926if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22928else
22929 ac_check_lib_save_LIBS=$LIBS
22930LIBS="-lbsd $LIBS"
22931cat >conftest.$ac_ext <<_ACEOF
22932/* confdefs.h. */
22933_ACEOF
22934cat confdefs.h >>conftest.$ac_ext
22935cat >>conftest.$ac_ext <<_ACEOF
22936/* end confdefs.h. */
22937
22938/* Override any GCC internal prototype to avoid an error.
22939 Use char because int might match the return type of a GCC
22940 builtin and then its argument prototype would still apply. */
22941#ifdef __cplusplus
22942extern "C"
22943#endif
22944char gethostbyname ();
22945int
22946main ()
22947{
22948return gethostbyname ();
22949 ;
22950 return 0;
22951}
22952_ACEOF
22953rm -f conftest.$ac_objext conftest$ac_exeext
22954if { (ac_try="$ac_link"
22955case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22958esac
22959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_link") 2>conftest.er1
22961 ac_status=$?
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest$ac_exeext &&
22970 $as_test_x conftest$ac_exeext; then
22971 ac_cv_lib_bsd_gethostbyname=yes
22972else
22973 echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5
22975
22976 ac_cv_lib_bsd_gethostbyname=no
22977fi
22978
22979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22980 conftest$ac_exeext conftest.$ac_ext
22981LIBS=$ac_check_lib_save_LIBS
22982fi
22983{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22984echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22985if test $ac_cv_lib_bsd_gethostbyname = yes; then
22986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22987fi
22988
22989 fi
22990 fi
22991
22992 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22993 # socket/setsockopt and other routines are undefined under SCO ODT
22994 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22995 # on later versions), says Simon Leinen: it contains gethostby*
22996 # variants that don't use the name server (or something). -lsocket
22997 # must be given before -lnsl if both are needed. We assume that
22998 # if connect needs -lnsl, so does gethostbyname.
22999 { echo "$as_me:$LINENO: checking for connect" >&5
23000echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23001if test "${ac_cv_func_connect+set}" = set; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23003else
23004 cat >conftest.$ac_ext <<_ACEOF
23005/* confdefs.h. */
23006_ACEOF
23007cat confdefs.h >>conftest.$ac_ext
23008cat >>conftest.$ac_ext <<_ACEOF
23009/* end confdefs.h. */
23010/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23012#define connect innocuous_connect
23013
23014/* System header to define __stub macros and hopefully few prototypes,
23015 which can conflict with char connect (); below.
23016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23017 <limits.h> exists even on freestanding compilers. */
23018
23019#ifdef __STDC__
23020# include <limits.h>
23021#else
23022# include <assert.h>
23023#endif
23024
23025#undef connect
23026
23027/* Override any GCC internal prototype to avoid an error.
23028 Use char because int might match the return type of a GCC
23029 builtin and then its argument prototype would still apply. */
23030#ifdef __cplusplus
23031extern "C"
23032#endif
23033char connect ();
23034/* The GNU C library defines this for functions which it implements
23035 to always fail with ENOSYS. Some functions are actually named
23036 something starting with __ and the normal name is an alias. */
23037#if defined __stub_connect || defined __stub___connect
23038choke me
23039#endif
23040
23041int
23042main ()
23043{
23044return connect ();
23045 ;
23046 return 0;
23047}
23048_ACEOF
23049rm -f conftest.$ac_objext conftest$ac_exeext
23050if { (ac_try="$ac_link"
23051case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23054esac
23055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_link") 2>conftest.er1
23057 ac_status=$?
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest$ac_exeext &&
23066 $as_test_x conftest$ac_exeext; then
23067 ac_cv_func_connect=yes
23068else
23069 echo "$as_me: failed program was:" >&5
23070sed 's/^/| /' conftest.$ac_ext >&5
23071
23072 ac_cv_func_connect=no
23073fi
23074
23075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23076 conftest$ac_exeext conftest.$ac_ext
23077fi
23078{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23079echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23080
23081 if test $ac_cv_func_connect = no; then
23082 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23083echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23084if test "${ac_cv_lib_socket_connect+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086else
23087 ac_check_lib_save_LIBS=$LIBS
23088LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23089cat >conftest.$ac_ext <<_ACEOF
23090/* confdefs.h. */
23091_ACEOF
23092cat confdefs.h >>conftest.$ac_ext
23093cat >>conftest.$ac_ext <<_ACEOF
23094/* end confdefs.h. */
23095
23096/* Override any GCC internal prototype to avoid an error.
23097 Use char because int might match the return type of a GCC
23098 builtin and then its argument prototype would still apply. */
23099#ifdef __cplusplus
23100extern "C"
23101#endif
23102char connect ();
23103int
23104main ()
23105{
23106return connect ();
23107 ;
23108 return 0;
23109}
23110_ACEOF
23111rm -f conftest.$ac_objext conftest$ac_exeext
23112if { (ac_try="$ac_link"
23113case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116esac
23117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_link") 2>conftest.er1
23119 ac_status=$?
23120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest$ac_exeext &&
23128 $as_test_x conftest$ac_exeext; then
23129 ac_cv_lib_socket_connect=yes
23130else
23131 echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 ac_cv_lib_socket_connect=no
23135fi
23136
23137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23138 conftest$ac_exeext conftest.$ac_ext
23139LIBS=$ac_check_lib_save_LIBS
23140fi
23141{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23142echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23143if test $ac_cv_lib_socket_connect = yes; then
23144 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23145fi
23146
23147 fi
23148
23149 # Guillermo Gomez says -lposix is necessary on A/UX.
23150 { echo "$as_me:$LINENO: checking for remove" >&5
23151echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23152if test "${ac_cv_func_remove+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154else
23155 cat >conftest.$ac_ext <<_ACEOF
23156/* confdefs.h. */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h. */
23161/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23163#define remove innocuous_remove
23164
23165/* System header to define __stub macros and hopefully few prototypes,
23166 which can conflict with char remove (); below.
23167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23168 <limits.h> exists even on freestanding compilers. */
23169
23170#ifdef __STDC__
23171# include <limits.h>
23172#else
23173# include <assert.h>
23174#endif
23175
23176#undef remove
23177
23178/* Override any GCC internal prototype to avoid an error.
23179 Use char because int might match the return type of a GCC
23180 builtin and then its argument prototype would still apply. */
23181#ifdef __cplusplus
23182extern "C"
23183#endif
23184char remove ();
23185/* The GNU C library defines this for functions which it implements
23186 to always fail with ENOSYS. Some functions are actually named
23187 something starting with __ and the normal name is an alias. */
23188#if defined __stub_remove || defined __stub___remove
23189choke me
23190#endif
23191
23192int
23193main ()
23194{
23195return remove ();
23196 ;
23197 return 0;
23198}
23199_ACEOF
23200rm -f conftest.$ac_objext conftest$ac_exeext
23201if { (ac_try="$ac_link"
23202case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23205esac
23206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>conftest.er1
23208 ac_status=$?
23209 grep -v '^ *+' conftest.er1 >conftest.err
23210 rm -f conftest.er1
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest$ac_exeext &&
23217 $as_test_x conftest$ac_exeext; then
23218 ac_cv_func_remove=yes
23219else
23220 echo "$as_me: failed program was:" >&5
23221sed 's/^/| /' conftest.$ac_ext >&5
23222
23223 ac_cv_func_remove=no
23224fi
23225
23226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23227 conftest$ac_exeext conftest.$ac_ext
23228fi
23229{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23230echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23231
23232 if test $ac_cv_func_remove = no; then
23233 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23234echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23235if test "${ac_cv_lib_posix_remove+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23237else
23238 ac_check_lib_save_LIBS=$LIBS
23239LIBS="-lposix $LIBS"
23240cat >conftest.$ac_ext <<_ACEOF
23241/* confdefs.h. */
23242_ACEOF
23243cat confdefs.h >>conftest.$ac_ext
23244cat >>conftest.$ac_ext <<_ACEOF
23245/* end confdefs.h. */
23246
23247/* Override any GCC internal prototype to avoid an error.
23248 Use char because int might match the return type of a GCC
23249 builtin and then its argument prototype would still apply. */
23250#ifdef __cplusplus
23251extern "C"
23252#endif
23253char remove ();
23254int
23255main ()
23256{
23257return remove ();
23258 ;
23259 return 0;
23260}
23261_ACEOF
23262rm -f conftest.$ac_objext conftest$ac_exeext
23263if { (ac_try="$ac_link"
23264case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267esac
23268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_link") 2>conftest.er1
23270 ac_status=$?
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest$ac_exeext &&
23279 $as_test_x conftest$ac_exeext; then
23280 ac_cv_lib_posix_remove=yes
23281else
23282 echo "$as_me: failed program was:" >&5
23283sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 ac_cv_lib_posix_remove=no
23286fi
23287
23288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23289 conftest$ac_exeext conftest.$ac_ext
23290LIBS=$ac_check_lib_save_LIBS
23291fi
23292{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23293echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23294if test $ac_cv_lib_posix_remove = yes; then
23295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23296fi
23297
23298 fi
23299
23300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23301 { echo "$as_me:$LINENO: checking for shmat" >&5
23302echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23303if test "${ac_cv_func_shmat+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306 cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23314#define shmat innocuous_shmat
23315
23316/* System header to define __stub macros and hopefully few prototypes,
23317 which can conflict with char shmat (); below.
23318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23319 <limits.h> exists even on freestanding compilers. */
23320
23321#ifdef __STDC__
23322# include <limits.h>
23323#else
23324# include <assert.h>
23325#endif
23326
23327#undef shmat
23328
23329/* Override any GCC internal prototype to avoid an error.
23330 Use char because int might match the return type of a GCC
23331 builtin and then its argument prototype would still apply. */
23332#ifdef __cplusplus
23333extern "C"
23334#endif
23335char shmat ();
23336/* The GNU C library defines this for functions which it implements
23337 to always fail with ENOSYS. Some functions are actually named
23338 something starting with __ and the normal name is an alias. */
23339#if defined __stub_shmat || defined __stub___shmat
23340choke me
23341#endif
23342
23343int
23344main ()
23345{
23346return shmat ();
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext conftest$ac_exeext
23352if { (ac_try="$ac_link"
23353case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356esac
23357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_link") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest$ac_exeext &&
23368 $as_test_x conftest$ac_exeext; then
23369 ac_cv_func_shmat=yes
23370else
23371 echo "$as_me: failed program was:" >&5
23372sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_func_shmat=no
23375fi
23376
23377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23378 conftest$ac_exeext conftest.$ac_ext
23379fi
23380{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23381echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23382
23383 if test $ac_cv_func_shmat = no; then
23384 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23385echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
23386if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23387 echo $ECHO_N "(cached) $ECHO_C" >&6
23388else
23389 ac_check_lib_save_LIBS=$LIBS
23390LIBS="-lipc $LIBS"
23391cat >conftest.$ac_ext <<_ACEOF
23392/* confdefs.h. */
23393_ACEOF
23394cat confdefs.h >>conftest.$ac_ext
23395cat >>conftest.$ac_ext <<_ACEOF
23396/* end confdefs.h. */
23397
23398/* Override any GCC internal prototype to avoid an error.
23399 Use char because int might match the return type of a GCC
23400 builtin and then its argument prototype would still apply. */
23401#ifdef __cplusplus
23402extern "C"
23403#endif
23404char shmat ();
23405int
23406main ()
23407{
23408return shmat ();
23409 ;
23410 return 0;
23411}
23412_ACEOF
23413rm -f conftest.$ac_objext conftest$ac_exeext
23414if { (ac_try="$ac_link"
23415case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23418esac
23419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_link") 2>conftest.er1
23421 ac_status=$?
23422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } && {
23427 test -z "$ac_c_werror_flag" ||
23428 test ! -s conftest.err
23429 } && test -s conftest$ac_exeext &&
23430 $as_test_x conftest$ac_exeext; then
23431 ac_cv_lib_ipc_shmat=yes
23432else
23433 echo "$as_me: failed program was:" >&5
23434sed 's/^/| /' conftest.$ac_ext >&5
23435
23436 ac_cv_lib_ipc_shmat=no
23437fi
23438
23439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23440 conftest$ac_exeext conftest.$ac_ext
23441LIBS=$ac_check_lib_save_LIBS
23442fi
23443{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23444echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23445if test $ac_cv_lib_ipc_shmat = yes; then
23446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23447fi
23448
23449 fi
23450 fi
23451
23452 # Check for libraries that X11R6 Xt/Xaw programs need.
23453 ac_save_LDFLAGS=$LDFLAGS
23454 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23455 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23456 # check for ICE first), but we must link in the order -lSM -lICE or
23457 # we get undefined symbols. So assume we have SM if we have ICE.
23458 # These have to be linked with before -lX11, unlike the other
23459 # libraries we check for below, so use a different variable.
23460 # John Interrante, Karl Berry
23461 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23462echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23463if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465else
23466 ac_check_lib_save_LIBS=$LIBS
23467LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23468cat >conftest.$ac_ext <<_ACEOF
23469/* confdefs.h. */
23470_ACEOF
23471cat confdefs.h >>conftest.$ac_ext
23472cat >>conftest.$ac_ext <<_ACEOF
23473/* end confdefs.h. */
23474
23475/* Override any GCC internal prototype to avoid an error.
23476 Use char because int might match the return type of a GCC
23477 builtin and then its argument prototype would still apply. */
23478#ifdef __cplusplus
23479extern "C"
23480#endif
23481char IceConnectionNumber ();
23482int
23483main ()
23484{
23485return IceConnectionNumber ();
23486 ;
23487 return 0;
23488}
23489_ACEOF
23490rm -f conftest.$ac_objext conftest$ac_exeext
23491if { (ac_try="$ac_link"
23492case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23495esac
23496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497 (eval "$ac_link") 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } && {
23504 test -z "$ac_c_werror_flag" ||
23505 test ! -s conftest.err
23506 } && test -s conftest$ac_exeext &&
23507 $as_test_x conftest$ac_exeext; then
23508 ac_cv_lib_ICE_IceConnectionNumber=yes
23509else
23510 echo "$as_me: failed program was:" >&5
23511sed 's/^/| /' conftest.$ac_ext >&5
23512
23513 ac_cv_lib_ICE_IceConnectionNumber=no
23514fi
23515
23516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23517 conftest$ac_exeext conftest.$ac_ext
23518LIBS=$ac_check_lib_save_LIBS
23519fi
23520{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23521echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23522if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23523 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23524fi
23525
23526 LDFLAGS=$ac_save_LDFLAGS
23527
23528fi
23529
23530test "x$no_x" = xyes || X_LIBS="$X_LIBS -lX11"
23531
23532
23533if test "x$no_x" != xyes; then
23534 HAVE_X_TRUE=
23535 HAVE_X_FALSE='#'
23536else
23537 HAVE_X_TRUE='#'
23538 HAVE_X_FALSE=
23539fi
23540
23541
23542enable_v4l_auto=no
23543enable_dvb_auto=no
23544enable_bktr_auto=no
23545enable_proxy_auto=no
23546
23547case "$host_os" in
23548 linux*)
23549 enable_v4l_auto=yes
23550 enable_dvb_auto=yes
23551 enable_proxy_auto=yes
23552 ;;
23553 freebsd* | kfreebsd*-gnu | openbsd* | netbsd*)
23554 enable_bktr_auto=yes
23555 ;;
23556 *)
23557 ;;
23558esac
23559
23560{ echo "$as_me:$LINENO: checking whether to build the Video4Linux interface" >&5
23561echo $ECHO_N "checking whether to build the Video4Linux interface... $ECHO_C" >&6; }
23562# Check whether --enable-v4l was given.
23563if test "${enable_v4l+set}" = set; then
23564 enableval=$enable_v4l;
23565else
23566 enable_v4l=$enable_v4l_auto
23567fi
23568
23569{ echo "$as_me:$LINENO: result: $enable_v4l" >&5
23570echo "${ECHO_T}$enable_v4l" >&6; }
23571if test "x$enable_v4l" = xyes; then
23572
23573cat >>confdefs.h <<\_ACEOF
23574#define ENABLE_V4L 1
23575_ACEOF
23576
23577
23578cat >>confdefs.h <<\_ACEOF
23579#define ENABLE_V4L2 1
23580_ACEOF
23581
23582fi
23583
23584{ echo "$as_me:$LINENO: checking whether to build the Linux DVB interface" >&5
23585echo $ECHO_N "checking whether to build the Linux DVB interface... $ECHO_C" >&6; }
23586# Check whether --enable-dvb was given.
23587if test "${enable_dvb+set}" = set; then
23588 enableval=$enable_dvb;
23589else
23590 enable_dvb=$enable_dvb_auto
23591fi
23592
23593{ echo "$as_me:$LINENO: result: $enable_dvb" >&5
23594echo "${ECHO_T}$enable_dvb" >&6; }
23595if test "x$enable_dvb" = xyes; then
23596
23597cat >>confdefs.h <<\_ACEOF
23598#define ENABLE_DVB 1
23599_ACEOF
23600
23601fi
23602
23603
23604if test "x$enable_dvb" = xyes; then
23605 ENABLE_DVB_TRUE=
23606 ENABLE_DVB_FALSE='#'
23607else
23608 ENABLE_DVB_TRUE='#'
23609 ENABLE_DVB_FALSE=
23610fi
23611
23612
23613{ echo "$as_me:$LINENO: checking whether to build the *BSD bktr driver interface" >&5
23614echo $ECHO_N "checking whether to build the *BSD bktr driver interface... $ECHO_C" >&6; }
23615# Check whether --enable-bktr was given.
23616if test "${enable_bktr+set}" = set; then
23617 enableval=$enable_bktr;
23618else
23619 enable_bktr=$enable_bktr_auto
23620fi
23621
23622{ echo "$as_me:$LINENO: result: $enable_bktr" >&5
23623echo "${ECHO_T}$enable_bktr" >&6; }
23624if test "x$enable_bktr" = xyes; then
23625
23626cat >>confdefs.h <<\_ACEOF
23627#define ENABLE_BKTR 1
23628_ACEOF
23629
23630fi
23631
23632
23633if test "x$enable_v4l" = xyes -o "x$enable_dvb" = xyes; then
23634 { echo "$as_me:$LINENO: checking if asm/types.h defines __s64 and __u64" >&5
23635echo $ECHO_N "checking if asm/types.h defines __s64 and __u64... $ECHO_C" >&6; }
23636 cat >conftest.$ac_ext <<_ACEOF
23637#include <asm/types.h>
23638__s64 a = 1;
23639__u64 b = 2;
23640
23641_ACEOF
23642rm -f conftest.$ac_objext
23643if { (ac_try="$ac_compile"
23644case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23647esac
23648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_compile") 2>conftest.er1
23650 ac_status=$?
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && {
23656 test -z "$ac_c_werror_flag" ||
23657 test ! -s conftest.err
23658 } && test -s conftest.$ac_objext; then
23659
23660cat >>confdefs.h <<\_ACEOF
23661#define HAVE_S64_U64 1
23662_ACEOF
23663
23664 { echo "$as_me:$LINENO: result: yes" >&5
23665echo "${ECHO_T}yes" >&6; }
23666else
23667 echo "$as_me: failed program was:" >&5
23668sed 's/^/| /' conftest.$ac_ext >&5
23669
23670 { echo "$as_me:$LINENO: result: no" >&5
23671echo "${ECHO_T}no" >&6; }
23672fi
23673
23674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675fi
23676
23677{ echo "$as_me:$LINENO: checking whether to build the vbi proxy daemon and interface" >&5
23678echo $ECHO_N "checking whether to build the vbi proxy daemon and interface... $ECHO_C" >&6; }
23679# Check whether --enable-proxy was given.
23680if test "${enable_proxy+set}" = set; then
23681 enableval=$enable_proxy;
23682else
23683 enable_proxy=$enable_proxy_auto
23684fi
23685
23686{ echo "$as_me:$LINENO: result: $enable_proxy" >&5
23687echo "${ECHO_T}$enable_proxy" >&6; }
23688if test "x$enable_proxy" = xyes; then
23689
23690cat >>confdefs.h <<\_ACEOF
23691#define ENABLE_PROXY 1
23692_ACEOF
23693
23694 case "$host_os" in
23695 linux*)
23696
23697cat >>confdefs.h <<\_ACEOF
23698#define HAVE_IOCTL_INT_ULONG_DOTS 1
23699_ACEOF
23700
23701 ;;
23702 freebsd* | kfreebsd*-gnu | openbsd* | netbsd*)
23703
23704cat >>confdefs.h <<\_ACEOF
23705#define HAVE_IOCTL_INT_ULONG_DOTS 1
23706_ACEOF
23707
23708 ;;
23709 *)
23710 ;;
23711 esac
23712fi
23713
23714
23715if test "x$enable_proxy" = xyes; then
23716 ENABLE_PROXY_TRUE=
23717 ENABLE_PROXY_FALSE='#'
23718else
23719 ENABLE_PROXY_TRUE='#'
23720 ENABLE_PROXY_FALSE=
23721fi
23722
23723
23724
23725
23726 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23727echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23728 # Check whether --enable-nls was given.
23729if test "${enable_nls+set}" = set; then
23730 enableval=$enable_nls; USE_NLS=$enableval
23731else
23732 USE_NLS=yes
23733fi
23734
23735 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23736echo "${ECHO_T}$USE_NLS" >&6; }
23737
23738
23739
23740
23741
23742
23743# Prepare PATH_SEPARATOR.
23744# The user is always right.
23745if test "${PATH_SEPARATOR+set}" != set; then
23746 echo "#! /bin/sh" >conf$$.sh
23747 echo "exit 0" >>conf$$.sh
23748 chmod +x conf$$.sh
23749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23750 PATH_SEPARATOR=';'
23751 else
23752 PATH_SEPARATOR=:
23753 fi
23754 rm -f conf$$.sh
23755fi
23756
23757# Find out how to test for executable files. Don't use a zero-byte file,
23758# as systems may use methods other than mode bits to determine executability.
23759cat >conf$$.file <<_ASEOF
23760#! /bin/sh
23761exit 0
23762_ASEOF
23763chmod +x conf$$.file
23764if test -x conf$$.file >/dev/null 2>&1; then
23765 ac_executable_p="test -x"
23766else
23767 ac_executable_p="test -f"
23768fi
23769rm -f conf$$.file
23770
23771# Extract the first word of "msgfmt", so it can be a program name with args.
23772set dummy msgfmt; ac_word=$2
23773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23775if test "${ac_cv_path_MSGFMT+set}" = set; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23777else
23778 case "$MSGFMT" in
23779 [\\/]* | ?:[\\/]*)
23780 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23781 ;;
23782 *)
23783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23784 for ac_dir in $PATH; do
23785 IFS="$ac_save_IFS"
23786 test -z "$ac_dir" && ac_dir=.
23787 for ac_exec_ext in '' $ac_executable_extensions; do
23788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23789 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23790 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23791 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23792 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23793 break 2
23794 fi
23795 fi
23796 done
23797 done
23798 IFS="$ac_save_IFS"
23799 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23800 ;;
23801esac
23802fi
23803MSGFMT="$ac_cv_path_MSGFMT"
23804if test "$MSGFMT" != ":"; then
23805 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23806echo "${ECHO_T}$MSGFMT" >&6; }
23807else
23808 { echo "$as_me:$LINENO: result: no" >&5
23809echo "${ECHO_T}no" >&6; }
23810fi
23811
23812 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23813set dummy gmsgfmt; ac_word=$2
23814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23816if test "${ac_cv_path_GMSGFMT+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23818else
23819 case $GMSGFMT in
23820 [\\/]* | ?:[\\/]*)
23821 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23822 ;;
23823 *)
23824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23825for as_dir in $PATH
23826do
23827 IFS=$as_save_IFS
23828 test -z "$as_dir" && as_dir=.
23829 for ac_exec_ext in '' $ac_executable_extensions; do
23830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23831 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23833 break 2
23834 fi
23835done
23836done
23837IFS=$as_save_IFS
23838
23839 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23840 ;;
23841esac
23842fi
23843GMSGFMT=$ac_cv_path_GMSGFMT
23844if test -n "$GMSGFMT"; then
23845 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23846echo "${ECHO_T}$GMSGFMT" >&6; }
23847else
23848 { echo "$as_me:$LINENO: result: no" >&5
23849echo "${ECHO_T}no" >&6; }
23850fi
23851
23852
23853
23854 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23855 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
23856 *) MSGFMT_015=$MSGFMT ;;
23857 esac
23858
23859 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23860 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
23861 *) GMSGFMT_015=$GMSGFMT ;;
23862 esac
23863
23864
23865
23866# Prepare PATH_SEPARATOR.
23867# The user is always right.
23868if test "${PATH_SEPARATOR+set}" != set; then
23869 echo "#! /bin/sh" >conf$$.sh
23870 echo "exit 0" >>conf$$.sh
23871 chmod +x conf$$.sh
23872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23873 PATH_SEPARATOR=';'
23874 else
23875 PATH_SEPARATOR=:
23876 fi
23877 rm -f conf$$.sh
23878fi
23879
23880# Find out how to test for executable files. Don't use a zero-byte file,
23881# as systems may use methods other than mode bits to determine executability.
23882cat >conf$$.file <<_ASEOF
23883#! /bin/sh
23884exit 0
23885_ASEOF
23886chmod +x conf$$.file
23887if test -x conf$$.file >/dev/null 2>&1; then
23888 ac_executable_p="test -x"
23889else
23890 ac_executable_p="test -f"
23891fi
23892rm -f conf$$.file
23893
23894# Extract the first word of "xgettext", so it can be a program name with args.
23895set dummy xgettext; ac_word=$2
23896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23898if test "${ac_cv_path_XGETTEXT+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23900else
23901 case "$XGETTEXT" in
23902 [\\/]* | ?:[\\/]*)
23903 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23904 ;;
23905 *)
23906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23907 for ac_dir in $PATH; do
23908 IFS="$ac_save_IFS"
23909 test -z "$ac_dir" && ac_dir=.
23910 for ac_exec_ext in '' $ac_executable_extensions; do
23911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23912 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23913 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
23914 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23915 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
23916 break 2
23917 fi
23918 fi
23919 done
23920 done
23921 IFS="$ac_save_IFS"
23922 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23923 ;;
23924esac
23925fi
23926XGETTEXT="$ac_cv_path_XGETTEXT"
23927if test "$XGETTEXT" != ":"; then
23928 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23929echo "${ECHO_T}$XGETTEXT" >&6; }
23930else
23931 { echo "$as_me:$LINENO: result: no" >&5
23932echo "${ECHO_T}no" >&6; }
23933fi
23934
23935 rm -f messages.po
23936
23937 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23938 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
23939 *) XGETTEXT_015=$XGETTEXT ;;
23940 esac
23941
23942
23943
23944# Prepare PATH_SEPARATOR.
23945# The user is always right.
23946if test "${PATH_SEPARATOR+set}" != set; then
23947 echo "#! /bin/sh" >conf$$.sh
23948 echo "exit 0" >>conf$$.sh
23949 chmod +x conf$$.sh
23950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23951 PATH_SEPARATOR=';'
23952 else
23953 PATH_SEPARATOR=:
23954 fi
23955 rm -f conf$$.sh
23956fi
23957
23958# Find out how to test for executable files. Don't use a zero-byte file,
23959# as systems may use methods other than mode bits to determine executability.
23960cat >conf$$.file <<_ASEOF
23961#! /bin/sh
23962exit 0
23963_ASEOF
23964chmod +x conf$$.file
23965if test -x conf$$.file >/dev/null 2>&1; then
23966 ac_executable_p="test -x"
23967else
23968 ac_executable_p="test -f"
23969fi
23970rm -f conf$$.file
23971
23972# Extract the first word of "msgmerge", so it can be a program name with args.
23973set dummy msgmerge; ac_word=$2
23974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23976if test "${ac_cv_path_MSGMERGE+set}" = set; then
23977 echo $ECHO_N "(cached) $ECHO_C" >&6
23978else
23979 case "$MSGMERGE" in
23980 [\\/]* | ?:[\\/]*)
23981 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
23982 ;;
23983 *)
23984 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23985 for ac_dir in $PATH; do
23986 IFS="$ac_save_IFS"
23987 test -z "$ac_dir" && ac_dir=.
23988 for ac_exec_ext in '' $ac_executable_extensions; do
23989 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23990 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23991 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
23992 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
23993 break 2
23994 fi
23995 fi
23996 done
23997 done
23998 IFS="$ac_save_IFS"
23999 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24000 ;;
24001esac
24002fi
24003MSGMERGE="$ac_cv_path_MSGMERGE"
24004if test "$MSGMERGE" != ":"; then
24005 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24006echo "${ECHO_T}$MSGMERGE" >&6; }
24007else
24008 { echo "$as_me:$LINENO: result: no" >&5
24009echo "${ECHO_T}no" >&6; }
24010fi
24011
24012
24013 test -n "$localedir" || localedir='${datadir}/locale'
24014
24015
24016 ac_config_commands="$ac_config_commands po-directories"
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24043echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
24044if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24045 echo $ECHO_N "(cached) $ECHO_C" >&6
24046else
24047 gt_save_LIBS="$LIBS"
24048 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24049 cat >conftest.$ac_ext <<_ACEOF
24050/* confdefs.h. */
24051_ACEOF
24052cat confdefs.h >>conftest.$ac_ext
24053cat >>conftest.$ac_ext <<_ACEOF
24054/* end confdefs.h. */
24055#include <CoreFoundation/CFPreferences.h>
24056int
24057main ()
24058{
24059CFPreferencesCopyAppValue(NULL, NULL)
24060 ;
24061 return 0;
24062}
24063_ACEOF
24064rm -f conftest.$ac_objext conftest$ac_exeext
24065if { (ac_try="$ac_link"
24066case "(($ac_try" in
24067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24068 *) ac_try_echo=$ac_try;;
24069esac
24070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24071 (eval "$ac_link") 2>conftest.er1
24072 ac_status=$?
24073 grep -v '^ *+' conftest.er1 >conftest.err
24074 rm -f conftest.er1
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } && {
24078 test -z "$ac_c_werror_flag" ||
24079 test ! -s conftest.err
24080 } && test -s conftest$ac_exeext &&
24081 $as_test_x conftest$ac_exeext; then
24082 gt_cv_func_CFPreferencesCopyAppValue=yes
24083else
24084 echo "$as_me: failed program was:" >&5
24085sed 's/^/| /' conftest.$ac_ext >&5
24086
24087 gt_cv_func_CFPreferencesCopyAppValue=no
24088fi
24089
24090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24091 conftest$ac_exeext conftest.$ac_ext
24092 LIBS="$gt_save_LIBS"
24093fi
24094{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24095echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24096 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24097
24098cat >>confdefs.h <<\_ACEOF
24099#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24100_ACEOF
24101
24102 fi
24103 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24104echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
24105if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24107else
24108 gt_save_LIBS="$LIBS"
24109 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24110 cat >conftest.$ac_ext <<_ACEOF
24111/* confdefs.h. */
24112_ACEOF
24113cat confdefs.h >>conftest.$ac_ext
24114cat >>conftest.$ac_ext <<_ACEOF
24115/* end confdefs.h. */
24116#include <CoreFoundation/CFLocale.h>
24117int
24118main ()
24119{
24120CFLocaleCopyCurrent();
24121 ;
24122 return 0;
24123}
24124_ACEOF
24125rm -f conftest.$ac_objext conftest$ac_exeext
24126if { (ac_try="$ac_link"
24127case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24130esac
24131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_link") 2>conftest.er1
24133 ac_status=$?
24134 grep -v '^ *+' conftest.er1 >conftest.err
24135 rm -f conftest.er1
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } && {
24139 test -z "$ac_c_werror_flag" ||
24140 test ! -s conftest.err
24141 } && test -s conftest$ac_exeext &&
24142 $as_test_x conftest$ac_exeext; then
24143 gt_cv_func_CFLocaleCopyCurrent=yes
24144else
24145 echo "$as_me: failed program was:" >&5
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
24148 gt_cv_func_CFLocaleCopyCurrent=no
24149fi
24150
24151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24152 conftest$ac_exeext conftest.$ac_ext
24153 LIBS="$gt_save_LIBS"
24154fi
24155{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24156echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24157 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24158
24159cat >>confdefs.h <<\_ACEOF
24160#define HAVE_CFLOCALECOPYCURRENT 1
24161_ACEOF
24162
24163 fi
24164 INTL_MACOSX_LIBS=
24165 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24166 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24167 fi
24168
24169
24170
24171
24172
24173
24174 LIBINTL=
24175 LTLIBINTL=
24176 POSUB=
24177
24178 case " $gt_needs " in
24179 *" need-formatstring-macros "*) gt_api_version=3 ;;
24180 *" need-ngettext "*) gt_api_version=2 ;;
24181 *) gt_api_version=1 ;;
24182 esac
24183 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
24184 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
24185
24186 if test "$USE_NLS" = "yes"; then
24187 gt_use_preinstalled_gnugettext=no
24188
24189
24190 if test $gt_api_version -ge 3; then
24191 gt_revision_test_code='
24192#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24193#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
24194#endif
24195typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
24196'
24197 else
24198 gt_revision_test_code=
24199 fi
24200 if test $gt_api_version -ge 2; then
24201 gt_expression_test_code=' + * ngettext ("", "", 0)'
24202 else
24203 gt_expression_test_code=
24204 fi
24205
24206 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
24207echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
24208if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24210else
24211 cat >conftest.$ac_ext <<_ACEOF
24212/* confdefs.h. */
24213_ACEOF
24214cat confdefs.h >>conftest.$ac_ext
24215cat >>conftest.$ac_ext <<_ACEOF
24216/* end confdefs.h. */
24217#include <libintl.h>
24218$gt_revision_test_code
24219extern int _nl_msg_cat_cntr;
24220extern int *_nl_domain_bindings;
24221int
24222main ()
24223{
24224bindtextdomain ("", "");
24225return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
24226 ;
24227 return 0;
24228}
24229_ACEOF
24230rm -f conftest.$ac_objext conftest$ac_exeext
24231if { (ac_try="$ac_link"
24232case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24235esac
24236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_link") 2>conftest.er1
24238 ac_status=$?
24239 grep -v '^ *+' conftest.er1 >conftest.err
24240 rm -f conftest.er1
24241 cat conftest.err >&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } && {
24244 test -z "$ac_c_werror_flag" ||
24245 test ! -s conftest.err
24246 } && test -s conftest$ac_exeext &&
24247 $as_test_x conftest$ac_exeext; then
24248 eval "$gt_func_gnugettext_libc=yes"
24249else
24250 echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 eval "$gt_func_gnugettext_libc=no"
24254fi
24255
24256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24257 conftest$ac_exeext conftest.$ac_ext
24258fi
24259ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
24260 { echo "$as_me:$LINENO: result: $ac_res" >&5
24261echo "${ECHO_T}$ac_res" >&6; }
24262
24263 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
24264
24265
24266
24267
24268
24269 am_save_CPPFLAGS="$CPPFLAGS"
24270
24271 for element in $INCICONV; do
24272 haveit=
24273 for x in $CPPFLAGS; do
24274
24275 acl_save_prefix="$prefix"
24276 prefix="$acl_final_prefix"
24277 acl_save_exec_prefix="$exec_prefix"
24278 exec_prefix="$acl_final_exec_prefix"
24279 eval x=\"$x\"
24280 exec_prefix="$acl_save_exec_prefix"
24281 prefix="$acl_save_prefix"
24282
24283 if test "X$x" = "X$element"; then
24284 haveit=yes
24285 break
24286 fi
24287 done
24288 if test -z "$haveit"; then
24289 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24290 fi
24291 done
24292
24293
24294 { echo "$as_me:$LINENO: checking for iconv" >&5
24295echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
24296if test "${am_cv_func_iconv+set}" = set; then
24297 echo $ECHO_N "(cached) $ECHO_C" >&6
24298else
24299
24300 am_cv_func_iconv="no, consider installing GNU libiconv"
24301 am_cv_lib_iconv=no
24302 cat >conftest.$ac_ext <<_ACEOF
24303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
24308#include <stdlib.h>
24309#include <iconv.h>
24310int
24311main ()
24312{
24313iconv_t cd = iconv_open("","");
24314 iconv(cd,NULL,NULL,NULL,NULL);
24315 iconv_close(cd);
24316 ;
24317 return 0;
24318}
24319_ACEOF
24320rm -f conftest.$ac_objext conftest$ac_exeext
24321if { (ac_try="$ac_link"
24322case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325esac
24326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_link") 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } && {
24334 test -z "$ac_c_werror_flag" ||
24335 test ! -s conftest.err
24336 } && test -s conftest$ac_exeext &&
24337 $as_test_x conftest$ac_exeext; then
24338 am_cv_func_iconv=yes
24339else
24340 echo "$as_me: failed program was:" >&5
24341sed 's/^/| /' conftest.$ac_ext >&5
24342
24343
24344fi
24345
24346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24347 conftest$ac_exeext conftest.$ac_ext
24348 if test "$am_cv_func_iconv" != yes; then
24349 am_save_LIBS="$LIBS"
24350 LIBS="$LIBS $LIBICONV"
24351 cat >conftest.$ac_ext <<_ACEOF
24352/* confdefs.h. */
24353_ACEOF
24354cat confdefs.h >>conftest.$ac_ext
24355cat >>conftest.$ac_ext <<_ACEOF
24356/* end confdefs.h. */
24357#include <stdlib.h>
24358#include <iconv.h>
24359int
24360main ()
24361{
24362iconv_t cd = iconv_open("","");
24363 iconv(cd,NULL,NULL,NULL,NULL);
24364 iconv_close(cd);
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369rm -f conftest.$ac_objext conftest$ac_exeext
24370if { (ac_try="$ac_link"
24371case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24374esac
24375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376 (eval "$ac_link") 2>conftest.er1
24377 ac_status=$?
24378 grep -v '^ *+' conftest.er1 >conftest.err
24379 rm -f conftest.er1
24380 cat conftest.err >&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } && {
24383 test -z "$ac_c_werror_flag" ||
24384 test ! -s conftest.err
24385 } && test -s conftest$ac_exeext &&
24386 $as_test_x conftest$ac_exeext; then
24387 am_cv_lib_iconv=yes
24388 am_cv_func_iconv=yes
24389else
24390 echo "$as_me: failed program was:" >&5
24391sed 's/^/| /' conftest.$ac_ext >&5
24392
24393
24394fi
24395
24396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24397 conftest$ac_exeext conftest.$ac_ext
24398 LIBS="$am_save_LIBS"
24399 fi
24400
24401fi
24402{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24403echo "${ECHO_T}$am_cv_func_iconv" >&6; }
24404 if test "$am_cv_func_iconv" = yes; then
24405
24406cat >>confdefs.h <<\_ACEOF
24407#define HAVE_ICONV 1
24408_ACEOF
24409
24410 fi
24411 if test "$am_cv_lib_iconv" = yes; then
24412 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
24413echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
24414 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
24415echo "${ECHO_T}$LIBICONV" >&6; }
24416 else
24417 CPPFLAGS="$am_save_CPPFLAGS"
24418 LIBICONV=
24419 LTLIBICONV=
24420 fi
24421
24422
24423
24424
24425
24426
24427
24428 use_additional=yes
24429
24430 acl_save_prefix="$prefix"
24431 prefix="$acl_final_prefix"
24432 acl_save_exec_prefix="$exec_prefix"
24433 exec_prefix="$acl_final_exec_prefix"
24434
24435 eval additional_includedir=\"$includedir\"
24436 eval additional_libdir=\"$libdir\"
24437
24438 exec_prefix="$acl_save_exec_prefix"
24439 prefix="$acl_save_prefix"
24440
24441
24442# Check whether --with-libintl-prefix was given.
24443if test "${with_libintl_prefix+set}" = set; then
24444 withval=$with_libintl_prefix;
24445 if test "X$withval" = "Xno"; then
24446 use_additional=no
24447 else
24448 if test "X$withval" = "X"; then
24449
24450 acl_save_prefix="$prefix"
24451 prefix="$acl_final_prefix"
24452 acl_save_exec_prefix="$exec_prefix"
24453 exec_prefix="$acl_final_exec_prefix"
24454
24455 eval additional_includedir=\"$includedir\"
24456 eval additional_libdir=\"$libdir\"
24457
24458 exec_prefix="$acl_save_exec_prefix"
24459 prefix="$acl_save_prefix"
24460
24461 else
24462 additional_includedir="$withval/include"
24463 additional_libdir="$withval/$acl_libdirstem"
24464 fi
24465 fi
24466
24467fi
24468
24469 LIBINTL=
24470 LTLIBINTL=
24471 INCINTL=
24472 rpathdirs=
24473 ltrpathdirs=
24474 names_already_handled=
24475 names_next_round='intl '
24476 while test -n "$names_next_round"; do
24477 names_this_round="$names_next_round"
24478 names_next_round=
24479 for name in $names_this_round; do
24480 already_handled=
24481 for n in $names_already_handled; do
24482 if test "$n" = "$name"; then
24483 already_handled=yes
24484 break
24485 fi
24486 done
24487 if test -z "$already_handled"; then
24488 names_already_handled="$names_already_handled $name"
24489 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24490 eval value=\"\$HAVE_LIB$uppername\"
24491 if test -n "$value"; then
24492 if test "$value" = yes; then
24493 eval value=\"\$LIB$uppername\"
24494 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24495 eval value=\"\$LTLIB$uppername\"
24496 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24497 else
24498 :
24499 fi
24500 else
24501 found_dir=
24502 found_la=
24503 found_so=
24504 found_a=
24505 if test $use_additional = yes; then
24506 if test -n "$shlibext" \
24507 && { test -f "$additional_libdir/lib$name.$shlibext" \
24508 || { test "$shlibext" = dll \
24509 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
24510 found_dir="$additional_libdir"
24511 if test -f "$additional_libdir/lib$name.$shlibext"; then
24512 found_so="$additional_libdir/lib$name.$shlibext"
24513 else
24514 found_so="$additional_libdir/lib$name.dll.a"
24515 fi
24516 if test -f "$additional_libdir/lib$name.la"; then
24517 found_la="$additional_libdir/lib$name.la"
24518 fi
24519 else
24520 if test -f "$additional_libdir/lib$name.$libext"; then
24521 found_dir="$additional_libdir"
24522 found_a="$additional_libdir/lib$name.$libext"
24523 if test -f "$additional_libdir/lib$name.la"; then
24524 found_la="$additional_libdir/lib$name.la"
24525 fi
24526 fi
24527 fi
24528 fi
24529 if test "X$found_dir" = "X"; then
24530 for x in $LDFLAGS $LTLIBINTL; do
24531
24532 acl_save_prefix="$prefix"
24533 prefix="$acl_final_prefix"
24534 acl_save_exec_prefix="$exec_prefix"
24535 exec_prefix="$acl_final_exec_prefix"
24536 eval x=\"$x\"
24537 exec_prefix="$acl_save_exec_prefix"
24538 prefix="$acl_save_prefix"
24539
24540 case "$x" in
24541 -L*)
24542 dir=`echo "X$x" | sed -e 's/^X-L//'`
24543 if test -n "$shlibext" \
24544 && { test -f "$dir/lib$name.$shlibext" \
24545 || { test "$shlibext" = dll \
24546 && test -f "$dir/lib$name.dll.a"; }; }; then
24547 found_dir="$dir"
24548 if test -f "$dir/lib$name.$shlibext"; then
24549 found_so="$dir/lib$name.$shlibext"
24550 else
24551 found_so="$dir/lib$name.dll.a"
24552 fi
24553 if test -f "$dir/lib$name.la"; then
24554 found_la="$dir/lib$name.la"
24555 fi
24556 else
24557 if test -f "$dir/lib$name.$libext"; then
24558 found_dir="$dir"
24559 found_a="$dir/lib$name.$libext"
24560 if test -f "$dir/lib$name.la"; then
24561 found_la="$dir/lib$name.la"
24562 fi
24563 fi
24564 fi
24565 ;;
24566 esac
24567 if test "X$found_dir" != "X"; then
24568 break
24569 fi
24570 done
24571 fi
24572 if test "X$found_dir" != "X"; then
24573 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24574 if test "X$found_so" != "X"; then
24575 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24576 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24577 else
24578 haveit=
24579 for x in $ltrpathdirs; do
24580 if test "X$x" = "X$found_dir"; then
24581 haveit=yes
24582 break
24583 fi
24584 done
24585 if test -z "$haveit"; then
24586 ltrpathdirs="$ltrpathdirs $found_dir"
24587 fi
24588 if test "$hardcode_direct" = yes; then
24589 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24590 else
24591 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24592 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24593 haveit=
24594 for x in $rpathdirs; do
24595 if test "X$x" = "X$found_dir"; then
24596 haveit=yes
24597 break
24598 fi
24599 done
24600 if test -z "$haveit"; then
24601 rpathdirs="$rpathdirs $found_dir"
24602 fi
24603 else
24604 haveit=
24605 for x in $LDFLAGS $LIBINTL; do
24606
24607 acl_save_prefix="$prefix"
24608 prefix="$acl_final_prefix"
24609 acl_save_exec_prefix="$exec_prefix"
24610 exec_prefix="$acl_final_exec_prefix"
24611 eval x=\"$x\"
24612 exec_prefix="$acl_save_exec_prefix"
24613 prefix="$acl_save_prefix"
24614
24615 if test "X$x" = "X-L$found_dir"; then
24616 haveit=yes
24617 break
24618 fi
24619 done
24620 if test -z "$haveit"; then
24621 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24622 fi
24623 if test "$hardcode_minus_L" != no; then
24624 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24625 else
24626 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24627 fi
24628 fi
24629 fi
24630 fi
24631 else
24632 if test "X$found_a" != "X"; then
24633 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24634 else
24635 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24636 fi
24637 fi
24638 additional_includedir=
24639 case "$found_dir" in
24640 */$acl_libdirstem | */$acl_libdirstem/)
24641 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24642 additional_includedir="$basedir/include"
24643 ;;
24644 esac
24645 if test "X$additional_includedir" != "X"; then
24646 if test "X$additional_includedir" != "X/usr/include"; then
24647 haveit=
24648 if test "X$additional_includedir" = "X/usr/local/include"; then
24649 if test -n "$GCC"; then
24650 case $host_os in
24651 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24652 esac
24653 fi
24654 fi
24655 if test -z "$haveit"; then
24656 for x in $CPPFLAGS $INCINTL; do
24657
24658 acl_save_prefix="$prefix"
24659 prefix="$acl_final_prefix"
24660 acl_save_exec_prefix="$exec_prefix"
24661 exec_prefix="$acl_final_exec_prefix"
24662 eval x=\"$x\"
24663 exec_prefix="$acl_save_exec_prefix"
24664 prefix="$acl_save_prefix"
24665
24666 if test "X$x" = "X-I$additional_includedir"; then
24667 haveit=yes
24668 break
24669 fi
24670 done
24671 if test -z "$haveit"; then
24672 if test -d "$additional_includedir"; then
24673 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24674 fi
24675 fi
24676 fi
24677 fi
24678 fi
24679 if test -n "$found_la"; then
24680 save_libdir="$libdir"
24681 case "$found_la" in
24682 */* | *\\*) . "$found_la" ;;
24683 *) . "./$found_la" ;;
24684 esac
24685 libdir="$save_libdir"
24686 for dep in $dependency_libs; do
24687 case "$dep" in
24688 -L*)
24689 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24690 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24691 haveit=
24692 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24693 if test -n "$GCC"; then
24694 case $host_os in
24695 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24696 esac
24697 fi
24698 fi
24699 if test -z "$haveit"; then
24700 haveit=
24701 for x in $LDFLAGS $LIBINTL; do
24702
24703 acl_save_prefix="$prefix"
24704 prefix="$acl_final_prefix"
24705 acl_save_exec_prefix="$exec_prefix"
24706 exec_prefix="$acl_final_exec_prefix"
24707 eval x=\"$x\"
24708 exec_prefix="$acl_save_exec_prefix"
24709 prefix="$acl_save_prefix"
24710
24711 if test "X$x" = "X-L$additional_libdir"; then
24712 haveit=yes
24713 break
24714 fi
24715 done
24716 if test -z "$haveit"; then
24717 if test -d "$additional_libdir"; then
24718 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24719 fi
24720 fi
24721 haveit=
24722 for x in $LDFLAGS $LTLIBINTL; do
24723
24724 acl_save_prefix="$prefix"
24725 prefix="$acl_final_prefix"
24726 acl_save_exec_prefix="$exec_prefix"
24727 exec_prefix="$acl_final_exec_prefix"
24728 eval x=\"$x\"
24729 exec_prefix="$acl_save_exec_prefix"
24730 prefix="$acl_save_prefix"
24731
24732 if test "X$x" = "X-L$additional_libdir"; then
24733 haveit=yes
24734 break
24735 fi
24736 done
24737 if test -z "$haveit"; then
24738 if test -d "$additional_libdir"; then
24739 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24740 fi
24741 fi
24742 fi
24743 fi
24744 ;;
24745 -R*)
24746 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24747 if test "$enable_rpath" != no; then
24748 haveit=
24749 for x in $rpathdirs; do
24750 if test "X$x" = "X$dir"; then
24751 haveit=yes
24752 break
24753 fi
24754 done
24755 if test -z "$haveit"; then
24756 rpathdirs="$rpathdirs $dir"
24757 fi
24758 haveit=
24759 for x in $ltrpathdirs; do
24760 if test "X$x" = "X$dir"; then
24761 haveit=yes
24762 break
24763 fi
24764 done
24765 if test -z "$haveit"; then
24766 ltrpathdirs="$ltrpathdirs $dir"
24767 fi
24768 fi
24769 ;;
24770 -l*)
24771 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24772 ;;
24773 *.la)
24774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24775 ;;
24776 *)
24777 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24778 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24779 ;;
24780 esac
24781 done
24782 fi
24783 else
24784 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24785 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24786 fi
24787 fi
24788 fi
24789 done
24790 done
24791 if test "X$rpathdirs" != "X"; then
24792 if test -n "$hardcode_libdir_separator"; then
24793 alldirs=
24794 for found_dir in $rpathdirs; do
24795 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24796 done
24797 acl_save_libdir="$libdir"
24798 libdir="$alldirs"
24799 eval flag=\"$hardcode_libdir_flag_spec\"
24800 libdir="$acl_save_libdir"
24801 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24802 else
24803 for found_dir in $rpathdirs; do
24804 acl_save_libdir="$libdir"
24805 libdir="$found_dir"
24806 eval flag=\"$hardcode_libdir_flag_spec\"
24807 libdir="$acl_save_libdir"
24808 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24809 done
24810 fi
24811 fi
24812 if test "X$ltrpathdirs" != "X"; then
24813 for found_dir in $ltrpathdirs; do
24814 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24815 done
24816 fi
24817
24818 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24819echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
24820if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24822else
24823 gt_save_CPPFLAGS="$CPPFLAGS"
24824 CPPFLAGS="$CPPFLAGS $INCINTL"
24825 gt_save_LIBS="$LIBS"
24826 LIBS="$LIBS $LIBINTL"
24827 cat >conftest.$ac_ext <<_ACEOF
24828/* confdefs.h. */
24829_ACEOF
24830cat confdefs.h >>conftest.$ac_ext
24831cat >>conftest.$ac_ext <<_ACEOF
24832/* end confdefs.h. */
24833#include <libintl.h>
24834$gt_revision_test_code
24835extern int _nl_msg_cat_cntr;
24836extern
24837#ifdef __cplusplus
24838"C"
24839#endif
24840const char *_nl_expand_alias (const char *);
24841int
24842main ()
24843{
24844bindtextdomain ("", "");
24845return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24846 ;
24847 return 0;
24848}
24849_ACEOF
24850rm -f conftest.$ac_objext conftest$ac_exeext
24851if { (ac_try="$ac_link"
24852case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855esac
24856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24857 (eval "$ac_link") 2>conftest.er1
24858 ac_status=$?
24859 grep -v '^ *+' conftest.er1 >conftest.err
24860 rm -f conftest.er1
24861 cat conftest.err >&5
24862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); } && {
24864 test -z "$ac_c_werror_flag" ||
24865 test ! -s conftest.err
24866 } && test -s conftest$ac_exeext &&
24867 $as_test_x conftest$ac_exeext; then
24868 eval "$gt_func_gnugettext_libintl=yes"
24869else
24870 echo "$as_me: failed program was:" >&5
24871sed 's/^/| /' conftest.$ac_ext >&5
24872
24873 eval "$gt_func_gnugettext_libintl=no"
24874fi
24875
24876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24877 conftest$ac_exeext conftest.$ac_ext
24878 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24879 LIBS="$LIBS $LIBICONV"
24880 cat >conftest.$ac_ext <<_ACEOF
24881/* confdefs.h. */
24882_ACEOF
24883cat confdefs.h >>conftest.$ac_ext
24884cat >>conftest.$ac_ext <<_ACEOF
24885/* end confdefs.h. */
24886#include <libintl.h>
24887$gt_revision_test_code
24888extern int _nl_msg_cat_cntr;
24889extern
24890#ifdef __cplusplus
24891"C"
24892#endif
24893const char *_nl_expand_alias (const char *);
24894int
24895main ()
24896{
24897bindtextdomain ("", "");
24898return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24899 ;
24900 return 0;
24901}
24902_ACEOF
24903rm -f conftest.$ac_objext conftest$ac_exeext
24904if { (ac_try="$ac_link"
24905case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24908esac
24909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_link") 2>conftest.er1
24911 ac_status=$?
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } && {
24917 test -z "$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 } && test -s conftest$ac_exeext &&
24920 $as_test_x conftest$ac_exeext; then
24921 LIBINTL="$LIBINTL $LIBICONV"
24922 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24923 eval "$gt_func_gnugettext_libintl=yes"
24924
24925else
24926 echo "$as_me: failed program was:" >&5
24927sed 's/^/| /' conftest.$ac_ext >&5
24928
24929
24930fi
24931
24932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24933 conftest$ac_exeext conftest.$ac_ext
24934 fi
24935 CPPFLAGS="$gt_save_CPPFLAGS"
24936 LIBS="$gt_save_LIBS"
24937fi
24938ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
24939 { echo "$as_me:$LINENO: result: $ac_res" >&5
24940echo "${ECHO_T}$ac_res" >&6; }
24941 fi
24942
24943 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
24944 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
24945 && test "$PACKAGE" != gettext-runtime \
24946 && test "$PACKAGE" != gettext-tools; }; then
24947 gt_use_preinstalled_gnugettext=yes
24948 else
24949 LIBINTL=
24950 LTLIBINTL=
24951 INCINTL=
24952 fi
24953
24954
24955
24956 if test -n "$INTL_MACOSX_LIBS"; then
24957 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24958 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24959 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24960 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24961 fi
24962 fi
24963
24964 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24965 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24966
24967cat >>confdefs.h <<\_ACEOF
24968#define ENABLE_NLS 1
24969_ACEOF
24970
24971 else
24972 USE_NLS=no
24973 fi
24974 fi
24975
24976 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
24977echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
24978 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
24979echo "${ECHO_T}$USE_NLS" >&6; }
24980 if test "$USE_NLS" = "yes"; then
24981 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24982echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
24983 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24984 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24985 gt_source="external libintl"
24986 else
24987 gt_source="libc"
24988 fi
24989 else
24990 gt_source="included intl directory"
24991 fi
24992 { echo "$as_me:$LINENO: result: $gt_source" >&5
24993echo "${ECHO_T}$gt_source" >&6; }
24994 fi
24995
24996 if test "$USE_NLS" = "yes"; then
24997
24998 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24999 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
25000 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
25001echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
25002 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
25003echo "${ECHO_T}$LIBINTL" >&6; }
25004
25005 for element in $INCINTL; do
25006 haveit=
25007 for x in $CPPFLAGS; do
25008
25009 acl_save_prefix="$prefix"
25010 prefix="$acl_final_prefix"
25011 acl_save_exec_prefix="$exec_prefix"
25012 exec_prefix="$acl_final_exec_prefix"
25013 eval x=\"$x\"
25014 exec_prefix="$acl_save_exec_prefix"
25015 prefix="$acl_save_prefix"
25016
25017 if test "X$x" = "X$element"; then
25018 haveit=yes
25019 break
25020 fi
25021 done
25022 if test -z "$haveit"; then
25023 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25024 fi
25025 done
25026
25027 fi
25028
25029
25030cat >>confdefs.h <<\_ACEOF
25031#define HAVE_GETTEXT 1
25032_ACEOF
25033
25034
25035cat >>confdefs.h <<\_ACEOF
25036#define HAVE_DCGETTEXT 1
25037_ACEOF
25038
25039 fi
25040
25041 POSUB=po
25042 fi
25043
25044
25045
25046 INTLLIBS="$LIBINTL"
25047
25048
25049
25050
25051
25052
25053LIBS="$LTLIBINTL $LIBS"
25054if test "x${prefix}" = xNONE; then
25055
25056cat >>confdefs.h <<_ACEOF
25057#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/share/locale"
25058_ACEOF
25059
25060else
25061
25062cat >>confdefs.h <<_ACEOF
25063#define PACKAGE_LOCALE_DIR "${prefix}/share/locale"
25064_ACEOF
25065
25066fi
25067
25068
25069# Check whether --with-doxygen was given.
25070if test "${with_doxygen+set}" = set; then
25071 withval=$with_doxygen;
25072else
25073 with_doxygen=yes
25074fi
25075
25076if test "x$with_doxygen" = "xyes"; then
25077 # Extract the first word of "doxygen", so it can be a program name with args.
25078set dummy doxygen; ac_word=$2
25079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25081if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then
25082 echo $ECHO_N "(cached) $ECHO_C" >&6
25083else
25084 if test -n "$HAVE_DOXYGEN"; then
25085 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
25086else
25087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25088for as_dir in $PATH
25089do
25090 IFS=$as_save_IFS
25091 test -z "$as_dir" && as_dir=.
25092 for ac_exec_ext in '' $ac_executable_extensions; do
25093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25094 ac_cv_prog_HAVE_DOXYGEN="yes"
25095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25096 break 2
25097 fi
25098done
25099done
25100IFS=$as_save_IFS
25101
25102 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
25103fi
25104fi
25105HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
25106if test -n "$HAVE_DOXYGEN"; then
25107 { echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5
25108echo "${ECHO_T}$HAVE_DOXYGEN" >&6; }
25109else
25110 { echo "$as_me:$LINENO: result: no" >&5
25111echo "${ECHO_T}no" >&6; }
25112fi
25113
25114
25115else
25116 HAVE_DOXYGEN=no
25117fi
25118
25119
25120if test "x$HAVE_DOXYGEN" = xyes; then
25121 HAVE_DOXYGEN_TRUE=
25122 HAVE_DOXYGEN_FALSE='#'
25123else
25124 HAVE_DOXYGEN_TRUE='#'
25125 HAVE_DOXYGEN_FALSE=
25126fi
25127
25128
25129
25130
25131if test "x$enable_static" = xyes; then
25132 BUILD_STATIC_LIB_TRUE=
25133 BUILD_STATIC_LIB_FALSE='#'
25134else
25135 BUILD_STATIC_LIB_TRUE='#'
25136 BUILD_STATIC_LIB_FALSE=
25137fi
25138
25139
25140ac_config_files="$ac_config_files Makefile contrib/Makefile examples/Makefile daemon/Makefile daemon/zvbid.init doc/Doxyfile doc/Makefile m4/Makefile src/Makefile src/dvb/Makefile test/Makefile po/Makefile.in zvbi.spec zvbi-0.2.pc"
25141
25142cat >confcache <<\_ACEOF
25143# This file is a shell script that caches the results of configure
25144# tests run on this system so they can be shared between configure
25145# scripts and configure runs, see configure's option --config-cache.
25146# It is not useful on other systems. If it contains results you don't
25147# want to keep, you may remove or edit it.
25148#
25149# config.status only pays attention to the cache file if you give it
25150# the --recheck option to rerun configure.
25151#
25152# `ac_cv_env_foo' variables (set or unset) will be overridden when
25153# loading this file, other *unset* `ac_cv_foo' will be assigned the
25154# following values.
25155
25156_ACEOF
25157
25158# The following way of writing the cache mishandles newlines in values,
25159# but we know of no workaround that is simple, portable, and efficient.
25160# So, we kill variables containing newlines.
25161# Ultrix sh set writes to stderr and can't be redirected directly,
25162# and sets the high bit in the cache file unless we assign to the vars.
25163(
25164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25165 eval ac_val=\$$ac_var
25166 case $ac_val in #(
25167 *${as_nl}*)
25168 case $ac_var in #(
25169 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25170echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25171 esac
25172 case $ac_var in #(
25173 _ | IFS | as_nl) ;; #(
25174 *) $as_unset $ac_var ;;
25175 esac ;;
25176 esac
25177 done
25178
25179 (set) 2>&1 |
25180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25181 *${as_nl}ac_space=\ *)
25182 # `set' does not quote correctly, so add quotes (double-quote
25183 # substitution turns \\\\ into \\, and sed turns \\ into \).
25184 sed -n \
25185 "s/'/'\\\\''/g;
25186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25187 ;; #(
25188 *)
25189 # `set' quotes correctly as required by POSIX, so do not add quotes.
25190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25191 ;;
25192 esac |
25193 sort
25194) |
25195 sed '
25196 /^ac_cv_env_/b end
25197 t clear
25198 :clear
25199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25200 t end
25201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25202 :end' >>confcache
25203if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25204 if test -w "$cache_file"; then
25205 test "x$cache_file" != "x/dev/null" &&
25206 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25207echo "$as_me: updating cache $cache_file" >&6;}
25208 cat confcache >$cache_file
25209 else
25210 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25211echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25212 fi
25213fi
25214rm -f confcache
25215
25216test "x$prefix" = xNONE && prefix=$ac_default_prefix
25217# Let make expand exec_prefix.
25218test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25219
25220DEFS=-DHAVE_CONFIG_H
25221
25222ac_libobjs=
25223ac_ltlibobjs=
25224for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25225 # 1. Remove the extension, and $U if already installed.
25226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25227 ac_i=`echo "$ac_i" | sed "$ac_script"`
25228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25229 # will be set to the directory where LIBOBJS objects are built.
25230 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25231 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25232done
25233LIBOBJS=$ac_libobjs
25234
25235LTLIBOBJS=$ac_ltlibobjs
25236
25237
25238if test -z "${INSIDE_GNOME_COMMON_TRUE}" && test -z "${INSIDE_GNOME_COMMON_FALSE}"; then
25239 { { echo "$as_me:$LINENO: error: conditional \"INSIDE_GNOME_COMMON\" was never defined.
25240Usually this means the macro was only invoked conditionally." >&5
25241echo "$as_me: error: conditional \"INSIDE_GNOME_COMMON\" was never defined.
25242Usually this means the macro was only invoked conditionally." >&2;}
25243 { (exit 1); exit 1; }; }
25244fi
25245if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25246 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25247Usually this means the macro was only invoked conditionally." >&5
25248echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25249Usually this means the macro was only invoked conditionally." >&2;}
25250 { (exit 1); exit 1; }; }
25251fi
25252if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25253 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25254Usually this means the macro was only invoked conditionally." >&5
25255echo "$as_me: error: conditional \"AMDEP\" was never defined.
25256Usually this means the macro was only invoked conditionally." >&2;}
25257 { (exit 1); exit 1; }; }
25258fi
25259if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25260 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25261Usually this means the macro was only invoked conditionally." >&5
25262echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25263Usually this means the macro was only invoked conditionally." >&2;}
25264 { (exit 1); exit 1; }; }
25265fi
25266if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25268Usually this means the macro was only invoked conditionally." >&5
25269echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25270Usually this means the macro was only invoked conditionally." >&2;}
25271 { (exit 1); exit 1; }; }
25272fi
25273if test -z "${HAVE_GCC_LIMITS_TRUE}" && test -z "${HAVE_GCC_LIMITS_FALSE}"; then
25274 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_LIMITS\" was never defined.
25275Usually this means the macro was only invoked conditionally." >&5
25276echo "$as_me: error: conditional \"HAVE_GCC_LIMITS\" was never defined.
25277Usually this means the macro was only invoked conditionally." >&2;}
25278 { (exit 1); exit 1; }; }
25279fi
25280if test -z "${HAVE_GCC_C89_SUPPORT_TRUE}" && test -z "${HAVE_GCC_C89_SUPPORT_FALSE}"; then
25281 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_C89_SUPPORT\" was never defined.
25282Usually this means the macro was only invoked conditionally." >&5
25283echo "$as_me: error: conditional \"HAVE_GCC_C89_SUPPORT\" was never defined.
25284Usually this means the macro was only invoked conditionally." >&2;}
25285 { (exit 1); exit 1; }; }
25286fi
25287if test -z "${HAVE_GCC_C94_SUPPORT_TRUE}" && test -z "${HAVE_GCC_C94_SUPPORT_FALSE}"; then
25288 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_C94_SUPPORT\" was never defined.
25289Usually this means the macro was only invoked conditionally." >&5
25290echo "$as_me: error: conditional \"HAVE_GCC_C94_SUPPORT\" was never defined.
25291Usually this means the macro was only invoked conditionally." >&2;}
25292 { (exit 1); exit 1; }; }
25293fi
25294if test -z "${HAVE_GCC_C99_SUPPORT_TRUE}" && test -z "${HAVE_GCC_C99_SUPPORT_FALSE}"; then
25295 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_C99_SUPPORT\" was never defined.
25296Usually this means the macro was only invoked conditionally." >&5
25297echo "$as_me: error: conditional \"HAVE_GCC_C99_SUPPORT\" was never defined.
25298Usually this means the macro was only invoked conditionally." >&2;}
25299 { (exit 1); exit 1; }; }
25300fi
25301if test -z "${HAVE_GXX_CXX98_SUPPORT_TRUE}" && test -z "${HAVE_GXX_CXX98_SUPPORT_FALSE}"; then
25302 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GXX_CXX98_SUPPORT\" was never defined.
25303Usually this means the macro was only invoked conditionally." >&5
25304echo "$as_me: error: conditional \"HAVE_GXX_CXX98_SUPPORT\" was never defined.
25305Usually this means the macro was only invoked conditionally." >&2;}
25306 { (exit 1); exit 1; }; }
25307fi
25308if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
25309 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
25310Usually this means the macro was only invoked conditionally." >&5
25311echo "$as_me: error: conditional \"HAVE_X\" was never defined.
25312Usually this means the macro was only invoked conditionally." >&2;}
25313 { (exit 1); exit 1; }; }
25314fi
25315if test -z "${ENABLE_DVB_TRUE}" && test -z "${ENABLE_DVB_FALSE}"; then
25316 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DVB\" was never defined.
25317Usually this means the macro was only invoked conditionally." >&5
25318echo "$as_me: error: conditional \"ENABLE_DVB\" was never defined.
25319Usually this means the macro was only invoked conditionally." >&2;}
25320 { (exit 1); exit 1; }; }
25321fi
25322if test -z "${ENABLE_PROXY_TRUE}" && test -z "${ENABLE_PROXY_FALSE}"; then
25323 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PROXY\" was never defined.
25324Usually this means the macro was only invoked conditionally." >&5
25325echo "$as_me: error: conditional \"ENABLE_PROXY\" was never defined.
25326Usually this means the macro was only invoked conditionally." >&2;}
25327 { (exit 1); exit 1; }; }
25328fi
25329if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
25330 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
25331Usually this means the macro was only invoked conditionally." >&5
25332echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
25333Usually this means the macro was only invoked conditionally." >&2;}
25334 { (exit 1); exit 1; }; }
25335fi
25336if test -z "${BUILD_STATIC_LIB_TRUE}" && test -z "${BUILD_STATIC_LIB_FALSE}"; then
25337 { { echo "$as_me:$LINENO: error: conditional \"BUILD_STATIC_LIB\" was never defined.
25338Usually this means the macro was only invoked conditionally." >&5
25339echo "$as_me: error: conditional \"BUILD_STATIC_LIB\" was never defined.
25340Usually this means the macro was only invoked conditionally." >&2;}
25341 { (exit 1); exit 1; }; }
25342fi
25343
25344: ${CONFIG_STATUS=./config.status}
25345ac_clean_files_save=$ac_clean_files
25346ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25347{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25348echo "$as_me: creating $CONFIG_STATUS" >&6;}
25349cat >$CONFIG_STATUS <<_ACEOF
25350#! $SHELL
25351# Generated by $as_me.
25352# Run this file to recreate the current configuration.
25353# Compiler output produced by configure, useful for debugging
25354# configure, is in config.log if it exists.
25355
25356debug=false
25357ac_cs_recheck=false
25358ac_cs_silent=false
25359SHELL=\${CONFIG_SHELL-$SHELL}
25360_ACEOF
25361
25362cat >>$CONFIG_STATUS <<\_ACEOF
25363## --------------------- ##
25364## M4sh Initialization. ##
25365## --------------------- ##
25366
25367# Be more Bourne compatible
25368DUALCASE=1; export DUALCASE # for MKS sh
25369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25370 emulate sh
25371 NULLCMD=:
25372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25373 # is contrary to our usage. Disable this feature.
25374 alias -g '${1+"$@"}'='"$@"'
25375 setopt NO_GLOB_SUBST
25376else
25377 case `(set -o) 2>/dev/null` in
25378 *posix*) set -o posix ;;
25379esac
25380
25381fi
25382
25383
25384
25385
25386# PATH needs CR
25387# Avoid depending upon Character Ranges.
25388as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25389as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25390as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25391as_cr_digits='0123456789'
25392as_cr_alnum=$as_cr_Letters$as_cr_digits
25393
25394# The user is always right.
25395if test "${PATH_SEPARATOR+set}" != set; then
25396 echo "#! /bin/sh" >conf$$.sh
25397 echo "exit 0" >>conf$$.sh
25398 chmod +x conf$$.sh
25399 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25400 PATH_SEPARATOR=';'
25401 else
25402 PATH_SEPARATOR=:
25403 fi
25404 rm -f conf$$.sh
25405fi
25406
25407# Support unset when possible.
25408if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25409 as_unset=unset
25410else
25411 as_unset=false
25412fi
25413
25414
25415# IFS
25416# We need space, tab and new line, in precisely that order. Quoting is
25417# there to prevent editors from complaining about space-tab.
25418# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25419# splitting by setting IFS to empty value.)
25420as_nl='
25421'
25422IFS=" "" $as_nl"
25423
25424# Find who we are. Look in the path if we contain no directory separator.
25425case $0 in
25426 *[\\/]* ) as_myself=$0 ;;
25427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25428for as_dir in $PATH
25429do
25430 IFS=$as_save_IFS
25431 test -z "$as_dir" && as_dir=.
25432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25433done
25434IFS=$as_save_IFS
25435
25436 ;;
25437esac
25438# We did not find ourselves, most probably we were run as `sh COMMAND'
25439# in which case we are not to be found in the path.
25440if test "x$as_myself" = x; then
25441 as_myself=$0
25442fi
25443if test ! -f "$as_myself"; then
25444 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25445 { (exit 1); exit 1; }
25446fi
25447
25448# Work around bugs in pre-3.0 UWIN ksh.
25449for as_var in ENV MAIL MAILPATH
25450do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25451done
25452PS1='$ '
25453PS2='> '
25454PS4='+ '
25455
25456# NLS nuisances.
25457for as_var in \
25458 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25459 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25460 LC_TELEPHONE LC_TIME
25461do
25462 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25463 eval $as_var=C; export $as_var
25464 else
25465 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25466 fi
25467done
25468
25469# Required to use basename.
25470if expr a : '\(a\)' >/dev/null 2>&1 &&
25471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25472 as_expr=expr
25473else
25474 as_expr=false
25475fi
25476
25477if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25478 as_basename=basename
25479else
25480 as_basename=false
25481fi
25482
25483
25484# Name of the executable.
25485as_me=`$as_basename -- "$0" ||
25486$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25487 X"$0" : 'X\(//\)$' \| \
25488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25489echo X/"$0" |
25490 sed '/^.*\/\([^/][^/]*\)\/*$/{
25491 s//\1/
25492 q
25493 }
25494 /^X\/\(\/\/\)$/{
25495 s//\1/
25496 q
25497 }
25498 /^X\/\(\/\).*/{
25499 s//\1/
25500 q
25501 }
25502 s/.*/./; q'`
25503
25504# CDPATH.
25505$as_unset CDPATH
25506
25507
25508
25509 as_lineno_1=$LINENO
25510 as_lineno_2=$LINENO
25511 test "x$as_lineno_1" != "x$as_lineno_2" &&
25512 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25513
25514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25515 # uniformly replaced by the line number. The first 'sed' inserts a
25516 # line-number line after each line using $LINENO; the second 'sed'
25517 # does the real work. The second script uses 'N' to pair each
25518 # line-number line with the line containing $LINENO, and appends
25519 # trailing '-' during substitution so that $LINENO is not a special
25520 # case at line end.
25521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25522 # scripts with optimization help from Paolo Bonzini. Blame Lee
25523 # E. McMahon (1931-1989) for sed's syntax. :-)
25524 sed -n '
25525 p
25526 /[$]LINENO/=
25527 ' <$as_myself |
25528 sed '
25529 s/[$]LINENO.*/&-/
25530 t lineno
25531 b
25532 :lineno
25533 N
25534 :loop
25535 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25536 t loop
25537 s/-\n.*//
25538 ' >$as_me.lineno &&
25539 chmod +x "$as_me.lineno" ||
25540 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25541 { (exit 1); exit 1; }; }
25542
25543 # Don't try to exec as it changes $[0], causing all sort of problems
25544 # (the dirname of $[0] is not the place where we might find the
25545 # original and so on. Autoconf is especially sensitive to this).
25546 . "./$as_me.lineno"
25547 # Exit status is that of the last command.
25548 exit
25549}
25550
25551
25552if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25553 as_dirname=dirname
25554else
25555 as_dirname=false
25556fi
25557
25558ECHO_C= ECHO_N= ECHO_T=
25559case `echo -n x` in
25560-n*)
25561 case `echo 'x\c'` in
25562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25563 *) ECHO_C='\c';;
25564 esac;;
25565*)
25566 ECHO_N='-n';;
25567esac
25568
25569if expr a : '\(a\)' >/dev/null 2>&1 &&
25570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25571 as_expr=expr
25572else
25573 as_expr=false
25574fi
25575
25576rm -f conf$$ conf$$.exe conf$$.file
25577if test -d conf$$.dir; then
25578 rm -f conf$$.dir/conf$$.file
25579else
25580 rm -f conf$$.dir
25581 mkdir conf$$.dir
25582fi
25583echo >conf$$.file
25584if ln -s conf$$.file conf$$ 2>/dev/null; then
25585 as_ln_s='ln -s'
25586 # ... but there are two gotchas:
25587 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25588 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25589 # In both cases, we have to default to `cp -p'.
25590 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25591 as_ln_s='cp -p'
25592elif ln conf$$.file conf$$ 2>/dev/null; then
25593 as_ln_s=ln
25594else
25595 as_ln_s='cp -p'
25596fi
25597rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25598rmdir conf$$.dir 2>/dev/null
25599
25600if mkdir -p . 2>/dev/null; then
25601 as_mkdir_p=:
25602else
25603 test -d ./-p && rmdir ./-p
25604 as_mkdir_p=false
25605fi
25606
25607if test -x / >/dev/null 2>&1; then
25608 as_test_x='test -x'
25609else
25610 if ls -dL / >/dev/null 2>&1; then
25611 as_ls_L_option=L
25612 else
25613 as_ls_L_option=
25614 fi
25615 as_test_x='
25616 eval sh -c '\''
25617 if test -d "$1"; then
25618 test -d "$1/.";
25619 else
25620 case $1 in
25621 -*)set "./$1";;
25622 esac;
25623 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25624 ???[sx]*):;;*)false;;esac;fi
25625 '\'' sh
25626 '
25627fi
25628as_executable_p=$as_test_x
25629
25630# Sed expression to map a string onto a valid CPP name.
25631as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25632
25633# Sed expression to map a string onto a valid variable name.
25634as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25635
25636
25637exec 6>&1
25638
25639# Save the log message, to keep $[0] and so on meaningful, and to
25640# report actual input values of CONFIG_FILES etc. instead of their
25641# values after options handling.
25642ac_log="
25643This file was extended by zvbi $as_me 0.2.33, which was
25644generated by GNU Autoconf 2.61. Invocation command line was
25645
25646 CONFIG_FILES = $CONFIG_FILES
25647 CONFIG_HEADERS = $CONFIG_HEADERS
25648 CONFIG_LINKS = $CONFIG_LINKS
25649 CONFIG_COMMANDS = $CONFIG_COMMANDS
25650 $ $0 $@
25651
25652on `(hostname || uname -n) 2>/dev/null | sed 1q`
25653"
25654
25655_ACEOF
25656
25657cat >>$CONFIG_STATUS <<_ACEOF
25658# Files that config.status was made for.
25659config_files="$ac_config_files"
25660config_headers="$ac_config_headers"
25661config_commands="$ac_config_commands"
25662
25663_ACEOF
25664
25665cat >>$CONFIG_STATUS <<\_ACEOF
25666ac_cs_usage="\
25667\`$as_me' instantiates files from templates according to the
25668current configuration.
25669
25670Usage: $0 [OPTIONS] [FILE]...
25671
25672 -h, --help print this help, then exit
25673 -V, --version print version number and configuration settings, then exit
25674 -q, --quiet do not print progress messages
25675 -d, --debug don't remove temporary files
25676 --recheck update $as_me by reconfiguring in the same conditions
25677 --file=FILE[:TEMPLATE]
25678 instantiate the configuration file FILE
25679 --header=FILE[:TEMPLATE]
25680 instantiate the configuration header FILE
25681
25682Configuration files:
25683$config_files
25684
25685Configuration headers:
25686$config_headers
25687
25688Configuration commands:
25689$config_commands
25690
25691Report bugs to <bug-autoconf@gnu.org>."
25692
25693_ACEOF
25694cat >>$CONFIG_STATUS <<_ACEOF
25695ac_cs_version="\\
25696zvbi config.status 0.2.33
25697configured by $0, generated by GNU Autoconf 2.61,
25698 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25699
25700Copyright (C) 2006 Free Software Foundation, Inc.
25701This config.status script is free software; the Free Software Foundation
25702gives unlimited permission to copy, distribute and modify it."
25703
25704ac_pwd='$ac_pwd'
25705srcdir='$srcdir'
25706INSTALL='$INSTALL'
25707_ACEOF
25708
25709cat >>$CONFIG_STATUS <<\_ACEOF
25710# If no file are specified by the user, then we need to provide default
25711# value. By we need to know if files were specified by the user.
25712ac_need_defaults=:
25713while test $# != 0
25714do
25715 case $1 in
25716 --*=*)
25717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25718 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25719 ac_shift=:
25720 ;;
25721 *)
25722 ac_option=$1
25723 ac_optarg=$2
25724 ac_shift=shift
25725 ;;
25726 esac
25727
25728 case $ac_option in
25729 # Handling of the options.
25730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25731 ac_cs_recheck=: ;;
25732 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25733 echo "$ac_cs_version"; exit ;;
25734 --debug | --debu | --deb | --de | --d | -d )
25735 debug=: ;;
25736 --file | --fil | --fi | --f )
25737 $ac_shift
25738 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25739 ac_need_defaults=false;;
25740 --header | --heade | --head | --hea )
25741 $ac_shift
25742 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25743 ac_need_defaults=false;;
25744 --he | --h)
25745 # Conflict between --help and --header
25746 { echo "$as_me: error: ambiguous option: $1
25747Try \`$0 --help' for more information." >&2
25748 { (exit 1); exit 1; }; };;
25749 --help | --hel | -h )
25750 echo "$ac_cs_usage"; exit ;;
25751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25753 ac_cs_silent=: ;;
25754
25755 # This is an error.
25756 -*) { echo "$as_me: error: unrecognized option: $1
25757Try \`$0 --help' for more information." >&2
25758 { (exit 1); exit 1; }; } ;;
25759
25760 *) ac_config_targets="$ac_config_targets $1"
25761 ac_need_defaults=false ;;
25762
25763 esac
25764 shift
25765done
25766
25767ac_configure_extra_args=
25768
25769if $ac_cs_silent; then
25770 exec 6>/dev/null
25771 ac_configure_extra_args="$ac_configure_extra_args --silent"
25772fi
25773
25774_ACEOF
25775cat >>$CONFIG_STATUS <<_ACEOF
25776if \$ac_cs_recheck; then
25777 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25778 CONFIG_SHELL=$SHELL
25779 export CONFIG_SHELL
25780 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25781fi
25782
25783_ACEOF
25784cat >>$CONFIG_STATUS <<\_ACEOF
25785exec 5>>config.log
25786{
25787 echo
25788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25789## Running $as_me. ##
25790_ASBOX
25791 echo "$ac_log"
25792} >&5
25793
25794_ACEOF
25795cat >>$CONFIG_STATUS <<_ACEOF
25796#
25797# INIT-COMMANDS
25798#
25799AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25800# Capture the value of obsolete ALL_LINGUAS because we need it to compute
25801 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
25802 # from automake < 1.5.
25803 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
25804 # Capture the value of LINGUAS because we need it to compute CATALOGS.
25805 LINGUAS="${LINGUAS-%UNSET%}"
25806
25807
25808_ACEOF
25809
25810cat >>$CONFIG_STATUS <<\_ACEOF
25811
25812# Handling of arguments.
25813for ac_config_target in $ac_config_targets
25814do
25815 case $ac_config_target in
25816 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25817 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25818 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
25819 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25820 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
25821 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25822 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
25823 "daemon/zvbid.init") CONFIG_FILES="$CONFIG_FILES daemon/zvbid.init" ;;
25824 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
25825 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25826 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
25827 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25828 "src/dvb/Makefile") CONFIG_FILES="$CONFIG_FILES src/dvb/Makefile" ;;
25829 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
25830 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25831 "zvbi.spec") CONFIG_FILES="$CONFIG_FILES zvbi.spec" ;;
25832 "zvbi-0.2.pc") CONFIG_FILES="$CONFIG_FILES zvbi-0.2.pc" ;;
25833
25834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25835echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25836 { (exit 1); exit 1; }; };;
25837 esac
25838done
25839
25840
25841# If the user did not use the arguments to specify the items to instantiate,
25842# then the envvar interface is used. Set only those that are not.
25843# We use the long form for the default assignment because of an extremely
25844# bizarre bug on SunOS 4.1.3.
25845if $ac_need_defaults; then
25846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25849fi
25850
25851# Have a temporary directory for convenience. Make it in the build tree
25852# simply because there is no reason against having it here, and in addition,
25853# creating and moving files from /tmp can sometimes cause problems.
25854# Hook for its removal unless debugging.
25855# Note that there is a small window in which the directory will not be cleaned:
25856# after its creation but before its name has been assigned to `$tmp'.
25857$debug ||
25858{
25859 tmp=
25860 trap 'exit_status=$?
25861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25862' 0
25863 trap '{ (exit 1); exit 1; }' 1 2 13 15
25864}
25865# Create a (secure) tmp directory for tmp files.
25866
25867{
25868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25869 test -n "$tmp" && test -d "$tmp"
25870} ||
25871{
25872 tmp=./conf$$-$RANDOM
25873 (umask 077 && mkdir "$tmp")
25874} ||
25875{
25876 echo "$me: cannot create a temporary directory in ." >&2
25877 { (exit 1); exit 1; }
25878}
25879
25880#
25881# Set up the sed scripts for CONFIG_FILES section.
25882#
25883
25884# No need to generate the scripts if there are no CONFIG_FILES.
25885# This happens for instance when ./config.status config.h
25886if test -n "$CONFIG_FILES"; then
25887
25888_ACEOF
25889
25890
25891
25892ac_delim='%!_!# '
25893for ac_last_try in false false false false false :; do
25894 cat >conf$$subs.sed <<_ACEOF
25895SHELL!$SHELL$ac_delim
25896PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25897PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25898PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25899PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25900PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25901PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25902exec_prefix!$exec_prefix$ac_delim
25903prefix!$prefix$ac_delim
25904program_transform_name!$program_transform_name$ac_delim
25905bindir!$bindir$ac_delim
25906sbindir!$sbindir$ac_delim
25907libexecdir!$libexecdir$ac_delim
25908datarootdir!$datarootdir$ac_delim
25909datadir!$datadir$ac_delim
25910sysconfdir!$sysconfdir$ac_delim
25911sharedstatedir!$sharedstatedir$ac_delim
25912localstatedir!$localstatedir$ac_delim
25913includedir!$includedir$ac_delim
25914oldincludedir!$oldincludedir$ac_delim
25915docdir!$docdir$ac_delim
25916infodir!$infodir$ac_delim
25917htmldir!$htmldir$ac_delim
25918dvidir!$dvidir$ac_delim
25919pdfdir!$pdfdir$ac_delim
25920psdir!$psdir$ac_delim
25921libdir!$libdir$ac_delim
25922localedir!$localedir$ac_delim
25923mandir!$mandir$ac_delim
25924DEFS!$DEFS$ac_delim
25925ECHO_C!$ECHO_C$ac_delim
25926ECHO_N!$ECHO_N$ac_delim
25927ECHO_T!$ECHO_T$ac_delim
25928LIBS!$LIBS$ac_delim
25929build_alias!$build_alias$ac_delim
25930host_alias!$host_alias$ac_delim
25931target_alias!$target_alias$ac_delim
25932INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25933INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25934INSTALL_DATA!$INSTALL_DATA$ac_delim
25935CYGPATH_W!$CYGPATH_W$ac_delim
25936PACKAGE!$PACKAGE$ac_delim
25937VERSION!$VERSION$ac_delim
25938ACLOCAL!$ACLOCAL$ac_delim
25939AUTOCONF!$AUTOCONF$ac_delim
25940AUTOMAKE!$AUTOMAKE$ac_delim
25941AUTOHEADER!$AUTOHEADER$ac_delim
25942MAKEINFO!$MAKEINFO$ac_delim
25943install_sh!$install_sh$ac_delim
25944STRIP!$STRIP$ac_delim
25945INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25946mkdir_p!$mkdir_p$ac_delim
25947AWK!$AWK$ac_delim
25948SET_MAKE!$SET_MAKE$ac_delim
25949am__leading_dot!$am__leading_dot$ac_delim
25950AMTAR!$AMTAR$ac_delim
25951am__tar!$am__tar$ac_delim
25952am__untar!$am__untar$ac_delim
25953INSIDE_GNOME_COMMON_TRUE!$INSIDE_GNOME_COMMON_TRUE$ac_delim
25954INSIDE_GNOME_COMMON_FALSE!$INSIDE_GNOME_COMMON_FALSE$ac_delim
25955MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25956MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25957MAINT!$MAINT$ac_delim
25958LIBZVBI_SO_VERSION!$LIBZVBI_SO_VERSION$ac_delim
25959CC!$CC$ac_delim
25960CFLAGS!$CFLAGS$ac_delim
25961LDFLAGS!$LDFLAGS$ac_delim
25962CPPFLAGS!$CPPFLAGS$ac_delim
25963ac_ct_CC!$ac_ct_CC$ac_delim
25964EXEEXT!$EXEEXT$ac_delim
25965OBJEXT!$OBJEXT$ac_delim
25966DEPDIR!$DEPDIR$ac_delim
25967am__include!$am__include$ac_delim
25968am__quote!$am__quote$ac_delim
25969AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25970AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25971AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25972CCDEPMODE!$CCDEPMODE$ac_delim
25973am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25974am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25975CXX!$CXX$ac_delim
25976CXXFLAGS!$CXXFLAGS$ac_delim
25977ac_ct_CXX!$ac_ct_CXX$ac_delim
25978CXXDEPMODE!$CXXDEPMODE$ac_delim
25979am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25980am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25981CPP!$CPP$ac_delim
25982GREP!$GREP$ac_delim
25983EGREP!$EGREP$ac_delim
25984build!$build$ac_delim
25985build_cpu!$build_cpu$ac_delim
25986build_vendor!$build_vendor$ac_delim
25987build_os!$build_os$ac_delim
25988host!$host$ac_delim
25989host_cpu!$host_cpu$ac_delim
25990host_vendor!$host_vendor$ac_delim
25991host_os!$host_os$ac_delim
25992_ACEOF
25993
25994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25995 break
25996 elif $ac_last_try; then
25997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25998echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25999 { (exit 1); exit 1; }; }
26000 else
26001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26002 fi
26003done
26004
26005ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26006if test -n "$ac_eof"; then
26007 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26008 ac_eof=`expr $ac_eof + 1`
26009fi
26010
26011cat >>$CONFIG_STATUS <<_ACEOF
26012cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26013/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26014_ACEOF
26015sed '
26016s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26017s/^/s,@/; s/!/@,|#_!!_#|/
26018:n
26019t n
26020s/'"$ac_delim"'$/,g/; t
26021s/$/\\/; p
26022N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26023' >>$CONFIG_STATUS <conf$$subs.sed
26024rm -f conf$$subs.sed
26025cat >>$CONFIG_STATUS <<_ACEOF
26026CEOF$ac_eof
26027_ACEOF
26028
26029
26030ac_delim='%!_!# '
26031for ac_last_try in false false false false false :; do
26032 cat >conf$$subs.sed <<_ACEOF
26033LN_S!$LN_S$ac_delim
26034ECHO!$ECHO$ac_delim
26035AR!$AR$ac_delim
26036RANLIB!$RANLIB$ac_delim
26037CXXCPP!$CXXCPP$ac_delim
26038F77!$F77$ac_delim
26039FFLAGS!$FFLAGS$ac_delim
26040ac_ct_F77!$ac_ct_F77$ac_delim
26041LIBTOOL!$LIBTOOL$ac_delim
26042HAVE_GCC_LIMITS_TRUE!$HAVE_GCC_LIMITS_TRUE$ac_delim
26043HAVE_GCC_LIMITS_FALSE!$HAVE_GCC_LIMITS_FALSE$ac_delim
26044HAVE_GCC_C89_SUPPORT_TRUE!$HAVE_GCC_C89_SUPPORT_TRUE$ac_delim
26045HAVE_GCC_C89_SUPPORT_FALSE!$HAVE_GCC_C89_SUPPORT_FALSE$ac_delim
26046HAVE_GCC_C94_SUPPORT_TRUE!$HAVE_GCC_C94_SUPPORT_TRUE$ac_delim
26047HAVE_GCC_C94_SUPPORT_FALSE!$HAVE_GCC_C94_SUPPORT_FALSE$ac_delim
26048HAVE_GCC_C99_SUPPORT_TRUE!$HAVE_GCC_C99_SUPPORT_TRUE$ac_delim
26049HAVE_GCC_C99_SUPPORT_FALSE!$HAVE_GCC_C99_SUPPORT_FALSE$ac_delim
26050HAVE_GXX_CXX98_SUPPORT_TRUE!$HAVE_GXX_CXX98_SUPPORT_TRUE$ac_delim
26051HAVE_GXX_CXX98_SUPPORT_FALSE!$HAVE_GXX_CXX98_SUPPORT_FALSE$ac_delim
26052UNICODE_CFLAGS!$UNICODE_CFLAGS$ac_delim
26053UNICODE_LIBS!$UNICODE_LIBS$ac_delim
26054LIBICONV!$LIBICONV$ac_delim
26055LTLIBICONV!$LTLIBICONV$ac_delim
26056XMKMF!$XMKMF$ac_delim
26057X_CFLAGS!$X_CFLAGS$ac_delim
26058X_PRE_LIBS!$X_PRE_LIBS$ac_delim
26059X_LIBS!$X_LIBS$ac_delim
26060X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
26061HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim
26062HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim
26063ENABLE_DVB_TRUE!$ENABLE_DVB_TRUE$ac_delim
26064ENABLE_DVB_FALSE!$ENABLE_DVB_FALSE$ac_delim
26065ENABLE_PROXY_TRUE!$ENABLE_PROXY_TRUE$ac_delim
26066ENABLE_PROXY_FALSE!$ENABLE_PROXY_FALSE$ac_delim
26067USE_NLS!$USE_NLS$ac_delim
26068MSGFMT!$MSGFMT$ac_delim
26069GMSGFMT!$GMSGFMT$ac_delim
26070MSGFMT_015!$MSGFMT_015$ac_delim
26071GMSGFMT_015!$GMSGFMT_015$ac_delim
26072XGETTEXT!$XGETTEXT$ac_delim
26073XGETTEXT_015!$XGETTEXT_015$ac_delim
26074MSGMERGE!$MSGMERGE$ac_delim
26075INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
26076INTLLIBS!$INTLLIBS$ac_delim
26077LIBINTL!$LIBINTL$ac_delim
26078LTLIBINTL!$LTLIBINTL$ac_delim
26079POSUB!$POSUB$ac_delim
26080HAVE_DOXYGEN!$HAVE_DOXYGEN$ac_delim
26081HAVE_DOXYGEN_TRUE!$HAVE_DOXYGEN_TRUE$ac_delim
26082HAVE_DOXYGEN_FALSE!$HAVE_DOXYGEN_FALSE$ac_delim
26083BUILD_STATIC_LIB_TRUE!$BUILD_STATIC_LIB_TRUE$ac_delim
26084BUILD_STATIC_LIB_FALSE!$BUILD_STATIC_LIB_FALSE$ac_delim
26085LIBOBJS!$LIBOBJS$ac_delim
26086LTLIBOBJS!$LTLIBOBJS$ac_delim
26087_ACEOF
26088
26089 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
26090 break
26091 elif $ac_last_try; then
26092 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26093echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26094 { (exit 1); exit 1; }; }
26095 else
26096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26097 fi
26098done
26099
26100ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26101if test -n "$ac_eof"; then
26102 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26103 ac_eof=`expr $ac_eof + 1`
26104fi
26105
26106cat >>$CONFIG_STATUS <<_ACEOF
26107cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26109_ACEOF
26110sed '
26111s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26112s/^/s,@/; s/!/@,|#_!!_#|/
26113:n
26114t n
26115s/'"$ac_delim"'$/,g/; t
26116s/$/\\/; p
26117N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26118' >>$CONFIG_STATUS <conf$$subs.sed
26119rm -f conf$$subs.sed
26120cat >>$CONFIG_STATUS <<_ACEOF
26121:end
26122s/|#_!!_#|//g
26123CEOF$ac_eof
26124_ACEOF
26125
26126
26127# VPATH may cause trouble with some makes, so we remove $(srcdir),
26128# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26129# trailing colons and then remove the whole line if VPATH becomes empty
26130# (actually we leave an empty line to preserve line numbers).
26131if test "x$srcdir" = x.; then
26132 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26133s/:*\$(srcdir):*/:/
26134s/:*\${srcdir}:*/:/
26135s/:*@srcdir@:*/:/
26136s/^\([^=]*=[ ]*\):*/\1/
26137s/:*$//
26138s/^[^=]*=[ ]*$//
26139}'
26140fi
26141
26142cat >>$CONFIG_STATUS <<\_ACEOF
26143fi # test -n "$CONFIG_FILES"
26144
26145
26146for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26147do
26148 case $ac_tag in
26149 :[FHLC]) ac_mode=$ac_tag; continue;;
26150 esac
26151 case $ac_mode$ac_tag in
26152 :[FHL]*:*);;
26153 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26154echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26155 { (exit 1); exit 1; }; };;
26156 :[FH]-) ac_tag=-:-;;
26157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26158 esac
26159 ac_save_IFS=$IFS
26160 IFS=:
26161 set x $ac_tag
26162 IFS=$ac_save_IFS
26163 shift
26164 ac_file=$1
26165 shift
26166
26167 case $ac_mode in
26168 :L) ac_source=$1;;
26169 :[FH])
26170 ac_file_inputs=
26171 for ac_f
26172 do
26173 case $ac_f in
26174 -) ac_f="$tmp/stdin";;
26175 *) # Look for the file first in the build tree, then in the source tree
26176 # (if the path is not absolute). The absolute path cannot be DOS-style,
26177 # because $ac_f cannot contain `:'.
26178 test -f "$ac_f" ||
26179 case $ac_f in
26180 [\\/$]*) false;;
26181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26182 esac ||
26183 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26184echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26185 { (exit 1); exit 1; }; };;
26186 esac
26187 ac_file_inputs="$ac_file_inputs $ac_f"
26188 done
26189
26190 # Let's still pretend it is `configure' which instantiates (i.e., don't
26191 # use $as_me), people would be surprised to read:
26192 # /* config.h. Generated by config.status. */
26193 configure_input="Generated from "`IFS=:
26194 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26195 if test x"$ac_file" != x-; then
26196 configure_input="$ac_file. $configure_input"
26197 { echo "$as_me:$LINENO: creating $ac_file" >&5
26198echo "$as_me: creating $ac_file" >&6;}
26199 fi
26200
26201 case $ac_tag in
26202 *:-:* | *:-) cat >"$tmp/stdin";;
26203 esac
26204 ;;
26205 esac
26206
26207 ac_dir=`$as_dirname -- "$ac_file" ||
26208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26209 X"$ac_file" : 'X\(//\)[^/]' \| \
26210 X"$ac_file" : 'X\(//\)$' \| \
26211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26212echo X"$ac_file" |
26213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26214 s//\1/
26215 q
26216 }
26217 /^X\(\/\/\)[^/].*/{
26218 s//\1/
26219 q
26220 }
26221 /^X\(\/\/\)$/{
26222 s//\1/
26223 q
26224 }
26225 /^X\(\/\).*/{
26226 s//\1/
26227 q
26228 }
26229 s/.*/./; q'`
26230 { as_dir="$ac_dir"
26231 case $as_dir in #(
26232 -*) as_dir=./$as_dir;;
26233 esac
26234 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26235 as_dirs=
26236 while :; do
26237 case $as_dir in #(
26238 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26239 *) as_qdir=$as_dir;;
26240 esac
26241 as_dirs="'$as_qdir' $as_dirs"
26242 as_dir=`$as_dirname -- "$as_dir" ||
26243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26244 X"$as_dir" : 'X\(//\)[^/]' \| \
26245 X"$as_dir" : 'X\(//\)$' \| \
26246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26247echo X"$as_dir" |
26248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26249 s//\1/
26250 q
26251 }
26252 /^X\(\/\/\)[^/].*/{
26253 s//\1/
26254 q
26255 }
26256 /^X\(\/\/\)$/{
26257 s//\1/
26258 q
26259 }
26260 /^X\(\/\).*/{
26261 s//\1/
26262 q
26263 }
26264 s/.*/./; q'`
26265 test -d "$as_dir" && break
26266 done
26267 test -z "$as_dirs" || eval "mkdir $as_dirs"
26268 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26269echo "$as_me: error: cannot create directory $as_dir" >&2;}
26270 { (exit 1); exit 1; }; }; }
26271 ac_builddir=.
26272
26273case "$ac_dir" in
26274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26275*)
26276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26277 # A ".." for each directory in $ac_dir_suffix.
26278 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26279 case $ac_top_builddir_sub in
26280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26282 esac ;;
26283esac
26284ac_abs_top_builddir=$ac_pwd
26285ac_abs_builddir=$ac_pwd$ac_dir_suffix
26286# for backward compatibility:
26287ac_top_builddir=$ac_top_build_prefix
26288
26289case $srcdir in
26290 .) # We are building in place.
26291 ac_srcdir=.
26292 ac_top_srcdir=$ac_top_builddir_sub
26293 ac_abs_top_srcdir=$ac_pwd ;;
26294 [\\/]* | ?:[\\/]* ) # Absolute name.
26295 ac_srcdir=$srcdir$ac_dir_suffix;
26296 ac_top_srcdir=$srcdir
26297 ac_abs_top_srcdir=$srcdir ;;
26298 *) # Relative name.
26299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26300 ac_top_srcdir=$ac_top_build_prefix$srcdir
26301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26302esac
26303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26304
26305
26306 case $ac_mode in
26307 :F)
26308 #
26309 # CONFIG_FILE
26310 #
26311
26312 case $INSTALL in
26313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26314 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26315 esac
26316_ACEOF
26317
26318cat >>$CONFIG_STATUS <<\_ACEOF
26319# If the template does not know about datarootdir, expand it.
26320# FIXME: This hack should be removed a few years after 2.60.
26321ac_datarootdir_hack=; ac_datarootdir_seen=
26322
26323case `sed -n '/datarootdir/ {
26324 p
26325 q
26326}
26327/@datadir@/p
26328/@docdir@/p
26329/@infodir@/p
26330/@localedir@/p
26331/@mandir@/p
26332' $ac_file_inputs` in
26333*datarootdir*) ac_datarootdir_seen=yes;;
26334*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26335 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26336echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26337_ACEOF
26338cat >>$CONFIG_STATUS <<_ACEOF
26339 ac_datarootdir_hack='
26340 s&@datadir@&$datadir&g
26341 s&@docdir@&$docdir&g
26342 s&@infodir@&$infodir&g
26343 s&@localedir@&$localedir&g
26344 s&@mandir@&$mandir&g
26345 s&\\\${datarootdir}&$datarootdir&g' ;;
26346esac
26347_ACEOF
26348
26349# Neutralize VPATH when `$srcdir' = `.'.
26350# Shell code in configure.ac might set extrasub.
26351# FIXME: do we really want to maintain this feature?
26352cat >>$CONFIG_STATUS <<_ACEOF
26353 sed "$ac_vpsub
26354$extrasub
26355_ACEOF
26356cat >>$CONFIG_STATUS <<\_ACEOF
26357:t
26358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26359s&@configure_input@&$configure_input&;t t
26360s&@top_builddir@&$ac_top_builddir_sub&;t t
26361s&@srcdir@&$ac_srcdir&;t t
26362s&@abs_srcdir@&$ac_abs_srcdir&;t t
26363s&@top_srcdir@&$ac_top_srcdir&;t t
26364s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26365s&@builddir@&$ac_builddir&;t t
26366s&@abs_builddir@&$ac_abs_builddir&;t t
26367s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26368s&@INSTALL@&$ac_INSTALL&;t t
26369$ac_datarootdir_hack
26370" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26371
26372test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26375 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26376which seems to be undefined. Please make sure it is defined." >&5
26377echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26378which seems to be undefined. Please make sure it is defined." >&2;}
26379
26380 rm -f "$tmp/stdin"
26381 case $ac_file in
26382 -) cat "$tmp/out"; rm -f "$tmp/out";;
26383 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26384 esac
26385 ;;
26386 :H)
26387 #
26388 # CONFIG_HEADER
26389 #
26390_ACEOF
26391
26392# Transform confdefs.h into a sed script `conftest.defines', that
26393# substitutes the proper values into config.h.in to produce config.h.
26394rm -f conftest.defines conftest.tail
26395# First, append a space to every undef/define line, to ease matching.
26396echo 's/$/ /' >conftest.defines
26397# Then, protect against being on the right side of a sed subst, or in
26398# an unquoted here document, in config.status. If some macros were
26399# called several times there might be several #defines for the same
26400# symbol, which is useless. But do not sort them, since the last
26401# AC_DEFINE must be honored.
26402ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26403# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26404# NAME is the cpp macro being defined, VALUE is the value it is being given.
26405# PARAMS is the parameter list in the macro definition--in most cases, it's
26406# just an empty string.
26407ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26408ac_dB='\\)[ (].*,\\1define\\2'
26409ac_dC=' '
26410ac_dD=' ,'
26411
26412uniq confdefs.h |
26413 sed -n '
26414 t rset
26415 :rset
26416 s/^[ ]*#[ ]*define[ ][ ]*//
26417 t ok
26418 d
26419 :ok
26420 s/[\\&,]/\\&/g
26421 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26422 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26423 ' >>conftest.defines
26424
26425# Remove the space that was appended to ease matching.
26426# Then replace #undef with comments. This is necessary, for
26427# example, in the case of _POSIX_SOURCE, which is predefined and required
26428# on some systems where configure will not decide to define it.
26429# (The regexp can be short, since the line contains either #define or #undef.)
26430echo 's/ $//
26431s,^[ #]*u.*,/* & */,' >>conftest.defines
26432
26433# Break up conftest.defines:
26434ac_max_sed_lines=50
26435
26436# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26437# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26438# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26439# et cetera.
26440ac_in='$ac_file_inputs'
26441ac_out='"$tmp/out1"'
26442ac_nxt='"$tmp/out2"'
26443
26444while :
26445do
26446 # Write a here document:
26447 cat >>$CONFIG_STATUS <<_ACEOF
26448 # First, check the format of the line:
26449 cat >"\$tmp/defines.sed" <<\\CEOF
26450/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26451/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26452b
26453:def
26454_ACEOF
26455 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26456 echo 'CEOF
26457 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26458 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26459 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26460 grep . conftest.tail >/dev/null || break
26461 rm -f conftest.defines
26462 mv conftest.tail conftest.defines
26463done
26464rm -f conftest.defines conftest.tail
26465
26466echo "ac_result=$ac_in" >>$CONFIG_STATUS
26467cat >>$CONFIG_STATUS <<\_ACEOF
26468 if test x"$ac_file" != x-; then
26469 echo "/* $configure_input */" >"$tmp/config.h"
26470 cat "$ac_result" >>"$tmp/config.h"
26471 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26472 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26473echo "$as_me: $ac_file is unchanged" >&6;}
26474 else
26475 rm -f $ac_file
26476 mv "$tmp/config.h" $ac_file
26477 fi
26478 else
26479 echo "/* $configure_input */"
26480 cat "$ac_result"
26481 fi
26482 rm -f "$tmp/out12"
26483# Compute $ac_file's index in $config_headers.
26484_am_stamp_count=1
26485for _am_header in $config_headers :; do
26486 case $_am_header in
26487 $ac_file | $ac_file:* )
26488 break ;;
26489 * )
26490 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26491 esac
26492done
26493echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
26494$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26495 X$ac_file : 'X\(//\)[^/]' \| \
26496 X$ac_file : 'X\(//\)$' \| \
26497 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
26498echo X$ac_file |
26499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26500 s//\1/
26501 q
26502 }
26503 /^X\(\/\/\)[^/].*/{
26504 s//\1/
26505 q
26506 }
26507 /^X\(\/\/\)$/{
26508 s//\1/
26509 q
26510 }
26511 /^X\(\/\).*/{
26512 s//\1/
26513 q
26514 }
26515 s/.*/./; q'`/stamp-h$_am_stamp_count
26516 ;;
26517
26518 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26519echo "$as_me: executing $ac_file commands" >&6;}
26520 ;;
26521 esac
26522
26523
26524 case $ac_file$ac_mode in
26525 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26526 # Strip MF so we end up with the name of the file.
26527 mf=`echo "$mf" | sed -e 's/:.*$//'`
26528 # Check whether this is an Automake generated Makefile or not.
26529 # We used to match only the files named `Makefile.in', but
26530 # some people rename them; so instead we look at the file content.
26531 # Grep'ing the first line is not enough: some people post-process
26532 # each Makefile.in and add a new line on top of each file to say so.
26533 # So let's grep whole file.
26534 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26535 dirpart=`$as_dirname -- "$mf" ||
26536$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26537 X"$mf" : 'X\(//\)[^/]' \| \
26538 X"$mf" : 'X\(//\)$' \| \
26539 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26540echo X"$mf" |
26541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26542 s//\1/
26543 q
26544 }
26545 /^X\(\/\/\)[^/].*/{
26546 s//\1/
26547 q
26548 }
26549 /^X\(\/\/\)$/{
26550 s//\1/
26551 q
26552 }
26553 /^X\(\/\).*/{
26554 s//\1/
26555 q
26556 }
26557 s/.*/./; q'`
26558 else
26559 continue
26560 fi
26561 # Extract the definition of DEPDIR, am__include, and am__quote
26562 # from the Makefile without running `make'.
26563 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26564 test -z "$DEPDIR" && continue
26565 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26566 test -z "am__include" && continue
26567 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26568 # When using ansi2knr, U may be empty or an underscore; expand it
26569 U=`sed -n 's/^U = //p' < "$mf"`
26570 # Find all dependency output files, they are included files with
26571 # $(DEPDIR) in their names. We invoke sed twice because it is the
26572 # simplest approach to changing $(DEPDIR) to its actual value in the
26573 # expansion.
26574 for file in `sed -n "
26575 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26576 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26577 # Make sure the directory exists.
26578 test -f "$dirpart/$file" && continue
26579 fdir=`$as_dirname -- "$file" ||
26580$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26581 X"$file" : 'X\(//\)[^/]' \| \
26582 X"$file" : 'X\(//\)$' \| \
26583 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26584echo X"$file" |
26585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26586 s//\1/
26587 q
26588 }
26589 /^X\(\/\/\)[^/].*/{
26590 s//\1/
26591 q
26592 }
26593 /^X\(\/\/\)$/{
26594 s//\1/
26595 q
26596 }
26597 /^X\(\/\).*/{
26598 s//\1/
26599 q
26600 }
26601 s/.*/./; q'`
26602 { as_dir=$dirpart/$fdir
26603 case $as_dir in #(
26604 -*) as_dir=./$as_dir;;
26605 esac
26606 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26607 as_dirs=
26608 while :; do
26609 case $as_dir in #(
26610 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26611 *) as_qdir=$as_dir;;
26612 esac
26613 as_dirs="'$as_qdir' $as_dirs"
26614 as_dir=`$as_dirname -- "$as_dir" ||
26615$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26616 X"$as_dir" : 'X\(//\)[^/]' \| \
26617 X"$as_dir" : 'X\(//\)$' \| \
26618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26619echo X"$as_dir" |
26620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26621 s//\1/
26622 q
26623 }
26624 /^X\(\/\/\)[^/].*/{
26625 s//\1/
26626 q
26627 }
26628 /^X\(\/\/\)$/{
26629 s//\1/
26630 q
26631 }
26632 /^X\(\/\).*/{
26633 s//\1/
26634 q
26635 }
26636 s/.*/./; q'`
26637 test -d "$as_dir" && break
26638 done
26639 test -z "$as_dirs" || eval "mkdir $as_dirs"
26640 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26641echo "$as_me: error: cannot create directory $as_dir" >&2;}
26642 { (exit 1); exit 1; }; }; }
26643 # echo "creating $dirpart/$file"
26644 echo '# dummy' > "$dirpart/$file"
26645 done
26646done
26647 ;;
26648 "po-directories":C)
26649 for ac_file in $CONFIG_FILES; do
26650 # Support "outfile[:infile[:infile...]]"
26651 case "$ac_file" in
26652 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26653 esac
26654 # PO directories have a Makefile.in generated from Makefile.in.in.
26655 case "$ac_file" in */Makefile.in)
26656 # Adjust a relative srcdir.
26657 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
26658 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
26659 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
26660 # In autoconf-2.13 it is called $ac_given_srcdir.
26661 # In autoconf-2.50 it is called $srcdir.
26662 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
26663 case "$ac_given_srcdir" in
26664 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
26665 /*) top_srcdir="$ac_given_srcdir" ;;
26666 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
26667 esac
26668 # Treat a directory as a PO directory if and only if it has a
26669 # POTFILES.in file. This allows packages to have multiple PO
26670 # directories under different names or in different locations.
26671 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
26672 rm -f "$ac_dir/POTFILES"
26673 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
26674 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
26675 POMAKEFILEDEPS="POTFILES.in"
26676 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
26677 # on $ac_dir but don't depend on user-specified configuration
26678 # parameters.
26679 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
26680 # The LINGUAS file contains the set of available languages.
26681 if test -n "$OBSOLETE_ALL_LINGUAS"; then
26682 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
26683 fi
26684 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
26685 # Hide the ALL_LINGUAS assigment from automake < 1.5.
26686 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
26687 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
26688 else
26689 # The set of available languages was given in configure.in.
26690 # Hide the ALL_LINGUAS assigment from automake < 1.5.
26691 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
26692 fi
26693 # Compute POFILES
26694 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
26695 # Compute UPDATEPOFILES
26696 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
26697 # Compute DUMMYPOFILES
26698 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
26699 # Compute GMOFILES
26700 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
26701 case "$ac_given_srcdir" in
26702 .) srcdirpre= ;;
26703 *) srcdirpre='$(srcdir)/' ;;
26704 esac
26705 POFILES=
26706 UPDATEPOFILES=
26707 DUMMYPOFILES=
26708 GMOFILES=
26709 for lang in $ALL_LINGUAS; do
26710 POFILES="$POFILES $srcdirpre$lang.po"
26711 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
26712 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
26713 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
26714 done
26715 # CATALOGS depends on both $ac_dir and the user's LINGUAS
26716 # environment variable.
26717 INST_LINGUAS=
26718 if test -n "$ALL_LINGUAS"; then
26719 for presentlang in $ALL_LINGUAS; do
26720 useit=no
26721 if test "%UNSET%" != "$LINGUAS"; then
26722 desiredlanguages="$LINGUAS"
26723 else
26724 desiredlanguages="$ALL_LINGUAS"
26725 fi
26726 for desiredlang in $desiredlanguages; do
26727 # Use the presentlang catalog if desiredlang is
26728 # a. equal to presentlang, or
26729 # b. a variant of presentlang (because in this case,
26730 # presentlang can be used as a fallback for messages
26731 # which are not translated in the desiredlang catalog).
26732 case "$desiredlang" in
26733 "$presentlang"*) useit=yes;;
26734 esac
26735 done
26736 if test $useit = yes; then
26737 INST_LINGUAS="$INST_LINGUAS $presentlang"
26738 fi
26739 done
26740 fi
26741 CATALOGS=
26742 if test -n "$INST_LINGUAS"; then
26743 for lang in $INST_LINGUAS; do
26744 CATALOGS="$CATALOGS $lang.gmo"
26745 done
26746 fi
26747 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26748 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
26749 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26750 if test -f "$f"; then
26751 case "$f" in
26752 *.orig | *.bak | *~) ;;
26753 *) cat "$f" >> "$ac_dir/Makefile" ;;
26754 esac
26755 fi
26756 done
26757 fi
26758 ;;
26759 esac
26760 done ;;
26761
26762 esac
26763done # for ac_tag
26764
26765
26766{ (exit 0); exit 0; }
26767_ACEOF
26768chmod +x $CONFIG_STATUS
26769ac_clean_files=$ac_clean_files_save
26770
26771
26772# configure is writing to config.log, and then calls config.status.
26773# config.status does its own redirection, appending to config.log.
26774# Unfortunately, on DOS this fails, as config.log is still kept open
26775# by configure, so config.status won't be able to write to it; its
26776# output is simply discarded. So we exec the FD to /dev/null,
26777# effectively closing config.log, so it can be properly (re)opened and
26778# appended to by config.status. When coming back to configure, we
26779# need to make the FD available again.
26780if test "$no_create" != yes; then
26781 ac_cs_success=:
26782 ac_config_status_args=
26783 test "$silent" = yes &&
26784 ac_config_status_args="$ac_config_status_args --quiet"
26785 exec 5>/dev/null
26786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26787 exec 5>>config.log
26788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26789 # would make configure fail if this is the last instruction.
26790 $ac_cs_success || { (exit 1); exit 1; }
26791fi
26792
26793