Debian Codegraph @

lib/libltdl/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libltdl 2.2.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<_LT_EOF
584 $*
585 _LT_EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 ECHO="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 ECHO='print -r'
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 ECHO='printf %s\n'
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673 then
674 break
675 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 ECHO=echo
686 fi
687 fi
688 fi
689 fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 exec 7<&0 </dev/null 6>&1
704
705 # Name of the host.
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707 # so uname gets run too.
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710 #
711 # Initializations.
712 #
713 ac_default_prefix=/usr/local
714 ac_clean_files=
715 ac_config_libobj_dir=.
716 LIBOBJS=
717 cross_compiling=no
718 subdirs=
719 MFLAGS=
720 MAKEFLAGS=
721 SHELL=${CONFIG_SHELL-/bin/sh}
722
723 # Identity of this package.
724 PACKAGE_NAME='libltdl'
725 PACKAGE_TARNAME='libltdl'
726 PACKAGE_VERSION='2.2.6'
727 PACKAGE_STRING='libltdl 2.2.6'
728 PACKAGE_BUGREPORT='[email protected]'
729
730 ac_unique_file="ltdl.c"
731 # Factoring default headers for most tests.
732 ac_includes_default="\
733 #include <stdio.h>
734 #ifdef HAVE_SYS_TYPES_H
735 # include <sys/types.h>
736 #endif
737 #ifdef HAVE_SYS_STAT_H
738 # include <sys/stat.h>
739 #endif
740 #ifdef STDC_HEADERS
741 # include <stdlib.h>
742 # include <stddef.h>
743 #else
744 # ifdef HAVE_STDLIB_H
745 # include <stdlib.h>
746 # endif
747 #endif
748 #ifdef HAVE_STRING_H
749 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
750 # include <memory.h>
751 # endif
752 # include <string.h>
753 #endif
754 #ifdef HAVE_STRINGS_H
755 # include <strings.h>
756 #endif
757 #ifdef HAVE_INTTYPES_H
758 # include <inttypes.h>
759 #endif
760 #ifdef HAVE_STDINT_H
761 # include <stdint.h>
762 #endif
763 #ifdef HAVE_UNISTD_H
764 # include <unistd.h>
765 #endif"
766
767 ac_subst_vars='SHELL
768 PATH_SEPARATOR
769 PACKAGE_NAME
770 PACKAGE_TARNAME
771 PACKAGE_VERSION
772 PACKAGE_STRING
773 PACKAGE_BUGREPORT
774 exec_prefix
775 prefix
776 program_transform_name
777 bindir
778 sbindir
779 libexecdir
780 datarootdir
781 datadir
782 sysconfdir
783 sharedstatedir
784 localstatedir
785 includedir
786 oldincludedir
787 docdir
788 infodir
789 htmldir
790 dvidir
791 pdfdir
792 psdir
793 libdir
794 localedir
795 mandir
796 DEFS
797 ECHO_C
798 ECHO_N
799 ECHO_T
800 LIBS
801 build_alias
802 host_alias
803 target_alias
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 am__isrc
808 CYGPATH_W
809 PACKAGE
810 VERSION
811 ACLOCAL
812 AUTOCONF
813 AUTOMAKE
814 AUTOHEADER
815 MAKEINFO
816 install_sh
817 STRIP
818 INSTALL_STRIP_PROGRAM
819 mkdir_p
820 AWK
821 SET_MAKE
822 am__leading_dot
823 AMTAR
824 am__tar
825 am__untar
826 AS
827 DLLTOOL
828 OBJDUMP
829 LIBTOOL
830 build
831 build_cpu
832 build_vendor
833 build_os
834 host
835 host_cpu
836 host_vendor
837 host_os
838 CC
839 CFLAGS
840 LDFLAGS
841 CPPFLAGS
842 ac_ct_CC
843 EXEEXT
844 OBJEXT
845 DEPDIR
846 am__include
847 am__quote
848 AMDEP_TRUE
849 AMDEP_FALSE
850 AMDEPBACKSLASH
851 CCDEPMODE
852 am__fastdepCC_TRUE
853 am__fastdepCC_FALSE
854 SED
855 GREP
856 EGREP
857 FGREP
858 LD
859 DUMPBIN
860 ac_ct_DUMPBIN
861 NM
862 LN_S
863 AR
864 RANLIB
865 lt_ECHO
866 DSYMUTIL
867 NMEDIT
868 LIPO
869 OTOOL
870 OTOOL64
871 CPP
872 LT_DLLOADERS
873 LIBADD_DLOPEN
874 LIBADD_SHL_LOAD
875 LIBADD_DLD_LINK
876 LT_DLPREOPEN
877 LIBADD_DL
878 sys_symbol_underscore
879 LIBOBJS
880 ARGZ_H
881 INSTALL_LTDL_TRUE
882 INSTALL_LTDL_FALSE
883 CONVENIENCE_LTDL_TRUE
884 CONVENIENCE_LTDL_FALSE
885 LT_CONFIG_H
886 LTDLOPEN
887 LTLIBOBJS'
888 ac_subst_files=''
889 ac_precious_vars='build_alias
890 host_alias
891 target_alias
892 CC
893 CFLAGS
894 LDFLAGS
895 LIBS
896 CPPFLAGS
897 CPP'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
952 eval $ac_prev=\$ac_option
953 ac_prev=
954 continue
955 fi
956
957 case $ac_option in
958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 *) ac_optarg=yes ;;
960 esac
961
962 # Accept the important Cygnus configure options, so we can diagnose typos.
963
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
992
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
1000 -disable-* | --disable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007 eval enable_$ac_feature=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1018
1019 -enable-* | --enable-*)
1020 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024 { (exit 1); exit 1; }; }
1025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026 eval enable_$ac_feature=\$ac_optarg ;;
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1215
1216 -with-* | --with-*)
1217 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223 eval with_$ac_package=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 { echo "$as_me: error: invalid package name: $ac_package" >&2
1230 { (exit 1); exit 1; }; }
1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232 eval with_$ac_package=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) { echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1281 fi
1282
1283 # Be sure to have absolute directory names.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1288 do
1289 eval ac_val=\$$ac_var
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295 { (exit 1); exit 1; }; }
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 { echo "$as_me: error: Working directory cannot be determined" >&2
1326 { (exit 1); exit 1; }; }
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 { echo "$as_me: error: pwd does not report name of working directory" >&2
1329 { (exit 1); exit 1; }; }
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$0" ||
1337 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$0" : 'X\(//\)[^/]' \| \
1339 X"$0" : 'X\(//\)$' \| \
1340 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 echo X"$0" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369 { (exit 1); exit 1; }; }
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1374 { (exit 1); exit 1; }; }
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures libltdl 2.2.6 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of libltdl 2.2.6:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-dependency-tracking speeds up one-time build
1482 --enable-dependency-tracking do not reject slow dependency extractors
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --enable-ltdl-install install libltdl
1485
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <[email protected]>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" || continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 libltdl configure 2.2.6
1568 generated by GNU Autoconf 2.61
1569
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1580
1581 It was created by libltdl $as_me 2.2.6, which was
1582 generated by GNU Autoconf 2.61. Invocation command line was
1583
1584 $ $0 $@
1585
1586 _ACEOF
1587 exec 5>>config.log
1588 {
1589 cat <<_ASUNAME
1590 ## --------- ##
1591 ## Platform. ##
1592 ## --------- ##
1593
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602
1603 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1604 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1607 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1608 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1609 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610
1611 _ASUNAME
1612
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 echo "PATH: $as_dir"
1619 done
1620 IFS=$as_save_IFS
1621
1622 } >&5
1623
1624 cat >&5 <<_ACEOF
1625
1626
1627 ## ----------- ##
1628 ## Core tests. ##
1629 ## ----------- ##
1630
1631 _ACEOF
1632
1633
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_configure_args=
1640 ac_configure_args0=
1641 ac_configure_args1=
1642 ac_must_keep_next=false
1643 for ac_pass in 1 2
1644 do
1645 for ac_arg
1646 do
1647 case $ac_arg in
1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650 | -silent | --silent | --silen | --sile | --sil)
1651 continue ;;
1652 *\'*)
1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 esac
1655 case $ac_pass in
1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 2)
1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659 if test $ac_must_keep_next = true; then
1660 ac_must_keep_next=false # Got value, back to normal.
1661 else
1662 case $ac_arg in
1663 *=* | --config-cache | -C | -disable-* | --disable-* \
1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666 | -with-* | --with-* | -without-* | --without-* | --x)
1667 case "$ac_configure_args0 " in
1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 esac
1670 ;;
1671 -* ) ac_must_keep_next=true ;;
1672 esac
1673 fi
1674 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 ;;
1676 esac
1677 done
1678 done
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log. We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688 # Save into config.log some information that might help in debugging.
1689 {
1690 echo
1691
1692 cat <<\_ASBOX
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1696 _ASBOX
1697 echo
1698 # The following way of writing the cache mishandles newlines in values,
1699 (
1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701 eval ac_val=\$$ac_var
1702 case $ac_val in #(
1703 *${as_nl}*)
1704 case $ac_var in #(
1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 esac
1708 case $ac_var in #(
1709 _ | IFS | as_nl) ;; #(
1710 *) $as_unset $ac_var ;;
1711 esac ;;
1712 esac
1713 done
1714 (set) 2>&1 |
1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1716 *${as_nl}ac_space=\ *)
1717 sed -n \
1718 "s/'\''/'\''\\\\'\'''\''/g;
1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 ;; #(
1721 *)
1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ;;
1724 esac |
1725 sort
1726 )
1727 echo
1728
1729 cat <<\_ASBOX
1730 ## ----------------- ##
1731 ## Output variables. ##
1732 ## ----------------- ##
1733 _ASBOX
1734 echo
1735 for ac_var in $ac_subst_vars
1736 do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in
1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 esac
1741 echo "$ac_var='\''$ac_val'\''"
1742 done | sort
1743 echo
1744
1745 if test -n "$ac_subst_files"; then
1746 cat <<\_ASBOX
1747 ## ------------------- ##
1748 ## File substitutions. ##
1749 ## ------------------- ##
1750 _ASBOX
1751 echo
1752 for ac_var in $ac_subst_files
1753 do
1754 eval ac_val=\$$ac_var
1755 case $ac_val in
1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 esac
1758 echo "$ac_var='\''$ac_val'\''"
1759 done | sort
1760 echo
1761 fi
1762
1763 if test -s confdefs.h; then
1764 cat <<\_ASBOX
1765 ## ----------- ##
1766 ## confdefs.h. ##
1767 ## ----------- ##
1768 _ASBOX
1769 echo
1770 cat confdefs.h
1771 echo
1772 fi
1773 test "$ac_signal" != 0 &&
1774 echo "$as_me: caught signal $ac_signal"
1775 echo "$as_me: exit $exit_status"
1776 } >&5
1777 rm -f core *.core core.conftest.* &&
1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 exit $exit_status
1780 ' 0
1781 for ac_signal in 1 2 13 15; do
1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 done
1784 ac_signal=0
1785
1786 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1787 rm -f -r conftest* confdefs.h
1788
1789 # Predefined preprocessor variables.
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 _ACEOF
1814
1815
1816 # Let the site file select an alternate cache file if it wants to.
1817 # Prefer explicitly selected file to automatically selected ones.
1818 if test -n "$CONFIG_SITE"; then
1819 set x "$CONFIG_SITE"
1820 elif test "x$prefix" != xNONE; then
1821 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 else
1823 set x "$ac_default_prefix/share/config.site" \
1824 "$ac_default_prefix/etc/config.site"
1825 fi
1826 shift
1827 for ac_site_file
1828 do
1829 if test -r "$ac_site_file"; then
1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1831 echo "$as_me: loading site script $ac_site_file" >&6;}
1832 sed 's/^/| /' "$ac_site_file" >&5
1833 . "$ac_site_file"
1834 fi
1835 done
1836
1837 if test -r "$cache_file"; then
1838 # Some versions of bash will fail to source /dev/null (special
1839 # files actually), so we avoid doing that.
1840 if test -f "$cache_file"; then
1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1842 echo "$as_me: loading cache $cache_file" >&6;}
1843 case $cache_file in
1844 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1845 *) . "./$cache_file";;
1846 esac
1847 fi
1848 else
1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1850 echo "$as_me: creating cache $cache_file" >&6;}
1851 >$cache_file
1852 fi
1853
1854 # Check that the precious variables saved in the cache have kept the same
1855 # value.
1856 ac_cache_corrupted=false
1857 for ac_var in $ac_precious_vars; do
1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1859 eval ac_new_set=\$ac_env_${ac_var}_set
1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1861 eval ac_new_val=\$ac_env_${ac_var}_value
1862 case $ac_old_set,$ac_new_set in
1863 set,)
1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1865 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1866 ac_cache_corrupted=: ;;
1867 ,set)
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1871 ,);;
1872 *)
1873 if test "x$ac_old_val" != "x$ac_new_val"; then
1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1875 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1877 echo "$as_me: former value: $ac_old_val" >&2;}
1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1879 echo "$as_me: current value: $ac_new_val" >&2;}
1880 ac_cache_corrupted=:
1881 fi;;
1882 esac
1883 # Pass precious variables to config.status.
1884 if test "$ac_new_set" = set; then
1885 case $ac_new_val in
1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1887 *) ac_arg=$ac_var=$ac_new_val ;;
1888 esac
1889 case " $ac_configure_args " in
1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 esac
1893 fi
1894 done
1895 if $ac_cache_corrupted; then
1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900 { (exit 1); exit 1; }; }
1901 fi
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932
1933
1934 ac_config_headers="$ac_config_headers config.h:config-h.in"
1935
1936
1937 ac_aux_dir=
1938 for ac_dir in config "$srcdir"/config; do
1939 if test -f "$ac_dir/install-sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
1943 elif test -f "$ac_dir/install.sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 break
1947 elif test -f "$ac_dir/shtool"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1951 fi
1952 done
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1956 { (exit 1); exit 1; }; }
1957 fi
1958
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966
1967
1968
1969
1970
1971
1972
1973
1974 # I am me!
1975
1976
1977 ## ------------------------ ##
1978 ## Automake Initialisation. ##
1979 ## ------------------------ ##
1980
1981 am__api_version='1.10'
1982
1983 # Find a good install program. We prefer a C program (faster),
1984 # so one script is as good as another. But avoid the broken or
1985 # incompatible versions:
1986 # SysV /etc/install, /usr/sbin/install
1987 # SunOS /usr/etc/install
1988 # IRIX /sbin/install
1989 # AIX /bin/install
1990 # AmigaOS /C/install, which installs bootblocks on floppy discs
1991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1994 # OS/2's system install, which has a completely different semantic
1995 # ./install, which can be erroneously created by make from ./install.sh.
1996 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1997 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1998 if test -z "$INSTALL"; then
1999 if test "${ac_cv_path_install+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 # Account for people who put trailing slashes in PATH elements.
2008 case $as_dir/ in
2009 ./ | .// | /cC/* | \
2010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2012 /usr/ucb/* ) ;;
2013 *)
2014 # OSF1 and SCO ODT 3.0 have their own names for install.
2015 # Don't use installbsd from OSF since it installs stuff as root
2016 # by default.
2017 for ac_prog in ginstall scoinst install; do
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2020 if test $ac_prog = install &&
2021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # AIX install. It has an incompatible calling convention.
2023 :
2024 elif test $ac_prog = install &&
2025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # program-specific install script used by HP pwplus--don't use.
2027 :
2028 else
2029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2030 break 3
2031 fi
2032 fi
2033 done
2034 done
2035 ;;
2036 esac
2037 done
2038 IFS=$as_save_IFS
2039
2040
2041 fi
2042 if test "${ac_cv_path_install+set}" = set; then
2043 INSTALL=$ac_cv_path_install
2044 else
2045 # As a last resort, use the slow shell script. Don't cache a
2046 # value for INSTALL within a source directory, because that will
2047 # break other packages using the cache if that directory is
2048 # removed, or if the value is a relative name.
2049 INSTALL=$ac_install_sh
2050 fi
2051 fi
2052 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2053 echo "${ECHO_T}$INSTALL" >&6; }
2054
2055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2056 # It thinks the first close brace ends the variable substitution.
2057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2058
2059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2060
2061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2062
2063 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2064 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2065 # Just in case
2066 sleep 1
2067 echo timestamp > conftest.file
2068 # Do `set' in a subshell so we don't clobber the current shell's
2069 # arguments. Must try -L first in case configure is actually a
2070 # symlink; some systems play weird games with the mod time of symlinks
2071 # (eg FreeBSD returns the mod time of the symlink's containing
2072 # directory).
2073 if (
2074 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2075 if test "$*" = "X"; then
2076 # -L didn't work.
2077 set X `ls -t $srcdir/configure conftest.file`
2078 fi
2079 rm -f conftest.file
2080 if test "$*" != "X $srcdir/configure conftest.file" \
2081 && test "$*" != "X conftest.file $srcdir/configure"; then
2082
2083 # If neither matched, then we have a broken ls. This can happen
2084 # if, for instance, CONFIG_SHELL is bash and it inherits a
2085 # broken ls alias from the environment. This has actually
2086 # happened. Such a system could not be considered "sane".
2087 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2088 alias in your environment" >&5
2089 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2090 alias in your environment" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093
2094 test "$2" = conftest.file
2095 )
2096 then
2097 # Ok.
2098 :
2099 else
2100 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2101 Check your system clock" >&5
2102 echo "$as_me: error: newly created file is older than distributed files!
2103 Check your system clock" >&2;}
2104 { (exit 1); exit 1; }; }
2105 fi
2106 { echo "$as_me:$LINENO: result: yes" >&5
2107 echo "${ECHO_T}yes" >&6; }
2108 test "$program_prefix" != NONE &&
2109 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2110 # Use a double $ so make ignores it.
2111 test "$program_suffix" != NONE &&
2112 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2113 # Double any \ or $. echo might interpret backslashes.
2114 # By default was `s,x,x', remove it if useless.
2115 cat <<\_ACEOF >conftest.sed
2116 s/[\\$]/&&/g;s/;s,x,x,$//
2117 _ACEOF
2118 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2119 rm -f conftest.sed
2120
2121 # expand $ac_aux_dir to an absolute path
2122 am_aux_dir=`cd $ac_aux_dir && pwd`
2123
2124 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2125 # Use eval to expand $SHELL
2126 if eval "$MISSING --run true"; then
2127 am_missing_run="$MISSING --run "
2128 else
2129 am_missing_run=
2130 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2131 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132 fi
2133
2134 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2135 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2136 if test -z "$MKDIR_P"; then
2137 if test "${ac_cv_path_mkdir+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2142 do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_prog in mkdir gmkdir; do
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2149 'mkdir (GNU coreutils) '* | \
2150 'mkdir (coreutils) '* | \
2151 'mkdir (fileutils) '4.1*)
2152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2153 break 3;;
2154 esac
2155 done
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161
2162 if test "${ac_cv_path_mkdir+set}" = set; then
2163 MKDIR_P="$ac_cv_path_mkdir -p"
2164 else
2165 # As a last resort, use the slow shell script. Don't cache a
2166 # value for MKDIR_P within a source directory, because that will
2167 # break other packages using the cache if that directory is
2168 # removed, or if the value is a relative name.
2169 test -d ./--version && rmdir ./--version
2170 MKDIR_P="$ac_install_sh -d"
2171 fi
2172 fi
2173 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2174 echo "${ECHO_T}$MKDIR_P" >&6; }
2175
2176 mkdir_p="$MKDIR_P"
2177 case $mkdir_p in
2178 [\\/$]* | ?:[\\/]*) ;;
2179 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2180 esac
2181
2182 for ac_prog in gawk mawk nawk awk
2183 do
2184 # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_AWK+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$AWK"; then
2192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_AWK="$ac_prog"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205 done
2206 done
2207 IFS=$as_save_IFS
2208
2209 fi
2210 fi
2211 AWK=$ac_cv_prog_AWK
2212 if test -n "$AWK"; then
2213 { echo "$as_me:$LINENO: result: $AWK" >&5
2214 echo "${ECHO_T}$AWK" >&6; }
2215 else
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 fi
2219
2220
2221 test -n "$AWK" && break
2222 done
2223
2224 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2225 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2226 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2227 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.make <<\_ACEOF
2231 SHELL = /bin/sh
2232 all:
2233 @echo '@@@%%%=$(MAKE)=@@@%%%'
2234 _ACEOF
2235 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2236 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237 *@@@%%%=?*=@@@%%%*)
2238 eval ac_cv_prog_make_${ac_make}_set=yes;;
2239 *)
2240 eval ac_cv_prog_make_${ac_make}_set=no;;
2241 esac
2242 rm -f conftest.make
2243 fi
2244 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 SET_MAKE=
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2251 SET_MAKE="MAKE=${MAKE-make}"
2252 fi
2253
2254 rm -rf .tst 2>/dev/null
2255 mkdir .tst 2>/dev/null
2256 if test -d .tst; then
2257 am__leading_dot=.
2258 else
2259 am__leading_dot=_
2260 fi
2261 rmdir .tst 2>/dev/null
2262
2263 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2264 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2265 # is not polluted with repeated "-I."
2266 am__isrc=' -I$(srcdir)'
2267 # test to see if srcdir already configured
2268 if test -f $srcdir/config.status; then
2269 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2270 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271 { (exit 1); exit 1; }; }
2272 fi
2273 fi
2274
2275 # test whether we have cygpath
2276 if test -z "$CYGPATH_W"; then
2277 if (cygpath --version) >/dev/null 2>/dev/null; then
2278 CYGPATH_W='cygpath -w'
2279 else
2280 CYGPATH_W=echo
2281 fi
2282 fi
2283
2284
2285 # Define the identity of the package.
2286 PACKAGE='libltdl'
2287 VERSION='2.2.6'
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE "$PACKAGE"
2292 _ACEOF
2293
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define VERSION "$VERSION"
2297 _ACEOF
2298
2299 # Some tools Automake needs.
2300
2301 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2302
2303
2304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2305
2306
2307 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2308
2309
2310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2311
2312
2313 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2314
2315 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2316
2317 # Installed binaries are usually stripped using `strip' when the user
2318 # run `make install-strip'. However `strip' might not be the right
2319 # tool to use in cross-compilation environments, therefore Automake
2320 # will honor the `STRIP' environment variable to overrule this program.
2321 if test "$cross_compiling" != no; then
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_STRIP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$STRIP"; then
2331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 STRIP=$ac_cv_prog_STRIP
2351 if test -n "$STRIP"; then
2352 { echo "$as_me:$LINENO: result: $STRIP" >&5
2353 echo "${ECHO_T}$STRIP" >&6; }
2354 else
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360 fi
2361 if test -z "$ac_cv_prog_STRIP"; then
2362 ac_ct_STRIP=$STRIP
2363 # Extract the first word of "strip", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$ac_ct_STRIP"; then
2371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_STRIP="strip"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2391 if test -n "$ac_ct_STRIP"; then
2392 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2393 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399 if test "x$ac_ct_STRIP" = x; then
2400 STRIP=":"
2401 else
2402 case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to [email protected]." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to [email protected]." >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412 STRIP=$ac_ct_STRIP
2413 fi
2414 else
2415 STRIP="$ac_cv_prog_STRIP"
2416 fi
2417
2418 fi
2419 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2420
2421 # We need awk for the "check" target. The system "awk" is bad on
2422 # some platforms.
2423 # Always define AMTAR for backward compatibility.
2424
2425 AMTAR=${AMTAR-"${am_missing_run}tar"}
2426
2427 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2428
2429
2430
2431
2432
2433
2434
2435 ## ------------------------------- ##
2436 ## Libtool specific configuration. ##
2437 ## ------------------------------- ##
2438 pkgdatadir='${datadir}'"/${PACKAGE}"
2439
2440
2441 ## ----------------------- ##
2442 ## Libtool initialisation. ##
2443 ## ----------------------- ##
2444 case `pwd` in
2445 *\ * | *\ *)
2446 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2447 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2448 esac
2449
2450
2451
2452 macro_version='2.2.6'
2453 macro_revision='1.3012'
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467 ltmain="$ac_aux_dir/ltmain.sh"
2468
2469 # Make sure we can run config.sub.
2470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2471 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2472 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2473 { (exit 1); exit 1; }; }
2474
2475 { echo "$as_me:$LINENO: checking build system type" >&5
2476 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2477 if test "${ac_cv_build+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 ac_build_alias=$build_alias
2481 test "x$ac_build_alias" = x &&
2482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2483 test "x$ac_build_alias" = x &&
2484 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2486 { (exit 1); exit 1; }; }
2487 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2488 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2489 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2490 { (exit 1); exit 1; }; }
2491
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2494 echo "${ECHO_T}$ac_cv_build" >&6; }
2495 case $ac_cv_build in
2496 *-*-*) ;;
2497 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2498 echo "$as_me: error: invalid value of canonical build" >&2;}
2499 { (exit 1); exit 1; }; };;
2500 esac
2501 build=$ac_cv_build
2502 ac_save_IFS=$IFS; IFS='-'
2503 set x $ac_cv_build
2504 shift
2505 build_cpu=$1
2506 build_vendor=$2
2507 shift; shift
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2510 build_os=$*
2511 IFS=$ac_save_IFS
2512 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2513
2514
2515 { echo "$as_me:$LINENO: checking host system type" >&5
2516 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2517 if test "${ac_cv_host+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520 if test "x$host_alias" = x; then
2521 ac_cv_host=$ac_cv_build
2522 else
2523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2524 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2525 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2526 { (exit 1); exit 1; }; }
2527 fi
2528
2529 fi
2530 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2531 echo "${ECHO_T}$ac_cv_host" >&6; }
2532 case $ac_cv_host in
2533 *-*-*) ;;
2534 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2535 echo "$as_me: error: invalid value of canonical host" >&2;}
2536 { (exit 1); exit 1; }; };;
2537 esac
2538 host=$ac_cv_host
2539 ac_save_IFS=$IFS; IFS='-'
2540 set x $ac_cv_host
2541 shift
2542 host_cpu=$1
2543 host_vendor=$2
2544 shift; shift
2545 # Remember, the first character of IFS is used to create $*,
2546 # except with old shells:
2547 host_os=$*
2548 IFS=$ac_save_IFS
2549 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2550
2551
2552 DEPDIR="${am__leading_dot}deps"
2553
2554 ac_config_commands="$ac_config_commands depfiles"
2555
2556
2557 am_make=${MAKE-make}
2558 cat > confinc << 'END'
2559 am__doit:
2560 @echo done
2561 .PHONY: am__doit
2562 END
2563 # If we don't find an include directive, just comment out the code.
2564 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2565 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2566 am__include="#"
2567 am__quote=
2568 _am_result=none
2569 # First try GNU make style include.
2570 echo "include confinc" > confmf
2571 # We grep out `Entering directory' and `Leaving directory'
2572 # messages which can occur if `w' ends up in MAKEFLAGS.
2573 # In particular we don't look at `^make:' because GNU make might
2574 # be invoked under some other name (usually "gmake"), in which
2575 # case it prints its new name instead of `make'.
2576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2577 am__include=include
2578 am__quote=
2579 _am_result=GNU
2580 fi
2581 # Now try BSD make style include.
2582 if test "$am__include" = "#"; then
2583 echo '.include "confinc"' > confmf
2584 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2585 am__include=.include
2586 am__quote="\""
2587 _am_result=BSD
2588 fi
2589 fi
2590
2591
2592 { echo "$as_me:$LINENO: result: $_am_result" >&5
2593 echo "${ECHO_T}$_am_result" >&6; }
2594 rm -f confinc confmf
2595
2596 # Check whether --enable-dependency-tracking was given.
2597 if test "${enable_dependency_tracking+set}" = set; then
2598 enableval=$enable_dependency_tracking;
2599 fi
2600
2601 if test "x$enable_dependency_tracking" != xno; then
2602 am_depcomp="$ac_aux_dir/depcomp"
2603 AMDEPBACKSLASH='\'
2604 fi
2605 if test "x$enable_dependency_tracking" != xno; then
2606 AMDEP_TRUE=
2607 AMDEP_FALSE='#'
2608 else
2609 AMDEP_TRUE='#'
2610 AMDEP_FALSE=
2611 fi
2612
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649 { echo "$as_me:$LINENO: result: $CC" >&5
2650 echo "${ECHO_T}$CC" >&6; }
2651 else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2655
2656
2657 fi
2658 if test -z "$ac_cv_prog_CC"; then
2659 ac_ct_CC=$CC
2660 # Extract the first word of "gcc", so it can be a program name with args.
2661 set dummy gcc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_ac_ct_CC="gcc"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2691 else
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet. If you think this
2703 configuration is useful to you, please write to [email protected]." >&5
2704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705 whose name does not start with the host triplet. If you think this
2706 configuration is useful to you, please write to [email protected]." >&2;}
2707 ac_tool_warned=yes ;;
2708 esac
2709 CC=$ac_ct_CC
2710 fi
2711 else
2712 CC="$ac_cv_prog_CC"
2713 fi
2714
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}cc; ac_word=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_CC="${ac_tool_prefix}cc"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746 { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2748 else
2749 { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754 fi
2755 fi
2756 if test -z "$CC"; then
2757 # Extract the first word of "cc", so it can be a program name with args.
2758 set dummy cc; ac_word=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 ac_prog_rejected=no
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2776 ac_prog_rejected=yes
2777 continue
2778 fi
2779 ac_cv_prog_CC="cc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 if test $ac_prog_rejected = yes; then
2788 # We found a bogon in the path, so make sure we never use it.
2789 set dummy $ac_cv_prog_CC
2790 shift
2791 if test $# != 0; then
2792 # We chose a different compiler from the bogus one.
2793 # However, it has the same basename, so the bogon will be chosen
2794 # first if we set CC to just the basename; use the full file name.
2795 shift
2796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797 fi
2798 fi
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 { echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6; }
2805 else
2806 { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$CC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 for ac_prog in cl.exe
2815 do
2816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { echo "$as_me:$LINENO: result: $CC" >&5
2846 echo "${ECHO_T}$CC" >&6; }
2847 else
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2851
2852
2853 test -n "$CC" && break
2854 done
2855 fi
2856 if test -z "$CC"; then
2857 ac_ct_CC=$CC
2858 for ac_prog in cl.exe
2859 do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$ac_ct_CC"; then
2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_ac_ct_CC="$ac_prog"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888 if test -n "$ac_ct_CC"; then
2889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890 echo "${ECHO_T}$ac_ct_CC" >&6; }
2891 else
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897 test -n "$ac_ct_CC" && break
2898 done
2899
2900 if test "x$ac_ct_CC" = x; then
2901 CC=""
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet. If you think this
2907 configuration is useful to you, please write to [email protected]." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to [email protected]." >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913 CC=$ac_ct_CC
2914 fi
2915 fi
2916
2917 fi
2918
2919
2920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: no acceptable C compiler found in \$PATH
2923 See \`config.log' for more details." >&2;}
2924 { (exit 1); exit 1; }; }
2925
2926 # Provide some information about the compiler.
2927 echo "$as_me:$LINENO: checking for C compiler version" >&5
2928 ac_compiler=`set X $ac_compile; echo $2`
2929 { (ac_try="$ac_compiler --version >&5"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compiler --version >&5") 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939 { (ac_try="$ac_compiler -v >&5"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compiler -v >&5") 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }
2949 { (ac_try="$ac_compiler -V >&5"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compiler -V >&5") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966
2967 int
2968 main ()
2969 {
2970
2971 ;
2972 return 0;
2973 }
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2981 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2982 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 #
2984 # List of possible output files, starting from the most likely.
2985 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2986 # only as a last resort. b.out is created by i960 compilers.
2987 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2988 #
2989 # The IRIX 6 linker writes into existing files which may not be
2990 # executable, retaining their permissions. Remove them first so a
2991 # subsequent execution test works.
2992 ac_rmfiles=
2993 for ac_file in $ac_files
2994 do
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2997 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2998 esac
2999 done
3000 rm -f $ac_rmfiles
3001
3002 if { (ac_try="$ac_link_default"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_link_default") 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; then
3012 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3015 # so that the user can short-circuit this test for compilers unknown to
3016 # Autoconf.
3017 for ac_file in $ac_files ''
3018 do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3022 ;;
3023 [ab].out )
3024 # We found the default executable, but exeext='' is most
3025 # certainly right.
3026 break;;
3027 *.* )
3028 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029 then :; else
3030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 fi
3032 # We set ac_cv_exeext here because the later test for it is not
3033 # safe: cross compilers may not add the suffix if given an `-o'
3034 # argument, so we may need to know it at that point already.
3035 # Even if this section looks crufty: it has the advantage of
3036 # actually working.
3037 break;;
3038 * )
3039 break;;
3040 esac
3041 done
3042 test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044 else
3045 ac_file=''
3046 fi
3047
3048 { echo "$as_me:$LINENO: result: $ac_file" >&5
3049 echo "${ECHO_T}$ac_file" >&6; }
3050 if test -z "$ac_file"; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: C compiler cannot create executables
3057 See \`config.log' for more details." >&2;}
3058 { (exit 77); exit 77; }; }
3059 fi
3060
3061 ac_exeext=$ac_cv_exeext
3062
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3066 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3067 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3068 # If not cross compiling, check that we can run a simple program.
3069 if test "$cross_compiling" != yes; then
3070 if { ac_try='./$ac_file'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 cross_compiling=no
3081 else
3082 if test "$cross_compiling" = maybe; then
3083 cross_compiling=yes
3084 else
3085 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3092 fi
3093 fi
3094 fi
3095 { echo "$as_me:$LINENO: result: yes" >&5
3096 echo "${ECHO_T}yes" >&6; }
3097
3098 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3099 ac_clean_files=$ac_clean_files_save
3100 # Check that the compiler produces executables we can run. If not, either
3101 # the compiler is broken, or we cross compile.
3102 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3103 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3104 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3105 echo "${ECHO_T}$cross_compiling" >&6; }
3106
3107 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3108 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3109 if { (ac_try="$ac_link"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_link") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3121 # work properly (i.e., refer to `conftest.exe'), while it won't with
3122 # `rm'.
3123 for ac_file in conftest.exe conftest conftest.*; do
3124 test -f "$ac_file" || continue
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 break;;
3129 * ) break;;
3130 esac
3131 done
3132 else
3133 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3136 See \`config.log' for more details." >&2;}
3137 { (exit 1); exit 1; }; }
3138 fi
3139
3140 rm -f conftest$ac_cv_exeext
3141 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3142 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3143
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3146 ac_exeext=$EXEEXT
3147 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3149 if test "${ac_cv_objext+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3158
3159 int
3160 main ()
3161 {
3162
3163 ;
3164 return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.o conftest.obj
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; then
3178 for ac_file in conftest.o conftest.obj conftest.*; do
3179 test -f "$ac_file" || continue;
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183 break;;
3184 esac
3185 done
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3195 fi
3196
3197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3200 echo "${ECHO_T}$ac_cv_objext" >&6; }
3201 OBJEXT=$ac_cv_objext
3202 ac_objext=$OBJEXT
3203 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218 #ifndef __GNUC__
3219 choke me
3220 #endif
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "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 ac_compiler_gnu=yes
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_compiler_gnu=no
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3253
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3257 GCC=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CFLAGS=${CFLAGS+set}
3259 ac_save_CFLAGS=$CFLAGS
3260 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cc_g+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 ac_save_c_werror_flag=$ac_c_werror_flag
3266 ac_c_werror_flag=yes
3267 ac_cv_prog_cc_g=no
3268 CFLAGS="-g"
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_c_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3301 ac_cv_prog_cc_g=yes
3302 else
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 CFLAGS=""
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3339 :
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345 CFLAGS="-g"
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352
3353 int
3354 main ()
3355 {
3356
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_prog_cc_g=yes
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3394 fi
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405 else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411 fi
3412 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3413 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 ac_cv_prog_cc_c89=no
3418 ac_save_CC=$CC
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <stdarg.h>
3426 #include <stdio.h>
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3433 char **p;
3434 int i;
3435 {
3436 return p[i];
3437 }
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3439 {
3440 char *s;
3441 va_list v;
3442 va_start (v,p);
3443 s = g (p, va_arg (v,int));
3444 va_end (v);
3445 return s;
3446 }
3447
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3449 function prototypes and stuff, but not '\xHH' hex character constants.
3450 These don't provoke an error unfortunately, instead are silently treated
3451 as 'x'. The following induces an error, until -std is added to get
3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3453 array size at least. It's necessary to write '\x00'==0 to get something
3454 that's true only with -std. */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456
3457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458 inside strings and character constants. */
3459 #define FOO(x) 'x'
3460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 int argc;
3467 char **argv;
3468 int
3469 main ()
3470 {
3471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 do
3479 CC="$ac_save_CC $ac_arg"
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cc_c89=$ac_arg
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext
3506 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3510
3511 fi
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3514 x)
3515 { echo "$as_me:$LINENO: result: none needed" >&5
3516 echo "${ECHO_T}none needed" >&6; } ;;
3517 xno)
3518 { echo "$as_me:$LINENO: result: unsupported" >&5
3519 echo "${ECHO_T}unsupported" >&6; } ;;
3520 *)
3521 CC="$CC $ac_cv_prog_cc_c89"
3522 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3523 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533 depcc="$CC" am_compiler_list=
3534
3535 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3536 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3537 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3541 # We make a subdir and do the tests there. Otherwise we can end up
3542 # making bogus files that we don't know about and never remove. For
3543 # instance it was reported that on HP-UX the gcc test will end up
3544 # making a dummy file named `D' -- because `-MD' means `put the output
3545 # in D'.
3546 mkdir conftest.dir
3547 # Copy depcomp to subdir because otherwise we won't find it if we're
3548 # using a relative directory.
3549 cp "$am_depcomp" conftest.dir
3550 cd conftest.dir
3551 # We will build objects and dependencies in a subdirectory because
3552 # it helps to detect inapplicable dependency modes. For instance
3553 # both Tru64's cc and ICC support -MD to output dependencies as a
3554 # side effect of compilation, but ICC will put the dependencies in
3555 # the current directory while Tru64 will put them in the object
3556 # directory.
3557 mkdir sub
3558
3559 am_cv_CC_dependencies_compiler_type=none
3560 if test "$am_compiler_list" = ""; then
3561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3562 fi
3563 for depmode in $am_compiler_list; do
3564 # Setup a source with many dependencies, because some compilers
3565 # like to wrap large dependency lists on column 80 (with \), and
3566 # we should not choose a depcomp mode which is confused by this.
3567 #
3568 # We need to recreate these files for each test, as the compiler may
3569 # overwrite some of them when testing with obscure command lines.
3570 # This happens at least with the AIX C compiler.
3571 : > sub/conftest.c
3572 for i in 1 2 3 4 5 6; do
3573 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575 # Solaris 8's {/usr,}/bin/sh.
3576 touch sub/conftst$i.h
3577 done
3578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579
3580 case $depmode in
3581 nosideeffect)
3582 # after this tag, mechanisms are not by side-effect, so they'll
3583 # only be used when explicitly requested
3584 if test "x$enable_dependency_tracking" = xyes; then
3585 continue
3586 else
3587 break
3588 fi
3589 ;;
3590 none) break ;;
3591 esac
3592 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3593 # mode. It turns out that the SunPro C++ compiler does not properly
3594 # handle `-M -o', and we need to detect this.
3595 if depmode=$depmode \
3596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3599 >/dev/null 2>conftest.err &&
3600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3602 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3604 # icc doesn't choke on unknown options, it will just issue warnings
3605 # or remarks (even with -Werror). So we grep stderr for any message
3606 # that says an option was ignored or not supported.
3607 # When given -MP, icc 7.0 and 7.1 complain thusly:
3608 # icc: Command line warning: ignoring option '-M'; no argument required
3609 # The diagnosis changed in icc 8.0:
3610 # icc: Command line remark: option '-MP' not supported
3611 if (grep 'ignoring option' conftest.err ||
3612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3613 am_cv_CC_dependencies_compiler_type=$depmode
3614 break
3615 fi
3616 fi
3617 done
3618
3619 cd ..
3620 rm -rf conftest.dir
3621 else
3622 am_cv_CC_dependencies_compiler_type=none
3623 fi
3624
3625 fi
3626 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3627 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3629
3630 if
3631 test "x$enable_dependency_tracking" != xno \
3632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3633 am__fastdepCC_TRUE=
3634 am__fastdepCC_FALSE='#'
3635 else
3636 am__fastdepCC_TRUE='#'
3637 am__fastdepCC_FALSE=
3638 fi
3639
3640
3641 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3642 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3643 if test "${ac_cv_path_SED+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3647 for ac_i in 1 2 3 4 5 6 7; do
3648 ac_script="$ac_script$as_nl$ac_script"
3649 done
3650 echo "$ac_script" | sed 99q >conftest.sed
3651 $as_unset ac_script || ac_script=
3652 # Extract the first word of "sed gsed" to use in msg output
3653 if test -z "$SED"; then
3654 set dummy sed gsed; ac_prog_name=$2
3655 if test "${ac_cv_path_SED+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 ac_path_SED_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in sed gsed; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3669 # Check for GNU ac_path_SED and select it if it is found.
3670 # Check for GNU $ac_path_SED
3671 case `"$ac_path_SED" --version 2>&1` in
3672 *GNU*)
3673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3674 *)
3675 ac_count=0
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo '' >> "conftest.nl"
3683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_SED_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_SED="$ac_path_SED"
3689 ac_path_SED_max=$ac_count
3690 fi
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3696
3697
3698 $ac_path_SED_found && break 3
3699 done
3700 done
3701
3702 done
3703 IFS=$as_save_IFS
3704
3705
3706 fi
3707
3708 SED="$ac_cv_path_SED"
3709 if test -z "$SED"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3712 { (exit 1); exit 1; }; }
3713 fi
3714
3715 else
3716 ac_cv_path_SED=$SED
3717 fi
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3721 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3722 SED="$ac_cv_path_SED"
3723 rm -f conftest.sed
3724
3725 test -z "$SED" && SED=sed
3726 Xsed="$SED -e 1s/^X//"
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_GREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 # Extract the first word of "grep ggrep" to use in msg output
3744 if test -z "$GREP"; then
3745 set dummy grep ggrep; ac_prog_name=$2
3746 if test "${ac_cv_path_GREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 ac_path_GREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in grep ggrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761 # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3763 *GNU*)
3764 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765 *)
3766 ac_count=0
3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 while :
3769 do
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 echo 'GREP' >> "conftest.nl"
3774 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 ac_count=`expr $ac_count + 1`
3777 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_GREP="$ac_path_GREP"
3780 ac_path_GREP_max=$ac_count
3781 fi
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3784 done
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3787
3788
3789 $ac_path_GREP_found && break 3
3790 done
3791 done
3792
3793 done
3794 IFS=$as_save_IFS
3795
3796
3797 fi
3798
3799 GREP="$ac_cv_path_GREP"
3800 if test -z "$GREP"; then
3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803 { (exit 1); exit 1; }; }
3804 fi
3805
3806 else
3807 ac_cv_path_GREP=$GREP
3808 fi
3809
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3814 GREP="$ac_cv_path_GREP"
3815
3816
3817 { echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3819 if test "${ac_cv_path_EGREP+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3823 then ac_cv_path_EGREP="$GREP -E"
3824 else
3825 # Extract the first word of "egrep" to use in msg output
3826 if test -z "$EGREP"; then
3827 set dummy egrep; ac_prog_name=$2
3828 if test "${ac_cv_path_EGREP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3842 # Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844 case `"$ac_path_EGREP" --version 2>&1` in
3845 *GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847 *)
3848 ac_count=0
3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 ac_count=`expr $ac_count + 1`
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870
3871 $ac_path_EGREP_found && break 3
3872 done
3873 done
3874
3875 done
3876 IFS=$as_save_IFS
3877
3878
3879 fi
3880
3881 EGREP="$ac_cv_path_EGREP"
3882 if test -z "$EGREP"; then
3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885 { (exit 1); exit 1; }; }
3886 fi
3887
3888 else
3889 ac_cv_path_EGREP=$EGREP
3890 fi
3891
3892
3893 fi
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3897 EGREP="$ac_cv_path_EGREP"
3898
3899
3900 { echo "$as_me:$LINENO: checking for fgrep" >&5
3901 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_FGREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3906 then ac_cv_path_FGREP="$GREP -F"
3907 else
3908 # Extract the first word of "fgrep" to use in msg output
3909 if test -z "$FGREP"; then
3910 set dummy fgrep; ac_prog_name=$2
3911 if test "${ac_cv_path_FGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 ac_path_FGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in fgrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3925 # Check for GNU ac_path_FGREP and select it if it is found.
3926 # Check for GNU $ac_path_FGREP
3927 case `"$ac_path_FGREP" --version 2>&1` in
3928 *GNU*)
3929 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3930 *)
3931 ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'FGREP' >> "conftest.nl"
3939 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_FGREP="$ac_path_FGREP"
3945 ac_path_FGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953
3954 $ac_path_FGREP_found && break 3
3955 done
3956 done
3957
3958 done
3959 IFS=$as_save_IFS
3960
3961
3962 fi
3963
3964 FGREP="$ac_cv_path_FGREP"
3965 if test -z "$FGREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3969 fi
3970
3971 else
3972 ac_cv_path_FGREP=$FGREP
3973 fi
3974
3975
3976 fi
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3979 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3980 FGREP="$ac_cv_path_FGREP"
3981
3982
3983 test -z "$GREP" && GREP=grep
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003 # Check whether --with-gnu-ld was given.
4004 if test "${with_gnu_ld+set}" = set; then
4005 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4006 else
4007 with_gnu_ld=no
4008 fi
4009
4010 ac_prog=ld
4011 if test "$GCC" = yes; then
4012 # Check if gcc -print-prog-name=ld gives a path.
4013 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4014 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4015 case $host in
4016 *-*-mingw*)
4017 # gcc leaves a trailing carriage return which upsets mingw
4018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4019 *)
4020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4021 esac
4022 case $ac_prog in
4023 # Accept absolute paths.
4024 [\\/]* | ?:[\\/]*)
4025 re_direlt='/[^/][^/]*/\.\./'
4026 # Canonicalize the pathname of ld
4027 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4028 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4029 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4030 done
4031 test -z "$LD" && LD="$ac_prog"
4032 ;;
4033 "")
4034 # If it fails, then pretend we aren't using GCC.
4035 ac_prog=ld
4036 ;;
4037 *)
4038 # If it is relative, then search for the first ld in PATH.
4039 with_gnu_ld=unknown
4040 ;;
4041 esac
4042 elif test "$with_gnu_ld" = yes; then
4043 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4044 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4045 else
4046 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4047 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4048 fi
4049 if test "${lt_cv_path_LD+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 if test -z "$LD"; then
4053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4054 for ac_dir in $PATH; do
4055 IFS="$lt_save_ifs"
4056 test -z "$ac_dir" && ac_dir=.
4057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4058 lt_cv_path_LD="$ac_dir/$ac_prog"
4059 # Check to see if the program is GNU ld. I'd rather use --version,
4060 # but apparently some variants of GNU ld only accept -v.
4061 # Break only if it was the GNU/non-GNU ld that we prefer.
4062 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4063 *GNU* | *'with BFD'*)
4064 test "$with_gnu_ld" != no && break
4065 ;;
4066 *)
4067 test "$with_gnu_ld" != yes && break
4068 ;;
4069 esac
4070 fi
4071 done
4072 IFS="$lt_save_ifs"
4073 else
4074 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4075 fi
4076 fi
4077
4078 LD="$lt_cv_path_LD"
4079 if test -n "$LD"; then
4080 { echo "$as_me:$LINENO: result: $LD" >&5
4081 echo "${ECHO_T}$LD" >&6; }
4082 else
4083 { echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6; }
4085 fi
4086 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4087 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4088 { (exit 1); exit 1; }; }
4089 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4090 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4091 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4095 case `$LD -v 2>&1 </dev/null` in
4096 *GNU* | *'with BFD'*)
4097 lt_cv_prog_gnu_ld=yes
4098 ;;
4099 *)
4100 lt_cv_prog_gnu_ld=no
4101 ;;
4102 esac
4103 fi
4104 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4105 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4106 with_gnu_ld=$lt_cv_prog_gnu_ld
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4117 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4118 if test "${lt_cv_path_NM+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 if test -n "$NM"; then
4122 # Let the user override the test.
4123 lt_cv_path_NM="$NM"
4124 else
4125 lt_nm_to_check="${ac_tool_prefix}nm"
4126 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4127 lt_nm_to_check="$lt_nm_to_check nm"
4128 fi
4129 for lt_tmp_nm in $lt_nm_to_check; do
4130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4132 IFS="$lt_save_ifs"
4133 test -z "$ac_dir" && ac_dir=.
4134 tmp_nm="$ac_dir/$lt_tmp_nm"
4135 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4136 # Check to see if the nm accepts a BSD-compat flag.
4137 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4138 # nm: unknown option "B" ignored
4139 # Tru64's nm complains that /dev/null is an invalid object file
4140 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4141 */dev/null* | *'Invalid file or object type'*)
4142 lt_cv_path_NM="$tmp_nm -B"
4143 break
4144 ;;
4145 *)
4146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4147 */dev/null*)
4148 lt_cv_path_NM="$tmp_nm -p"
4149 break
4150 ;;
4151 *)
4152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4153 continue # so that we can try to find one that supports BSD flags
4154 ;;
4155 esac
4156 ;;
4157 esac
4158 fi
4159 done
4160 IFS="$lt_save_ifs"
4161 done
4162 : ${lt_cv_path_NM=no}
4163 fi
4164 fi
4165 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4166 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4167 if test "$lt_cv_path_NM" != "no"; then
4168 NM="$lt_cv_path_NM"
4169 else
4170 # Didn't find any BSD compatible name lister, look for dumpbin.
4171 if test -n "$ac_tool_prefix"; then
4172 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4173 do
4174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 if test -n "$DUMPBIN"; then
4182 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 DUMPBIN=$ac_cv_prog_DUMPBIN
4202 if test -n "$DUMPBIN"; then
4203 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4204 echo "${ECHO_T}$DUMPBIN" >&6; }
4205 else
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4208 fi
4209
4210
4211 test -n "$DUMPBIN" && break
4212 done
4213 fi
4214 if test -z "$DUMPBIN"; then
4215 ac_ct_DUMPBIN=$DUMPBIN
4216 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4217 do
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 if test -n "$ac_ct_DUMPBIN"; then
4226 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4246 if test -n "$ac_ct_DUMPBIN"; then
4247 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4248 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4249 else
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4252 fi
4253
4254
4255 test -n "$ac_ct_DUMPBIN" && break
4256 done
4257
4258 if test "x$ac_ct_DUMPBIN" = x; then
4259 DUMPBIN=":"
4260 else
4261 case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet. If you think this
4265 configuration is useful to you, please write to [email protected]." >&5
4266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4267 whose name does not start with the host triplet. If you think this
4268 configuration is useful to you, please write to [email protected]." >&2;}
4269 ac_tool_warned=yes ;;
4270 esac
4271 DUMPBIN=$ac_ct_DUMPBIN
4272 fi
4273 fi
4274
4275
4276 if test "$DUMPBIN" != ":"; then
4277 NM="$DUMPBIN"
4278 fi
4279 fi
4280 test -z "$NM" && NM=nm
4281
4282
4283
4284
4285
4286
4287 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4288 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4289 if test "${lt_cv_nm_interface+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 lt_cv_nm_interface="BSD nm"
4293 echo "int some_variable = 0;" > conftest.$ac_ext
4294 (eval echo "\"\$as_me:4294: $ac_compile\"" >&5)
4295 (eval "$ac_compile" 2>conftest.err)
4296 cat conftest.err >&5
4297 (eval echo "\"\$as_me:4297: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4298 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4299 cat conftest.err >&5
4300 (eval echo "\"\$as_me:4300: output\"" >&5)
4301 cat conftest.out >&5
4302 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4303 lt_cv_nm_interface="MS dumpbin"
4304 fi
4305 rm -f conftest*
4306 fi
4307 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4308 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4309
4310 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4312 LN_S=$as_ln_s
4313 if test "$LN_S" = "ln -s"; then
4314 { echo "$as_me:$LINENO: result: yes" >&5
4315 echo "${ECHO_T}yes" >&6; }
4316 else
4317 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4318 echo "${ECHO_T}no, using $LN_S" >&6; }
4319 fi
4320
4321 # find the maximum length of command line arguments
4322 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4323 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4324 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 i=0
4328 teststring="ABCD"
4329
4330 case $build_os in
4331 msdosdjgpp*)
4332 # On DJGPP, this test can blow up pretty badly due to problems in libc
4333 # (any single argument exceeding 2000 bytes causes a buffer overrun
4334 # during glob expansion). Even if it were fixed, the result of this
4335 # check would be larger than it should be.
4336 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4337 ;;
4338
4339 gnu*)
4340 # Under GNU Hurd, this test is not required because there is
4341 # no limit to the length of command line arguments.
4342 # Libtool will interpret -1 as no limit whatsoever
4343 lt_cv_sys_max_cmd_len=-1;
4344 ;;
4345
4346 cygwin* | mingw* | cegcc*)
4347 # On Win9x/ME, this test blows up -- it succeeds, but takes
4348 # about 5 minutes as the teststring grows exponentially.
4349 # Worse, since 9x/ME are not pre-emptively multitasking,
4350 # you end up with a "frozen" computer, even though with patience
4351 # the test eventually succeeds (with a max line length of 256k).
4352 # Instead, let's just punt: use the minimum linelength reported by
4353 # all of the supported platforms: 8192 (on NT/2K/XP).
4354 lt_cv_sys_max_cmd_len=8192;
4355 ;;
4356
4357 amigaos*)
4358 # On AmigaOS with pdksh, this test takes hours, literally.
4359 # So we just punt and use a minimum line length of 8192.
4360 lt_cv_sys_max_cmd_len=8192;
4361 ;;
4362
4363 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4364 # This has been around since 386BSD, at least. Likely further.
4365 if test -x /sbin/sysctl; then
4366 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4367 elif test -x /usr/sbin/sysctl; then
4368 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4369 else
4370 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4371 fi
4372 # And add a safety zone
4373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4375 ;;
4376
4377 interix*)
4378 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4379 lt_cv_sys_max_cmd_len=196608
4380 ;;
4381
4382 osf*)
4383 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4384 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4385 # nice to cause kernel panics so lets avoid the loop below.
4386 # First set a reasonable default.
4387 lt_cv_sys_max_cmd_len=16384
4388 #
4389 if test -x /sbin/sysconfig; then
4390 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4391 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4392 esac
4393 fi
4394 ;;
4395 sco3.2v5*)
4396 lt_cv_sys_max_cmd_len=102400
4397 ;;
4398 sysv5* | sco5v6* | sysv4.2uw2*)
4399 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4400 if test -n "$kargmax"; then
4401 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4402 else
4403 lt_cv_sys_max_cmd_len=32768
4404 fi
4405 ;;
4406 *)
4407 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4408 if test -n "$lt_cv_sys_max_cmd_len"; then
4409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4411 else
4412 # Make teststring a little bigger before we do anything with it.
4413 # a 1K string should be a reasonable start.
4414 for i in 1 2 3 4 5 6 7 8 ; do
4415 teststring=$teststring$teststring
4416 done
4417 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4418 # If test is not a shell built-in, we'll probably end up computing a
4419 # maximum length that is only half of the actual maximum length, but
4420 # we can't tell.
4421 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4422 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4423 test $i != 17 # 1/2 MB should be enough
4424 do
4425 i=`expr $i + 1`
4426 teststring=$teststring$teststring
4427 done
4428 # Only check the string length outside the loop.
4429 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4430 teststring=
4431 # Add a significant safety factor because C++ compilers can tack on
4432 # massive amounts of additional arguments before passing them to the
4433 # linker. It appears as though 1/2 is a usable value.
4434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4435 fi
4436 ;;
4437 esac
4438
4439 fi
4440
4441 if test -n $lt_cv_sys_max_cmd_len ; then
4442 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4444 else
4445 { echo "$as_me:$LINENO: result: none" >&5
4446 echo "${ECHO_T}none" >&6; }
4447 fi
4448 max_cmd_len=$lt_cv_sys_max_cmd_len
4449
4450
4451
4452
4453
4454
4455 : ${CP="cp -f"}
4456 : ${MV="mv -f"}
4457 : ${RM="rm -f"}
4458
4459 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4460 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4461 # Try some XSI features
4462 xsi_shell=no
4463 ( _lt_dummy="a/b/c"
4464 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4465 = c,a/b,, \
4466 && eval 'test $(( 1 + 1 )) -eq 2 \
4467 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4468 && xsi_shell=yes
4469 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4470 echo "${ECHO_T}$xsi_shell" >&6; }
4471
4472
4473 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4474 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4475 lt_shell_append=no
4476 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4477 >/dev/null 2>&1 \
4478 && lt_shell_append=yes
4479 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4480 echo "${ECHO_T}$lt_shell_append" >&6; }
4481
4482
4483 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4484 lt_unset=unset
4485 else
4486 lt_unset=false
4487 fi
4488
4489
4490
4491
4492
4493 # test EBCDIC or ASCII
4494 case `echo X|tr X '\101'` in
4495 A) # ASCII based system
4496 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4497 lt_SP2NL='tr \040 \012'
4498 lt_NL2SP='tr \015\012 \040\040'
4499 ;;
4500 *) # EBCDIC based system
4501 lt_SP2NL='tr \100 \n'
4502 lt_NL2SP='tr \r\n \100\100'
4503 ;;
4504 esac
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4515 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4516 if test "${lt_cv_ld_reload_flag+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 lt_cv_ld_reload_flag='-r'
4520 fi
4521 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4522 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4523 reload_flag=$lt_cv_ld_reload_flag
4524 case $reload_flag in
4525 "" | " "*) ;;
4526 *) reload_flag=" $reload_flag" ;;
4527 esac
4528 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4529 case $host_os in
4530 darwin*)
4531 if test "$GCC" = yes; then
4532 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4533 else
4534 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4535 fi
4536 ;;
4537 esac
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547 if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4549 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 if test -n "$OBJDUMP"; then
4556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569 done
4570 done
4571 IFS=$as_save_IFS
4572
4573 fi
4574 fi
4575 OBJDUMP=$ac_cv_prog_OBJDUMP
4576 if test -n "$OBJDUMP"; then
4577 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4578 echo "${ECHO_T}$OBJDUMP" >&6; }
4579 else
4580 { echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6; }
4582 fi
4583
4584
4585 fi
4586 if test -z "$ac_cv_prog_OBJDUMP"; then
4587 ac_ct_OBJDUMP=$OBJDUMP
4588 # Extract the first word of "objdump", so it can be a program name with args.
4589 set dummy objdump; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 if test -n "$ac_ct_OBJDUMP"; then
4596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4616 if test -n "$ac_ct_OBJDUMP"; then
4617 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4618 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4619 else
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624 if test "x$ac_ct_OBJDUMP" = x; then
4625 OBJDUMP="false"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628 yes:)
4629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4630 whose name does not start with the host triplet. If you think this
4631 configuration is useful to you, please write to [email protected]." >&5
4632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4633 whose name does not start with the host triplet. If you think this
4634 configuration is useful to you, please write to [email protected]." >&2;}
4635 ac_tool_warned=yes ;;
4636 esac
4637 OBJDUMP=$ac_ct_OBJDUMP
4638 fi
4639 else
4640 OBJDUMP="$ac_cv_prog_OBJDUMP"
4641 fi
4642
4643 test -z "$OBJDUMP" && OBJDUMP=objdump
4644
4645
4646
4647
4648
4649
4650 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4651 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4652 if test "${lt_cv_deplibs_check_method+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 lt_cv_file_magic_cmd='$MAGIC_CMD'
4656 lt_cv_file_magic_test_file=
4657 lt_cv_deplibs_check_method='unknown'
4658 # Need to set the preceding variable on all platforms that support
4659 # interlibrary dependencies.
4660 # 'none' -- dependencies not supported.
4661 # `unknown' -- same as none, but documents that we really don't know.
4662 # 'pass_all' -- all dependencies passed with no checks.
4663 # 'test_compile' -- check by making test program.
4664 # 'file_magic [[regex]]' -- check by looking for files in library path
4665 # which responds to the $file_magic_cmd with a given extended regex.
4666 # If you have `file' or equivalent on your system and you're not sure
4667 # whether `pass_all' will *always* work, you probably want this one.
4668
4669 case $host_os in
4670 aix[4-9]*)
4671 lt_cv_deplibs_check_method=pass_all
4672 ;;
4673
4674 beos*)
4675 lt_cv_deplibs_check_method=pass_all
4676 ;;
4677
4678 bsdi[45]*)
4679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4680 lt_cv_file_magic_cmd='/usr/bin/file -L'
4681 lt_cv_file_magic_test_file=/shlib/libc.so
4682 ;;
4683
4684 cygwin*)
4685 # func_win32_libid is a shell function defined in ltmain.sh
4686 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4687 lt_cv_file_magic_cmd='func_win32_libid'
4688 ;;
4689
4690 mingw* | pw32*)
4691 # Base MSYS/MinGW do not provide the 'file' command needed by
4692 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4693 # unless we find 'file', for example because we are cross-compiling.
4694 if ( file / ) >/dev/null 2>&1; then
4695 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4696 lt_cv_file_magic_cmd='func_win32_libid'
4697 else
4698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4699 lt_cv_file_magic_cmd='$OBJDUMP -f'
4700 fi
4701 ;;
4702
4703 cegcc)
4704 # use the weaker test based on 'objdump'. See mingw*.
4705 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4706 lt_cv_file_magic_cmd='$OBJDUMP -f'
4707 ;;
4708
4709 darwin* | rhapsody*)
4710 lt_cv_deplibs_check_method=pass_all
4711 ;;
4712
4713 freebsd* | dragonfly*)
4714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4715 case $host_cpu in
4716 i*86 )
4717 # Not sure whether the presence of OpenBSD here was a mistake.
4718 # Let's accept both of them until this is cleared up.
4719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4720 lt_cv_file_magic_cmd=/usr/bin/file
4721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4722 ;;
4723 esac
4724 else
4725 lt_cv_deplibs_check_method=pass_all
4726 fi
4727 ;;
4728
4729 gnu*)
4730 lt_cv_deplibs_check_method=pass_all
4731 ;;
4732
4733 hpux10.20* | hpux11*)
4734 lt_cv_file_magic_cmd=/usr/bin/file
4735 case $host_cpu in
4736 ia64*)
4737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4739 ;;
4740 hppa*64*)
4741 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]'
4742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4743 ;;
4744 *)
4745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4747 ;;
4748 esac
4749 ;;
4750
4751 interix[3-9]*)
4752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4754 ;;
4755
4756 irix5* | irix6* | nonstopux*)
4757 case $LD in
4758 *-32|*"-32 ") libmagic=32-bit;;
4759 *-n32|*"-n32 ") libmagic=N32;;
4760 *-64|*"-64 ") libmagic=64-bit;;
4761 *) libmagic=never-match;;
4762 esac
4763 lt_cv_deplibs_check_method=pass_all
4764 ;;
4765
4766 # This must be Linux ELF.
4767 linux* | k*bsd*-gnu)
4768 lt_cv_deplibs_check_method=pass_all
4769 ;;
4770
4771 netbsd* | netbsdelf*-gnu)
4772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4774 else
4775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4776 fi
4777 ;;
4778
4779 newos6*)
4780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4781 lt_cv_file_magic_cmd=/usr/bin/file
4782 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4783 ;;
4784
4785 *nto* | *qnx*)
4786 lt_cv_deplibs_check_method=pass_all
4787 ;;
4788
4789 openbsd*)
4790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4792 else
4793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4794 fi
4795 ;;
4796
4797 osf3* | osf4* | osf5*)
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801 rdos*)
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805 solaris*)
4806 lt_cv_deplibs_check_method=pass_all
4807 ;;
4808
4809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4810 lt_cv_deplibs_check_method=pass_all
4811 ;;
4812
4813 sysv4 | sysv4.3*)
4814 case $host_vendor in
4815 motorola)
4816 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]'
4817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4818 ;;
4819 ncr)
4820 lt_cv_deplibs_check_method=pass_all
4821 ;;
4822 sequent)
4823 lt_cv_file_magic_cmd='/bin/file'
4824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4825 ;;
4826 sni)
4827 lt_cv_file_magic_cmd='/bin/file'
4828 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4829 lt_cv_file_magic_test_file=/lib/libc.so
4830 ;;
4831 siemens)
4832 lt_cv_deplibs_check_method=pass_all
4833 ;;
4834 pc)
4835 lt_cv_deplibs_check_method=pass_all
4836 ;;
4837 esac
4838 ;;
4839
4840 tpf*)
4841 lt_cv_deplibs_check_method=pass_all
4842 ;;
4843 esac
4844
4845 fi
4846 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4847 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4848 file_magic_cmd=$lt_cv_file_magic_cmd
4849 deplibs_check_method=$lt_cv_deplibs_check_method
4850 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}ar; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_AR+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 if test -n "$AR"; then
4872 ac_cv_prog_AR="$AR" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_AR="${ac_tool_prefix}ar"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 AR=$ac_cv_prog_AR
4892 if test -n "$AR"; then
4893 { echo "$as_me:$LINENO: result: $AR" >&5
4894 echo "${ECHO_T}$AR" >&6; }
4895 else
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901 fi
4902 if test -z "$ac_cv_prog_AR"; then
4903 ac_ct_AR=$AR
4904 # Extract the first word of "ar", so it can be a program name with args.
4905 set dummy ar; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 if test -n "$ac_ct_AR"; then
4912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_ac_ct_AR="ar"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4932 if test -n "$ac_ct_AR"; then
4933 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4934 echo "${ECHO_T}$ac_ct_AR" >&6; }
4935 else
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4938 fi
4939
4940 if test "x$ac_ct_AR" = x; then
4941 AR="false"
4942 else
4943 case $cross_compiling:$ac_tool_warned in
4944 yes:)
4945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4946 whose name does not start with the host triplet. If you think this
4947 configuration is useful to you, please write to [email protected]." >&5
4948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4949 whose name does not start with the host triplet. If you think this
4950 configuration is useful to you, please write to [email protected]." >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953 AR=$ac_ct_AR
4954 fi
4955 else
4956 AR="$ac_cv_prog_AR"
4957 fi
4958
4959 test -z "$AR" && AR=ar
4960 test -z "$AR_FLAGS" && AR_FLAGS=cru
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4974 set dummy ${ac_tool_prefix}strip; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_STRIP+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 if test -n "$STRIP"; then
4981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 STRIP=$ac_cv_prog_STRIP
5001 if test -n "$STRIP"; then
5002 { echo "$as_me:$LINENO: result: $STRIP" >&5
5003 echo "${ECHO_T}$STRIP" >&6; }
5004 else
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 fi
5008
5009
5010 fi
5011 if test -z "$ac_cv_prog_STRIP"; then
5012 ac_ct_STRIP=$STRIP
5013 # Extract the first word of "strip", so it can be a program name with args.
5014 set dummy strip; ac_word=$2
5015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5017 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 if test -n "$ac_ct_STRIP"; then
5021 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_ac_ct_STRIP="strip"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5041 if test -n "$ac_ct_STRIP"; then
5042 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5043 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5044 else
5045 { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5047 fi
5048
5049 if test "x$ac_ct_STRIP" = x; then
5050 STRIP=":"
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053 yes:)
5054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5055 whose name does not start with the host triplet. If you think this
5056 configuration is useful to you, please write to [email protected]." >&5
5057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5058 whose name does not start with the host triplet. If you think this
5059 configuration is useful to you, please write to [email protected]." >&2;}
5060 ac_tool_warned=yes ;;
5061 esac
5062 STRIP=$ac_ct_STRIP
5063 fi
5064 else
5065 STRIP="$ac_cv_prog_STRIP"
5066 fi
5067
5068 test -z "$STRIP" && STRIP=:
5069
5070
5071
5072
5073
5074
5075 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_prog_RANLIB+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 if test -n "$RANLIB"; then
5084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 RANLIB=$ac_cv_prog_RANLIB
5104 if test -n "$RANLIB"; then
5105 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5106 echo "${ECHO_T}$RANLIB" >&6; }
5107 else
5108 { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5110 fi
5111
5112
5113 fi
5114 if test -z "$ac_cv_prog_RANLIB"; then
5115 ac_ct_RANLIB=$RANLIB
5116 # Extract the first word of "ranlib", so it can be a program name with args.
5117 set dummy ranlib; ac_word=$2
5118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 if test -n "$ac_ct_RANLIB"; then
5124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_ac_ct_RANLIB="ranlib"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5144 if test -n "$ac_ct_RANLIB"; then
5145 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5146 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5147 else
5148 { echo "$as_me:$LINENO: result: no" >&5
5149 echo "${ECHO_T}no" >&6; }
5150 fi
5151
5152 if test "x$ac_ct_RANLIB" = x; then
5153 RANLIB=":"
5154 else
5155 case $cross_compiling:$ac_tool_warned in
5156 yes:)
5157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5158 whose name does not start with the host triplet. If you think this
5159 configuration is useful to you, please write to [email protected]." >&5
5160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5161 whose name does not start with the host triplet. If you think this
5162 configuration is useful to you, please write to [email protected]." >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 RANLIB=$ac_ct_RANLIB
5166 fi
5167 else
5168 RANLIB="$ac_cv_prog_RANLIB"
5169 fi
5170
5171 test -z "$RANLIB" && RANLIB=:
5172
5173
5174
5175
5176
5177
5178 # Determine commands to create old-style static archives.
5179 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5180 old_postinstall_cmds='chmod 644 $oldlib'
5181 old_postuninstall_cmds=
5182
5183 if test -n "$RANLIB"; then
5184 case $host_os in
5185 openbsd*)
5186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5187 ;;
5188 *)
5189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5190 ;;
5191 esac
5192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5193 fi
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 # If no C compiler was specified, use CC.
5229 LTCC=${LTCC-"$CC"}
5230
5231 # If no C compiler flags were specified, use CFLAGS.
5232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5233
5234 # Allow CC to be a program name with arguments.
5235 compiler=$CC
5236
5237
5238 # Check for command to grab the raw symbol name followed by C symbol from nm.
5239 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244
5245 # These are sane defaults that work on at least a few old systems.
5246 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5247
5248 # Character class describing NM global symbol codes.
5249 symcode='[BCDEGRST]'
5250
5251 # Regexp to match symbols that can be accessed directly from C.
5252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5253
5254 # Define system-specific variables.
5255 case $host_os in
5256 aix*)
5257 symcode='[BCDT]'
5258 ;;
5259 cygwin* | mingw* | pw32* | cegcc*)
5260 symcode='[ABCDGISTW]'
5261 ;;
5262 hpux*)
5263 if test "$host_cpu" = ia64; then
5264 symcode='[ABCDEGRST]'
5265 fi
5266 ;;
5267 irix* | nonstopux*)
5268 symcode='[BCDEGRST]'
5269 ;;
5270 osf*)
5271 symcode='[BCDEGQRST]'
5272 ;;
5273 solaris*)
5274 symcode='[BDRT]'
5275 ;;
5276 sco3.2v5*)
5277 symcode='[DT]'
5278 ;;
5279 sysv4.2uw2*)
5280 symcode='[DT]'
5281 ;;
5282 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5283 symcode='[ABDT]'
5284 ;;
5285 sysv4)
5286 symcode='[DFNSTU]'
5287 ;;
5288 esac
5289
5290 # If we're using GNU nm, then use its standard symbol codes.
5291 case `$NM -V 2>&1` in
5292 *GNU* | *'with BFD'*)
5293 symcode='[ABCDGIRSTW]' ;;
5294 esac
5295
5296 # Transform an extracted symbol line into a proper C declaration.
5297 # Some systems (esp. on ia64) link data and code symbols differently,
5298 # so use this general approach.
5299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5300
5301 # Transform an extracted symbol line into symbol name and symbol address
5302 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5303 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5304
5305 # Handle CRLF in mingw tool chain
5306 opt_cr=
5307 case $build_os in
5308 mingw*)
5309 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5310 ;;
5311 esac
5312
5313 # Try without a prefix underscore, then with it.
5314 for ac_symprfx in "" "_"; do
5315
5316 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5317 symxfrm="\\1 $ac_symprfx\\2 \\2"
5318
5319 # Write the raw and C identifiers.
5320 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5321 # Fake it for dumpbin and say T for any non-static function
5322 # and D for any global variable.
5323 # Also find C++ and __fastcall symbols from MSVC++,
5324 # which start with @ or ?.
5325 lt_cv_sys_global_symbol_pipe="$AWK '"\
5326 " {last_section=section; section=\$ 3};"\
5327 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5328 " \$ 0!~/External *\|/{next};"\
5329 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5330 " {if(hide[section]) next};"\
5331 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5332 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5333 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5334 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5335 " ' prfx=^$ac_symprfx"
5336 else
5337 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5338 fi
5339
5340 # Check to see that the pipe works correctly.
5341 pipe_works=no
5342
5343 rm -f conftest*
5344 cat > conftest.$ac_ext <<_LT_EOF
5345 #ifdef __cplusplus
5346 extern "C" {
5347 #endif
5348 char nm_test_var;
5349 void nm_test_func(void);
5350 void nm_test_func(void){}
5351 #ifdef __cplusplus
5352 }
5353 #endif
5354 int main(){nm_test_var='a';nm_test_func();return(0);}
5355 _LT_EOF
5356
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; then
5362 # Now try to grab the symbols.
5363 nlist=conftest.nm
5364 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5365 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && test -s "$nlist"; then
5369 # Try sorting and uniquifying the output.
5370 if sort "$nlist" | uniq > "$nlist"T; then
5371 mv -f "$nlist"T "$nlist"
5372 else
5373 rm -f "$nlist"T
5374 fi
5375
5376 # Make sure that we snagged all the symbols we need.
5377 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5378 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5379 cat <<_LT_EOF > conftest.$ac_ext
5380 #ifdef __cplusplus
5381 extern "C" {
5382 #endif
5383
5384 _LT_EOF
5385 # Now generate the symbol file.
5386 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5387
5388 cat <<_LT_EOF >> conftest.$ac_ext
5389
5390 /* The mapping between symbol names and symbols. */
5391 const struct {
5392 const char *name;
5393 void *address;
5394 }
5395 lt__PROGRAM__LTX_preloaded_symbols[] =
5396 {
5397 { "@PROGRAM@", (void *) 0 },
5398 _LT_EOF
5399 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5400 cat <<\_LT_EOF >> conftest.$ac_ext
5401 {0, (void *) 0}
5402 };
5403
5404 /* This works around a problem in FreeBSD linker */
5405 #ifdef FREEBSD_WORKAROUND
5406 static const void *lt_preloaded_setup() {
5407 return lt__PROGRAM__LTX_preloaded_symbols;
5408 }
5409 #endif
5410
5411 #ifdef __cplusplus
5412 }
5413 #endif
5414 _LT_EOF
5415 # Now try linking the two files.
5416 mv conftest.$ac_objext conftstm.$ac_objext
5417 lt_save_LIBS="$LIBS"
5418 lt_save_CFLAGS="$CFLAGS"
5419 LIBS="conftstm.$ac_objext"
5420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5426 pipe_works=yes
5427 fi
5428 LIBS="$lt_save_LIBS"
5429 CFLAGS="$lt_save_CFLAGS"
5430 else
5431 echo "cannot find nm_test_func in $nlist" >&5
5432 fi
5433 else
5434 echo "cannot find nm_test_var in $nlist" >&5
5435 fi
5436 else
5437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5438 fi
5439 else
5440 echo "$progname: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 fi
5443 rm -rf conftest* conftst*
5444
5445 # Do not use the global_symbol_pipe unless it works.
5446 if test "$pipe_works" = yes; then
5447 break
5448 else
5449 lt_cv_sys_global_symbol_pipe=
5450 fi
5451 done
5452
5453 fi
5454
5455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5456 lt_cv_sys_global_symbol_to_cdecl=
5457 fi
5458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5459 { echo "$as_me:$LINENO: result: failed" >&5
5460 echo "${ECHO_T}failed" >&6; }
5461 else
5462 { echo "$as_me:$LINENO: result: ok" >&5
5463 echo "${ECHO_T}ok" >&6; }
5464 fi
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 # Check whether --enable-libtool-lock was given.
5489 if test "${enable_libtool_lock+set}" = set; then
5490 enableval=$enable_libtool_lock;
5491 fi
5492
5493 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5494
5495 # Some flags need to be propagated to the compiler or linker for good
5496 # libtool support.
5497 case $host in
5498 ia64-*-hpux*)
5499 # Find out which ABI we are using.
5500 echo 'int i;' > conftest.$ac_ext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; then
5506 case `/usr/bin/file conftest.$ac_objext` in
5507 *ELF-32*)
5508 HPUX_IA64_MODE="32"
5509 ;;
5510 *ELF-64*)
5511 HPUX_IA64_MODE="64"
5512 ;;
5513 esac
5514 fi
5515 rm -rf conftest*
5516 ;;
5517 *-*-irix6*)
5518 # Find out which ABI we are using.
5519 echo '#line 5519 "configure"' > conftest.$ac_ext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521 (eval $ac_compile) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; then
5525 if test "$lt_cv_prog_gnu_ld" = yes; then
5526 case `/usr/bin/file conftest.$ac_objext` in
5527 *32-bit*)
5528 LD="${LD-ld} -melf32bsmip"
5529 ;;
5530 *N32*)
5531 LD="${LD-ld} -melf32bmipn32"
5532 ;;
5533 *64-bit*)
5534 LD="${LD-ld} -melf64bmip"
5535 ;;
5536 esac
5537 else
5538 case `/usr/bin/file conftest.$ac_objext` in
5539 *32-bit*)
5540 LD="${LD-ld} -32"
5541 ;;
5542 *N32*)
5543 LD="${LD-ld} -n32"
5544 ;;
5545 *64-bit*)
5546 LD="${LD-ld} -64"
5547 ;;
5548 esac
5549 fi
5550 fi
5551 rm -rf conftest*
5552 ;;
5553
5554 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5555 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5556 # Find out which ABI we are using.
5557 echo 'int i;' > conftest.$ac_ext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; then
5563 case `/usr/bin/file conftest.o` in
5564 *32-bit*)
5565 case $host in
5566 x86_64-*kfreebsd*-gnu)
5567 LD="${LD-ld} -m elf_i386_fbsd"
5568 ;;
5569 x86_64-*linux*)
5570 LD="${LD-ld} -m elf_i386"
5571 ;;
5572 ppc64-*linux*|powerpc64-*linux*)
5573 LD="${LD-ld} -m elf32ppclinux"
5574 ;;
5575 s390x-*linux*)
5576 LD="${LD-ld} -m elf_s390"
5577 ;;
5578 sparc64-*linux*)
5579 LD="${LD-ld} -m elf32_sparc"
5580 ;;
5581 esac
5582 ;;
5583 *64-bit*)
5584 case $host in
5585 x86_64-*kfreebsd*-gnu)
5586 LD="${LD-ld} -m elf_x86_64_fbsd"
5587 ;;
5588 x86_64-*linux*)
5589 LD="${LD-ld} -m elf_x86_64"
5590 ;;
5591 ppc*-*linux*|powerpc*-*linux*)
5592 LD="${LD-ld} -m elf64ppc"
5593 ;;
5594 s390*-*linux*|s390*-*tpf*)
5595 LD="${LD-ld} -m elf64_s390"
5596 ;;
5597 sparc*-*linux*)
5598 LD="${LD-ld} -m elf64_sparc"
5599 ;;
5600 esac
5601 ;;
5602 esac
5603 fi
5604 rm -rf conftest*
5605 ;;
5606
5607 *-*-sco3.2v5*)
5608 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5609 SAVE_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS -belf"
5611 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5612 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5613 if test "${lt_cv_cc_needs_belf+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 ac_ext=c
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628
5629 int
5630 main ()
5631 {
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (ac_try="$ac_link"
5639 case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_link") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_c_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest$ac_exeext &&
5654 $as_test_x conftest$ac_exeext; then
5655 lt_cv_cc_needs_belf=yes
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 lt_cv_cc_needs_belf=no
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5664 conftest$ac_exeext conftest.$ac_ext
5665 ac_ext=c
5666 ac_cpp='$CPP $CPPFLAGS'
5667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670
5671 fi
5672 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5673 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5674 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5675 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5676 CFLAGS="$SAVE_CFLAGS"
5677 fi
5678 ;;
5679 sparc*-*solaris*)
5680 # Find out which ABI we are using.
5681 echo 'int i;' > conftest.$ac_ext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; then
5687 case `/usr/bin/file conftest.o` in
5688 *64-bit*)
5689 case $lt_cv_prog_gnu_ld in
5690 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5691 *)
5692 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5693 LD="${LD-ld} -64"
5694 fi
5695 ;;
5696 esac
5697 ;;
5698 esac
5699 fi
5700 rm -rf conftest*
5701 ;;
5702 esac
5703
5704 need_locks="$enable_libtool_lock"
5705
5706
5707 case $host_os in
5708 rhapsody* | darwin*)
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 if test -n "$DSYMUTIL"; then
5718 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5738 if test -n "$DSYMUTIL"; then
5739 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5740 echo "${ECHO_T}$DSYMUTIL" >&6; }
5741 else
5742 { echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6; }
5744 fi
5745
5746
5747 fi
5748 if test -z "$ac_cv_prog_DSYMUTIL"; then
5749 ac_ct_DSYMUTIL=$DSYMUTIL
5750 # Extract the first word of "dsymutil", so it can be a program name with args.
5751 set dummy dsymutil; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757 if test -n "$ac_ct_DSYMUTIL"; then
5758 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5778 if test -n "$ac_ct_DSYMUTIL"; then
5779 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5780 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5781 else
5782 { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5784 fi
5785
5786 if test "x$ac_ct_DSYMUTIL" = x; then
5787 DSYMUTIL=":"
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5792 whose name does not start with the host triplet. If you think this
5793 configuration is useful to you, please write to [email protected]." >&5
5794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5795 whose name does not start with the host triplet. If you think this
5796 configuration is useful to you, please write to [email protected]." >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799 DSYMUTIL=$ac_ct_DSYMUTIL
5800 fi
5801 else
5802 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5803 fi
5804
5805 if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 if test -n "$NMEDIT"; then
5814 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831 fi
5832 fi
5833 NMEDIT=$ac_cv_prog_NMEDIT
5834 if test -n "$NMEDIT"; then
5835 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5836 echo "${ECHO_T}$NMEDIT" >&6; }
5837 else
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5840 fi
5841
5842
5843 fi
5844 if test -z "$ac_cv_prog_NMEDIT"; then
5845 ac_ct_NMEDIT=$NMEDIT
5846 # Extract the first word of "nmedit", so it can be a program name with args.
5847 set dummy nmedit; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 if test -n "$ac_ct_NMEDIT"; then
5854 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5874 if test -n "$ac_ct_NMEDIT"; then
5875 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5876 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5877 else
5878 { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5880 fi
5881
5882 if test "x$ac_ct_NMEDIT" = x; then
5883 NMEDIT=":"
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886 yes:)
5887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5888 whose name does not start with the host triplet. If you think this
5889 configuration is useful to you, please write to [email protected]." >&5
5890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5891 whose name does not start with the host triplet. If you think this
5892 configuration is useful to you, please write to [email protected]." >&2;}
5893 ac_tool_warned=yes ;;
5894 esac
5895 NMEDIT=$ac_ct_NMEDIT
5896 fi
5897 else
5898 NMEDIT="$ac_cv_prog_NMEDIT"
5899 fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_prog_LIPO+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 if test -n "$LIPO"; then
5910 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 LIPO=$ac_cv_prog_LIPO
5930 if test -n "$LIPO"; then
5931 { echo "$as_me:$LINENO: result: $LIPO" >&5
5932 echo "${ECHO_T}$LIPO" >&6; }
5933 else
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5937
5938
5939 fi
5940 if test -z "$ac_cv_prog_LIPO"; then
5941 ac_ct_LIPO=$LIPO
5942 # Extract the first word of "lipo", so it can be a program name with args.
5943 set dummy lipo; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 if test -n "$ac_ct_LIPO"; then
5950 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_LIPO="lipo"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5970 if test -n "$ac_ct_LIPO"; then
5971 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5972 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5973 else
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5976 fi
5977
5978 if test "x$ac_ct_LIPO" = x; then
5979 LIPO=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5984 whose name does not start with the host triplet. If you think this
5985 configuration is useful to you, please write to [email protected]." >&5
5986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet. If you think this
5988 configuration is useful to you, please write to [email protected]." >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991 LIPO=$ac_ct_LIPO
5992 fi
5993 else
5994 LIPO="$ac_cv_prog_LIPO"
5995 fi
5996
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}otool; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_OTOOL+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 if test -n "$OTOOL"; then
6006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 OTOOL=$ac_cv_prog_OTOOL
6026 if test -n "$OTOOL"; then
6027 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6028 echo "${ECHO_T}$OTOOL" >&6; }
6029 else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_OTOOL"; then
6037 ac_ct_OTOOL=$OTOOL
6038 # Extract the first word of "otool", so it can be a program name with args.
6039 set dummy otool; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 if test -n "$ac_ct_OTOOL"; then
6046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_OTOOL="otool"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6066 if test -n "$ac_ct_OTOOL"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6068 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6069 else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6072 fi
6073
6074 if test "x$ac_ct_OTOOL" = x; then
6075 OTOOL=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to [email protected]." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to [email protected]." >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 OTOOL=$ac_ct_OTOOL
6088 fi
6089 else
6090 OTOOL="$ac_cv_prog_OTOOL"
6091 fi
6092
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 if test -n "$OTOOL64"; then
6102 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 OTOOL64=$ac_cv_prog_OTOOL64
6122 if test -n "$OTOOL64"; then
6123 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6124 echo "${ECHO_T}$OTOOL64" >&6; }
6125 else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_OTOOL64"; then
6133 ac_ct_OTOOL64=$OTOOL64
6134 # Extract the first word of "otool64", so it can be a program name with args.
6135 set dummy otool64; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 if test -n "$ac_ct_OTOOL64"; then
6142 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_OTOOL64="otool64"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6162 if test -n "$ac_ct_OTOOL64"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6164 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6165 else
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170 if test "x$ac_ct_OTOOL64" = x; then
6171 OTOOL64=":"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet. If you think this
6177 configuration is useful to you, please write to [email protected]." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to [email protected]." >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 OTOOL64=$ac_ct_OTOOL64
6184 fi
6185 else
6186 OTOOL64="$ac_cv_prog_OTOOL64"
6187 fi
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6216 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6217 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 lt_cv_apple_cc_single_mod=no
6221 if test -z "${LT_MULTI_MODULE}"; then
6222 # By default we will add the -single_module flag. You can override
6223 # by either setting the environment variable LT_MULTI_MODULE
6224 # non-empty at configure time, or by adding -multi_module to the
6225 # link flags.
6226 rm -rf libconftest.dylib*
6227 echo "int foo(void){return 1;}" > conftest.c
6228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6229 -dynamiclib -Wl,-single_module conftest.c" >&5
6230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6232 _lt_result=$?
6233 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6234 lt_cv_apple_cc_single_mod=yes
6235 else
6236 cat conftest.err >&5
6237 fi
6238 rm -rf libconftest.dylib*
6239 rm -f conftest.*
6240 fi
6241 fi
6242 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6243 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6244 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6245 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6246 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 lt_cv_ld_exported_symbols_list=no
6250 save_LDFLAGS=$LDFLAGS
6251 echo "_main" > conftest.sym
6252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259
6260 int
6261 main ()
6262 {
6263
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (ac_try="$ac_link"
6270 case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273 esac
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_link") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && {
6282 test -z "$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest$ac_exeext &&
6285 $as_test_x conftest$ac_exeext; then
6286 lt_cv_ld_exported_symbols_list=yes
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 lt_cv_ld_exported_symbols_list=no
6292 fi
6293
6294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6295 conftest$ac_exeext conftest.$ac_ext
6296 LDFLAGS="$save_LDFLAGS"
6297
6298 fi
6299 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6300 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6301 case $host_os in
6302 rhapsody* | darwin1.[012])
6303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6304 darwin1.*)
6305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6306 darwin*) # darwin 5.x on
6307 # if running on 10.5 or later, the deployment target defaults
6308 # to the OS version, if on x86, and 10.4, the deployment
6309 # target defaults to 10.4. Don't you love it?
6310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6313 10.[012]*)
6314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6315 10.*)
6316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6317 esac
6318 ;;
6319 esac
6320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6321 _lt_dar_single_mod='$single_module'
6322 fi
6323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6325 else
6326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6327 fi
6328 if test "$DSYMUTIL" != ":"; then
6329 _lt_dsymutil='~$DSYMUTIL $lib || :'
6330 else
6331 _lt_dsymutil=
6332 fi
6333 ;;
6334 esac
6335
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6342 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6343 # On Suns, sometimes $CPP names a directory.
6344 if test -n "$CPP" && test -d "$CPP"; then
6345 CPP=
6346 fi
6347 if test -z "$CPP"; then
6348 if test "${ac_cv_prog_CPP+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 # Double quotes because CPP needs to be expanded
6352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6353 do
6354 ac_preproc_ok=false
6355 for ac_c_preproc_warn_flag in '' yes
6356 do
6357 # Use a header file that comes with gcc, so configuring glibc
6358 # with a fresh cross-compiler works.
6359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6360 # <limits.h> exists even on freestanding compilers.
6361 # On the NeXT, cc -E runs the code through the compiler's parser,
6362 # not just through cpp. "Syntax error" is here to catch this case.
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #ifdef __STDC__
6370 # include <limits.h>
6371 #else
6372 # include <assert.h>
6373 #endif
6374 Syntax error
6375 _ACEOF
6376 if { (ac_try="$ac_cpp conftest.$ac_ext"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } >/dev/null && {
6389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 }; then
6392 :
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 # Broken: fails on valid input.
6398 continue
6399 fi
6400
6401 rm -f conftest.err conftest.$ac_ext
6402
6403 # OK, works on sane cases. Now check whether nonexistent headers
6404 # can be detected and how.
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <ac_nonexistent.h>
6412 _ACEOF
6413 if { (ac_try="$ac_cpp conftest.$ac_ext"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev/null && {
6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 }; then
6429 # Broken: success on invalid input.
6430 continue
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 # Passes both tests.
6436 ac_preproc_ok=:
6437 break
6438 fi
6439
6440 rm -f conftest.err conftest.$ac_ext
6441
6442 done
6443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6444 rm -f conftest.err conftest.$ac_ext
6445 if $ac_preproc_ok; then
6446 break
6447 fi
6448
6449 done
6450 ac_cv_prog_CPP=$CPP
6451
6452 fi
6453 CPP=$ac_cv_prog_CPP
6454 else
6455 ac_cv_prog_CPP=$CPP
6456 fi
6457 { echo "$as_me:$LINENO: result: $CPP" >&5
6458 echo "${ECHO_T}$CPP" >&6; }
6459 ac_preproc_ok=false
6460 for ac_c_preproc_warn_flag in '' yes
6461 do
6462 # Use a header file that comes with gcc, so configuring glibc
6463 # with a fresh cross-compiler works.
6464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6465 # <limits.h> exists even on freestanding compilers.
6466 # On the NeXT, cc -E runs the code through the compiler's parser,
6467 # not just through cpp. "Syntax error" is here to catch this case.
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 #ifdef __STDC__
6475 # include <limits.h>
6476 #else
6477 # include <assert.h>
6478 #endif
6479 Syntax error
6480 _ACEOF
6481 if { (ac_try="$ac_cpp conftest.$ac_ext"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } >/dev/null && {
6494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 }; then
6497 :
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 # Broken: fails on valid input.
6503 continue
6504 fi
6505
6506 rm -f conftest.err conftest.$ac_ext
6507
6508 # OK, works on sane cases. Now check whether nonexistent headers
6509 # can be detected and how.
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <ac_nonexistent.h>
6517 _ACEOF
6518 if { (ac_try="$ac_cpp conftest.$ac_ext"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null && {
6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 }; then
6534 # Broken: success on invalid input.
6535 continue
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 # Passes both tests.
6541 ac_preproc_ok=:
6542 break
6543 fi
6544
6545 rm -f conftest.err conftest.$ac_ext
6546
6547 done
6548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6549 rm -f conftest.err conftest.$ac_ext
6550 if $ac_preproc_ok; then
6551 :
6552 else
6553 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6554 See \`config.log' for more details." >&5
6555 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6556 See \`config.log' for more details." >&2;}
6557 { (exit 1); exit 1; }; }
6558 fi
6559
6560 ac_ext=c
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565
6566
6567 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6569 if test "${ac_cv_header_stdc+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 #include <stdlib.h>
6579 #include <stdarg.h>
6580 #include <string.h>
6581 #include <float.h>
6582
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6608 ac_cv_header_stdc=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_cv_header_stdc=no
6614 fi
6615
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617
6618 if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <string.h>
6627
6628 _ACEOF
6629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "memchr" >/dev/null 2>&1; then
6631 :
6632 else
6633 ac_cv_header_stdc=no
6634 fi
6635 rm -f conftest*
6636
6637 fi
6638
6639 if test $ac_cv_header_stdc = yes; then
6640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <stdlib.h>
6648
6649 _ACEOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "free" >/dev/null 2>&1; then
6652 :
6653 else
6654 ac_cv_header_stdc=no
6655 fi
6656 rm -f conftest*
6657
6658 fi
6659
6660 if test $ac_cv_header_stdc = yes; then
6661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662 if test "$cross_compiling" = yes; then
6663 :
6664 else
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 #include <ctype.h>
6672 #include <stdlib.h>
6673 #if ((' ' & 0x0FF) == 0x020)
6674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6676 #else
6677 # define ISLOWER(c) \
6678 (('a' <= (c) && (c) <= 'i') \
6679 || ('j' <= (c) && (c) <= 'r') \
6680 || ('s' <= (c) && (c) <= 'z'))
6681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6682 #endif
6683
6684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6685 int
6686 main ()
6687 {
6688 int i;
6689 for (i = 0; i < 256; i++)
6690 if (XOR (islower (i), ISLOWER (i))
6691 || toupper (i) != TOUPPER (i))
6692 return 2;
6693 return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest$ac_exeext
6697 if { (ac_try="$ac_link"
6698 case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701 esac
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_link") 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6707 { (case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_try") 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 :
6717 else
6718 echo "$as_me: program exited with status $ac_status" >&5
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 ( exit $ac_status )
6723 ac_cv_header_stdc=no
6724 fi
6725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6726 fi
6727
6728
6729 fi
6730 fi
6731 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6732 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6733 if test $ac_cv_header_stdc = yes; then
6734
6735 cat >>confdefs.h <<\_ACEOF
6736 #define STDC_HEADERS 1
6737 _ACEOF
6738
6739 fi
6740
6741 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6752 inttypes.h stdint.h unistd.h
6753 do
6754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 $ac_includes_default
6767
6768 #include <$ac_header>
6769 _ACEOF
6770 rm -f conftest.$ac_objext
6771 if { (ac_try="$ac_compile"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 eval "$as_ac_Header=yes"
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 eval "$as_ac_Header=no"
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 ac_res=`eval echo '${'$as_ac_Header'}'`
6798 { echo "$as_me:$LINENO: result: $ac_res" >&5
6799 echo "${ECHO_T}$ac_res" >&6; }
6800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6801 cat >>confdefs.h <<_ACEOF
6802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6803 _ACEOF
6804
6805 fi
6806
6807 done
6808
6809
6810
6811 for ac_header in dlfcn.h
6812 do
6813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 $ac_includes_default
6826
6827 #include <$ac_header>
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6831 case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834 esac
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 eval "$as_ac_Header=yes"
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 eval "$as_ac_Header=no"
6852 fi
6853
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 ac_res=`eval echo '${'$as_ac_Header'}'`
6857 { echo "$as_me:$LINENO: result: $ac_res" >&5
6858 echo "${ECHO_T}$ac_res" >&6; }
6859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6860 cat >>confdefs.h <<_ACEOF
6861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6862 _ACEOF
6863
6864 fi
6865
6866 done
6867
6868
6869
6870 # Set options
6871 enable_dlopen=yes
6872 enable_win32_dll=yes
6873
6874 case $host in
6875 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6876 if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}as; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_prog_AS+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 if test -n "$AS"; then
6885 ac_cv_prog_AS="$AS" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_prog_AS="${ac_tool_prefix}as"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 AS=$ac_cv_prog_AS
6905 if test -n "$AS"; then
6906 { echo "$as_me:$LINENO: result: $AS" >&5
6907 echo "${ECHO_T}$AS" >&6; }
6908 else
6909 { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_AS"; then
6916 ac_ct_AS=$AS
6917 # Extract the first word of "as", so it can be a program name with args.
6918 set dummy as; ac_word=$2
6919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6921 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 if test -n "$ac_ct_AS"; then
6925 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_prog_ac_ct_AS="as"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6945 if test -n "$ac_ct_AS"; then
6946 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6947 echo "${ECHO_T}$ac_ct_AS" >&6; }
6948 else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953 if test "x$ac_ct_AS" = x; then
6954 AS="false"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6959 whose name does not start with the host triplet. If you think this
6960 configuration is useful to you, please write to [email protected]." >&5
6961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6962 whose name does not start with the host triplet. If you think this
6963 configuration is useful to you, please write to [email protected]." >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966 AS=$ac_ct_AS
6967 fi
6968 else
6969 AS="$ac_cv_prog_AS"
6970 fi
6971
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 if test -n "$DLLTOOL"; then
6981 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 DLLTOOL=$ac_cv_prog_DLLTOOL
7001 if test -n "$DLLTOOL"; then
7002 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7003 echo "${ECHO_T}$DLLTOOL" >&6; }
7004 else
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_DLLTOOL"; then
7012 ac_ct_DLLTOOL=$DLLTOOL
7013 # Extract the first word of "dlltool", so it can be a program name with args.
7014 set dummy dlltool; ac_word=$2
7015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 if test -n "$ac_ct_DLLTOOL"; then
7021 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7041 if test -n "$ac_ct_DLLTOOL"; then
7042 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7043 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7044 else
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049 if test "x$ac_ct_DLLTOOL" = x; then
7050 DLLTOOL="false"
7051 else
7052 case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7055 whose name does not start with the host triplet. If you think this
7056 configuration is useful to you, please write to [email protected]." >&5
7057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7058 whose name does not start with the host triplet. If you think this
7059 configuration is useful to you, please write to [email protected]." >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062 DLLTOOL=$ac_ct_DLLTOOL
7063 fi
7064 else
7065 DLLTOOL="$ac_cv_prog_DLLTOOL"
7066 fi
7067
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 if test -n "$OBJDUMP"; then
7077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 OBJDUMP=$ac_cv_prog_OBJDUMP
7097 if test -n "$OBJDUMP"; then
7098 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7099 echo "${ECHO_T}$OBJDUMP" >&6; }
7100 else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_OBJDUMP"; then
7108 ac_ct_OBJDUMP=$OBJDUMP
7109 # Extract the first word of "objdump", so it can be a program name with args.
7110 set dummy objdump; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 if test -n "$ac_ct_OBJDUMP"; then
7117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7137 if test -n "$ac_ct_OBJDUMP"; then
7138 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7139 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7140 else
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7143 fi
7144
7145 if test "x$ac_ct_OBJDUMP" = x; then
7146 OBJDUMP="false"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7151 whose name does not start with the host triplet. If you think this
7152 configuration is useful to you, please write to [email protected]." >&5
7153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7154 whose name does not start with the host triplet. If you think this
7155 configuration is useful to you, please write to [email protected]." >&2;}
7156 ac_tool_warned=yes ;;
7157 esac
7158 OBJDUMP=$ac_ct_OBJDUMP
7159 fi
7160 else
7161 OBJDUMP="$ac_cv_prog_OBJDUMP"
7162 fi
7163
7164 ;;
7165 esac
7166
7167 test -z "$AS" && AS=as
7168
7169
7170
7171
7172
7173 test -z "$DLLTOOL" && DLLTOOL=dlltool
7174
7175
7176
7177
7178
7179 test -z "$OBJDUMP" && OBJDUMP=objdump
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189 # Check whether --enable-shared was given.
7190 if test "${enable_shared+set}" = set; then
7191 enableval=$enable_shared; p=${PACKAGE-default}
7192 case $enableval in
7193 yes) enable_shared=yes ;;
7194 no) enable_shared=no ;;
7195 *)
7196 enable_shared=no
7197 # Look at the argument we got. We use all the common list separators.
7198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7199 for pkg in $enableval; do
7200 IFS="$lt_save_ifs"
7201 if test "X$pkg" = "X$p"; then
7202 enable_shared=yes
7203 fi
7204 done
7205 IFS="$lt_save_ifs"
7206 ;;
7207 esac
7208 else
7209 enable_shared=yes
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 # Check whether --enable-static was given.
7221 if test "${enable_static+set}" = set; then
7222 enableval=$enable_static; p=${PACKAGE-default}
7223 case $enableval in
7224 yes) enable_static=yes ;;
7225 no) enable_static=no ;;
7226 *)
7227 enable_static=no
7228 # Look at the argument we got. We use all the common list separators.
7229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7230 for pkg in $enableval; do
7231 IFS="$lt_save_ifs"
7232 if test "X$pkg" = "X$p"; then
7233 enable_static=yes
7234 fi
7235 done
7236 IFS="$lt_save_ifs"
7237 ;;
7238 esac
7239 else
7240 enable_static=yes
7241 fi
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252 # Check whether --with-pic was given.
7253 if test "${with_pic+set}" = set; then
7254 withval=$with_pic; pic_mode="$withval"
7255 else
7256 pic_mode=default
7257 fi
7258
7259
7260 test -z "$pic_mode" && pic_mode=default
7261
7262
7263
7264
7265
7266
7267
7268 # Check whether --enable-fast-install was given.
7269 if test "${enable_fast_install+set}" = set; then
7270 enableval=$enable_fast_install; p=${PACKAGE-default}
7271 case $enableval in
7272 yes) enable_fast_install=yes ;;
7273 no) enable_fast_install=no ;;
7274 *)
7275 enable_fast_install=no
7276 # Look at the argument we got. We use all the common list separators.
7277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7278 for pkg in $enableval; do
7279 IFS="$lt_save_ifs"
7280 if test "X$pkg" = "X$p"; then
7281 enable_fast_install=yes
7282 fi
7283 done
7284 IFS="$lt_save_ifs"
7285 ;;
7286 esac
7287 else
7288 enable_fast_install=yes
7289 fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 # This can be used to rebuild libtool when needed
7302 LIBTOOL_DEPS="$ltmain"
7303
7304 # Always use our own libtool.
7305 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 test -z "$LN_S" && LN_S="ln -s"
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 if test -n "${ZSH_VERSION+set}" ; then
7347 setopt NO_GLOB_SUBST
7348 fi
7349
7350 { echo "$as_me:$LINENO: checking for objdir" >&5
7351 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7352 if test "${lt_cv_objdir+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 rm -f .libs 2>/dev/null
7356 mkdir .libs 2>/dev/null
7357 if test -d .libs; then
7358 lt_cv_objdir=.libs
7359 else
7360 # MS-DOS does not allow filenames that begin with a dot.
7361 lt_cv_objdir=_libs
7362 fi
7363 rmdir .libs 2>/dev/null
7364 fi
7365 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7366 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7367 objdir=$lt_cv_objdir
7368
7369
7370
7371
7372
7373 cat >>confdefs.h <<_ACEOF
7374 #define LT_OBJDIR "$lt_cv_objdir/"
7375 _ACEOF
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 case $host_os in
7394 aix3*)
7395 # AIX sometimes has problems with the GCC collect2 program. For some
7396 # reason, if we set the COLLECT_NAMES environment variable, the problems
7397 # vanish in a puff of smoke.
7398 if test "X${COLLECT_NAMES+set}" != Xset; then
7399 COLLECT_NAMES=
7400 export COLLECT_NAMES
7401 fi
7402 ;;
7403 esac
7404
7405 # Sed substitution that helps us do robust quoting. It backslashifies
7406 # metacharacters that are still active within double-quoted strings.
7407 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7408
7409 # Same as above, but do not quote variable references.
7410 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7411
7412 # Sed substitution to delay expansion of an escaped shell variable in a
7413 # double_quote_subst'ed string.
7414 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7415
7416 # Sed substitution to delay expansion of an escaped single quote.
7417 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7418
7419 # Sed substitution to avoid accidental globbing in evaled expressions
7420 no_glob_subst='s/\*/\\\*/g'
7421
7422 # Global variables:
7423 ofile=libtool
7424 can_build_shared=yes
7425
7426 # All known linkers require a `.a' archive for static linking (except MSVC,
7427 # which needs '.lib').
7428 libext=a
7429
7430 with_gnu_ld="$lt_cv_prog_gnu_ld"
7431
7432 old_CC="$CC"
7433 old_CFLAGS="$CFLAGS"
7434
7435 # Set sane defaults for various variables
7436 test -z "$CC" && CC=cc
7437 test -z "$LTCC" && LTCC=$CC
7438 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7439 test -z "$LD" && LD=ld
7440 test -z "$ac_objext" && ac_objext=o
7441
7442 for cc_temp in $compiler""; do
7443 case $cc_temp in
7444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7446 \-*) ;;
7447 *) break;;
7448 esac
7449 done
7450 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7451
7452
7453 # Only perform the check for file, if the check method requires it
7454 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7455 case $deplibs_check_method in
7456 file_magic*)
7457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7458 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7459 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7460 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 case $MAGIC_CMD in
7464 [\\/*] | ?:[\\/]*)
7465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7466 ;;
7467 *)
7468 lt_save_MAGIC_CMD="$MAGIC_CMD"
7469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7471 for ac_dir in $ac_dummy; do
7472 IFS="$lt_save_ifs"
7473 test -z "$ac_dir" && ac_dir=.
7474 if test -f $ac_dir/${ac_tool_prefix}file; then
7475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7476 if test -n "$file_magic_test_file"; then
7477 case $deplibs_check_method in
7478 "file_magic "*)
7479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7482 $EGREP "$file_magic_regex" > /dev/null; then
7483 :
7484 else
7485 cat <<_LT_EOF 1>&2
7486
7487 *** Warning: the command libtool uses to detect shared libraries,
7488 *** $file_magic_cmd, produces output that libtool cannot recognize.
7489 *** The result is that libtool may fail to recognize shared libraries
7490 *** as such. This will affect the creation of libtool libraries that
7491 *** depend on shared libraries, but programs linked with such libtool
7492 *** libraries will work regardless of this problem. Nevertheless, you
7493 *** may want to report the problem to your system manager and/or to
7494 *** [email protected]
7495
7496 _LT_EOF
7497 fi ;;
7498 esac
7499 fi
7500 break
7501 fi
7502 done
7503 IFS="$lt_save_ifs"
7504 MAGIC_CMD="$lt_save_MAGIC_CMD"
7505 ;;
7506 esac
7507 fi
7508
7509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7510 if test -n "$MAGIC_CMD"; then
7511 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7512 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7513 else
7514 { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7516 fi
7517
7518
7519
7520
7521
7522 if test -z "$lt_cv_path_MAGIC_CMD"; then
7523 if test -n "$ac_tool_prefix"; then
7524 { echo "$as_me:$LINENO: checking for file" >&5
7525 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 case $MAGIC_CMD in
7530 [\\/*] | ?:[\\/]*)
7531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 lt_save_MAGIC_CMD="$MAGIC_CMD"
7535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7537 for ac_dir in $ac_dummy; do
7538 IFS="$lt_save_ifs"
7539 test -z "$ac_dir" && ac_dir=.
7540 if test -f $ac_dir/file; then
7541 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7542 if test -n "$file_magic_test_file"; then
7543 case $deplibs_check_method in
7544 "file_magic "*)
7545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7548 $EGREP "$file_magic_regex" > /dev/null; then
7549 :
7550 else
7551 cat <<_LT_EOF 1>&2
7552
7553 *** Warning: the command libtool uses to detect shared libraries,
7554 *** $file_magic_cmd, produces output that libtool cannot recognize.
7555 *** The result is that libtool may fail to recognize shared libraries
7556 *** as such. This will affect the creation of libtool libraries that
7557 *** depend on shared libraries, but programs linked with such libtool
7558 *** libraries will work regardless of this problem. Nevertheless, you
7559 *** may want to report the problem to your system manager and/or to
7560 *** [email protected]
7561
7562 _LT_EOF
7563 fi ;;
7564 esac
7565 fi
7566 break
7567 fi
7568 done
7569 IFS="$lt_save_ifs"
7570 MAGIC_CMD="$lt_save_MAGIC_CMD"
7571 ;;
7572 esac
7573 fi
7574
7575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576 if test -n "$MAGIC_CMD"; then
7577 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7578 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7579 else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 else
7586 MAGIC_CMD=:
7587 fi
7588 fi
7589
7590 fi
7591 ;;
7592 esac
7593
7594 # Use C for the default configuration in the libtool script
7595
7596 lt_save_CC="$CC"
7597 ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603
7604 # Source file extension for C test sources.
7605 ac_ext=c
7606
7607 # Object file extension for compiled C test sources.
7608 objext=o
7609 objext=$objext
7610
7611 # Code to be used in simple compile tests
7612 lt_simple_compile_test_code="int some_variable = 0;"
7613
7614 # Code to be used in simple link tests
7615 lt_simple_link_test_code='int main(){return(0);}'
7616
7617
7618
7619
7620
7621
7622
7623 # If no C compiler was specified, use CC.
7624 LTCC=${LTCC-"$CC"}
7625
7626 # If no C compiler flags were specified, use CFLAGS.
7627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7628
7629 # Allow CC to be a program name with arguments.
7630 compiler=$CC
7631
7632 # Save the default compiler, since it gets overwritten when the other
7633 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7634 compiler_DEFAULT=$CC
7635
7636 # save warnings/boilerplate of simple test code
7637 ac_outfile=conftest.$ac_objext
7638 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7640 _lt_compiler_boilerplate=`cat conftest.err`
7641 $RM conftest*
7642
7643 ac_outfile=conftest.$ac_objext
7644 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7646 _lt_linker_boilerplate=`cat conftest.err`
7647 $RM -r conftest*
7648
7649
7650 ## CAVEAT EMPTOR:
7651 ## There is no encapsulation within the following macros, do not change
7652 ## the running order or otherwise move them around unless you know exactly
7653 ## what you are doing...
7654 if test -n "$compiler"; then
7655
7656 lt_prog_compiler_no_builtin_flag=
7657
7658 if test "$GCC" = yes; then
7659 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7660
7661 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7662 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7663 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 lt_cv_prog_compiler_rtti_exceptions=no
7667 ac_outfile=conftest.$ac_objext
7668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7669 lt_compiler_flag="-fno-rtti -fno-exceptions"
7670 # Insert the option either (1) after the last *FLAGS variable, or
7671 # (2) before a word containing "conftest.", or (3) at the end.
7672 # Note that $ac_compile itself does not contain backslashes and begins
7673 # with a dollar sign (not a hyphen), so the echo should work correctly.
7674 # The option is referenced via a variable to avoid confusing sed.
7675 lt_compile=`echo "$ac_compile" | $SED \
7676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7678 -e 's:$: $lt_compiler_flag:'`
7679 (eval echo "\"\$as_me:7679: $lt_compile\"" >&5)
7680 (eval "$lt_compile" 2>conftest.err)
7681 ac_status=$?
7682 cat conftest.err >&5
7683 echo "$as_me:7683: \$? = $ac_status" >&5
7684 if (exit $ac_status) && test -s "$ac_outfile"; then
7685 # The compiler can only warn and ignore the option if not recognized
7686 # So say no if there are warnings other than the usual output.
7687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7690 lt_cv_prog_compiler_rtti_exceptions=yes
7691 fi
7692 fi
7693 $RM conftest*
7694
7695 fi
7696 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7697 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7698
7699 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7701 else
7702 :
7703 fi
7704
7705 fi
7706
7707
7708
7709
7710
7711
7712 lt_prog_compiler_wl=
7713 lt_prog_compiler_pic=
7714 lt_prog_compiler_static=
7715
7716 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7718
7719 if test "$GCC" = yes; then
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_static='-static'
7722
7723 case $host_os in
7724 aix*)
7725 # All AIX code is PIC.
7726 if test "$host_cpu" = ia64; then
7727 # AIX 5 now supports IA64 processor
7728 lt_prog_compiler_static='-Bstatic'
7729 fi
7730 ;;
7731
7732 amigaos*)
7733 case $host_cpu in
7734 powerpc)
7735 # see comment about AmigaOS4 .so support
7736 lt_prog_compiler_pic='-fPIC'
7737 ;;
7738 m68k)
7739 # FIXME: we need at least 68020 code to build shared libraries, but
7740 # adding the `-m68020' flag to GCC prevents building anything better,
7741 # like `-m68040'.
7742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7743 ;;
7744 esac
7745 ;;
7746
7747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7748 # PIC is the default for these OSes.
7749 ;;
7750
7751 mingw* | cygwin* | pw32* | os2* | cegcc*)
7752 # This hack is so that the source file can tell whether it is being
7753 # built for inclusion in a dll (and should export symbols for example).
7754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7755 # (--disable-auto-import) libraries
7756 lt_prog_compiler_pic='-DDLL_EXPORT'
7757 ;;
7758
7759 darwin* | rhapsody*)
7760 # PIC is the default on this platform
7761 # Common symbols not allowed in MH_DYLIB files
7762 lt_prog_compiler_pic='-fno-common'
7763 ;;
7764
7765 hpux*)
7766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7768 # sets the default TLS model and affects inlining.
7769 case $host_cpu in
7770 hppa*64*)
7771 # +Z the default
7772 ;;
7773 *)
7774 lt_prog_compiler_pic='-fPIC'
7775 ;;
7776 esac
7777 ;;
7778
7779 interix[3-9]*)
7780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7781 # Instead, we relocate shared libraries at runtime.
7782 ;;
7783
7784 msdosdjgpp*)
7785 # Just because we use GCC doesn't mean we suddenly get shared libraries
7786 # on systems that don't support them.
7787 lt_prog_compiler_can_build_shared=no
7788 enable_shared=no
7789 ;;
7790
7791 *nto* | *qnx*)
7792 # QNX uses GNU C++, but need to define -shared option too, otherwise
7793 # it will coredump.
7794 lt_prog_compiler_pic='-fPIC -shared'
7795 ;;
7796
7797 sysv4*MP*)
7798 if test -d /usr/nec; then
7799 lt_prog_compiler_pic=-Kconform_pic
7800 fi
7801 ;;
7802
7803 *)
7804 lt_prog_compiler_pic='-fPIC'
7805 ;;
7806 esac
7807 else
7808 # PORTME Check for flag to pass linker flags through the system compiler.
7809 case $host_os in
7810 aix*)
7811 lt_prog_compiler_wl='-Wl,'
7812 if test "$host_cpu" = ia64; then
7813 # AIX 5 now supports IA64 processor
7814 lt_prog_compiler_static='-Bstatic'
7815 else
7816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7817 fi
7818 ;;
7819
7820 mingw* | cygwin* | pw32* | os2* | cegcc*)
7821 # This hack is so that the source file can tell whether it is being
7822 # built for inclusion in a dll (and should export symbols for example).
7823 lt_prog_compiler_pic='-DDLL_EXPORT'
7824 ;;
7825
7826 hpux9* | hpux10* | hpux11*)
7827 lt_prog_compiler_wl='-Wl,'
7828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7829 # not for PA HP-UX.
7830 case $host_cpu in
7831 hppa*64*|ia64*)
7832 # +Z the default
7833 ;;
7834 *)
7835 lt_prog_compiler_pic='+Z'
7836 ;;
7837 esac
7838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7839 lt_prog_compiler_static='${wl}-a ${wl}archive'
7840 ;;
7841
7842 irix5* | irix6* | nonstopux*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC (with -KPIC) is the default.
7845 lt_prog_compiler_static='-non_shared'
7846 ;;
7847
7848 linux* | k*bsd*-gnu)
7849 case $cc_basename in
7850 # old Intel for x86_64 which still supported -KPIC.
7851 ecc*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-KPIC'
7854 lt_prog_compiler_static='-static'
7855 ;;
7856 # icc used to be incompatible with GCC.
7857 # ICC 10 doesn't accept -KPIC any more.
7858 icc* | ifort*)
7859 lt_prog_compiler_wl='-Wl,'
7860 lt_prog_compiler_pic='-fPIC'
7861 lt_prog_compiler_static='-static'
7862 ;;
7863 # Lahey Fortran 8.1.
7864 lf95*)
7865 lt_prog_compiler_wl='-Wl,'
7866 lt_prog_compiler_pic='--shared'
7867 lt_prog_compiler_static='--static'
7868 ;;
7869 pgcc* | pgf77* | pgf90* | pgf95*)
7870 # Portland Group compilers (*not* the Pentium gcc compiler,
7871 # which looks to be a dead project)
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_pic='-fpic'
7874 lt_prog_compiler_static='-Bstatic'
7875 ;;
7876 ccc*)
7877 lt_prog_compiler_wl='-Wl,'
7878 # All Alpha code is PIC.
7879 lt_prog_compiler_static='-non_shared'
7880 ;;
7881 xl*)
7882 # IBM XL C 8.0/Fortran 10.1 on PPC
7883 lt_prog_compiler_wl='-Wl,'
7884 lt_prog_compiler_pic='-qpic'
7885 lt_prog_compiler_static='-qstaticlink'
7886 ;;
7887 *)
7888 case `$CC -V 2>&1 | sed 5q` in
7889 *Sun\ C*)
7890 # Sun C 5.9
7891 lt_prog_compiler_pic='-KPIC'
7892 lt_prog_compiler_static='-Bstatic'
7893 lt_prog_compiler_wl='-Wl,'
7894 ;;
7895 *Sun\ F*)
7896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7897 lt_prog_compiler_pic='-KPIC'
7898 lt_prog_compiler_static='-Bstatic'
7899 lt_prog_compiler_wl=''
7900 ;;
7901 esac
7902 ;;
7903 esac
7904 ;;
7905
7906 newsos6)
7907 lt_prog_compiler_pic='-KPIC'
7908 lt_prog_compiler_static='-Bstatic'
7909 ;;
7910
7911 *nto* | *qnx*)
7912 # QNX uses GNU C++, but need to define -shared option too, otherwise
7913 # it will coredump.
7914 lt_prog_compiler_pic='-fPIC -shared'
7915 ;;
7916
7917 osf3* | osf4* | osf5*)
7918 lt_prog_compiler_wl='-Wl,'
7919 # All OSF/1 code is PIC.
7920 lt_prog_compiler_static='-non_shared'
7921 ;;
7922
7923 rdos*)
7924 lt_prog_compiler_static='-non_shared'
7925 ;;
7926
7927 solaris*)
7928 lt_prog_compiler_pic='-KPIC'
7929 lt_prog_compiler_static='-Bstatic'
7930 case $cc_basename in
7931 f77* | f90* | f95*)
7932 lt_prog_compiler_wl='-Qoption ld ';;
7933 *)
7934 lt_prog_compiler_wl='-Wl,';;
7935 esac
7936 ;;
7937
7938 sunos4*)
7939 lt_prog_compiler_wl='-Qoption ld '
7940 lt_prog_compiler_pic='-PIC'
7941 lt_prog_compiler_static='-Bstatic'
7942 ;;
7943
7944 sysv4 | sysv4.2uw2* | sysv4.3*)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-KPIC'
7947 lt_prog_compiler_static='-Bstatic'
7948 ;;
7949
7950 sysv4*MP*)
7951 if test -d /usr/nec ;then
7952 lt_prog_compiler_pic='-Kconform_pic'
7953 lt_prog_compiler_static='-Bstatic'
7954 fi
7955 ;;
7956
7957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-Bstatic'
7961 ;;
7962
7963 unicos*)
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_can_build_shared=no
7966 ;;
7967
7968 uts4*)
7969 lt_prog_compiler_pic='-pic'
7970 lt_prog_compiler_static='-Bstatic'
7971 ;;
7972
7973 *)
7974 lt_prog_compiler_can_build_shared=no
7975 ;;
7976 esac
7977 fi
7978
7979 case $host_os in
7980 # For platforms which do not support PIC, -DPIC is meaningless:
7981 *djgpp*)
7982 lt_prog_compiler_pic=
7983 ;;
7984 *)
7985 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7986 ;;
7987 esac
7988 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7989 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7990
7991
7992
7993
7994
7995
7996 #
7997 # Check to make sure the PIC flag actually works.
7998 #
7999 if test -n "$lt_prog_compiler_pic"; then
8000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8002 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005 lt_cv_prog_compiler_pic_works=no
8006 ac_outfile=conftest.$ac_objext
8007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8008 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8009 # Insert the option either (1) after the last *FLAGS variable, or
8010 # (2) before a word containing "conftest.", or (3) at the end.
8011 # Note that $ac_compile itself does not contain backslashes and begins
8012 # with a dollar sign (not a hyphen), so the echo should work correctly.
8013 # The option is referenced via a variable to avoid confusing sed.
8014 lt_compile=`echo "$ac_compile" | $SED \
8015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8017 -e 's:$: $lt_compiler_flag:'`
8018 (eval echo "\"\$as_me:8018: $lt_compile\"" >&5)
8019 (eval "$lt_compile" 2>conftest.err)
8020 ac_status=$?
8021 cat conftest.err >&5
8022 echo "$as_me:8022: \$? = $ac_status" >&5
8023 if (exit $ac_status) && test -s "$ac_outfile"; then
8024 # The compiler can only warn and ignore the option if not recognized
8025 # So say no if there are warnings other than the usual output.
8026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8029 lt_cv_prog_compiler_pic_works=yes
8030 fi
8031 fi
8032 $RM conftest*
8033
8034 fi
8035 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8036 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8037
8038 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8039 case $lt_prog_compiler_pic in
8040 "" | " "*) ;;
8041 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8042 esac
8043 else
8044 lt_prog_compiler_pic=
8045 lt_prog_compiler_can_build_shared=no
8046 fi
8047
8048 fi
8049
8050
8051
8052
8053
8054
8055 #
8056 # Check to make sure the static flag actually works.
8057 #
8058 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8059 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8060 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8061 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 lt_cv_prog_compiler_static_works=no
8065 save_LDFLAGS="$LDFLAGS"
8066 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8067 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8068 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8069 # The linker can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 if test -s conftest.err; then
8072 # Append any errors to the config.log.
8073 cat conftest.err 1>&5
8074 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8076 if diff conftest.exp conftest.er2 >/dev/null; then
8077 lt_cv_prog_compiler_static_works=yes
8078 fi
8079 else
8080 lt_cv_prog_compiler_static_works=yes
8081 fi
8082 fi
8083 $RM -r conftest*
8084 LDFLAGS="$save_LDFLAGS"
8085
8086 fi
8087 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8088 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8089
8090 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8091 :
8092 else
8093 lt_prog_compiler_static=
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8104 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 lt_cv_prog_compiler_c_o=no
8108 $RM -r conftest 2>/dev/null
8109 mkdir conftest
8110 cd conftest
8111 mkdir out
8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113
8114 lt_compiler_flag="-o out/conftest2.$ac_objext"
8115 # Insert the option either (1) after the last *FLAGS variable, or
8116 # (2) before a word containing "conftest.", or (3) at the end.
8117 # Note that $ac_compile itself does not contain backslashes and begins
8118 # with a dollar sign (not a hyphen), so the echo should work correctly.
8119 lt_compile=`echo "$ac_compile" | $SED \
8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122 -e 's:$: $lt_compiler_flag:'`
8123 (eval echo "\"\$as_me:8123: $lt_compile\"" >&5)
8124 (eval "$lt_compile" 2>out/conftest.err)
8125 ac_status=$?
8126 cat out/conftest.err >&5
8127 echo "$as_me:8127: \$? = $ac_status" >&5
8128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8129 then
8130 # The compiler can only warn and ignore the option if not recognized
8131 # So say no if there are warnings
8132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8135 lt_cv_prog_compiler_c_o=yes
8136 fi
8137 fi
8138 chmod u+w . 2>&5
8139 $RM conftest*
8140 # SGI C++ compiler will create directory out/ii_files/ for
8141 # template instantiation
8142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8143 $RM out/* && rmdir out
8144 cd ..
8145 $RM -r conftest
8146 $RM conftest*
8147
8148 fi
8149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8151
8152
8153
8154
8155
8156
8157 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8158 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8159 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 lt_cv_prog_compiler_c_o=no
8163 $RM -r conftest 2>/dev/null
8164 mkdir conftest
8165 cd conftest
8166 mkdir out
8167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8168
8169 lt_compiler_flag="-o out/conftest2.$ac_objext"
8170 # Insert the option either (1) after the last *FLAGS variable, or
8171 # (2) before a word containing "conftest.", or (3) at the end.
8172 # Note that $ac_compile itself does not contain backslashes and begins
8173 # with a dollar sign (not a hyphen), so the echo should work correctly.
8174 lt_compile=`echo "$ac_compile" | $SED \
8175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8177 -e 's:$: $lt_compiler_flag:'`
8178 (eval echo "\"\$as_me:8178: $lt_compile\"" >&5)
8179 (eval "$lt_compile" 2>out/conftest.err)
8180 ac_status=$?
8181 cat out/conftest.err >&5
8182 echo "$as_me:8182: \$? = $ac_status" >&5
8183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8184 then
8185 # The compiler can only warn and ignore the option if not recognized
8186 # So say no if there are warnings
8187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8190 lt_cv_prog_compiler_c_o=yes
8191 fi
8192 fi
8193 chmod u+w . 2>&5
8194 $RM conftest*
8195 # SGI C++ compiler will create directory out/ii_files/ for
8196 # template instantiation
8197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8198 $RM out/* && rmdir out
8199 cd ..
8200 $RM -r conftest
8201 $RM conftest*
8202
8203 fi
8204 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8205 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8206
8207
8208
8209
8210 hard_links="nottested"
8211 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8212 # do not overwrite the value of need_locks provided by the user
8213 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8214 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8215 hard_links=yes
8216 $RM conftest*
8217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8218 touch conftest.a
8219 ln conftest.a conftest.b 2>&5 || hard_links=no
8220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8221 { echo "$as_me:$LINENO: result: $hard_links" >&5
8222 echo "${ECHO_T}$hard_links" >&6; }
8223 if test "$hard_links" = no; then
8224 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8225 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8226 need_locks=warn
8227 fi
8228 else
8229 need_locks=no
8230 fi
8231
8232
8233
8234
8235
8236
8237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8239
8240 runpath_var=
8241 allow_undefined_flag=
8242 always_export_symbols=no
8243 archive_cmds=
8244 archive_expsym_cmds=
8245 compiler_needs_object=no
8246 enable_shared_with_static_runtimes=no
8247 export_dynamic_flag_spec=
8248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8249 hardcode_automatic=no
8250 hardcode_direct=no
8251 hardcode_direct_absolute=no
8252 hardcode_libdir_flag_spec=
8253 hardcode_libdir_flag_spec_ld=
8254 hardcode_libdir_separator=
8255 hardcode_minus_L=no
8256 hardcode_shlibpath_var=unsupported
8257 inherit_rpath=no
8258 link_all_deplibs=unknown
8259 module_cmds=
8260 module_expsym_cmds=
8261 old_archive_from_new_cmds=
8262 old_archive_from_expsyms_cmds=
8263 thread_safe_flag_spec=
8264 whole_archive_flag_spec=
8265 # include_expsyms should be a list of space-separated symbols to be *always*
8266 # included in the symbol list
8267 include_expsyms=
8268 # exclude_expsyms can be an extended regexp of symbols to exclude
8269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8271 # as well as any symbol that contains `d'.
8272 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8274 # platforms (ab)use it in PIC code, but their linkers get confused if
8275 # the symbol is explicitly referenced. Since portable code cannot
8276 # rely on this symbol name, it's probably fine to never include it in
8277 # preloaded symbol tables.
8278 # Exclude shared library initialization/finalization symbols.
8279 extract_expsyms_cmds=
8280
8281 case $host_os in
8282 cygwin* | mingw* | pw32* | cegcc*)
8283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8284 # When not using gcc, we currently assume that we are using
8285 # Microsoft Visual C++.
8286 if test "$GCC" != yes; then
8287 with_gnu_ld=no
8288 fi
8289 ;;
8290 interix*)
8291 # we just hope/assume this is gcc and not c89 (= MSVC++)
8292 with_gnu_ld=yes
8293 ;;
8294 openbsd*)
8295 with_gnu_ld=no
8296 ;;
8297 esac
8298
8299 ld_shlibs=yes
8300 if test "$with_gnu_ld" = yes; then
8301 # If archive_cmds runs LD, not CC, wlarc should be empty
8302 wlarc='${wl}'
8303
8304 # Set some defaults for GNU ld with shared library support. These
8305 # are reset later if shared libraries are not supported. Putting them
8306 # here allows them to be overridden if necessary.
8307 runpath_var=LD_RUN_PATH
8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309 export_dynamic_flag_spec='${wl}--export-dynamic'
8310 # ancient GNU ld didn't support --whole-archive et. al.
8311 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8313 else
8314 whole_archive_flag_spec=
8315 fi
8316 supports_anon_versioning=no
8317 case `$LD -v 2>&1` in
8318 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8319 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8320 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8321 *\ 2.11.*) ;; # other 2.11 versions
8322 *) supports_anon_versioning=yes ;;
8323 esac
8324
8325 # See if GNU ld supports shared libraries.
8326 case $host_os in
8327 aix[3-9]*)
8328 # On AIX/PPC, the GNU linker is very broken
8329 if test "$host_cpu" != ia64; then
8330 ld_shlibs=no
8331 cat <<_LT_EOF 1>&2
8332
8333 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8334 *** to be unable to reliably create shared libraries on AIX.
8335 *** Therefore, libtool is disabling shared libraries support. If you
8336 *** really care for shared libraries, you may want to modify your PATH
8337 *** so that a non-GNU linker is found, and then restart.
8338
8339 _LT_EOF
8340 fi
8341 ;;
8342
8343 amigaos*)
8344 case $host_cpu in
8345 powerpc)
8346 # see comment about AmigaOS4 .so support
8347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8348 archive_expsym_cmds=''
8349 ;;
8350 m68k)
8351 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)'
8352 hardcode_libdir_flag_spec='-L$libdir'
8353 hardcode_minus_L=yes
8354 ;;
8355 esac
8356 ;;
8357
8358 beos*)
8359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8360 allow_undefined_flag=unsupported
8361 # Joseph Beckenbach <[email protected]> says some releases of gcc
8362 # support --undefined. This deserves some investigation. FIXME
8363 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 else
8365 ld_shlibs=no
8366 fi
8367 ;;
8368
8369 cygwin* | mingw* | pw32* | cegcc*)
8370 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8371 # as there is no search path for DLLs.
8372 hardcode_libdir_flag_spec='-L$libdir'
8373 allow_undefined_flag=unsupported
8374 always_export_symbols=no
8375 enable_shared_with_static_runtimes=yes
8376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8377
8378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8380 # If the export-symbols file already is a .def file (1st line
8381 # is EXPORTS), use it as is; otherwise, prepend...
8382 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8383 cp $export_symbols $output_objdir/$soname.def;
8384 else
8385 echo EXPORTS > $output_objdir/$soname.def;
8386 cat $export_symbols >> $output_objdir/$soname.def;
8387 fi~
8388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8389 else
8390 ld_shlibs=no
8391 fi
8392 ;;
8393
8394 interix[3-9]*)
8395 hardcode_direct=no
8396 hardcode_shlibpath_var=no
8397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8398 export_dynamic_flag_spec='${wl}-E'
8399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8400 # Instead, shared libraries are loaded at an image base (0x10000000 by
8401 # default) and relocated if they conflict, which is a slow very memory
8402 # consuming and fragmenting process. To avoid this, we pick a random,
8403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8404 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8406 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8407 ;;
8408
8409 gnu* | linux* | tpf* | k*bsd*-gnu)
8410 tmp_diet=no
8411 if test "$host_os" = linux-dietlibc; then
8412 case $cc_basename in
8413 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8414 esac
8415 fi
8416 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8417 && test "$tmp_diet" = no
8418 then
8419 tmp_addflag=
8420 tmp_sharedflag='-shared'
8421 case $cc_basename,$host_cpu in
8422 pgcc*) # Portland Group C compiler
8423 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'
8424 tmp_addflag=' $pic_flag'
8425 ;;
8426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8427 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'
8428 tmp_addflag=' $pic_flag -Mnomain' ;;
8429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8430 tmp_addflag=' -i_dynamic' ;;
8431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8432 tmp_addflag=' -i_dynamic -nofor_main' ;;
8433 ifc* | ifort*) # Intel Fortran compiler
8434 tmp_addflag=' -nofor_main' ;;
8435 lf95*) # Lahey Fortran 8.1
8436 whole_archive_flag_spec=
8437 tmp_sharedflag='--shared' ;;
8438 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8439 tmp_sharedflag='-qmkshrobj'
8440 tmp_addflag= ;;
8441 esac
8442 case `$CC -V 2>&1 | sed 5q` in
8443 *Sun\ C*) # Sun C 5.9
8444 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8445 compiler_needs_object=yes
8446 tmp_sharedflag='-G' ;;
8447 *Sun\ F*) # Sun Fortran 8.3
8448 tmp_sharedflag='-G' ;;
8449 esac
8450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451
8452 if test "x$supports_anon_versioning" = xyes; then
8453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8455 echo "local: *; };" >> $output_objdir/$libname.ver~
8456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8457 fi
8458
8459 case $cc_basename in
8460 xlf*)
8461 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8462 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8463 hardcode_libdir_flag_spec=
8464 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8465 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8466 if test "x$supports_anon_versioning" = xyes; then
8467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8469 echo "local: *; };" >> $output_objdir/$libname.ver~
8470 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8471 fi
8472 ;;
8473 esac
8474 else
8475 ld_shlibs=no
8476 fi
8477 ;;
8478
8479 netbsd* | netbsdelf*-gnu)
8480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8482 wlarc=
8483 else
8484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8486 fi
8487 ;;
8488
8489 solaris*)
8490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8491 ld_shlibs=no
8492 cat <<_LT_EOF 1>&2
8493
8494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8495 *** create shared libraries on Solaris systems. Therefore, libtool
8496 *** is disabling shared libraries support. We urge you to upgrade GNU
8497 *** binutils to release 2.9.1 or newer. Another option is to modify
8498 *** your PATH or compiler configuration so that the native linker is
8499 *** used, and then restart.
8500
8501 _LT_EOF
8502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8505 else
8506 ld_shlibs=no
8507 fi
8508 ;;
8509
8510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8511 case `$LD -v 2>&1` in
8512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8513 ld_shlibs=no
8514 cat <<_LT_EOF 1>&2
8515
8516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8517 *** reliably create shared libraries on SCO systems. Therefore, libtool
8518 *** is disabling shared libraries support. We urge you to upgrade GNU
8519 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8520 *** your PATH or compiler configuration so that the native linker is
8521 *** used, and then restart.
8522
8523 _LT_EOF
8524 ;;
8525 *)
8526 # For security reasons, it is highly recommended that you always
8527 # use absolute paths for naming shared libraries, and exclude the
8528 # DT_RUNPATH tag from executables and libraries. But doing so
8529 # requires that you compile everything twice, which is a pain.
8530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8534 else
8535 ld_shlibs=no
8536 fi
8537 ;;
8538 esac
8539 ;;
8540
8541 sunos4*)
8542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8543 wlarc=
8544 hardcode_direct=yes
8545 hardcode_shlibpath_var=no
8546 ;;
8547
8548 *)
8549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8552 else
8553 ld_shlibs=no
8554 fi
8555 ;;
8556 esac
8557
8558 if test "$ld_shlibs" = no; then
8559 runpath_var=
8560 hardcode_libdir_flag_spec=
8561 export_dynamic_flag_spec=
8562 whole_archive_flag_spec=
8563 fi
8564 else
8565 # PORTME fill in a description of your system's linker (not GNU ld)
8566 case $host_os in
8567 aix3*)
8568 allow_undefined_flag=unsupported
8569 always_export_symbols=yes
8570 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'
8571 # Note: this linker hardcodes the directories in LIBPATH if there
8572 # are no directories specified by -L.
8573 hardcode_minus_L=yes
8574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8575 # Neither direct hardcoding nor static linking is supported with a
8576 # broken collect2.
8577 hardcode_direct=unsupported
8578 fi
8579 ;;
8580
8581 aix[4-9]*)
8582 if test "$host_cpu" = ia64; then
8583 # On IA64, the linker does run time linking by default, so we don't
8584 # have to do anything special.
8585 aix_use_runtimelinking=no
8586 exp_sym_flag='-Bexport'
8587 no_entry_flag=""
8588 else
8589 # If we're using GNU nm, then we don't want the "-C" option.
8590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8592 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'
8593 else
8594 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'
8595 fi
8596 aix_use_runtimelinking=no
8597
8598 # Test if we are trying to use run time linking or normal
8599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8600 # need to do runtime linking.
8601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8602 for ld_flag in $LDFLAGS; do
8603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8604 aix_use_runtimelinking=yes
8605 break
8606 fi
8607 done
8608 ;;
8609 esac
8610
8611 exp_sym_flag='-bexport'
8612 no_entry_flag='-bnoentry'
8613 fi
8614
8615 # When large executables or shared objects are built, AIX ld can
8616 # have problems creating the table of contents. If linking a library
8617 # or program results in "error TOC overflow" add -mminimal-toc to
8618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8620
8621 archive_cmds=''
8622 hardcode_direct=yes
8623 hardcode_direct_absolute=yes
8624 hardcode_libdir_separator=':'
8625 link_all_deplibs=yes
8626 file_list_spec='${wl}-f,'
8627
8628 if test "$GCC" = yes; then
8629 case $host_os in aix4.[012]|aix4.[012].*)
8630 # We only want to do this on AIX 4.2 and lower, the check
8631 # below for broken collect2 doesn't work under 4.3+
8632 collect2name=`${CC} -print-prog-name=collect2`
8633 if test -f "$collect2name" &&
8634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8635 then
8636 # We have reworked collect2
8637 :
8638 else
8639 # We have old collect2
8640 hardcode_direct=unsupported
8641 # It fails to find uninstalled libraries when the uninstalled
8642 # path is not listed in the libpath. Setting hardcode_minus_L
8643 # to unsupported forces relinking
8644 hardcode_minus_L=yes
8645 hardcode_libdir_flag_spec='-L$libdir'
8646 hardcode_libdir_separator=
8647 fi
8648 ;;
8649 esac
8650 shared_flag='-shared'
8651 if test "$aix_use_runtimelinking" = yes; then
8652 shared_flag="$shared_flag "'${wl}-G'
8653 fi
8654 link_all_deplibs=no
8655 else
8656 # not using gcc
8657 if test "$host_cpu" = ia64; then
8658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8659 # chokes on -Wl,-G. The following line is correct:
8660 shared_flag='-G'
8661 else
8662 if test "$aix_use_runtimelinking" = yes; then
8663 shared_flag='${wl}-G'
8664 else
8665 shared_flag='${wl}-bM:SRE'
8666 fi
8667 fi
8668 fi
8669
8670 export_dynamic_flag_spec='${wl}-bexpall'
8671 # It seems that -bexpall does not export symbols beginning with
8672 # underscore (_), so it is better to generate a list of symbols to export.
8673 always_export_symbols=yes
8674 if test "$aix_use_runtimelinking" = yes; then
8675 # Warning - without using the other runtime loading flags (-brtl),
8676 # -berok will link without error, but may produce a broken library.
8677 allow_undefined_flag='-berok'
8678 # Determine the default libpath from the value encoded in an
8679 # empty executable.
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686
8687 int
8688 main ()
8689 {
8690
8691 ;
8692 return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (ac_try="$ac_link"
8697 case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_link") 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest$ac_exeext &&
8712 $as_test_x conftest$ac_exeext; then
8713
8714 lt_aix_libpath_sed='
8715 /Import File Strings/,/^$/ {
8716 /^0/ {
8717 s/^0 *\(.*\)$/\1/
8718 p
8719 }
8720 }'
8721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8722 # Check for a 64-bit object if we didn't find anything.
8723 if test -z "$aix_libpath"; then
8724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725 fi
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730
8731 fi
8732
8733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8734 conftest$ac_exeext conftest.$ac_ext
8735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8736
8737 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8738 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8739 else
8740 if test "$host_cpu" = ia64; then
8741 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8742 allow_undefined_flag="-z nodefs"
8743 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8744 else
8745 # Determine the default libpath from the value encoded in an
8746 # empty executable.
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753
8754 int
8755 main ()
8756 {
8757
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8764 case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_link") 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && {
8776 test -z "$ac_c_werror_flag" ||
8777 test ! -s conftest.err
8778 } && test -s conftest$ac_exeext &&
8779 $as_test_x conftest$ac_exeext; then
8780
8781 lt_aix_libpath_sed='
8782 /Import File Strings/,/^$/ {
8783 /^0/ {
8784 s/^0 *\(.*\)$/\1/
8785 p
8786 }
8787 }'
8788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8789 # Check for a 64-bit object if we didn't find anything.
8790 if test -z "$aix_libpath"; then
8791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8792 fi
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801 conftest$ac_exeext conftest.$ac_ext
8802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8803
8804 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8805 # Warning - without using the other run time loading flags,
8806 # -berok will link without error, but may produce a broken library.
8807 no_undefined_flag=' ${wl}-bernotok'
8808 allow_undefined_flag=' ${wl}-berok'
8809 # Exported symbols can be pulled into shared objects from archives
8810 whole_archive_flag_spec='$convenience'
8811 archive_cmds_need_lc=yes
8812 # This is similar to how AIX traditionally builds its shared libraries.
8813 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8814 fi
8815 fi
8816 ;;
8817
8818 amigaos*)
8819 case $host_cpu in
8820 powerpc)
8821 # see comment about AmigaOS4 .so support
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823 archive_expsym_cmds=''
8824 ;;
8825 m68k)
8826 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)'
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_minus_L=yes
8829 ;;
8830 esac
8831 ;;
8832
8833 bsdi[45]*)
8834 export_dynamic_flag_spec=-rdynamic
8835 ;;
8836
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 # When not using gcc, we currently assume that we are using
8839 # Microsoft Visual C++.
8840 # hardcode_libdir_flag_spec is actually meaningless, as there is
8841 # no search path for DLLs.
8842 hardcode_libdir_flag_spec=' '
8843 allow_undefined_flag=unsupported
8844 # Tell ltmain to make .lib files, not .a files.
8845 libext=lib
8846 # Tell ltmain to make .dll files, not .so files.
8847 shrext_cmds=".dll"
8848 # FIXME: Setting linknames here is a bad hack.
8849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8850 # The linker will automatically build a .lib file if we build a DLL.
8851 old_archive_from_new_cmds='true'
8852 # FIXME: Should let the user specify the lib program.
8853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8854 fix_srcfile_path='`cygpath -w "$srcfile"`'
8855 enable_shared_with_static_runtimes=yes
8856 ;;
8857
8858 darwin* | rhapsody*)
8859
8860
8861 archive_cmds_need_lc=no
8862 hardcode_direct=no
8863 hardcode_automatic=yes
8864 hardcode_shlibpath_var=unsupported
8865 whole_archive_flag_spec=''
8866 link_all_deplibs=yes
8867 allow_undefined_flag="$_lt_dar_allow_undefined"
8868 case $cc_basename in
8869 ifort*) _lt_dar_can_shared=yes ;;
8870 *) _lt_dar_can_shared=$GCC ;;
8871 esac
8872 if test "$_lt_dar_can_shared" = "yes"; then
8873 output_verbose_link_cmd=echo
8874 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8875 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8876 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8877 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8878
8879 else
8880 ld_shlibs=no
8881 fi
8882
8883 ;;
8884
8885 dgux*)
8886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_shlibpath_var=no
8889 ;;
8890
8891 freebsd1*)
8892 ld_shlibs=no
8893 ;;
8894
8895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8896 # support. Future versions do this automatically, but an explicit c++rt0.o
8897 # does not break anything, and helps significantly (at the cost of a little
8898 # extra space).
8899 freebsd2.2*)
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8901 hardcode_libdir_flag_spec='-R$libdir'
8902 hardcode_direct=yes
8903 hardcode_shlibpath_var=no
8904 ;;
8905
8906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8907 freebsd2*)
8908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8909 hardcode_direct=yes
8910 hardcode_minus_L=yes
8911 hardcode_shlibpath_var=no
8912 ;;
8913
8914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8915 freebsd* | dragonfly*)
8916 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8917 hardcode_libdir_flag_spec='-R$libdir'
8918 hardcode_direct=yes
8919 hardcode_shlibpath_var=no
8920 ;;
8921
8922 hpux9*)
8923 if test "$GCC" = yes; then
8924 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'
8925 else
8926 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'
8927 fi
8928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8929 hardcode_libdir_separator=:
8930 hardcode_direct=yes
8931
8932 # hardcode_minus_L: Not really in the search PATH,
8933 # but as the default location of the library.
8934 hardcode_minus_L=yes
8935 export_dynamic_flag_spec='${wl}-E'
8936 ;;
8937
8938 hpux10*)
8939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8941 else
8942 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8943 fi
8944 if test "$with_gnu_ld" = no; then
8945 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8946 hardcode_libdir_flag_spec_ld='+b $libdir'
8947 hardcode_libdir_separator=:
8948 hardcode_direct=yes
8949 hardcode_direct_absolute=yes
8950 export_dynamic_flag_spec='${wl}-E'
8951 # hardcode_minus_L: Not really in the search PATH,
8952 # but as the default location of the library.
8953 hardcode_minus_L=yes
8954 fi
8955 ;;
8956
8957 hpux11*)
8958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8959 case $host_cpu in
8960 hppa*64*)
8961 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 ;;
8963 ia64*)
8964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8965 ;;
8966 *)
8967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8968 ;;
8969 esac
8970 else
8971 case $host_cpu in
8972 hppa*64*)
8973 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 ;;
8975 ia64*)
8976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8977 ;;
8978 *)
8979 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8980 ;;
8981 esac
8982 fi
8983 if test "$with_gnu_ld" = no; then
8984 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8985 hardcode_libdir_separator=:
8986
8987 case $host_cpu in
8988 hppa*64*|ia64*)
8989 hardcode_direct=no
8990 hardcode_shlibpath_var=no
8991 ;;
8992 *)
8993 hardcode_direct=yes
8994 hardcode_direct_absolute=yes
8995 export_dynamic_flag_spec='${wl}-E'
8996
8997 # hardcode_minus_L: Not really in the search PATH,
8998 # but as the default location of the library.
8999 hardcode_minus_L=yes
9000 ;;
9001 esac
9002 fi
9003 ;;
9004
9005 irix5* | irix6* | nonstopux*)
9006 if test "$GCC" = yes; then
9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9008 # Try to use the -exported_symbol ld option, if it does not
9009 # work, assume that -exports_file does not work either and
9010 # implicitly export all symbols.
9011 save_LDFLAGS="$LDFLAGS"
9012 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9013 cat >conftest.$ac_ext <<_ACEOF
9014 int foo(void) {}
9015 _ACEOF
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (ac_try="$ac_link"
9018 case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_link") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 } && test -s conftest$ac_exeext &&
9033 $as_test_x conftest$ac_exeext; then
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9035
9036 else
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9039
9040
9041 fi
9042
9043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9044 conftest$ac_exeext conftest.$ac_ext
9045 LDFLAGS="$save_LDFLAGS"
9046 else
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9049 fi
9050 archive_cmds_need_lc='no'
9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052 hardcode_libdir_separator=:
9053 inherit_rpath=yes
9054 link_all_deplibs=yes
9055 ;;
9056
9057 netbsd* | netbsdelf*-gnu)
9058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9060 else
9061 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9062 fi
9063 hardcode_libdir_flag_spec='-R$libdir'
9064 hardcode_direct=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 newsos6)
9069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070 hardcode_direct=yes
9071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9072 hardcode_libdir_separator=:
9073 hardcode_shlibpath_var=no
9074 ;;
9075
9076 *nto* | *qnx*)
9077 ;;
9078
9079 openbsd*)
9080 if test -f /usr/libexec/ld.so; then
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
9083 hardcode_direct_absolute=yes
9084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9088 export_dynamic_flag_spec='${wl}-E'
9089 else
9090 case $host_os in
9091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9093 hardcode_libdir_flag_spec='-R$libdir'
9094 ;;
9095 *)
9096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9098 ;;
9099 esac
9100 fi
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
9105
9106 os2*)
9107 hardcode_libdir_flag_spec='-L$libdir'
9108 hardcode_minus_L=yes
9109 allow_undefined_flag=unsupported
9110 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'
9111 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9112 ;;
9113
9114 osf3*)
9115 if test "$GCC" = yes; then
9116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9117 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9118 else
9119 allow_undefined_flag=' -expect_unresolved \*'
9120 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9121 fi
9122 archive_cmds_need_lc='no'
9123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9124 hardcode_libdir_separator=:
9125 ;;
9126
9127 osf4* | osf5*) # as osf3* with the addition of -msym flag
9128 if test "$GCC" = yes; then
9129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9130 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9132 else
9133 allow_undefined_flag=' -expect_unresolved \*'
9134 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9135 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9136 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9137
9138 # Both c and cxx compiler support -rpath directly
9139 hardcode_libdir_flag_spec='-rpath $libdir'
9140 fi
9141 archive_cmds_need_lc='no'
9142 hardcode_libdir_separator=:
9143 ;;
9144
9145 solaris*)
9146 no_undefined_flag=' -z defs'
9147 if test "$GCC" = yes; then
9148 wlarc='${wl}'
9149 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9151 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9152 else
9153 case `$CC -V 2>&1` in
9154 *"Compilers 5.0"*)
9155 wlarc=''
9156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9159 ;;
9160 *)
9161 wlarc='${wl}'
9162 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9164 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9165 ;;
9166 esac
9167 fi
9168 hardcode_libdir_flag_spec='-R$libdir'
9169 hardcode_shlibpath_var=no
9170 case $host_os in
9171 solaris2.[0-5] | solaris2.[0-5].*) ;;
9172 *)
9173 # The compiler driver will combine and reorder linker options,
9174 # but understands `-z linker_flag'. GCC discards it without `$wl',
9175 # but is careful enough not to reorder.
9176 # Supported since Solaris 2.6 (maybe 2.5.1?)
9177 if test "$GCC" = yes; then
9178 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9179 else
9180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9181 fi
9182 ;;
9183 esac
9184 link_all_deplibs=yes
9185 ;;
9186
9187 sunos4*)
9188 if test "x$host_vendor" = xsequent; then
9189 # Use $CC to link under sequent, because it throws in some extra .o
9190 # files that make .init and .fini sections work.
9191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9192 else
9193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9194 fi
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_direct=yes
9197 hardcode_minus_L=yes
9198 hardcode_shlibpath_var=no
9199 ;;
9200
9201 sysv4)
9202 case $host_vendor in
9203 sni)
9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_direct=yes # is this really true???
9206 ;;
9207 siemens)
9208 ## LD is ld it makes a PLAMLIB
9209 ## CC just makes a GrossModule.
9210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9211 reload_cmds='$CC -r -o $output$reload_objs'
9212 hardcode_direct=no
9213 ;;
9214 motorola)
9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9217 ;;
9218 esac
9219 runpath_var='LD_RUN_PATH'
9220 hardcode_shlibpath_var=no
9221 ;;
9222
9223 sysv4.3*)
9224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225 hardcode_shlibpath_var=no
9226 export_dynamic_flag_spec='-Bexport'
9227 ;;
9228
9229 sysv4*MP*)
9230 if test -d /usr/nec; then
9231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_shlibpath_var=no
9233 runpath_var=LD_RUN_PATH
9234 hardcode_runpath_var=yes
9235 ld_shlibs=yes
9236 fi
9237 ;;
9238
9239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9240 no_undefined_flag='${wl}-z,text'
9241 archive_cmds_need_lc=no
9242 hardcode_shlibpath_var=no
9243 runpath_var='LD_RUN_PATH'
9244
9245 if test "$GCC" = yes; then
9246 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9248 else
9249 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9250 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9251 fi
9252 ;;
9253
9254 sysv5* | sco3.2v5* | sco5v6*)
9255 # Note: We can NOT use -z defs as we might desire, because we do not
9256 # link with -lc, and that would cause any symbols used from libc to
9257 # always be unresolved, which means just about no library would
9258 # ever link correctly. If we're not using GNU ld we use -z text
9259 # though, which does catch some bad symbols but isn't as heavy-handed
9260 # as -z defs.
9261 no_undefined_flag='${wl}-z,text'
9262 allow_undefined_flag='${wl}-z,nodefs'
9263 archive_cmds_need_lc=no
9264 hardcode_shlibpath_var=no
9265 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9266 hardcode_libdir_separator=':'
9267 link_all_deplibs=yes
9268 export_dynamic_flag_spec='${wl}-Bexport'
9269 runpath_var='LD_RUN_PATH'
9270
9271 if test "$GCC" = yes; then
9272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 else
9275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9277 fi
9278 ;;
9279
9280 uts4*)
9281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282 hardcode_libdir_flag_spec='-L$libdir'
9283 hardcode_shlibpath_var=no
9284 ;;
9285
9286 *)
9287 ld_shlibs=no
9288 ;;
9289 esac
9290
9291 if test x$host_vendor = xsni; then
9292 case $host in
9293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9294 export_dynamic_flag_spec='${wl}-Blargedynsym'
9295 ;;
9296 esac
9297 fi
9298 fi
9299
9300 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9301 echo "${ECHO_T}$ld_shlibs" >&6; }
9302 test "$ld_shlibs" = no && can_build_shared=no
9303
9304 with_gnu_ld=$with_gnu_ld
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320 #
9321 # Do we need to explicitly link libc?
9322 #
9323 case "x$archive_cmds_need_lc" in
9324 x|xyes)
9325 # Assume -lc should be added
9326 archive_cmds_need_lc=yes
9327
9328 if test "$enable_shared" = yes && test "$GCC" = yes; then
9329 case $archive_cmds in
9330 *'~'*)
9331 # FIXME: we may have to deal with multi-command sequences.
9332 ;;
9333 '$CC '*)
9334 # Test whether the compiler implicitly links with -lc since on some
9335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9336 # to ld, don't add -lc before -lgcc.
9337 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9339 $RM conftest*
9340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9341
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } 2>conftest.err; then
9347 soname=conftest
9348 lib=conftest
9349 libobjs=conftest.$ac_objext
9350 deplibs=
9351 wl=$lt_prog_compiler_wl
9352 pic_flag=$lt_prog_compiler_pic
9353 compiler_flags=-v
9354 linker_flags=-v
9355 verstring=
9356 output_objdir=.
9357 libname=conftest
9358 lt_save_allow_undefined_flag=$allow_undefined_flag
9359 allow_undefined_flag=
9360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }
9365 then
9366 archive_cmds_need_lc=no
9367 else
9368 archive_cmds_need_lc=yes
9369 fi
9370 allow_undefined_flag=$lt_save_allow_undefined_flag
9371 else
9372 cat conftest.err 1>&5
9373 fi
9374 $RM conftest*
9375 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9376 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9377 ;;
9378 esac
9379 fi
9380 ;;
9381 esac
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9541
9542 if test "$GCC" = yes; then
9543 case $host_os in
9544 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9545 *) lt_awk_arg="/^libraries:/" ;;
9546 esac
9547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9548 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9549 # if the path contains ";" then we assume it to be the separator
9550 # otherwise default to the standard path separator (i.e. ":") - it is
9551 # assumed that no part of a normal pathname contains ";" but that should
9552 # okay in the real world where ";" in dirpaths is itself problematic.
9553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9554 else
9555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9556 fi
9557 # Ok, now we have the path, separated by spaces, we can step through it
9558 # and add multilib dir if necessary.
9559 lt_tmp_lt_search_path_spec=
9560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9561 for lt_sys_path in $lt_search_path_spec; do
9562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9564 else
9565 test -d "$lt_sys_path" && \
9566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9567 fi
9568 done
9569 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9570 BEGIN {RS=" "; FS="/|\n";} {
9571 lt_foo="";
9572 lt_count=0;
9573 for (lt_i = NF; lt_i > 0; lt_i--) {
9574 if ($lt_i != "" && $lt_i != ".") {
9575 if ($lt_i == "..") {
9576 lt_count++;
9577 } else {
9578 if (lt_count == 0) {
9579 lt_foo="/" $lt_i lt_foo;
9580 } else {
9581 lt_count--;
9582 }
9583 }
9584 }
9585 }
9586 if (lt_foo != "") { lt_freq[lt_foo]++; }
9587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9588 }'`
9589 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9590 else
9591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9592 fi
9593 library_names_spec=
9594 libname_spec='lib$name'
9595 soname_spec=
9596 shrext_cmds=".so"
9597 postinstall_cmds=
9598 postuninstall_cmds=
9599 finish_cmds=
9600 finish_eval=
9601 shlibpath_var=
9602 shlibpath_overrides_runpath=unknown
9603 version_type=none
9604 dynamic_linker="$host_os ld.so"
9605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9606 need_lib_prefix=unknown
9607 hardcode_into_libs=no
9608
9609 # when you set need_version to no, make sure it does not cause -set_version
9610 # flags to be left without arguments
9611 need_version=unknown
9612
9613 case $host_os in
9614 aix3*)
9615 version_type=linux
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9617 shlibpath_var=LIBPATH
9618
9619 # AIX 3 has no versioning support, so we append a major version to the name.
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 ;;
9622
9623 aix[4-9]*)
9624 version_type=linux
9625 need_lib_prefix=no
9626 need_version=no
9627 hardcode_into_libs=yes
9628 if test "$host_cpu" = ia64; then
9629 # AIX 5 supports IA64
9630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 else
9633 # With GCC up to 2.95.x, collect2 would create an import file
9634 # for dependence libraries. The import file would start with
9635 # the line `#! .'. This would cause the generated library to
9636 # depend on `.', always an invalid library. This was fixed in
9637 # development snapshots of GCC prior to 3.0.
9638 case $host_os in
9639 aix4 | aix4.[01] | aix4.[01].*)
9640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9641 echo ' yes '
9642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9643 :
9644 else
9645 can_build_shared=no
9646 fi
9647 ;;
9648 esac
9649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9650 # soname into executable. Probably we can add versioning support to
9651 # collect2, so additional links can be useful in future.
9652 if test "$aix_use_runtimelinking" = yes; then
9653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9654 # instead of lib<name>.a to let people know that these are not
9655 # typical AIX shared libraries.
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 else
9658 # We preserve .a as extension for shared libraries through AIX4.2
9659 # and later when we are not doing run time linking.
9660 library_names_spec='${libname}${release}.a $libname.a'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 fi
9663 shlibpath_var=LIBPATH
9664 fi
9665 ;;
9666
9667 amigaos*)
9668 case $host_cpu in
9669 powerpc)
9670 # Since July 2007 AmigaOS4 officially supports .so libraries.
9671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673 ;;
9674 m68k)
9675 library_names_spec='$libname.ixlibrary $libname.a'
9676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9677 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'
9678 ;;
9679 esac
9680 ;;
9681
9682 beos*)
9683 library_names_spec='${libname}${shared_ext}'
9684 dynamic_linker="$host_os ld.so"
9685 shlibpath_var=LIBRARY_PATH
9686 ;;
9687
9688 bsdi[45]*)
9689 version_type=linux
9690 need_version=no
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9697 # the default ld.so.conf also contains /usr/contrib/lib and
9698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9699 # libtool to hard-code these into programs
9700 ;;
9701
9702 cygwin* | mingw* | pw32* | cegcc*)
9703 version_type=windows
9704 shrext_cmds=".dll"
9705 need_version=no
9706 need_lib_prefix=no
9707
9708 case $GCC,$host_os in
9709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9710 library_names_spec='$libname.dll.a'
9711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9712 postinstall_cmds='base_file=`basename \${file}`~
9713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9714 dldir=$destdir/`dirname \$dlpath`~
9715 test -d \$dldir || mkdir -p \$dldir~
9716 $install_prog $dir/$dlname \$dldir/$dlname~
9717 chmod a+x \$dldir/$dlname~
9718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9720 fi'
9721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9722 dlpath=$dir/\$dldll~
9723 $RM \$dlpath'
9724 shlibpath_overrides_runpath=yes
9725
9726 case $host_os in
9727 cygwin*)
9728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9731 ;;
9732 mingw* | cegcc*)
9733 # MinGW DLLs use traditional 'lib' prefix
9734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9735 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9736 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9737 # It is most probably a Windows format PATH printed by
9738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9739 # path with ; separators, and with drive letters. We can handle the
9740 # drive letters (cygwin fileutils understands them), so leave them,
9741 # especially as we might pass files found there to a mingw objdump,
9742 # which wouldn't understand a cygwinified path. Ahh.
9743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9744 else
9745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9746 fi
9747 ;;
9748 pw32*)
9749 # pw32 DLLs use 'pw' prefix rather than 'lib'
9750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9751 ;;
9752 esac
9753 ;;
9754
9755 *)
9756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9757 ;;
9758 esac
9759 dynamic_linker='Win32 ld.exe'
9760 # FIXME: first we should search . and the directory the executable is in
9761 shlibpath_var=PATH
9762 ;;
9763
9764 darwin* | rhapsody*)
9765 dynamic_linker="$host_os dyld"
9766 version_type=darwin
9767 need_lib_prefix=no
9768 need_version=no
9769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9770 soname_spec='${libname}${release}${major}$shared_ext'
9771 shlibpath_overrides_runpath=yes
9772 shlibpath_var=DYLD_LIBRARY_PATH
9773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9774
9775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9777 ;;
9778
9779 dgux*)
9780 version_type=linux
9781 need_lib_prefix=no
9782 need_version=no
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 ;;
9787
9788 freebsd1*)
9789 dynamic_linker=no
9790 ;;
9791
9792 freebsd* | dragonfly*)
9793 # DragonFly does not have aout. When/if they implement a new
9794 # versioning mechanism, adjust this.
9795 if test -x /usr/bin/objformat; then
9796 objformat=`/usr/bin/objformat`
9797 else
9798 case $host_os in
9799 freebsd[123]*) objformat=aout ;;
9800 *) objformat=elf ;;
9801 esac
9802 fi
9803 version_type=freebsd-$objformat
9804 case $version_type in
9805 freebsd-elf*)
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9807 need_version=no
9808 need_lib_prefix=no
9809 ;;
9810 freebsd-*)
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9812 need_version=yes
9813 ;;
9814 esac
9815 shlibpath_var=LD_LIBRARY_PATH
9816 case $host_os in
9817 freebsd2*)
9818 shlibpath_overrides_runpath=yes
9819 ;;
9820 freebsd3.[01]* | freebsdelf3.[01]*)
9821 shlibpath_overrides_runpath=yes
9822 hardcode_into_libs=yes
9823 ;;
9824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9826 shlibpath_overrides_runpath=no
9827 hardcode_into_libs=yes
9828 ;;
9829 *) # from 4.6 on, and DragonFly
9830 shlibpath_overrides_runpath=yes
9831 hardcode_into_libs=yes
9832 ;;
9833 esac
9834 ;;
9835
9836 gnu*)
9837 version_type=linux
9838 need_lib_prefix=no
9839 need_version=no
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 hardcode_into_libs=yes
9844 ;;
9845
9846 hpux9* | hpux10* | hpux11*)
9847 # Give a soname corresponding to the major version so that dld.sl refuses to
9848 # link against other versions.
9849 version_type=sunos
9850 need_lib_prefix=no
9851 need_version=no
9852 case $host_cpu in
9853 ia64*)
9854 shrext_cmds='.so'
9855 hardcode_into_libs=yes
9856 dynamic_linker="$host_os dld.so"
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 if test "X$HPUX_IA64_MODE" = X32; then
9862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9863 else
9864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9865 fi
9866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9867 ;;
9868 hppa*64*)
9869 shrext_cmds='.sl'
9870 hardcode_into_libs=yes
9871 dynamic_linker="$host_os dld.sl"
9872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9878 ;;
9879 *)
9880 shrext_cmds='.sl'
9881 dynamic_linker="$host_os dld.sl"
9882 shlibpath_var=SHLIB_PATH
9883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 ;;
9887 esac
9888 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9889 postinstall_cmds='chmod 555 $lib'
9890 ;;
9891
9892 interix[3-9]*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 shlibpath_overrides_runpath=no
9901 hardcode_into_libs=yes
9902 ;;
9903
9904 irix5* | irix6* | nonstopux*)
9905 case $host_os in
9906 nonstopux*) version_type=nonstopux ;;
9907 *)
9908 if test "$lt_cv_prog_gnu_ld" = yes; then
9909 version_type=linux
9910 else
9911 version_type=irix
9912 fi ;;
9913 esac
9914 need_lib_prefix=no
9915 need_version=no
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9918 case $host_os in
9919 irix5* | nonstopux*)
9920 libsuff= shlibsuff=
9921 ;;
9922 *)
9923 case $LD in # libtool.m4 will add one of these switches to LD
9924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9925 libsuff= shlibsuff= libmagic=32-bit;;
9926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9927 libsuff=32 shlibsuff=N32 libmagic=N32;;
9928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9930 *) libsuff= shlibsuff= libmagic=never-match;;
9931 esac
9932 ;;
9933 esac
9934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9935 shlibpath_overrides_runpath=no
9936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9938 hardcode_into_libs=yes
9939 ;;
9940
9941 # No shared lib support for Linux oldld, aout, or coff.
9942 linux*oldld* | linux*aout* | linux*coff*)
9943 dynamic_linker=no
9944 ;;
9945
9946 # This must be Linux ELF.
9947 linux* | k*bsd*-gnu)
9948 version_type=linux
9949 need_lib_prefix=no
9950 need_version=no
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9954 shlibpath_var=LD_LIBRARY_PATH
9955 shlibpath_overrides_runpath=no
9956 # Some binutils ld are patched to set DT_RUNPATH
9957 save_LDFLAGS=$LDFLAGS
9958 save_libdir=$libdir
9959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967
9968 int
9969 main ()
9970 {
9971
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest$ac_exeext &&
9993 $as_test_x conftest$ac_exeext; then
9994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9995 shlibpath_overrides_runpath=yes
9996 fi
9997
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002
10003 fi
10004
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LDFLAGS=$save_LDFLAGS
10008 libdir=$save_libdir
10009
10010 # This implies no fast_install, which is unacceptable.
10011 # Some rework will be needed to allow for fast_install
10012 # before this can be enabled.
10013 hardcode_into_libs=yes
10014
10015 # Append ld.so.conf contents to the search path
10016 if test -f /etc/ld.so.conf; then
10017 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10019 fi
10020
10021 # We used to test for /lib/ld.so.1 and disable shared libraries on
10022 # powerpc, because MkLinux only supported shared libraries with the
10023 # GNU dynamic linker. Since this was broken with cross compilers,
10024 # most powerpc-linux boxes support dynamic linking these days and
10025 # people can always --disable-shared, the test was removed, and we
10026 # assume the GNU/Linux dynamic linker is in use.
10027 dynamic_linker='GNU/Linux ld.so'
10028 ;;
10029
10030 netbsdelf*-gnu)
10031 version_type=linux
10032 need_lib_prefix=no
10033 need_version=no
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=no
10038 hardcode_into_libs=yes
10039 dynamic_linker='NetBSD ld.elf_so'
10040 ;;
10041
10042 netbsd*)
10043 version_type=sunos
10044 need_lib_prefix=no
10045 need_version=no
10046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10049 dynamic_linker='NetBSD (a.out) ld.so'
10050 else
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 dynamic_linker='NetBSD ld.elf_so'
10054 fi
10055 shlibpath_var=LD_LIBRARY_PATH
10056 shlibpath_overrides_runpath=yes
10057 hardcode_into_libs=yes
10058 ;;
10059
10060 newsos6)
10061 version_type=linux
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 shlibpath_overrides_runpath=yes
10065 ;;
10066
10067 *nto* | *qnx*)
10068 version_type=qnx
10069 need_lib_prefix=no
10070 need_version=no
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 shlibpath_var=LD_LIBRARY_PATH
10074 shlibpath_overrides_runpath=no
10075 hardcode_into_libs=yes
10076 dynamic_linker='ldqnx.so'
10077 ;;
10078
10079 openbsd*)
10080 version_type=sunos
10081 sys_lib_dlsearch_path_spec="/usr/lib"
10082 need_lib_prefix=no
10083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10084 case $host_os in
10085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10086 *) need_version=no ;;
10087 esac
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10092 case $host_os in
10093 openbsd2.[89] | openbsd2.[89].*)
10094 shlibpath_overrides_runpath=no
10095 ;;
10096 *)
10097 shlibpath_overrides_runpath=yes
10098 ;;
10099 esac
10100 else
10101 shlibpath_overrides_runpath=yes
10102 fi
10103 ;;
10104
10105 os2*)
10106 libname_spec='$name'
10107 shrext_cmds=".dll"
10108 need_lib_prefix=no
10109 library_names_spec='$libname${shared_ext} $libname.a'
10110 dynamic_linker='OS/2 ld.exe'
10111 shlibpath_var=LIBPATH
10112 ;;
10113
10114 osf3* | osf4* | osf5*)
10115 version_type=osf
10116 need_lib_prefix=no
10117 need_version=no
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10123 ;;
10124
10125 rdos*)
10126 dynamic_linker=no
10127 ;;
10128
10129 solaris*)
10130 version_type=linux
10131 need_lib_prefix=no
10132 need_version=no
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=yes
10137 hardcode_into_libs=yes
10138 # ldd complains unless libraries are executable
10139 postinstall_cmds='chmod +x $lib'
10140 ;;
10141
10142 sunos4*)
10143 version_type=sunos
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=yes
10148 if test "$with_gnu_ld" = yes; then
10149 need_lib_prefix=no
10150 fi
10151 need_version=yes
10152 ;;
10153
10154 sysv4 | sysv4.3*)
10155 version_type=linux
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 case $host_vendor in
10160 sni)
10161 shlibpath_overrides_runpath=no
10162 need_lib_prefix=no
10163 runpath_var=LD_RUN_PATH
10164 ;;
10165 siemens)
10166 need_lib_prefix=no
10167 ;;
10168 motorola)
10169 need_lib_prefix=no
10170 need_version=no
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10173 ;;
10174 esac
10175 ;;
10176
10177 sysv4*MP*)
10178 if test -d /usr/nec ;then
10179 version_type=linux
10180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10181 soname_spec='$libname${shared_ext}.$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 fi
10184 ;;
10185
10186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187 version_type=freebsd-elf
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=yes
10194 hardcode_into_libs=yes
10195 if test "$with_gnu_ld" = yes; then
10196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10197 else
10198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10199 case $host_os in
10200 sco3.2v5*)
10201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10202 ;;
10203 esac
10204 fi
10205 sys_lib_dlsearch_path_spec='/usr/lib'
10206 ;;
10207
10208 tpf*)
10209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10210 version_type=linux
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=no
10216 hardcode_into_libs=yes
10217 ;;
10218
10219 uts4*)
10220 version_type=linux
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 ;;
10225
10226 *)
10227 dynamic_linker=no
10228 ;;
10229 esac
10230 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10231 echo "${ECHO_T}$dynamic_linker" >&6; }
10232 test "$dynamic_linker" = no && can_build_shared=no
10233
10234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10235 if test "$GCC" = yes; then
10236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10237 fi
10238
10239 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10240 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10241 fi
10242 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10244 fi
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10333 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10334 hardcode_action=
10335 if test -n "$hardcode_libdir_flag_spec" ||
10336 test -n "$runpath_var" ||
10337 test "X$hardcode_automatic" = "Xyes" ; then
10338
10339 # We can hardcode non-existent directories.
10340 if test "$hardcode_direct" != no &&
10341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10342 # have to relink, otherwise we might link with an installed library
10343 # when we should be linking with a yet-to-be-installed one
10344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10345 test "$hardcode_minus_L" != no; then
10346 # Linking always hardcodes the temporary library directory.
10347 hardcode_action=relink
10348 else
10349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10350 hardcode_action=immediate
10351 fi
10352 else
10353 # We cannot hardcode anything, or else we can only hardcode existing
10354 # directories.
10355 hardcode_action=unsupported
10356 fi
10357 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10358 echo "${ECHO_T}$hardcode_action" >&6; }
10359
10360 if test "$hardcode_action" = relink ||
10361 test "$inherit_rpath" = yes; then
10362 # Fast installation is not supported
10363 enable_fast_install=no
10364 elif test "$shlibpath_overrides_runpath" = yes ||
10365 test "$enable_shared" = no; then
10366 # Fast installation is not necessary
10367 enable_fast_install=needless
10368 fi
10369
10370
10371
10372
10373
10374
10375 if test "x$enable_dlopen" != xyes; then
10376 enable_dlopen=unknown
10377 enable_dlopen_self=unknown
10378 enable_dlopen_self_static=unknown
10379 else
10380 lt_cv_dlopen=no
10381 lt_cv_dlopen_libs=
10382
10383 case $host_os in
10384 beos*)
10385 lt_cv_dlopen="load_add_on"
10386 lt_cv_dlopen_libs=
10387 lt_cv_dlopen_self=yes
10388 ;;
10389
10390 mingw* | pw32* | cegcc*)
10391 lt_cv_dlopen="LoadLibrary"
10392 lt_cv_dlopen_libs=
10393 ;;
10394
10395 cygwin*)
10396 lt_cv_dlopen="dlopen"
10397 lt_cv_dlopen_libs=
10398 ;;
10399
10400 darwin*)
10401 # if libdl is installed we need to link against it
10402 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10403 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-ldl $LIBS"
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415
10416 /* Override any GCC internal prototype to avoid an error.
10417 Use char because int might match the return type of a GCC
10418 builtin and then its argument prototype would still apply. */
10419 #ifdef __cplusplus
10420 extern "C"
10421 #endif
10422 char dlopen ();
10423 int
10424 main ()
10425 {
10426 return dlopen ();
10427 ;
10428 return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest$ac_exeext &&
10448 $as_test_x conftest$ac_exeext; then
10449 ac_cv_lib_dl_dlopen=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_lib_dl_dlopen=no
10455 fi
10456
10457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10460 fi
10461 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10463 if test $ac_cv_lib_dl_dlopen = yes; then
10464 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10465 else
10466
10467 lt_cv_dlopen="dyld"
10468 lt_cv_dlopen_libs=
10469 lt_cv_dlopen_self=yes
10470
10471 fi
10472
10473 ;;
10474
10475 *)
10476 { echo "$as_me:$LINENO: checking for shl_load" >&5
10477 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10478 if test "${ac_cv_func_shl_load+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define shl_load innocuous_shl_load
10490
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char shl_load (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10495
10496 #ifdef __STDC__
10497 # include <limits.h>
10498 #else
10499 # include <assert.h>
10500 #endif
10501
10502 #undef shl_load
10503
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 char shl_load ();
10511 /* The GNU C library defines this for functions which it implements
10512 to always fail with ENOSYS. Some functions are actually named
10513 something starting with __ and the normal name is an alias. */
10514 #if defined __stub_shl_load || defined __stub___shl_load
10515 choke me
10516 #endif
10517
10518 int
10519 main ()
10520 {
10521 return shl_load ();
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_link") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest$ac_exeext &&
10543 $as_test_x conftest$ac_exeext; then
10544 ac_cv_func_shl_load=yes
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549 ac_cv_func_shl_load=no
10550 fi
10551
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553 conftest$ac_exeext conftest.$ac_ext
10554 fi
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10557 if test $ac_cv_func_shl_load = yes; then
10558 lt_cv_dlopen="shl_load"
10559 else
10560 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10561 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10562 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 ac_check_lib_save_LIBS=$LIBS
10566 LIBS="-ldld $LIBS"
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h. */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10577 #ifdef __cplusplus
10578 extern "C"
10579 #endif
10580 char shl_load ();
10581 int
10582 main ()
10583 {
10584 return shl_load ();
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (ac_try="$ac_link"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_link") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest$ac_exeext &&
10606 $as_test_x conftest$ac_exeext; then
10607 ac_cv_lib_dld_shl_load=yes
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ac_cv_lib_dld_shl_load=no
10613 fi
10614
10615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10618 fi
10619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10621 if test $ac_cv_lib_dld_shl_load = yes; then
10622 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10623 else
10624 { echo "$as_me:$LINENO: checking for dlopen" >&5
10625 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10626 if test "${ac_cv_func_dlopen+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629 cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10637 #define dlopen innocuous_dlopen
10638
10639 /* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char dlopen (); below.
10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 <limits.h> exists even on freestanding compilers. */
10643
10644 #ifdef __STDC__
10645 # include <limits.h>
10646 #else
10647 # include <assert.h>
10648 #endif
10649
10650 #undef dlopen
10651
10652 /* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 char dlopen ();
10659 /* The GNU C library defines this for functions which it implements
10660 to always fail with ENOSYS. Some functions are actually named
10661 something starting with __ and the normal name is an alias. */
10662 #if defined __stub_dlopen || defined __stub___dlopen
10663 choke me
10664 #endif
10665
10666 int
10667 main ()
10668 {
10669 return dlopen ();
10670 ;
10671 return 0;
10672 }
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_link") 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest$ac_exeext &&
10691 $as_test_x conftest$ac_exeext; then
10692 ac_cv_func_dlopen=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_func_dlopen=no
10698 fi
10699
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 fi
10703 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10704 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10705 if test $ac_cv_func_dlopen = yes; then
10706 lt_cv_dlopen="dlopen"
10707 else
10708 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-ldl $LIBS"
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char dlopen ();
10729 int
10730 main ()
10731 {
10732 return dlopen ();
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_link") 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext &&
10754 $as_test_x conftest$ac_exeext; then
10755 ac_cv_lib_dl_dlopen=yes
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 ac_cv_lib_dl_dlopen=no
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10766 fi
10767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10769 if test $ac_cv_lib_dl_dlopen = yes; then
10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 else
10772 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10773 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 ac_check_lib_save_LIBS=$LIBS
10778 LIBS="-lsvld $LIBS"
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char dlopen ();
10793 int
10794 main ()
10795 {
10796 return dlopen ();
10797 ;
10798 return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (ac_try="$ac_link"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_link") 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest$ac_exeext &&
10818 $as_test_x conftest$ac_exeext; then
10819 ac_cv_lib_svld_dlopen=yes
10820 else
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ac_cv_lib_svld_dlopen=no
10825 fi
10826
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10830 fi
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10832 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10833 if test $ac_cv_lib_svld_dlopen = yes; then
10834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10835 else
10836 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10837 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10838 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ldld $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char dld_link ();
10857 int
10858 main ()
10859 {
10860 return dld_link ();
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext &&
10882 $as_test_x conftest$ac_exeext; then
10883 ac_cv_lib_dld_dld_link=yes
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_dld_dld_link=no
10889 fi
10890
10891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10894 fi
10895 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10896 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10897 if test $ac_cv_lib_dld_dld_link = yes; then
10898 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10899 fi
10900
10901
10902 fi
10903
10904
10905 fi
10906
10907
10908 fi
10909
10910
10911 fi
10912
10913
10914 fi
10915
10916 ;;
10917 esac
10918
10919 if test "x$lt_cv_dlopen" != xno; then
10920 enable_dlopen=yes
10921 else
10922 enable_dlopen=no
10923 fi
10924
10925 case $lt_cv_dlopen in
10926 dlopen)
10927 save_CPPFLAGS="$CPPFLAGS"
10928 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10929
10930 save_LDFLAGS="$LDFLAGS"
10931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10932
10933 save_LIBS="$LIBS"
10934 LIBS="$lt_cv_dlopen_libs $LIBS"
10935
10936 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10937 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10938 if test "${lt_cv_dlopen_self+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 if test "$cross_compiling" = yes; then :
10942 lt_cv_dlopen_self=cross
10943 else
10944 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10945 lt_status=$lt_dlunknown
10946 cat > conftest.$ac_ext <<_LT_EOF
10947 #line 10947 "configure"
10948 #include "confdefs.h"
10949
10950 #if HAVE_DLFCN_H
10951 #include <dlfcn.h>
10952 #endif
10953
10954 #include <stdio.h>
10955
10956 #ifdef RTLD_GLOBAL
10957 # define LT_DLGLOBAL RTLD_GLOBAL
10958 #else
10959 # ifdef DL_GLOBAL
10960 # define LT_DLGLOBAL DL_GLOBAL
10961 # else
10962 # define LT_DLGLOBAL 0
10963 # endif
10964 #endif
10965
10966 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10967 find out it does not work in some platform. */
10968 #ifndef LT_DLLAZY_OR_NOW
10969 # ifdef RTLD_LAZY
10970 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10971 # else
10972 # ifdef DL_LAZY
10973 # define LT_DLLAZY_OR_NOW DL_LAZY
10974 # else
10975 # ifdef RTLD_NOW
10976 # define LT_DLLAZY_OR_NOW RTLD_NOW
10977 # else
10978 # ifdef DL_NOW
10979 # define LT_DLLAZY_OR_NOW DL_NOW
10980 # else
10981 # define LT_DLLAZY_OR_NOW 0
10982 # endif
10983 # endif
10984 # endif
10985 # endif
10986 #endif
10987
10988 void fnord() { int i=42;}
10989 int main ()
10990 {
10991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10992 int status = $lt_dlunknown;
10993
10994 if (self)
10995 {
10996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10997 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10998 /* dlclose (self); */
10999 }
11000 else
11001 puts (dlerror ());
11002
11003 return status;
11004 }
11005 _LT_EOF
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007 (eval $ac_link) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11011 (./conftest; exit; ) >&5 2>/dev/null
11012 lt_status=$?
11013 case x$lt_status in
11014 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11015 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11016 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11017 esac
11018 else :
11019 # compilation failed
11020 lt_cv_dlopen_self=no
11021 fi
11022 fi
11023 rm -fr conftest*
11024
11025
11026 fi
11027 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11028 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11029
11030 if test "x$lt_cv_dlopen_self" = xyes; then
11031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11032 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11033 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11034 if test "${lt_cv_dlopen_self_static+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 if test "$cross_compiling" = yes; then :
11038 lt_cv_dlopen_self_static=cross
11039 else
11040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11041 lt_status=$lt_dlunknown
11042 cat > conftest.$ac_ext <<_LT_EOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11045
11046 #if HAVE_DLFCN_H
11047 #include <dlfcn.h>
11048 #endif
11049
11050 #include <stdio.h>
11051
11052 #ifdef RTLD_GLOBAL
11053 # define LT_DLGLOBAL RTLD_GLOBAL
11054 #else
11055 # ifdef DL_GLOBAL
11056 # define LT_DLGLOBAL DL_GLOBAL
11057 # else
11058 # define LT_DLGLOBAL 0
11059 # endif
11060 #endif
11061
11062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11063 find out it does not work in some platform. */
11064 #ifndef LT_DLLAZY_OR_NOW
11065 # ifdef RTLD_LAZY
11066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11067 # else
11068 # ifdef DL_LAZY
11069 # define LT_DLLAZY_OR_NOW DL_LAZY
11070 # else
11071 # ifdef RTLD_NOW
11072 # define LT_DLLAZY_OR_NOW RTLD_NOW
11073 # else
11074 # ifdef DL_NOW
11075 # define LT_DLLAZY_OR_NOW DL_NOW
11076 # else
11077 # define LT_DLLAZY_OR_NOW 0
11078 # endif
11079 # endif
11080 # endif
11081 # endif
11082 #endif
11083
11084 void fnord() { int i=42;}
11085 int main ()
11086 {
11087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088 int status = $lt_dlunknown;
11089
11090 if (self)
11091 {
11092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094 /* dlclose (self); */
11095 }
11096 else
11097 puts (dlerror ());
11098
11099 return status;
11100 }
11101 _LT_EOF
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11107 (./conftest; exit; ) >&5 2>/dev/null
11108 lt_status=$?
11109 case x$lt_status in
11110 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11111 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11112 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11113 esac
11114 else :
11115 # compilation failed
11116 lt_cv_dlopen_self_static=no
11117 fi
11118 fi
11119 rm -fr conftest*
11120
11121
11122 fi
11123 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11124 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11125 fi
11126
11127 CPPFLAGS="$save_CPPFLAGS"
11128 LDFLAGS="$save_LDFLAGS"
11129 LIBS="$save_LIBS"
11130 ;;
11131 esac
11132
11133 case $lt_cv_dlopen_self in
11134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11135 *) enable_dlopen_self=unknown ;;
11136 esac
11137
11138 case $lt_cv_dlopen_self_static in
11139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11140 *) enable_dlopen_self_static=unknown ;;
11141 esac
11142 fi
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 striplib=
11161 old_striplib=
11162 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11163 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11164 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11165 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11166 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11167 { echo "$as_me:$LINENO: result: yes" >&5
11168 echo "${ECHO_T}yes" >&6; }
11169 else
11170 # FIXME - insert some real tests, host_os isn't really good enough
11171 case $host_os in
11172 darwin*)
11173 if test -n "$STRIP" ; then
11174 striplib="$STRIP -x"
11175 old_striplib="$STRIP -S"
11176 { echo "$as_me:$LINENO: result: yes" >&5
11177 echo "${ECHO_T}yes" >&6; }
11178 else
11179 { echo "$as_me:$LINENO: result: no" >&5
11180 echo "${ECHO_T}no" >&6; }
11181 fi
11182 ;;
11183 *)
11184 { echo "$as_me:$LINENO: result: no" >&5
11185 echo "${ECHO_T}no" >&6; }
11186 ;;
11187 esac
11188 fi
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201 # Report which library types will actually be built
11202 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11203 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11204 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11205 echo "${ECHO_T}$can_build_shared" >&6; }
11206
11207 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11208 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11209 test "$can_build_shared" = "no" && enable_shared=no
11210
11211 # On AIX, shared libraries and static libraries use the same namespace, and
11212 # are all built from PIC.
11213 case $host_os in
11214 aix3*)
11215 test "$enable_shared" = yes && enable_static=no
11216 if test -n "$RANLIB"; then
11217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11218 postinstall_cmds='$RANLIB $lib'
11219 fi
11220 ;;
11221
11222 aix[4-9]*)
11223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11224 test "$enable_shared" = yes && enable_static=no
11225 fi
11226 ;;
11227 esac
11228 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11229 echo "${ECHO_T}$enable_shared" >&6; }
11230
11231 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11232 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11233 # Make sure either enable_shared or enable_static is yes.
11234 test "$enable_shared" = yes || enable_static=yes
11235 { echo "$as_me:$LINENO: result: $enable_static" >&5
11236 echo "${ECHO_T}$enable_static" >&6; }
11237
11238
11239
11240
11241 fi
11242 ac_ext=c
11243 ac_cpp='$CPP $CPPFLAGS'
11244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11247
11248 CC="$lt_save_CC"
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262 ac_config_commands="$ac_config_commands libtool"
11263
11264
11265
11266
11267 # Only expand once:
11268
11269
11270 { echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
11271 echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6; }
11272 if test "${libltdl_cv_shlibext+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275
11276 module=yes
11277 eval libltdl_cv_shlibext=$shrext_cmds
11278
11279 fi
11280 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
11281 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
11282 if test -n "$libltdl_cv_shlibext"; then
11283
11284 cat >>confdefs.h <<_ACEOF
11285 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11286 _ACEOF
11287
11288 fi
11289
11290 { echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
11291 echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6; }
11292 if test "${lt_cv_module_path_var+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295 lt_cv_module_path_var="$shlibpath_var"
11296 fi
11297 { echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
11298 echo "${ECHO_T}$lt_cv_module_path_var" >&6; }
11299 if test -n "$lt_cv_module_path_var"; then
11300
11301 cat >>confdefs.h <<_ACEOF
11302 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11303 _ACEOF
11304
11305 fi
11306
11307 { echo "$as_me:$LINENO: checking for the default library search path" >&5
11308 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
11309 if test "${lt_cv_sys_dlsearch_path+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11313 fi
11314 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
11315 echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6; }
11316 if test -n "$lt_cv_sys_dlsearch_path"; then
11317 sys_dlsearch_path=
11318 for dir in $lt_cv_sys_dlsearch_path; do
11319 if test -z "$sys_dlsearch_path"; then
11320 sys_dlsearch_path="$dir"
11321 else
11322 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11323 fi
11324 done
11325
11326 cat >>confdefs.h <<_ACEOF
11327 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11328 _ACEOF
11329
11330 fi
11331
11332
11333 LT_DLLOADERS=
11334
11335
11336 ac_ext=c
11337 ac_cpp='$CPP $CPPFLAGS'
11338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11341
11342
11343 LIBADD_DLOPEN=
11344 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11345 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11346 if test "${ac_cv_search_dlopen+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 ac_func_search_save_LIBS=$LIBS
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char dlopen ();
11364 int
11365 main ()
11366 {
11367 return dlopen ();
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 for ac_lib in '' dl; do
11373 if test -z "$ac_lib"; then
11374 ac_res="none required"
11375 else
11376 ac_res=-l$ac_lib
11377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11378 fi
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (ac_try="$ac_link"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_link") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } && {
11393 test -z "$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 } && test -s conftest$ac_exeext &&
11396 $as_test_x conftest$ac_exeext; then
11397 ac_cv_search_dlopen=$ac_res
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402
11403 fi
11404
11405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11406 conftest$ac_exeext
11407 if test "${ac_cv_search_dlopen+set}" = set; then
11408 break
11409 fi
11410 done
11411 if test "${ac_cv_search_dlopen+set}" = set; then
11412 :
11413 else
11414 ac_cv_search_dlopen=no
11415 fi
11416 rm conftest.$ac_ext
11417 LIBS=$ac_func_search_save_LIBS
11418 fi
11419 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11420 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11421 ac_res=$ac_cv_search_dlopen
11422 if test "$ac_res" != no; then
11423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11424
11425 cat >>confdefs.h <<\_ACEOF
11426 #define HAVE_LIBDL 1
11427 _ACEOF
11428
11429 if test "$ac_cv_search_dlopen" != "none required" ; then
11430 LIBADD_DLOPEN="-ldl"
11431 fi
11432 libltdl_cv_lib_dl_dlopen="yes"
11433 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11434 else
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #if HAVE_DLFCN_H
11442 # include <dlfcn.h>
11443 #endif
11444
11445 int
11446 main ()
11447 {
11448 dlopen(0, 0);
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (ac_try="$ac_link"
11455 case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_link") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest$ac_exeext &&
11470 $as_test_x conftest$ac_exeext; then
11471
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_LIBDL 1
11474 _ACEOF
11475
11476 libltdl_cv_func_dlopen="yes"
11477 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-lsvld $LIBS"
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char dlopen ();
11503 int
11504 main ()
11505 {
11506 return dlopen ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (ac_try="$ac_link"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_link") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest$ac_exeext &&
11528 $as_test_x conftest$ac_exeext; then
11529 ac_cv_lib_svld_dlopen=yes
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 ac_cv_lib_svld_dlopen=no
11535 fi
11536
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11542 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11543 if test $ac_cv_lib_svld_dlopen = yes; then
11544
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_LIBDL 1
11547 _ACEOF
11548
11549 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11550 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11551 fi
11552
11553 fi
11554
11555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11556 conftest$ac_exeext conftest.$ac_ext
11557 fi
11558
11559 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11560 then
11561 lt_save_LIBS="$LIBS"
11562 LIBS="$LIBS $LIBADD_DLOPEN"
11563
11564 for ac_func in dlerror
11565 do
11566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h. */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11580 #define $ac_func innocuous_$ac_func
11581
11582 /* System header to define __stub macros and hopefully few prototypes,
11583 which can conflict with char $ac_func (); below.
11584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11585 <limits.h> exists even on freestanding compilers. */
11586
11587 #ifdef __STDC__
11588 # include <limits.h>
11589 #else
11590 # include <assert.h>
11591 #endif
11592
11593 #undef $ac_func
11594
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char $ac_func ();
11602 /* The GNU C library defines this for functions which it implements
11603 to always fail with ENOSYS. Some functions are actually named
11604 something starting with __ and the normal name is an alias. */
11605 #if defined __stub_$ac_func || defined __stub___$ac_func
11606 choke me
11607 #endif
11608
11609 int
11610 main ()
11611 {
11612 return $ac_func ();
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (ac_try="$ac_link"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_link") 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest$ac_exeext &&
11634 $as_test_x conftest$ac_exeext; then
11635 eval "$as_ac_var=yes"
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 eval "$as_ac_var=no"
11641 fi
11642
11643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11644 conftest$ac_exeext conftest.$ac_ext
11645 fi
11646 ac_res=`eval echo '${'$as_ac_var'}'`
11647 { echo "$as_me:$LINENO: result: $ac_res" >&5
11648 echo "${ECHO_T}$ac_res" >&6; }
11649 if test `eval echo '${'$as_ac_var'}'` = yes; then
11650 cat >>confdefs.h <<_ACEOF
11651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11652 _ACEOF
11653
11654 fi
11655 done
11656
11657 LIBS="$lt_save_LIBS"
11658 fi
11659
11660
11661 LIBADD_SHL_LOAD=
11662 { echo "$as_me:$LINENO: checking for shl_load" >&5
11663 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11664 if test "${ac_cv_func_shl_load+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h. */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11675 #define shl_load innocuous_shl_load
11676
11677 /* System header to define __stub macros and hopefully few prototypes,
11678 which can conflict with char shl_load (); below.
11679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680 <limits.h> exists even on freestanding compilers. */
11681
11682 #ifdef __STDC__
11683 # include <limits.h>
11684 #else
11685 # include <assert.h>
11686 #endif
11687
11688 #undef shl_load
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char shl_load ();
11697 /* The GNU C library defines this for functions which it implements
11698 to always fail with ENOSYS. Some functions are actually named
11699 something starting with __ and the normal name is an alias. */
11700 #if defined __stub_shl_load || defined __stub___shl_load
11701 choke me
11702 #endif
11703
11704 int
11705 main ()
11706 {
11707 return shl_load ();
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (ac_try="$ac_link"
11714 case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_link") 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
11727 test ! -s conftest.err
11728 } && test -s conftest$ac_exeext &&
11729 $as_test_x conftest$ac_exeext; then
11730 ac_cv_func_shl_load=yes
11731 else
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_cv_func_shl_load=no
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11739 conftest$ac_exeext conftest.$ac_ext
11740 fi
11741 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11742 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11743 if test $ac_cv_func_shl_load = yes; then
11744
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_SHL_LOAD 1
11747 _ACEOF
11748
11749 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11750 else
11751 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11752 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11753 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-ldld $LIBS"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764
11765 /* Override any GCC internal prototype to avoid an error.
11766 Use char because int might match the return type of a GCC
11767 builtin and then its argument prototype would still apply. */
11768 #ifdef __cplusplus
11769 extern "C"
11770 #endif
11771 char shl_load ();
11772 int
11773 main ()
11774 {
11775 return shl_load ();
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_link") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext &&
11797 $as_test_x conftest$ac_exeext; then
11798 ac_cv_lib_dld_shl_load=yes
11799 else
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803 ac_cv_lib_dld_shl_load=no
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11808 LIBS=$ac_check_lib_save_LIBS
11809 fi
11810 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11811 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11812 if test $ac_cv_lib_dld_shl_load = yes; then
11813
11814 cat >>confdefs.h <<\_ACEOF
11815 #define HAVE_SHL_LOAD 1
11816 _ACEOF
11817
11818 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11819 LIBADD_SHL_LOAD="-ldld"
11820 fi
11821
11822 fi
11823
11824
11825
11826 case $host_os in
11827 darwin[1567].*)
11828 # We only want this for pre-Mac OS X 10.4.
11829 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11830 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11831 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define _dyld_func_lookup innocuous__dyld_func_lookup
11843
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char _dyld_func_lookup (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11848
11849 #ifdef __STDC__
11850 # include <limits.h>
11851 #else
11852 # include <assert.h>
11853 #endif
11854
11855 #undef _dyld_func_lookup
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char _dyld_func_lookup ();
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11868 choke me
11869 #endif
11870
11871 int
11872 main ()
11873 {
11874 return _dyld_func_lookup ();
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_func__dyld_func_lookup=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_func__dyld_func_lookup=no
11903 fi
11904
11905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907 fi
11908 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11909 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11910 if test $ac_cv_func__dyld_func_lookup = yes; then
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_DYLD 1
11914 _ACEOF
11915
11916 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11917 fi
11918
11919 ;;
11920 beos*)
11921 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11922 ;;
11923 cygwin* | mingw* | os2* | pw32*)
11924 { echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
11925 echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6; }
11926 if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <sys/cygwin.h>
11936
11937 int
11938 main ()
11939 {
11940 #ifndef cygwin_conv_path
11941 (void) cygwin_conv_path;
11942 #endif
11943
11944 ;
11945 return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext
11949 if { (ac_try="$ac_compile"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_compile") 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest.$ac_objext; then
11965 ac_cv_have_decl_cygwin_conv_path=yes
11966 else
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 ac_cv_have_decl_cygwin_conv_path=no
11971 fi
11972
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
11976 echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6; }
11977 if test $ac_cv_have_decl_cygwin_conv_path = yes; then
11978
11979 cat >>confdefs.h <<_ACEOF
11980 #define HAVE_DECL_CYGWIN_CONV_PATH 1
11981 _ACEOF
11982
11983
11984 else
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_DECL_CYGWIN_CONV_PATH 0
11987 _ACEOF
11988
11989
11990 fi
11991
11992
11993 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11994 ;;
11995 esac
11996
11997 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11998 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11999 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002 ac_check_lib_save_LIBS=$LIBS
12003 LIBS="-ldld $LIBS"
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char dld_link ();
12018 int
12019 main ()
12020 {
12021 return dld_link ();
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (ac_try="$ac_link"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext &&
12043 $as_test_x conftest$ac_exeext; then
12044 ac_cv_lib_dld_dld_link=yes
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 ac_cv_lib_dld_dld_link=no
12050 fi
12051
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12054 LIBS=$ac_check_lib_save_LIBS
12055 fi
12056 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12057 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12058 if test $ac_cv_lib_dld_dld_link = yes; then
12059
12060 cat >>confdefs.h <<\_ACEOF
12061 #define HAVE_DLD 1
12062 _ACEOF
12063
12064 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12065 fi
12066
12067
12068
12069
12070 LT_DLPREOPEN=
12071 if test -n "$LT_DLLOADERS"
12072 then
12073 for lt_loader in $LT_DLLOADERS; do
12074 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12075 done
12076
12077 cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_LIBDLLOADER 1
12079 _ACEOF
12080
12081 fi
12082
12083
12084 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12085
12086
12087 ac_ext=c
12088 ac_cpp='$CPP $CPPFLAGS'
12089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12092
12093
12094 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
12095 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
12096 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 lt_cv_sys_symbol_underscore=no
12100 cat > conftest.$ac_ext <<_LT_EOF
12101 void nm_test_func(){}
12102 int main(){nm_test_func;return 0;}
12103 _LT_EOF
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; then
12109 # Now try to grab the symbols.
12110 ac_nlist=conftest.nm
12111 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
12112 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && test -s "$ac_nlist"; then
12116 # See whether the symbols have a leading underscore.
12117 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12118 lt_cv_sys_symbol_underscore=yes
12119 else
12120 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12121 :
12122 else
12123 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12124 fi
12125 fi
12126 else
12127 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12128 fi
12129 else
12130 echo "configure: failed program was:" >&5
12131 cat conftest.c >&5
12132 fi
12133 rm -rf conftest*
12134
12135 fi
12136 { echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
12137 echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6; }
12138 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12139
12140
12141 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12142 if test x"$libltdl_cv_func_dlopen" = xyes ||
12143 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12144 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
12145 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
12146 if test "${libltdl_cv_need_uscore+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 libltdl_cv_need_uscore=unknown
12150 save_LIBS="$LIBS"
12151 LIBS="$LIBS $LIBADD_DLOPEN"
12152 if test "$cross_compiling" = yes; then :
12153 libltdl_cv_need_uscore=cross
12154 else
12155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12156 lt_status=$lt_dlunknown
12157 cat > conftest.$ac_ext <<_LT_EOF
12158 #line 12158 "configure"
12159 #include "confdefs.h"
12160
12161 #if HAVE_DLFCN_H
12162 #include <dlfcn.h>
12163 #endif
12164
12165 #include <stdio.h>
12166
12167 #ifdef RTLD_GLOBAL
12168 # define LT_DLGLOBAL RTLD_GLOBAL
12169 #else
12170 # ifdef DL_GLOBAL
12171 # define LT_DLGLOBAL DL_GLOBAL
12172 # else
12173 # define LT_DLGLOBAL 0
12174 # endif
12175 #endif
12176
12177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12178 find out it does not work in some platform. */
12179 #ifndef LT_DLLAZY_OR_NOW
12180 # ifdef RTLD_LAZY
12181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12182 # else
12183 # ifdef DL_LAZY
12184 # define LT_DLLAZY_OR_NOW DL_LAZY
12185 # else
12186 # ifdef RTLD_NOW
12187 # define LT_DLLAZY_OR_NOW RTLD_NOW
12188 # else
12189 # ifdef DL_NOW
12190 # define LT_DLLAZY_OR_NOW DL_NOW
12191 # else
12192 # define LT_DLLAZY_OR_NOW 0
12193 # endif
12194 # endif
12195 # endif
12196 # endif
12197 #endif
12198
12199 void fnord() { int i=42;}
12200 int main ()
12201 {
12202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12203 int status = $lt_dlunknown;
12204
12205 if (self)
12206 {
12207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12209 /* dlclose (self); */
12210 }
12211 else
12212 puts (dlerror ());
12213
12214 return status;
12215 }
12216 _LT_EOF
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12222 (./conftest; exit; ) >&5 2>/dev/null
12223 lt_status=$?
12224 case x$lt_status in
12225 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12226 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12227 x$lt_dlunknown|x*) ;;
12228 esac
12229 else :
12230 # compilation failed
12231
12232 fi
12233 fi
12234 rm -fr conftest*
12235
12236 LIBS="$save_LIBS"
12237
12238 fi
12239 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
12240 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
12241 fi
12242 fi
12243
12244 if test x"$libltdl_cv_need_uscore" = xyes; then
12245
12246 cat >>confdefs.h <<\_ACEOF
12247 #define NEED_USCORE 1
12248 _ACEOF
12249
12250 fi
12251
12252 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
12253 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
12254 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 # PORTME does your system automatically load deplibs for dlopen?
12258 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12259 # For now, we just catch OSes we know something about -- in the
12260 # future, we'll try test this programmatically.
12261 lt_cv_sys_dlopen_deplibs=unknown
12262 case $host_os in
12263 aix3*|aix4.1.*|aix4.2.*)
12264 # Unknown whether this is true for these versions of AIX, but
12265 # we want this `case' here to explicitly catch those versions.
12266 lt_cv_sys_dlopen_deplibs=unknown
12267 ;;
12268 aix[4-9]*)
12269 lt_cv_sys_dlopen_deplibs=yes
12270 ;;
12271 amigaos*)
12272 case $host_cpu in
12273 powerpc)
12274 lt_cv_sys_dlopen_deplibs=no
12275 ;;
12276 esac
12277 ;;
12278 darwin*)
12279 # Assuming the user has installed a libdl from somewhere, this is true
12280 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12281 lt_cv_sys_dlopen_deplibs=yes
12282 ;;
12283 freebsd* | dragonfly*)
12284 lt_cv_sys_dlopen_deplibs=yes
12285 ;;
12286 gnu* | linux* | k*bsd*-gnu)
12287 # GNU and its variants, using gnu ld.so (Glibc)
12288 lt_cv_sys_dlopen_deplibs=yes
12289 ;;
12290 hpux10*|hpux11*)
12291 lt_cv_sys_dlopen_deplibs=yes
12292 ;;
12293 interix*)
12294 lt_cv_sys_dlopen_deplibs=yes
12295 ;;
12296 irix[12345]*|irix6.[01]*)
12297 # Catch all versions of IRIX before 6.2, and indicate that we don't
12298 # know how it worked for any of those versions.
12299 lt_cv_sys_dlopen_deplibs=unknown
12300 ;;
12301 irix*)
12302 # The case above catches anything before 6.2, and it's known that
12303 # at 6.2 and later dlopen does load deplibs.
12304 lt_cv_sys_dlopen_deplibs=yes
12305 ;;
12306 netbsd* | netbsdelf*-gnu)
12307 lt_cv_sys_dlopen_deplibs=yes
12308 ;;
12309 openbsd*)
12310 lt_cv_sys_dlopen_deplibs=yes
12311 ;;
12312 osf[1234]*)
12313 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12314 # it did *not* use an RPATH in a shared library to find objects the
12315 # library depends on, so we explicitly say `no'.
12316 lt_cv_sys_dlopen_deplibs=no
12317 ;;
12318 osf5.0|osf5.0a|osf5.1)
12319 # dlopen *does* load deplibs and with the right loader patch applied
12320 # it even uses RPATH in a shared library to search for shared objects
12321 # that the library depends on, but there's no easy way to know if that
12322 # patch is installed. Since this is the case, all we can really
12323 # say is unknown -- it depends on the patch being installed. If
12324 # it is, this changes to `yes'. Without it, it would be `no'.
12325 lt_cv_sys_dlopen_deplibs=unknown
12326 ;;
12327 osf*)
12328 # the two cases above should catch all versions of osf <= 5.1. Read
12329 # the comments above for what we know about them.
12330 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12331 # is used to find them so we can finally say `yes'.
12332 lt_cv_sys_dlopen_deplibs=yes
12333 ;;
12334 qnx*)
12335 lt_cv_sys_dlopen_deplibs=yes
12336 ;;
12337 solaris*)
12338 lt_cv_sys_dlopen_deplibs=yes
12339 ;;
12340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12341 libltdl_cv_sys_dlopen_deplibs=yes
12342 ;;
12343 esac
12344
12345 fi
12346 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
12347 echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6; }
12348 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12349
12350 cat >>confdefs.h <<\_ACEOF
12351 #define LTDL_DLOPEN_DEPLIBS 1
12352 _ACEOF
12353
12354 fi
12355
12356 :
12357
12358
12359 for ac_header in argz.h
12360 do
12361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374
12375 #include <$ac_header>
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (ac_try="$ac_compile"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_compile") 2>conftest.er1
12385 ac_status=$?
12386 grep -v '^ *+' conftest.er1 >conftest.err
12387 rm -f conftest.er1
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest.$ac_objext; then
12394 eval "$as_ac_Header=yes"
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399 eval "$as_ac_Header=no"
12400 fi
12401
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 ac_res=`eval echo '${'$as_ac_Header'}'`
12405 { echo "$as_me:$LINENO: result: $ac_res" >&5
12406 echo "${ECHO_T}$ac_res" >&6; }
12407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12408 cat >>confdefs.h <<_ACEOF
12409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12410 _ACEOF
12411
12412 fi
12413
12414 done
12415
12416
12417 { echo "$as_me:$LINENO: checking for error_t" >&5
12418 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
12419 if test "${ac_cv_type_error_t+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 #if defined(HAVE_ARGZ_H)
12429 # include <argz.h>
12430 #endif
12431
12432 typedef error_t ac__type_new_;
12433 int
12434 main ()
12435 {
12436 if ((ac__type_new_ *) 0)
12437 return 0;
12438 if (sizeof (ac__type_new_))
12439 return 0;
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 rm -f conftest.$ac_objext
12445 if { (ac_try="$ac_compile"
12446 case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_compile") 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && {
12458 test -z "$ac_c_werror_flag" ||
12459 test ! -s conftest.err
12460 } && test -s conftest.$ac_objext; then
12461 ac_cv_type_error_t=yes
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 ac_cv_type_error_t=no
12467 fi
12468
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 fi
12471 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12472 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12473 if test $ac_cv_type_error_t = yes; then
12474
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_ERROR_T 1
12477 _ACEOF
12478
12479
12480 else
12481
12482 cat >>confdefs.h <<\_ACEOF
12483 #define error_t int
12484 _ACEOF
12485
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define __error_t_defined 1
12489 _ACEOF
12490
12491 fi
12492
12493
12494 ARGZ_H=
12495
12496
12497
12498
12499
12500
12501
12502 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12503 argz_next argz_stringify
12504 do
12505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12519 #define $ac_func innocuous_$ac_func
12520
12521 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char $ac_func (); below.
12523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12524 <limits.h> exists even on freestanding compilers. */
12525
12526 #ifdef __STDC__
12527 # include <limits.h>
12528 #else
12529 # include <assert.h>
12530 #endif
12531
12532 #undef $ac_func
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char $ac_func ();
12541 /* The GNU C library defines this for functions which it implements
12542 to always fail with ENOSYS. Some functions are actually named
12543 something starting with __ and the normal name is an alias. */
12544 #if defined __stub_$ac_func || defined __stub___$ac_func
12545 choke me
12546 #endif
12547
12548 int
12549 main ()
12550 {
12551 return $ac_func ();
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest$ac_exeext &&
12573 $as_test_x conftest$ac_exeext; then
12574 eval "$as_ac_var=yes"
12575 else
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 eval "$as_ac_var=no"
12580 fi
12581
12582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12583 conftest$ac_exeext conftest.$ac_ext
12584 fi
12585 ac_res=`eval echo '${'$as_ac_var'}'`
12586 { echo "$as_me:$LINENO: result: $ac_res" >&5
12587 echo "${ECHO_T}$ac_res" >&6; }
12588 if test `eval echo '${'$as_ac_var'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12591 _ACEOF
12592
12593 else
12594 ARGZ_H=argz.h; case " $LIBOBJS " in
12595 *" argz.$ac_objext "* ) ;;
12596 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12597 ;;
12598 esac
12599
12600 fi
12601 done
12602
12603
12604 if test -z "$ARGZ_H"; then
12605 { echo "$as_me:$LINENO: checking if argz actually works" >&5
12606 echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6; }
12607 if test "${lt_cv_sys_argz_works+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610 case $host_os in #(
12611 *cygwin*)
12612 lt_cv_sys_argz_works=no
12613 if test "$cross_compiling" != no; then
12614 lt_cv_sys_argz_works="guessing no"
12615 else
12616 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12617 save_IFS=$IFS
12618 IFS=-.
12619 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12620 IFS=$save_IFS
12621 lt_os_major=${2-0}
12622 lt_os_minor=${3-0}
12623 lt_os_micro=${4-0}
12624 if test "$lt_os_major" -gt 1 \
12625 || { test "$lt_os_major" -eq 1 \
12626 && { test "$lt_os_minor" -gt 5 \
12627 || { test "$lt_os_minor" -eq 5 \
12628 && test "$lt_os_micro" -gt 24; }; }; }; then
12629 lt_cv_sys_argz_works=yes
12630 fi
12631 fi
12632 ;; #(
12633 *) lt_cv_sys_argz_works=yes ;;
12634 esac
12635 fi
12636 { echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
12637 echo "${ECHO_T}$lt_cv_sys_argz_works" >&6; }
12638 if test $lt_cv_sys_argz_works = yes; then
12639
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_WORKING_ARGZ 1
12642 _ACEOF
12643
12644 else
12645 ARGZ_H=argz.h
12646 case " $LIBOBJS " in
12647 *" argz.$ac_objext "* ) ;;
12648 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12649 ;;
12650 esac
12651
12652 fi
12653
12654 fi
12655
12656
12657
12658
12659 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
12660 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
12661 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12665 libltdl_cv_preloaded_symbols=yes
12666 else
12667 libltdl_cv_preloaded_symbols=no
12668 fi
12669
12670 fi
12671 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
12672 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
12673 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12674
12675 cat >>confdefs.h <<\_ACEOF
12676 #define HAVE_PRELOADED_SYMBOLS 1
12677 _ACEOF
12678
12679 fi
12680
12681
12682
12683 # Check whether --enable-ltdl-install was given.
12684 if test "${enable_ltdl_install+set}" = set; then
12685 enableval=$enable_ltdl_install;
12686 fi
12687
12688
12689 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12690 *yes*) ;;
12691 *) enable_ltdl_convenience=yes ;;
12692 esac
12693
12694 if test x"${enable_ltdl_install-no}" != xno; then
12695 INSTALL_LTDL_TRUE=
12696 INSTALL_LTDL_FALSE='#'
12697 else
12698 INSTALL_LTDL_TRUE='#'
12699 INSTALL_LTDL_FALSE=
12700 fi
12701
12702 if test x"${enable_ltdl_convenience-no}" != xno; then
12703 CONVENIENCE_LTDL_TRUE=
12704 CONVENIENCE_LTDL_FALSE='#'
12705 else
12706 CONVENIENCE_LTDL_TRUE='#'
12707 CONVENIENCE_LTDL_FALSE=
12708 fi
12709
12710
12711
12712
12713
12714
12715 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12716 # the user used. This is so that ltdl.h can pick up the parent projects
12717 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12718 # definitions required by ltdl.c.
12719 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12730 do
12731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h. */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 $ac_includes_default
12744
12745 #include <$ac_header>
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (ac_try="$ac_compile"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 eval "$as_ac_Header=yes"
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 eval "$as_ac_Header=no"
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 fi
12774 ac_res=`eval echo '${'$as_ac_Header'}'`
12775 { echo "$as_me:$LINENO: result: $ac_res" >&5
12776 echo "${ECHO_T}$ac_res" >&6; }
12777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778 cat >>confdefs.h <<_ACEOF
12779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780 _ACEOF
12781
12782 fi
12783
12784 done
12785
12786
12787
12788
12789
12790 for ac_func in closedir opendir readdir
12791 do
12792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h. */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12806 #define $ac_func innocuous_$ac_func
12807
12808 /* System header to define __stub macros and hopefully few prototypes,
12809 which can conflict with char $ac_func (); below.
12810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12811 <limits.h> exists even on freestanding compilers. */
12812
12813 #ifdef __STDC__
12814 # include <limits.h>
12815 #else
12816 # include <assert.h>
12817 #endif
12818
12819 #undef $ac_func
12820
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12824 #ifdef __cplusplus
12825 extern "C"
12826 #endif
12827 char $ac_func ();
12828 /* The GNU C library defines this for functions which it implements
12829 to always fail with ENOSYS. Some functions are actually named
12830 something starting with __ and the normal name is an alias. */
12831 #if defined __stub_$ac_func || defined __stub___$ac_func
12832 choke me
12833 #endif
12834
12835 int
12836 main ()
12837 {
12838 return $ac_func ();
12839 ;
12840 return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_link") 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && {
12857 test -z "$ac_c_werror_flag" ||
12858 test ! -s conftest.err
12859 } && test -s conftest$ac_exeext &&
12860 $as_test_x conftest$ac_exeext; then
12861 eval "$as_ac_var=yes"
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 eval "$as_ac_var=no"
12867 fi
12868
12869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12870 conftest$ac_exeext conftest.$ac_ext
12871 fi
12872 ac_res=`eval echo '${'$as_ac_var'}'`
12873 { echo "$as_me:$LINENO: result: $ac_res" >&5
12874 echo "${ECHO_T}$ac_res" >&6; }
12875 if test `eval echo '${'$as_ac_var'}'` = yes; then
12876 cat >>confdefs.h <<_ACEOF
12877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12878 _ACEOF
12879
12880 else
12881 case " $LIBOBJS " in
12882 *" lt__dirent.$ac_objext "* ) ;;
12883 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12884 ;;
12885 esac
12886
12887 fi
12888 done
12889
12890
12891
12892 for ac_func in strlcat strlcpy
12893 do
12894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12908 #define $ac_func innocuous_$ac_func
12909
12910 /* System header to define __stub macros and hopefully few prototypes,
12911 which can conflict with char $ac_func (); below.
12912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12913 <limits.h> exists even on freestanding compilers. */
12914
12915 #ifdef __STDC__
12916 # include <limits.h>
12917 #else
12918 # include <assert.h>
12919 #endif
12920
12921 #undef $ac_func
12922
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12926 #ifdef __cplusplus
12927 extern "C"
12928 #endif
12929 char $ac_func ();
12930 /* The GNU C library defines this for functions which it implements
12931 to always fail with ENOSYS. Some functions are actually named
12932 something starting with __ and the normal name is an alias. */
12933 #if defined __stub_$ac_func || defined __stub___$ac_func
12934 choke me
12935 #endif
12936
12937 int
12938 main ()
12939 {
12940 return $ac_func ();
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && {
12959 test -z "$ac_c_werror_flag" ||
12960 test ! -s conftest.err
12961 } && test -s conftest$ac_exeext &&
12962 $as_test_x conftest$ac_exeext; then
12963 eval "$as_ac_var=yes"
12964 else
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12967
12968 eval "$as_ac_var=no"
12969 fi
12970
12971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12972 conftest$ac_exeext conftest.$ac_ext
12973 fi
12974 ac_res=`eval echo '${'$as_ac_var'}'`
12975 { echo "$as_me:$LINENO: result: $ac_res" >&5
12976 echo "${ECHO_T}$ac_res" >&6; }
12977 if test `eval echo '${'$as_ac_var'}'` = yes; then
12978 cat >>confdefs.h <<_ACEOF
12979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12980 _ACEOF
12981
12982 else
12983 case " $LIBOBJS " in
12984 *" lt__strl.$ac_objext "* ) ;;
12985 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12986 ;;
12987 esac
12988
12989 fi
12990 done
12991
12992
12993
12994 cat >>confdefs.h <<_ACEOF
12995 #define LT_LIBEXT "$libext"
12996 _ACEOF
12997
12998
12999 name=ltdl
13000 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
13001
13002
13003
13004
13005 ## -------- ##
13006 ## Outputs. ##
13007 ## -------- ##
13008 ac_config_files="$ac_config_files Makefile"
13009
13010 cat >confcache <<\_ACEOF
13011 # This file is a shell script that caches the results of configure
13012 # tests run on this system so they can be shared between configure
13013 # scripts and configure runs, see configure's option --config-cache.
13014 # It is not useful on other systems. If it contains results you don't
13015 # want to keep, you may remove or edit it.
13016 #
13017 # config.status only pays attention to the cache file if you give it
13018 # the --recheck option to rerun configure.
13019 #
13020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13022 # following values.
13023
13024 _ACEOF
13025
13026 # The following way of writing the cache mishandles newlines in values,
13027 # but we know of no workaround that is simple, portable, and efficient.
13028 # So, we kill variables containing newlines.
13029 # Ultrix sh set writes to stderr and can't be redirected directly,
13030 # and sets the high bit in the cache file unless we assign to the vars.
13031 (
13032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13033 eval ac_val=\$$ac_var
13034 case $ac_val in #(
13035 *${as_nl}*)
13036 case $ac_var in #(
13037 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13038 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13039 esac
13040 case $ac_var in #(
13041 _ | IFS | as_nl) ;; #(
13042 *) $as_unset $ac_var ;;
13043 esac ;;
13044 esac
13045 done
13046
13047 (set) 2>&1 |
13048 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13049 *${as_nl}ac_space=\ *)
13050 # `set' does not quote correctly, so add quotes (double-quote
13051 # substitution turns \\\\ into \\, and sed turns \\ into \).
13052 sed -n \
13053 "s/'/'\\\\''/g;
13054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13055 ;; #(
13056 *)
13057 # `set' quotes correctly as required by POSIX, so do not add quotes.
13058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13059 ;;
13060 esac |
13061 sort
13062 ) |
13063 sed '
13064 /^ac_cv_env_/b end
13065 t clear
13066 :clear
13067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13068 t end
13069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13070 :end' >>confcache
13071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13072 if test -w "$cache_file"; then
13073 test "x$cache_file" != "x/dev/null" &&
13074 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13075 echo "$as_me: updating cache $cache_file" >&6;}
13076 cat confcache >$cache_file
13077 else
13078 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13079 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13080 fi
13081 fi
13082 rm -f confcache
13083
13084 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13085 # Let make expand exec_prefix.
13086 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13087
13088 DEFS=-DHAVE_CONFIG_H
13089
13090 ac_libobjs=
13091 ac_ltlibobjs=
13092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13093 # 1. Remove the extension, and $U if already installed.
13094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13095 ac_i=`echo "$ac_i" | sed "$ac_script"`
13096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13097 # will be set to the directory where LIBOBJS objects are built.
13098 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13099 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13100 done
13101 LIBOBJS=$ac_libobjs
13102
13103 LTLIBOBJS=$ac_ltlibobjs
13104
13105
13106 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13107 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13108 Usually this means the macro was only invoked conditionally." >&5
13109 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13110 Usually this means the macro was only invoked conditionally." >&2;}
13111 { (exit 1); exit 1; }; }
13112 fi
13113 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13114 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13115 Usually this means the macro was only invoked conditionally." >&5
13116 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13117 Usually this means the macro was only invoked conditionally." >&2;}
13118 { (exit 1); exit 1; }; }
13119 fi
13120 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13121 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
13122 Usually this means the macro was only invoked conditionally." >&5
13123 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
13124 Usually this means the macro was only invoked conditionally." >&2;}
13125 { (exit 1); exit 1; }; }
13126 fi
13127 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13128 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13129 Usually this means the macro was only invoked conditionally." >&5
13130 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13131 Usually this means the macro was only invoked conditionally." >&2;}
13132 { (exit 1); exit 1; }; }
13133 fi
13134 LT_CONFIG_H=config.h
13135
13136 : ${CONFIG_STATUS=./config.status}
13137 ac_clean_files_save=$ac_clean_files
13138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13141 cat >$CONFIG_STATUS <<_ACEOF
13142 #! $SHELL
13143 # Generated by $as_me.
13144 # Run this file to recreate the current configuration.
13145 # Compiler output produced by configure, useful for debugging
13146 # configure, is in config.log if it exists.
13147
13148 debug=false
13149 ac_cs_recheck=false
13150 ac_cs_silent=false
13151 SHELL=\${CONFIG_SHELL-$SHELL}
13152 _ACEOF
13153
13154 cat >>$CONFIG_STATUS <<\_ACEOF
13155 ## --------------------- ##
13156 ## M4sh Initialization. ##
13157 ## --------------------- ##
13158
13159 # Be more Bourne compatible
13160 DUALCASE=1; export DUALCASE # for MKS sh
13161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13162 emulate sh
13163 NULLCMD=:
13164 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13165 # is contrary to our usage. Disable this feature.
13166 alias -g '${1+"$@"}'='"$@"'
13167 setopt NO_GLOB_SUBST
13168 else
13169 case `(set -o) 2>/dev/null` in
13170 *posix*) set -o posix ;;
13171 esac
13172
13173 fi
13174
13175
13176
13177
13178 # PATH needs CR
13179 # Avoid depending upon Character Ranges.
13180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13183 as_cr_digits='0123456789'
13184 as_cr_alnum=$as_cr_Letters$as_cr_digits
13185
13186 # The user is always right.
13187 if test "${PATH_SEPARATOR+set}" != set; then
13188 echo "#! /bin/sh" >conf$$.sh
13189 echo "exit 0" >>conf$$.sh
13190 chmod +x conf$$.sh
13191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13192 PATH_SEPARATOR=';'
13193 else
13194 PATH_SEPARATOR=:
13195 fi
13196 rm -f conf$$.sh
13197 fi
13198
13199 # Support unset when possible.
13200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13201 as_unset=unset
13202 else
13203 as_unset=false
13204 fi
13205
13206
13207 # IFS
13208 # We need space, tab and new line, in precisely that order. Quoting is
13209 # there to prevent editors from complaining about space-tab.
13210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13211 # splitting by setting IFS to empty value.)
13212 as_nl='
13213 '
13214 IFS=" "" $as_nl"
13215
13216 # Find who we are. Look in the path if we contain no directory separator.
13217 case $0 in
13218 *[\\/]* ) as_myself=$0 ;;
13219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13225 done
13226 IFS=$as_save_IFS
13227
13228 ;;
13229 esac
13230 # We did not find ourselves, most probably we were run as `sh COMMAND'
13231 # in which case we are not to be found in the path.
13232 if test "x$as_myself" = x; then
13233 as_myself=$0
13234 fi
13235 if test ! -f "$as_myself"; then
13236 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13237 { (exit 1); exit 1; }
13238 fi
13239
13240 # Work around bugs in pre-3.0 UWIN ksh.
13241 for as_var in ENV MAIL MAILPATH
13242 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13243 done
13244 PS1='$ '
13245 PS2='> '
13246 PS4='+ '
13247
13248 # NLS nuisances.
13249 for as_var in \
13250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13252 LC_TELEPHONE LC_TIME
13253 do
13254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13255 eval $as_var=C; export $as_var
13256 else
13257 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13258 fi
13259 done
13260
13261 # Required to use basename.
13262 if expr a : '\(a\)' >/dev/null 2>&1 &&
13263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13264 as_expr=expr
13265 else
13266 as_expr=false
13267 fi
13268
13269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13270 as_basename=basename
13271 else
13272 as_basename=false
13273 fi
13274
13275
13276 # Name of the executable.
13277 as_me=`$as_basename -- "$0" ||
13278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13279 X"$0" : 'X\(//\)$' \| \
13280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13281 echo X/"$0" |
13282 sed '/^.*\/\([^/][^/]*\)\/*$/{
13283 s//\1/
13284 q
13285 }
13286 /^X\/\(\/\/\)$/{
13287 s//\1/
13288 q
13289 }
13290 /^X\/\(\/\).*/{
13291 s//\1/
13292 q
13293 }
13294 s/.*/./; q'`
13295
13296 # CDPATH.
13297 $as_unset CDPATH
13298
13299
13300
13301 as_lineno_1=$LINENO
13302 as_lineno_2=$LINENO
13303 test "x$as_lineno_1" != "x$as_lineno_2" &&
13304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13305
13306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13307 # uniformly replaced by the line number. The first 'sed' inserts a
13308 # line-number line after each line using $LINENO; the second 'sed'
13309 # does the real work. The second script uses 'N' to pair each
13310 # line-number line with the line containing $LINENO, and appends
13311 # trailing '-' during substitution so that $LINENO is not a special
13312 # case at line end.
13313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13314 # scripts with optimization help from Paolo Bonzini. Blame Lee
13315 # E. McMahon (1931-1989) for sed's syntax. :-)
13316 sed -n '
13317 p
13318 /[$]LINENO/=
13319 ' <$as_myself |
13320 sed '
13321 s/[$]LINENO.*/&-/
13322 t lineno
13323 b
13324 :lineno
13325 N
13326 :loop
13327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13328 t loop
13329 s/-\n.*//
13330 ' >$as_me.lineno &&
13331 chmod +x "$as_me.lineno" ||
13332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13333 { (exit 1); exit 1; }; }
13334
13335 # Don't try to exec as it changes $[0], causing all sort of problems
13336 # (the dirname of $[0] is not the place where we might find the
13337 # original and so on. Autoconf is especially sensitive to this).
13338 . "./$as_me.lineno"
13339 # Exit status is that of the last command.
13340 exit
13341 }
13342
13343
13344 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13345 as_dirname=dirname
13346 else
13347 as_dirname=false
13348 fi
13349
13350 ECHO_C= ECHO_N= ECHO_T=
13351 case `echo -n x` in
13352 -n*)
13353 case `echo 'x\c'` in
13354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13355 *) ECHO_C='\c';;
13356 esac;;
13357 *)
13358 ECHO_N='-n';;
13359 esac
13360
13361 if expr a : '\(a\)' >/dev/null 2>&1 &&
13362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13363 as_expr=expr
13364 else
13365 as_expr=false
13366 fi
13367
13368 rm -f conf$$ conf$$.exe conf$$.file
13369 if test -d conf$$.dir; then
13370 rm -f conf$$.dir/conf$$.file
13371 else
13372 rm -f conf$$.dir
13373 mkdir conf$$.dir
13374 fi
13375 echo >conf$$.file
13376 if ln -s conf$$.file conf$$ 2>/dev/null; then
13377 as_ln_s='ln -s'
13378 # ... but there are two gotchas:
13379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13381 # In both cases, we have to default to `cp -p'.
13382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13383 as_ln_s='cp -p'
13384 elif ln conf$$.file conf$$ 2>/dev/null; then
13385 as_ln_s=ln
13386 else
13387 as_ln_s='cp -p'
13388 fi
13389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13390 rmdir conf$$.dir 2>/dev/null
13391
13392 if mkdir -p . 2>/dev/null; then
13393 as_mkdir_p=:
13394 else
13395 test -d ./-p && rmdir ./-p
13396 as_mkdir_p=false
13397 fi
13398
13399 if test -x / >/dev/null 2>&1; then
13400 as_test_x='test -x'
13401 else
13402 if ls -dL / >/dev/null 2>&1; then
13403 as_ls_L_option=L
13404 else
13405 as_ls_L_option=
13406 fi
13407 as_test_x='
13408 eval sh -c '\''
13409 if test -d "$1"; then
13410 test -d "$1/.";
13411 else
13412 case $1 in
13413 -*)set "./$1";;
13414 esac;
13415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13416 ???[sx]*):;;*)false;;esac;fi
13417 '\'' sh
13418 '
13419 fi
13420 as_executable_p=$as_test_x
13421
13422 # Sed expression to map a string onto a valid CPP name.
13423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13424
13425 # Sed expression to map a string onto a valid variable name.
13426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13427
13428
13429 exec 6>&1
13430
13431 # Save the log message, to keep $[0] and so on meaningful, and to
13432 # report actual input values of CONFIG_FILES etc. instead of their
13433 # values after options handling.
13434 ac_log="
13435 This file was extended by libltdl $as_me 2.2.6, which was
13436 generated by GNU Autoconf 2.61. Invocation command line was
13437
13438 CONFIG_FILES = $CONFIG_FILES
13439 CONFIG_HEADERS = $CONFIG_HEADERS
13440 CONFIG_LINKS = $CONFIG_LINKS
13441 CONFIG_COMMANDS = $CONFIG_COMMANDS
13442 $ $0 $@
13443
13444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13445 "
13446
13447 _ACEOF
13448
13449 cat >>$CONFIG_STATUS <<_ACEOF
13450 # Files that config.status was made for.
13451 config_files="$ac_config_files"
13452 config_headers="$ac_config_headers"
13453 config_commands="$ac_config_commands"
13454
13455 _ACEOF
13456
13457 cat >>$CONFIG_STATUS <<\_ACEOF
13458 ac_cs_usage="\
13459 \`$as_me' instantiates files from templates according to the
13460 current configuration.
13461
13462 Usage: $0 [OPTIONS] [FILE]...
13463
13464 -h, --help print this help, then exit
13465 -V, --version print version number and configuration settings, then exit
13466 -q, --quiet do not print progress messages
13467 -d, --debug don't remove temporary files
13468 --recheck update $as_me by reconfiguring in the same conditions
13469 --file=FILE[:TEMPLATE]
13470 instantiate the configuration file FILE
13471 --header=FILE[:TEMPLATE]
13472 instantiate the configuration header FILE
13473
13474 Configuration files:
13475 $config_files
13476
13477 Configuration headers:
13478 $config_headers
13479
13480 Configuration commands:
13481 $config_commands
13482
13483 Report bugs to <[email protected]>."
13484
13485 _ACEOF
13486 cat >>$CONFIG_STATUS <<_ACEOF
13487 ac_cs_version="\\
13488 libltdl config.status 2.2.6
13489 configured by $0, generated by GNU Autoconf 2.61,
13490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13491
13492 Copyright (C) 2006 Free Software Foundation, Inc.
13493 This config.status script is free software; the Free Software Foundation
13494 gives unlimited permission to copy, distribute and modify it."
13495
13496 ac_pwd='$ac_pwd'
13497 srcdir='$srcdir'
13498 INSTALL='$INSTALL'
13499 MKDIR_P='$MKDIR_P'
13500 _ACEOF
13501
13502 cat >>$CONFIG_STATUS <<\_ACEOF
13503 # If no file are specified by the user, then we need to provide default
13504 # value. By we need to know if files were specified by the user.
13505 ac_need_defaults=:
13506 while test $# != 0
13507 do
13508 case $1 in
13509 --*=*)
13510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13512 ac_shift=:
13513 ;;
13514 *)
13515 ac_option=$1
13516 ac_optarg=$2
13517 ac_shift=shift
13518 ;;
13519 esac
13520
13521 case $ac_option in
13522 # Handling of the options.
13523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13524 ac_cs_recheck=: ;;
13525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13526 echo "$ac_cs_version"; exit ;;
13527 --debug | --debu | --deb | --de | --d | -d )
13528 debug=: ;;
13529 --file | --fil | --fi | --f )
13530 $ac_shift
13531 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13532 ac_need_defaults=false;;
13533 --header | --heade | --head | --hea )
13534 $ac_shift
13535 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13536 ac_need_defaults=false;;
13537 --he | --h)
13538 # Conflict between --help and --header
13539 { echo "$as_me: error: ambiguous option: $1
13540 Try \`$0 --help' for more information." >&2
13541 { (exit 1); exit 1; }; };;
13542 --help | --hel | -h )
13543 echo "$ac_cs_usage"; exit ;;
13544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13546 ac_cs_silent=: ;;
13547
13548 # This is an error.
13549 -*) { echo "$as_me: error: unrecognized option: $1
13550 Try \`$0 --help' for more information." >&2
13551 { (exit 1); exit 1; }; } ;;
13552
13553 *) ac_config_targets="$ac_config_targets $1"
13554 ac_need_defaults=false ;;
13555
13556 esac
13557 shift
13558 done
13559
13560 ac_configure_extra_args=
13561
13562 if $ac_cs_silent; then
13563 exec 6>/dev/null
13564 ac_configure_extra_args="$ac_configure_extra_args --silent"
13565 fi
13566
13567 _ACEOF
13568 cat >>$CONFIG_STATUS <<_ACEOF
13569 if \$ac_cs_recheck; then
13570 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13571 CONFIG_SHELL=$SHELL
13572 export CONFIG_SHELL
13573 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13574 fi
13575
13576 _ACEOF
13577 cat >>$CONFIG_STATUS <<\_ACEOF
13578 exec 5>>config.log
13579 {
13580 echo
13581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13582 ## Running $as_me. ##
13583 _ASBOX
13584 echo "$ac_log"
13585 } >&5
13586
13587 _ACEOF
13588 cat >>$CONFIG_STATUS <<_ACEOF
13589 #
13590 # INIT-COMMANDS
13591 #
13592 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13593
13594
13595 # The HP-UX ksh and POSIX shell print the target directory to stdout
13596 # if CDPATH is set.
13597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13598
13599 sed_quote_subst='$sed_quote_subst'
13600 double_quote_subst='$double_quote_subst'
13601 delay_variable_subst='$delay_variable_subst'
13602 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13603 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13604 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13605 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13606 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13607 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13608 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13609 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13610 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13611 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13612 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13613 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13614 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13615 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13616 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13617 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13618 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13619 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13620 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13621 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13622 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13623 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13624 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13625 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13626 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13627 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13628 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13629 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13630 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13631 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13632 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13633 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13634 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13635 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13636 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13637 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13638 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13639 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13640 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13641 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13642 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13643 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13644 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13645 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13646 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13647 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13648 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13649 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13650 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13651 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13652 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13653 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13654 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13655 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13656 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13657 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13658 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13659 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13660 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13661 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13662 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13663 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13664 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13665 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13666 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13667 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13668 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13669 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13670 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13671 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13672 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13673 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13674 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13675 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13676 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13677 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13678 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13679 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13680 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13681 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13682 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13683 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13684 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13685 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13686 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13687 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13688 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13689 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13690 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13691 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13692 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13693 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13694 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13695 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13696 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13697 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13698 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13699 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13700 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13701 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13702 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13703 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13704 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13705 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13706 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13707 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13708 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13709 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13710 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13711 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13712 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13713 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13714 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13715 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13716 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13717 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13718 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13719 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13720 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13721 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13722
13723 LTCC='$LTCC'
13724 LTCFLAGS='$LTCFLAGS'
13725 compiler='$compiler_DEFAULT'
13726
13727 # Quote evaled strings.
13728 for var in SED \
13729 GREP \
13730 EGREP \
13731 FGREP \
13732 LD \
13733 NM \
13734 LN_S \
13735 lt_SP2NL \
13736 lt_NL2SP \
13737 reload_flag \
13738 deplibs_check_method \
13739 file_magic_cmd \
13740 AR \
13741 AR_FLAGS \
13742 STRIP \
13743 RANLIB \
13744 CC \
13745 CFLAGS \
13746 compiler \
13747 lt_cv_sys_global_symbol_pipe \
13748 lt_cv_sys_global_symbol_to_cdecl \
13749 lt_cv_sys_global_symbol_to_c_name_address \
13750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13751 SHELL \
13752 ECHO \
13753 lt_prog_compiler_no_builtin_flag \
13754 lt_prog_compiler_wl \
13755 lt_prog_compiler_pic \
13756 lt_prog_compiler_static \
13757 lt_cv_prog_compiler_c_o \
13758 need_locks \
13759 DSYMUTIL \
13760 NMEDIT \
13761 LIPO \
13762 OTOOL \
13763 OTOOL64 \
13764 shrext_cmds \
13765 export_dynamic_flag_spec \
13766 whole_archive_flag_spec \
13767 compiler_needs_object \
13768 with_gnu_ld \
13769 allow_undefined_flag \
13770 no_undefined_flag \
13771 hardcode_libdir_flag_spec \
13772 hardcode_libdir_flag_spec_ld \
13773 hardcode_libdir_separator \
13774 fix_srcfile_path \
13775 exclude_expsyms \
13776 include_expsyms \
13777 file_list_spec \
13778 variables_saved_for_relink \
13779 libname_spec \
13780 library_names_spec \
13781 soname_spec \
13782 finish_eval \
13783 old_striplib \
13784 striplib; do
13785 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13786 *[\\\\\\\`\\"\\\$]*)
13787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13788 ;;
13789 *)
13790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13791 ;;
13792 esac
13793 done
13794
13795 # Double-quote double-evaled strings.
13796 for var in reload_cmds \
13797 old_postinstall_cmds \
13798 old_postuninstall_cmds \
13799 old_archive_cmds \
13800 extract_expsyms_cmds \
13801 old_archive_from_new_cmds \
13802 old_archive_from_expsyms_cmds \
13803 archive_cmds \
13804 archive_expsym_cmds \
13805 module_cmds \
13806 module_expsym_cmds \
13807 export_symbols_cmds \
13808 prelink_cmds \
13809 postinstall_cmds \
13810 postuninstall_cmds \
13811 finish_cmds \
13812 sys_lib_search_path_spec \
13813 sys_lib_dlsearch_path_spec; do
13814 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13815 *[\\\\\\\`\\"\\\$]*)
13816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13817 ;;
13818 *)
13819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13820 ;;
13821 esac
13822 done
13823
13824 # Fix-up fallback echo if it was mangled by the above quoting rules.
13825 case \$lt_ECHO in
13826 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13827 ;;
13828 esac
13829
13830 ac_aux_dir='$ac_aux_dir'
13831 xsi_shell='$xsi_shell'
13832 lt_shell_append='$lt_shell_append'
13833
13834 # See if we are running on zsh, and set the options which allow our
13835 # commands through without removal of \ escapes INIT.
13836 if test -n "\${ZSH_VERSION+set}" ; then
13837 setopt NO_GLOB_SUBST
13838 fi
13839
13840
13841 PACKAGE='$PACKAGE'
13842 VERSION='$VERSION'
13843 TIMESTAMP='$TIMESTAMP'
13844 RM='$RM'
13845 ofile='$ofile'
13846
13847
13848
13849
13850 _ACEOF
13851
13852 cat >>$CONFIG_STATUS <<\_ACEOF
13853
13854 # Handling of arguments.
13855 for ac_config_target in $ac_config_targets
13856 do
13857 case $ac_config_target in
13858 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13859 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13860 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13862
13863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13865 { (exit 1); exit 1; }; };;
13866 esac
13867 done
13868
13869
13870 # If the user did not use the arguments to specify the items to instantiate,
13871 # then the envvar interface is used. Set only those that are not.
13872 # We use the long form for the default assignment because of an extremely
13873 # bizarre bug on SunOS 4.1.3.
13874 if $ac_need_defaults; then
13875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13878 fi
13879
13880 # Have a temporary directory for convenience. Make it in the build tree
13881 # simply because there is no reason against having it here, and in addition,
13882 # creating and moving files from /tmp can sometimes cause problems.
13883 # Hook for its removal unless debugging.
13884 # Note that there is a small window in which the directory will not be cleaned:
13885 # after its creation but before its name has been assigned to `$tmp'.
13886 $debug ||
13887 {
13888 tmp=
13889 trap 'exit_status=$?
13890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13891 ' 0
13892 trap '{ (exit 1); exit 1; }' 1 2 13 15
13893 }
13894 # Create a (secure) tmp directory for tmp files.
13895
13896 {
13897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13898 test -n "$tmp" && test -d "$tmp"
13899 } ||
13900 {
13901 tmp=./conf$$-$RANDOM
13902 (umask 077 && mkdir "$tmp")
13903 } ||
13904 {
13905 echo "$me: cannot create a temporary directory in ." >&2
13906 { (exit 1); exit 1; }
13907 }
13908
13909 #
13910 # Set up the sed scripts for CONFIG_FILES section.
13911 #
13912
13913 # No need to generate the scripts if there are no CONFIG_FILES.
13914 # This happens for instance when ./config.status config.h
13915 if test -n "$CONFIG_FILES"; then
13916
13917 _ACEOF
13918
13919
13920
13921 ac_delim='%!_!# '
13922 for ac_last_try in false false false false false :; do
13923 cat >conf$$subs.sed <<_ACEOF
13924 SHELL!$SHELL$ac_delim
13925 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13926 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13927 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13928 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13929 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13930 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13931 exec_prefix!$exec_prefix$ac_delim
13932 prefix!$prefix$ac_delim
13933 program_transform_name!$program_transform_name$ac_delim
13934 bindir!$bindir$ac_delim
13935 sbindir!$sbindir$ac_delim
13936 libexecdir!$libexecdir$ac_delim
13937 datarootdir!$datarootdir$ac_delim
13938 datadir!$datadir$ac_delim
13939 sysconfdir!$sysconfdir$ac_delim
13940 sharedstatedir!$sharedstatedir$ac_delim
13941 localstatedir!$localstatedir$ac_delim
13942 includedir!$includedir$ac_delim
13943 oldincludedir!$oldincludedir$ac_delim
13944 docdir!$docdir$ac_delim
13945 infodir!$infodir$ac_delim
13946 htmldir!$htmldir$ac_delim
13947 dvidir!$dvidir$ac_delim
13948 pdfdir!$pdfdir$ac_delim
13949 psdir!$psdir$ac_delim
13950 libdir!$libdir$ac_delim
13951 localedir!$localedir$ac_delim
13952 mandir!$mandir$ac_delim
13953 DEFS!$DEFS$ac_delim
13954 ECHO_C!$ECHO_C$ac_delim
13955 ECHO_N!$ECHO_N$ac_delim
13956 ECHO_T!$ECHO_T$ac_delim
13957 LIBS!$LIBS$ac_delim
13958 build_alias!$build_alias$ac_delim
13959 host_alias!$host_alias$ac_delim
13960 target_alias!$target_alias$ac_delim
13961 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13962 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13963 INSTALL_DATA!$INSTALL_DATA$ac_delim
13964 am__isrc!$am__isrc$ac_delim
13965 CYGPATH_W!$CYGPATH_W$ac_delim
13966 PACKAGE!$PACKAGE$ac_delim
13967 VERSION!$VERSION$ac_delim
13968 ACLOCAL!$ACLOCAL$ac_delim
13969 AUTOCONF!$AUTOCONF$ac_delim
13970 AUTOMAKE!$AUTOMAKE$ac_delim
13971 AUTOHEADER!$AUTOHEADER$ac_delim
13972 MAKEINFO!$MAKEINFO$ac_delim
13973 install_sh!$install_sh$ac_delim
13974 STRIP!$STRIP$ac_delim
13975 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13976 mkdir_p!$mkdir_p$ac_delim
13977 AWK!$AWK$ac_delim
13978 SET_MAKE!$SET_MAKE$ac_delim
13979 am__leading_dot!$am__leading_dot$ac_delim
13980 AMTAR!$AMTAR$ac_delim
13981 am__tar!$am__tar$ac_delim
13982 am__untar!$am__untar$ac_delim
13983 AS!$AS$ac_delim
13984 DLLTOOL!$DLLTOOL$ac_delim
13985 OBJDUMP!$OBJDUMP$ac_delim
13986 LIBTOOL!$LIBTOOL$ac_delim
13987 build!$build$ac_delim
13988 build_cpu!$build_cpu$ac_delim
13989 build_vendor!$build_vendor$ac_delim
13990 build_os!$build_os$ac_delim
13991 host!$host$ac_delim
13992 host_cpu!$host_cpu$ac_delim
13993 host_vendor!$host_vendor$ac_delim
13994 host_os!$host_os$ac_delim
13995 CC!$CC$ac_delim
13996 CFLAGS!$CFLAGS$ac_delim
13997 LDFLAGS!$LDFLAGS$ac_delim
13998 CPPFLAGS!$CPPFLAGS$ac_delim
13999 ac_ct_CC!$ac_ct_CC$ac_delim
14000 EXEEXT!$EXEEXT$ac_delim
14001 OBJEXT!$OBJEXT$ac_delim
14002 DEPDIR!$DEPDIR$ac_delim
14003 am__include!$am__include$ac_delim
14004 am__quote!$am__quote$ac_delim
14005 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14006 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14007 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14008 CCDEPMODE!$CCDEPMODE$ac_delim
14009 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14010 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14011 SED!$SED$ac_delim
14012 GREP!$GREP$ac_delim
14013 EGREP!$EGREP$ac_delim
14014 FGREP!$FGREP$ac_delim
14015 LD!$LD$ac_delim
14016 DUMPBIN!$DUMPBIN$ac_delim
14017 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
14018 NM!$NM$ac_delim
14019 LN_S!$LN_S$ac_delim
14020 AR!$AR$ac_delim
14021 _ACEOF
14022
14023 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14024 break
14025 elif $ac_last_try; then
14026 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14027 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14028 { (exit 1); exit 1; }; }
14029 else
14030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14031 fi
14032 done
14033
14034 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14035 if test -n "$ac_eof"; then
14036 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14037 ac_eof=`expr $ac_eof + 1`
14038 fi
14039
14040 cat >>$CONFIG_STATUS <<_ACEOF
14041 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14043 _ACEOF
14044 sed '
14045 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14046 s/^/s,@/; s/!/@,|#_!!_#|/
14047 :n
14048 t n
14049 s/'"$ac_delim"'$/,g/; t
14050 s/$/\\/; p
14051 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14052 ' >>$CONFIG_STATUS <conf$$subs.sed
14053 rm -f conf$$subs.sed
14054 cat >>$CONFIG_STATUS <<_ACEOF
14055 CEOF$ac_eof
14056 _ACEOF
14057
14058
14059 ac_delim='%!_!# '
14060 for ac_last_try in false false false false false :; do
14061 cat >conf$$subs.sed <<_ACEOF
14062 RANLIB!$RANLIB$ac_delim
14063 lt_ECHO!$lt_ECHO$ac_delim
14064 DSYMUTIL!$DSYMUTIL$ac_delim
14065 NMEDIT!$NMEDIT$ac_delim
14066 LIPO!$LIPO$ac_delim
14067 OTOOL!$OTOOL$ac_delim
14068 OTOOL64!$OTOOL64$ac_delim
14069 CPP!$CPP$ac_delim
14070 LT_DLLOADERS!$LT_DLLOADERS$ac_delim
14071 LIBADD_DLOPEN!$LIBADD_DLOPEN$ac_delim
14072 LIBADD_SHL_LOAD!$LIBADD_SHL_LOAD$ac_delim
14073 LIBADD_DLD_LINK!$LIBADD_DLD_LINK$ac_delim
14074 LT_DLPREOPEN!$LT_DLPREOPEN$ac_delim
14075 LIBADD_DL!$LIBADD_DL$ac_delim
14076 sys_symbol_underscore!$sys_symbol_underscore$ac_delim
14077 LIBOBJS!$LIBOBJS$ac_delim
14078 ARGZ_H!$ARGZ_H$ac_delim
14079 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
14080 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
14081 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
14082 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
14083 LT_CONFIG_H!$LT_CONFIG_H$ac_delim
14084 LTDLOPEN!$LTDLOPEN$ac_delim
14085 LTLIBOBJS!$LTLIBOBJS$ac_delim
14086 _ACEOF
14087
14088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
14089 break
14090 elif $ac_last_try; then
14091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14093 { (exit 1); exit 1; }; }
14094 else
14095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14096 fi
14097 done
14098
14099 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14100 if test -n "$ac_eof"; then
14101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14102 ac_eof=`expr $ac_eof + 1`
14103 fi
14104
14105 cat >>$CONFIG_STATUS <<_ACEOF
14106 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14108 _ACEOF
14109 sed '
14110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14111 s/^/s,@/; s/!/@,|#_!!_#|/
14112 :n
14113 t n
14114 s/'"$ac_delim"'$/,g/; t
14115 s/$/\\/; p
14116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14117 ' >>$CONFIG_STATUS <conf$$subs.sed
14118 rm -f conf$$subs.sed
14119 cat >>$CONFIG_STATUS <<_ACEOF
14120 :end
14121 s/|#_!!_#|//g
14122 CEOF$ac_eof
14123 _ACEOF
14124
14125
14126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14128 # trailing colons and then remove the whole line if VPATH becomes empty
14129 # (actually we leave an empty line to preserve line numbers).
14130 if test "x$srcdir" = x.; then
14131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14132 s/:*\$(srcdir):*/:/
14133 s/:*\${srcdir}:*/:/
14134 s/:*@srcdir@:*/:/
14135 s/^\([^=]*=[ ]*\):*/\1/
14136 s/:*$//
14137 s/^[^=]*=[ ]*$//
14138 }'
14139 fi
14140
14141 cat >>$CONFIG_STATUS <<\_ACEOF
14142 fi # test -n "$CONFIG_FILES"
14143
14144
14145 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14146 do
14147 case $ac_tag in
14148 :[FHLC]) ac_mode=$ac_tag; continue;;
14149 esac
14150 case $ac_mode$ac_tag in
14151 :[FHL]*:*);;
14152 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14153 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14154 { (exit 1); exit 1; }; };;
14155 :[FH]-) ac_tag=-:-;;
14156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14157 esac
14158 ac_save_IFS=$IFS
14159 IFS=:
14160 set x $ac_tag
14161 IFS=$ac_save_IFS
14162 shift
14163 ac_file=$1
14164 shift
14165
14166 case $ac_mode in
14167 :L) ac_source=$1;;
14168 :[FH])
14169 ac_file_inputs=
14170 for ac_f
14171 do
14172 case $ac_f in
14173 -) ac_f="$tmp/stdin";;
14174 *) # Look for the file first in the build tree, then in the source tree
14175 # (if the path is not absolute). The absolute path cannot be DOS-style,
14176 # because $ac_f cannot contain `:'.
14177 test -f "$ac_f" ||
14178 case $ac_f in
14179 [\\/$]*) false;;
14180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14181 esac ||
14182 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14183 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14184 { (exit 1); exit 1; }; };;
14185 esac
14186 ac_file_inputs="$ac_file_inputs $ac_f"
14187 done
14188
14189 # Let's still pretend it is `configure' which instantiates (i.e., don't
14190 # use $as_me), people would be surprised to read:
14191 # /* config.h. Generated by config.status. */
14192 configure_input="Generated from "`IFS=:
14193 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14194 if test x"$ac_file" != x-; then
14195 configure_input="$ac_file. $configure_input"
14196 { echo "$as_me:$LINENO: creating $ac_file" >&5
14197 echo "$as_me: creating $ac_file" >&6;}
14198 fi
14199
14200 case $ac_tag in
14201 *:-:* | *:-) cat >"$tmp/stdin";;
14202 esac
14203 ;;
14204 esac
14205
14206 ac_dir=`$as_dirname -- "$ac_file" ||
14207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14208 X"$ac_file" : 'X\(//\)[^/]' \| \
14209 X"$ac_file" : 'X\(//\)$' \| \
14210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14211 echo X"$ac_file" |
14212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14213 s//\1/
14214 q
14215 }
14216 /^X\(\/\/\)[^/].*/{
14217 s//\1/
14218 q
14219 }
14220 /^X\(\/\/\)$/{
14221 s//\1/
14222 q
14223 }
14224 /^X\(\/\).*/{
14225 s//\1/
14226 q
14227 }
14228 s/.*/./; q'`
14229 { as_dir="$ac_dir"
14230 case $as_dir in #(
14231 -*) as_dir=./$as_dir;;
14232 esac
14233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14234 as_dirs=
14235 while :; do
14236 case $as_dir in #(
14237 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14238 *) as_qdir=$as_dir;;
14239 esac
14240 as_dirs="'$as_qdir' $as_dirs"
14241 as_dir=`$as_dirname -- "$as_dir" ||
14242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14243 X"$as_dir" : 'X\(//\)[^/]' \| \
14244 X"$as_dir" : 'X\(//\)$' \| \
14245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14246 echo X"$as_dir" |
14247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14248 s//\1/
14249 q
14250 }
14251 /^X\(\/\/\)[^/].*/{
14252 s//\1/
14253 q
14254 }
14255 /^X\(\/\/\)$/{
14256 s//\1/
14257 q
14258 }
14259 /^X\(\/\).*/{
14260 s//\1/
14261 q
14262 }
14263 s/.*/./; q'`
14264 test -d "$as_dir" && break
14265 done
14266 test -z "$as_dirs" || eval "mkdir $as_dirs"
14267 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14268 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14269 { (exit 1); exit 1; }; }; }
14270 ac_builddir=.
14271
14272 case "$ac_dir" in
14273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14274 *)
14275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14276 # A ".." for each directory in $ac_dir_suffix.
14277 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14278 case $ac_top_builddir_sub in
14279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14281 esac ;;
14282 esac
14283 ac_abs_top_builddir=$ac_pwd
14284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14285 # for backward compatibility:
14286 ac_top_builddir=$ac_top_build_prefix
14287
14288 case $srcdir in
14289 .) # We are building in place.
14290 ac_srcdir=.
14291 ac_top_srcdir=$ac_top_builddir_sub
14292 ac_abs_top_srcdir=$ac_pwd ;;
14293 [\\/]* | ?:[\\/]* ) # Absolute name.
14294 ac_srcdir=$srcdir$ac_dir_suffix;
14295 ac_top_srcdir=$srcdir
14296 ac_abs_top_srcdir=$srcdir ;;
14297 *) # Relative name.
14298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14299 ac_top_srcdir=$ac_top_build_prefix$srcdir
14300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14301 esac
14302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14303
14304
14305 case $ac_mode in
14306 :F)
14307 #
14308 # CONFIG_FILE
14309 #
14310
14311 case $INSTALL in
14312 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14313 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14314 esac
14315 ac_MKDIR_P=$MKDIR_P
14316 case $MKDIR_P in
14317 [\\/$]* | ?:[\\/]* ) ;;
14318 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14319 esac
14320 _ACEOF
14321
14322 cat >>$CONFIG_STATUS <<\_ACEOF
14323 # If the template does not know about datarootdir, expand it.
14324 # FIXME: This hack should be removed a few years after 2.60.
14325 ac_datarootdir_hack=; ac_datarootdir_seen=
14326
14327 case `sed -n '/datarootdir/ {
14328 p
14329 q
14330 }
14331 /@datadir@/p
14332 /@docdir@/p
14333 /@infodir@/p
14334 /@localedir@/p
14335 /@mandir@/p
14336 ' $ac_file_inputs` in
14337 *datarootdir*) ac_datarootdir_seen=yes;;
14338 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14339 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14340 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14341 _ACEOF
14342 cat >>$CONFIG_STATUS <<_ACEOF
14343 ac_datarootdir_hack='
14344 s&@datadir@&$datadir&g
14345 s&@docdir@&$docdir&g
14346 s&@infodir@&$infodir&g
14347 s&@localedir@&$localedir&g
14348 s&@mandir@&$mandir&g
14349 s&\\\${datarootdir}&$datarootdir&g' ;;
14350 esac
14351 _ACEOF
14352
14353 # Neutralize VPATH when `$srcdir' = `.'.
14354 # Shell code in configure.ac might set extrasub.
14355 # FIXME: do we really want to maintain this feature?
14356 cat >>$CONFIG_STATUS <<_ACEOF
14357 sed "$ac_vpsub
14358 $extrasub
14359 _ACEOF
14360 cat >>$CONFIG_STATUS <<\_ACEOF
14361 :t
14362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14363 s&@configure_input@&$configure_input&;t t
14364 s&@top_builddir@&$ac_top_builddir_sub&;t t
14365 s&@srcdir@&$ac_srcdir&;t t
14366 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14367 s&@top_srcdir@&$ac_top_srcdir&;t t
14368 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14369 s&@builddir@&$ac_builddir&;t t
14370 s&@abs_builddir@&$ac_abs_builddir&;t t
14371 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14372 s&@INSTALL@&$ac_INSTALL&;t t
14373 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14374 $ac_datarootdir_hack
14375 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14376
14377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14378 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14380 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14381 which seems to be undefined. Please make sure it is defined." >&5
14382 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14383 which seems to be undefined. Please make sure it is defined." >&2;}
14384
14385 rm -f "$tmp/stdin"
14386 case $ac_file in
14387 -) cat "$tmp/out"; rm -f "$tmp/out";;
14388 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14389 esac
14390 ;;
14391 :H)
14392 #
14393 # CONFIG_HEADER
14394 #
14395 _ACEOF
14396
14397 # Transform confdefs.h into a sed script `conftest.defines', that
14398 # substitutes the proper values into config.h.in to produce config.h.
14399 rm -f conftest.defines conftest.tail
14400 # First, append a space to every undef/define line, to ease matching.
14401 echo 's/$/ /' >conftest.defines
14402 # Then, protect against being on the right side of a sed subst, or in
14403 # an unquoted here document, in config.status. If some macros were
14404 # called several times there might be several #defines for the same
14405 # symbol, which is useless. But do not sort them, since the last
14406 # AC_DEFINE must be honored.
14407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14408 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14409 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14410 # PARAMS is the parameter list in the macro definition--in most cases, it's
14411 # just an empty string.
14412 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14413 ac_dB='\\)[ (].*,\\1define\\2'
14414 ac_dC=' '
14415 ac_dD=' ,'
14416
14417 uniq confdefs.h |
14418 sed -n '
14419 t rset
14420 :rset
14421 s/^[ ]*#[ ]*define[ ][ ]*//
14422 t ok
14423 d
14424 :ok
14425 s/[\\&,]/\\&/g
14426 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14427 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14428 ' >>conftest.defines
14429
14430 # Remove the space that was appended to ease matching.
14431 # Then replace #undef with comments. This is necessary, for
14432 # example, in the case of _POSIX_SOURCE, which is predefined and required
14433 # on some systems where configure will not decide to define it.
14434 # (The regexp can be short, since the line contains either #define or #undef.)
14435 echo 's/ $//
14436 s,^[ #]*u.*,/* & */,' >>conftest.defines
14437
14438 # Break up conftest.defines:
14439 ac_max_sed_lines=50
14440
14441 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14442 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14443 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14444 # et cetera.
14445 ac_in='$ac_file_inputs'
14446 ac_out='"$tmp/out1"'
14447 ac_nxt='"$tmp/out2"'
14448
14449 while :
14450 do
14451 # Write a here document:
14452 cat >>$CONFIG_STATUS <<_ACEOF
14453 # First, check the format of the line:
14454 cat >"\$tmp/defines.sed" <<\\CEOF
14455 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14456 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14457 b
14458 :def
14459 _ACEOF
14460 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14461 echo 'CEOF
14462 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14463 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14464 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14465 grep . conftest.tail >/dev/null || break
14466 rm -f conftest.defines
14467 mv conftest.tail conftest.defines
14468 done
14469 rm -f conftest.defines conftest.tail
14470
14471 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14472 cat >>$CONFIG_STATUS <<\_ACEOF
14473 if test x"$ac_file" != x-; then
14474 echo "/* $configure_input */" >"$tmp/config.h"
14475 cat "$ac_result" >>"$tmp/config.h"
14476 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14478 echo "$as_me: $ac_file is unchanged" >&6;}
14479 else
14480 rm -f $ac_file
14481 mv "$tmp/config.h" $ac_file
14482 fi
14483 else
14484 echo "/* $configure_input */"
14485 cat "$ac_result"
14486 fi
14487 rm -f "$tmp/out12"
14488 # Compute $ac_file's index in $config_headers.
14489 _am_arg=$ac_file
14490 _am_stamp_count=1
14491 for _am_header in $config_headers :; do
14492 case $_am_header in
14493 $_am_arg | $_am_arg:* )
14494 break ;;
14495 * )
14496 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14497 esac
14498 done
14499 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14500 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14501 X"$_am_arg" : 'X\(//\)[^/]' \| \
14502 X"$_am_arg" : 'X\(//\)$' \| \
14503 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14504 echo X"$_am_arg" |
14505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14506 s//\1/
14507 q
14508 }
14509 /^X\(\/\/\)[^/].*/{
14510 s//\1/
14511 q
14512 }
14513 /^X\(\/\/\)$/{
14514 s//\1/
14515 q
14516 }
14517 /^X\(\/\).*/{
14518 s//\1/
14519 q
14520 }
14521 s/.*/./; q'`/stamp-h$_am_stamp_count
14522 ;;
14523
14524 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14525 echo "$as_me: executing $ac_file commands" >&6;}
14526 ;;
14527 esac
14528
14529
14530 case $ac_file$ac_mode in
14531 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14532 # Strip MF so we end up with the name of the file.
14533 mf=`echo "$mf" | sed -e 's/:.*$//'`
14534 # Check whether this is an Automake generated Makefile or not.
14535 # We used to match only the files named `Makefile.in', but
14536 # some people rename them; so instead we look at the file content.
14537 # Grep'ing the first line is not enough: some people post-process
14538 # each Makefile.in and add a new line on top of each file to say so.
14539 # Grep'ing the whole file is not good either: AIX grep has a line
14540 # limit of 2048, but all sed's we know have understand at least 4000.
14541 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14542 dirpart=`$as_dirname -- "$mf" ||
14543 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14544 X"$mf" : 'X\(//\)[^/]' \| \
14545 X"$mf" : 'X\(//\)$' \| \
14546 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14547 echo X"$mf" |
14548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14549 s//\1/
14550 q
14551 }
14552 /^X\(\/\/\)[^/].*/{
14553 s//\1/
14554 q
14555 }
14556 /^X\(\/\/\)$/{
14557 s//\1/
14558 q
14559 }
14560 /^X\(\/\).*/{
14561 s//\1/
14562 q
14563 }
14564 s/.*/./; q'`
14565 else
14566 continue
14567 fi
14568 # Extract the definition of DEPDIR, am__include, and am__quote
14569 # from the Makefile without running `make'.
14570 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14571 test -z "$DEPDIR" && continue
14572 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14573 test -z "am__include" && continue
14574 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14575 # When using ansi2knr, U may be empty or an underscore; expand it
14576 U=`sed -n 's/^U = //p' < "$mf"`
14577 # Find all dependency output files, they are included files with
14578 # $(DEPDIR) in their names. We invoke sed twice because it is the
14579 # simplest approach to changing $(DEPDIR) to its actual value in the
14580 # expansion.
14581 for file in `sed -n "
14582 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14583 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14584 # Make sure the directory exists.
14585 test -f "$dirpart/$file" && continue
14586 fdir=`$as_dirname -- "$file" ||
14587 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$file" : 'X\(//\)[^/]' \| \
14589 X"$file" : 'X\(//\)$' \| \
14590 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14591 echo X"$file" |
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14593 s//\1/
14594 q
14595 }
14596 /^X\(\/\/\)[^/].*/{
14597 s//\1/
14598 q
14599 }
14600 /^X\(\/\/\)$/{
14601 s//\1/
14602 q
14603 }
14604 /^X\(\/\).*/{
14605 s//\1/
14606 q
14607 }
14608 s/.*/./; q'`
14609 { as_dir=$dirpart/$fdir
14610 case $as_dir in #(
14611 -*) as_dir=./$as_dir;;
14612 esac
14613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14614 as_dirs=
14615 while :; do
14616 case $as_dir in #(
14617 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14618 *) as_qdir=$as_dir;;
14619 esac
14620 as_dirs="'$as_qdir' $as_dirs"
14621 as_dir=`$as_dirname -- "$as_dir" ||
14622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14623 X"$as_dir" : 'X\(//\)[^/]' \| \
14624 X"$as_dir" : 'X\(//\)$' \| \
14625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14626 echo X"$as_dir" |
14627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14628 s//\1/
14629 q
14630 }
14631 /^X\(\/\/\)[^/].*/{
14632 s//\1/
14633 q
14634 }
14635 /^X\(\/\/\)$/{
14636 s//\1/
14637 q
14638 }
14639 /^X\(\/\).*/{
14640 s//\1/
14641 q
14642 }
14643 s/.*/./; q'`
14644 test -d "$as_dir" && break
14645 done
14646 test -z "$as_dirs" || eval "mkdir $as_dirs"
14647 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14648 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14649 { (exit 1); exit 1; }; }; }
14650 # echo "creating $dirpart/$file"
14651 echo '# dummy' > "$dirpart/$file"
14652 done
14653 done
14654 ;;
14655 "libtool":C)
14656
14657 # See if we are running on zsh, and set the options which allow our
14658 # commands through without removal of \ escapes.
14659 if test -n "${ZSH_VERSION+set}" ; then
14660 setopt NO_GLOB_SUBST
14661 fi
14662
14663 cfgfile="${ofile}T"
14664 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14665 $RM "$cfgfile"
14666
14667 cat <<_LT_EOF >> "$cfgfile"
14668 #! $SHELL
14669
14670 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14671 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14674 #
14675 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14676 # 2006, 2007, 2008 Free Software Foundation, Inc.
14677 # Written by Gordon Matzigkeit, 1996
14678 #
14679 # This file is part of GNU Libtool.
14680 #
14681 # GNU Libtool is free software; you can redistribute it and/or
14682 # modify it under the terms of the GNU General Public License as
14683 # published by the Free Software Foundation; either version 2 of
14684 # the License, or (at your option) any later version.
14685 #
14686 # As a special exception to the GNU General Public License,
14687 # if you distribute this file as part of a program or library that
14688 # is built using GNU Libtool, you may include this file under the
14689 # same distribution terms that you use for the rest of that program.
14690 #
14691 # GNU Libtool is distributed in the hope that it will be useful,
14692 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14693 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14694 # GNU General Public License for more details.
14695 #
14696 # You should have received a copy of the GNU General Public License
14697 # along with GNU Libtool; see the file COPYING. If not, a copy
14698 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14699 # obtained by writing to the Free Software Foundation, Inc.,
14700 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14701
14702
14703 # The names of the tagged configurations supported by this script.
14704 available_tags=""
14705
14706 # ### BEGIN LIBTOOL CONFIG
14707
14708 # Which release of libtool.m4 was used?
14709 macro_version=$macro_version
14710 macro_revision=$macro_revision
14711
14712 # Assembler program.
14713 AS=$AS
14714
14715 # DLL creation program.
14716 DLLTOOL=$DLLTOOL
14717
14718 # Object dumper program.
14719 OBJDUMP=$OBJDUMP
14720
14721 # Whether or not to build shared libraries.
14722 build_libtool_libs=$enable_shared
14723
14724 # Whether or not to build static libraries.
14725 build_old_libs=$enable_static
14726
14727 # What type of objects to build.
14728 pic_mode=$pic_mode
14729
14730 # Whether or not to optimize for fast installation.
14731 fast_install=$enable_fast_install
14732
14733 # The host system.
14734 host_alias=$host_alias
14735 host=$host
14736 host_os=$host_os
14737
14738 # The build system.
14739 build_alias=$build_alias
14740 build=$build
14741 build_os=$build_os
14742
14743 # A sed program that does not truncate output.
14744 SED=$lt_SED
14745
14746 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14747 Xsed="\$SED -e 1s/^X//"
14748
14749 # A grep program that handles long lines.
14750 GREP=$lt_GREP
14751
14752 # An ERE matcher.
14753 EGREP=$lt_EGREP
14754
14755 # A literal string matcher.
14756 FGREP=$lt_FGREP
14757
14758 # A BSD- or MS-compatible name lister.
14759 NM=$lt_NM
14760
14761 # Whether we need soft or hard links.
14762 LN_S=$lt_LN_S
14763
14764 # What is the maximum length of a command?
14765 max_cmd_len=$max_cmd_len
14766
14767 # Object file suffix (normally "o").
14768 objext=$ac_objext
14769
14770 # Executable file suffix (normally "").
14771 exeext=$exeext
14772
14773 # whether the shell understands "unset".
14774 lt_unset=$lt_unset
14775
14776 # turn spaces into newlines.
14777 SP2NL=$lt_lt_SP2NL
14778
14779 # turn newlines into spaces.
14780 NL2SP=$lt_lt_NL2SP
14781
14782 # How to create reloadable object files.
14783 reload_flag=$lt_reload_flag
14784 reload_cmds=$lt_reload_cmds
14785
14786 # Method to check whether dependent libraries are shared objects.
14787 deplibs_check_method=$lt_deplibs_check_method
14788
14789 # Command to use when deplibs_check_method == "file_magic".
14790 file_magic_cmd=$lt_file_magic_cmd
14791
14792 # The archiver.
14793 AR=$lt_AR
14794 AR_FLAGS=$lt_AR_FLAGS
14795
14796 # A symbol stripping program.
14797 STRIP=$lt_STRIP
14798
14799 # Commands used to install an old-style archive.
14800 RANLIB=$lt_RANLIB
14801 old_postinstall_cmds=$lt_old_postinstall_cmds
14802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14803
14804 # A C compiler.
14805 LTCC=$lt_CC
14806
14807 # LTCC compiler flags.
14808 LTCFLAGS=$lt_CFLAGS
14809
14810 # Take the output of nm and produce a listing of raw symbols and C names.
14811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14812
14813 # Transform the output of nm in a proper C declaration.
14814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14815
14816 # Transform the output of nm in a C name address pair.
14817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14818
14819 # Transform the output of nm in a C name address pair when lib prefix is needed.
14820 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14821
14822 # The name of the directory that contains temporary libtool files.
14823 objdir=$objdir
14824
14825 # Shell to use when invoking shell scripts.
14826 SHELL=$lt_SHELL
14827
14828 # An echo program that does not interpret backslashes.
14829 ECHO=$lt_ECHO
14830
14831 # Used to examine libraries when file_magic_cmd begins with "file".
14832 MAGIC_CMD=$MAGIC_CMD
14833
14834 # Must we lock files when doing compilation?
14835 need_locks=$lt_need_locks
14836
14837 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14838 DSYMUTIL=$lt_DSYMUTIL
14839
14840 # Tool to change global to local symbols on Mac OS X.
14841 NMEDIT=$lt_NMEDIT
14842
14843 # Tool to manipulate fat objects and archives on Mac OS X.
14844 LIPO=$lt_LIPO
14845
14846 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14847 OTOOL=$lt_OTOOL
14848
14849 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14850 OTOOL64=$lt_OTOOL64
14851
14852 # Old archive suffix (normally "a").
14853 libext=$libext
14854
14855 # Shared library suffix (normally ".so").
14856 shrext_cmds=$lt_shrext_cmds
14857
14858 # The commands to extract the exported symbol list from a shared archive.
14859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14860
14861 # Variables whose values should be saved in libtool wrapper scripts and
14862 # restored at link time.
14863 variables_saved_for_relink=$lt_variables_saved_for_relink
14864
14865 # Do we need the "lib" prefix for modules?
14866 need_lib_prefix=$need_lib_prefix
14867
14868 # Do we need a version for libraries?
14869 need_version=$need_version
14870
14871 # Library versioning type.
14872 version_type=$version_type
14873
14874 # Shared library runtime path variable.
14875 runpath_var=$runpath_var
14876
14877 # Shared library path variable.
14878 shlibpath_var=$shlibpath_var
14879
14880 # Is shlibpath searched before the hard-coded library search path?
14881 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14882
14883 # Format of library name prefix.
14884 libname_spec=$lt_libname_spec
14885
14886 # List of archive names. First name is the real one, the rest are links.
14887 # The last name is the one that the linker finds with -lNAME
14888 library_names_spec=$lt_library_names_spec
14889
14890 # The coded name of the library, if different from the real name.
14891 soname_spec=$lt_soname_spec
14892
14893 # Command to use after installation of a shared archive.
14894 postinstall_cmds=$lt_postinstall_cmds
14895
14896 # Command to use after uninstallation of a shared archive.
14897 postuninstall_cmds=$lt_postuninstall_cmds
14898
14899 # Commands used to finish a libtool library installation in a directory.
14900 finish_cmds=$lt_finish_cmds
14901
14902 # As "finish_cmds", except a single script fragment to be evaled but
14903 # not shown.
14904 finish_eval=$lt_finish_eval
14905
14906 # Whether we should hardcode library paths into libraries.
14907 hardcode_into_libs=$hardcode_into_libs
14908
14909 # Compile-time system search path for libraries.
14910 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14911
14912 # Run-time system search path for libraries.
14913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14914
14915 # Whether dlopen is supported.
14916 dlopen_support=$enable_dlopen
14917
14918 # Whether dlopen of programs is supported.
14919 dlopen_self=$enable_dlopen_self
14920
14921 # Whether dlopen of statically linked programs is supported.
14922 dlopen_self_static=$enable_dlopen_self_static
14923
14924 # Commands to strip libraries.
14925 old_striplib=$lt_old_striplib
14926 striplib=$lt_striplib
14927
14928
14929 # The linker used to build libraries.
14930 LD=$lt_LD
14931
14932 # Commands used to build an old-style archive.
14933 old_archive_cmds=$lt_old_archive_cmds
14934
14935 # A language specific compiler.
14936 CC=$lt_compiler
14937
14938 # Is the compiler the GNU compiler?
14939 with_gcc=$GCC
14940
14941 # Compiler flag to turn off builtin functions.
14942 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14943
14944 # How to pass a linker flag through the compiler.
14945 wl=$lt_lt_prog_compiler_wl
14946
14947 # Additional compiler flags for building library objects.
14948 pic_flag=$lt_lt_prog_compiler_pic
14949
14950 # Compiler flag to prevent dynamic linking.
14951 link_static_flag=$lt_lt_prog_compiler_static
14952
14953 # Does compiler simultaneously support -c and -o options?
14954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14955
14956 # Whether or not to add -lc for building shared libraries.
14957 build_libtool_need_lc=$archive_cmds_need_lc
14958
14959 # Whether or not to disallow shared libs when runtime libs are static.
14960 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14961
14962 # Compiler flag to allow reflexive dlopens.
14963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14964
14965 # Compiler flag to generate shared objects directly from archives.
14966 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14967
14968 # Whether the compiler copes with passing no objects directly.
14969 compiler_needs_object=$lt_compiler_needs_object
14970
14971 # Create an old-style archive from a shared archive.
14972 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14973
14974 # Create a temporary old-style archive to link instead of a shared archive.
14975 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14976
14977 # Commands used to build a shared archive.
14978 archive_cmds=$lt_archive_cmds
14979 archive_expsym_cmds=$lt_archive_expsym_cmds
14980
14981 # Commands used to build a loadable module if different from building
14982 # a shared archive.
14983 module_cmds=$lt_module_cmds
14984 module_expsym_cmds=$lt_module_expsym_cmds
14985
14986 # Whether we are building with GNU ld or not.
14987 with_gnu_ld=$lt_with_gnu_ld
14988
14989 # Flag that allows shared libraries with undefined symbols to be built.
14990 allow_undefined_flag=$lt_allow_undefined_flag
14991
14992 # Flag that enforces no undefined symbols.
14993 no_undefined_flag=$lt_no_undefined_flag
14994
14995 # Flag to hardcode \$libdir into a binary during linking.
14996 # This must work even if \$libdir does not exist
14997 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14998
14999 # If ld is used when linking, flag to hardcode \$libdir into a binary
15000 # during linking. This must work even if \$libdir does not exist.
15001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15002
15003 # Whether we need a single "-rpath" flag with a separated argument.
15004 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15005
15006 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15007 # DIR into the resulting binary.
15008 hardcode_direct=$hardcode_direct
15009
15010 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15011 # DIR into the resulting binary and the resulting library dependency is
15012 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15013 # library is relocated.
15014 hardcode_direct_absolute=$hardcode_direct_absolute
15015
15016 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15017 # into the resulting binary.
15018 hardcode_minus_L=$hardcode_minus_L
15019
15020 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15021 # into the resulting binary.
15022 hardcode_shlibpath_var=$hardcode_shlibpath_var
15023
15024 # Set to "yes" if building a shared library automatically hardcodes DIR
15025 # into the library and all subsequent libraries and executables linked
15026 # against it.
15027 hardcode_automatic=$hardcode_automatic
15028
15029 # Set to yes if linker adds runtime paths of dependent libraries
15030 # to runtime path list.
15031 inherit_rpath=$inherit_rpath
15032
15033 # Whether libtool must link a program against all its dependency libraries.
15034 link_all_deplibs=$link_all_deplibs
15035
15036 # Fix the shell variable \$srcfile for the compiler.
15037 fix_srcfile_path=$lt_fix_srcfile_path
15038
15039 # Set to "yes" if exported symbols are required.
15040 always_export_symbols=$always_export_symbols
15041
15042 # The commands to list exported symbols.
15043 export_symbols_cmds=$lt_export_symbols_cmds
15044
15045 # Symbols that should not be listed in the preloaded symbols.
15046 exclude_expsyms=$lt_exclude_expsyms
15047
15048 # Symbols that must always be exported.
15049 include_expsyms=$lt_include_expsyms
15050
15051 # Commands necessary for linking programs (against libraries) with templates.
15052 prelink_cmds=$lt_prelink_cmds
15053
15054 # Specify filename containing input files.
15055 file_list_spec=$lt_file_list_spec
15056
15057 # How to hardcode a shared library path into an executable.
15058 hardcode_action=$hardcode_action
15059
15060 # ### END LIBTOOL CONFIG
15061
15062 _LT_EOF
15063
15064 case $host_os in
15065 aix3*)
15066 cat <<\_LT_EOF >> "$cfgfile"
15067 # AIX sometimes has problems with the GCC collect2 program. For some
15068 # reason, if we set the COLLECT_NAMES environment variable, the problems
15069 # vanish in a puff of smoke.
15070 if test "X${COLLECT_NAMES+set}" != Xset; then
15071 COLLECT_NAMES=
15072 export COLLECT_NAMES
15073 fi
15074 _LT_EOF
15075 ;;
15076 esac
15077
15078
15079 ltmain="$ac_aux_dir/ltmain.sh"
15080
15081
15082 # We use sed instead of cat because bash on DJGPP gets confused if
15083 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15084 # text mode, it properly converts lines to CR/LF. This bash problem
15085 # is reportedly fixed, but why not run on old versions too?
15086 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15087 || (rm -f "$cfgfile"; exit 1)
15088
15089 case $xsi_shell in
15090 yes)
15091 cat << \_LT_EOF >> "$cfgfile"
15092
15093 # func_dirname file append nondir_replacement
15094 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15095 # otherwise set result to NONDIR_REPLACEMENT.
15096 func_dirname ()
15097 {
15098 case ${1} in
15099 */*) func_dirname_result="${1%/*}${2}" ;;
15100 * ) func_dirname_result="${3}" ;;
15101 esac
15102 }
15103
15104 # func_basename file
15105 func_basename ()
15106 {
15107 func_basename_result="${1##*/}"
15108 }
15109
15110 # func_dirname_and_basename file append nondir_replacement
15111 # perform func_basename and func_dirname in a single function
15112 # call:
15113 # dirname: Compute the dirname of FILE. If nonempty,
15114 # add APPEND to the result, otherwise set result
15115 # to NONDIR_REPLACEMENT.
15116 # value returned in "$func_dirname_result"
15117 # basename: Compute filename of FILE.
15118 # value retuned in "$func_basename_result"
15119 # Implementation must be kept synchronized with func_dirname
15120 # and func_basename. For efficiency, we do not delegate to
15121 # those functions but instead duplicate the functionality here.
15122 func_dirname_and_basename ()
15123 {
15124 case ${1} in
15125 */*) func_dirname_result="${1%/*}${2}" ;;
15126 * ) func_dirname_result="${3}" ;;
15127 esac
15128 func_basename_result="${1##*/}"
15129 }
15130
15131 # func_stripname prefix suffix name
15132 # strip PREFIX and SUFFIX off of NAME.
15133 # PREFIX and SUFFIX must not contain globbing or regex special
15134 # characters, hashes, percent signs, but SUFFIX may contain a leading
15135 # dot (in which case that matches only a dot).
15136 func_stripname ()
15137 {
15138 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15139 # positional parameters, so assign one to ordinary parameter first.
15140 func_stripname_result=${3}
15141 func_stripname_result=${func_stripname_result#"${1}"}
15142 func_stripname_result=${func_stripname_result%"${2}"}
15143 }
15144
15145 # func_opt_split
15146 func_opt_split ()
15147 {
15148 func_opt_split_opt=${1%%=*}
15149 func_opt_split_arg=${1#*=}
15150 }
15151
15152 # func_lo2o object
15153 func_lo2o ()
15154 {
15155 case ${1} in
15156 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15157 *) func_lo2o_result=${1} ;;
15158 esac
15159 }
15160
15161 # func_xform libobj-or-source
15162 func_xform ()
15163 {
15164 func_xform_result=${1%.*}.lo
15165 }
15166
15167 # func_arith arithmetic-term...
15168 func_arith ()
15169 {
15170 func_arith_result=$(( $* ))
15171 }
15172
15173 # func_len string
15174 # STRING may not start with a hyphen.
15175 func_len ()
15176 {
15177 func_len_result=${#1}
15178 }
15179
15180 _LT_EOF
15181 ;;
15182 *) # Bourne compatible functions.
15183 cat << \_LT_EOF >> "$cfgfile"
15184
15185 # func_dirname file append nondir_replacement
15186 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15187 # otherwise set result to NONDIR_REPLACEMENT.
15188 func_dirname ()
15189 {
15190 # Extract subdirectory from the argument.
15191 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15192 if test "X$func_dirname_result" = "X${1}"; then
15193 func_dirname_result="${3}"
15194 else
15195 func_dirname_result="$func_dirname_result${2}"
15196 fi
15197 }
15198
15199 # func_basename file
15200 func_basename ()
15201 {
15202 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15203 }
15204
15205
15206 # func_stripname prefix suffix name
15207 # strip PREFIX and SUFFIX off of NAME.
15208 # PREFIX and SUFFIX must not contain globbing or regex special
15209 # characters, hashes, percent signs, but SUFFIX may contain a leading
15210 # dot (in which case that matches only a dot).
15211 # func_strip_suffix prefix name
15212 func_stripname ()
15213 {
15214 case ${2} in
15215 .*) func_stripname_result=`$ECHO "X${3}" \
15216 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15217 *) func_stripname_result=`$ECHO "X${3}" \
15218 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15219 esac
15220 }
15221
15222 # sed scripts:
15223 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15224 my_sed_long_arg='1s/^-[^=]*=//'
15225
15226 # func_opt_split
15227 func_opt_split ()
15228 {
15229 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15230 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15231 }
15232
15233 # func_lo2o object
15234 func_lo2o ()
15235 {
15236 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15237 }
15238
15239 # func_xform libobj-or-source
15240 func_xform ()
15241 {
15242 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15243 }
15244
15245 # func_arith arithmetic-term...
15246 func_arith ()
15247 {
15248 func_arith_result=`expr "$@"`
15249 }
15250
15251 # func_len string
15252 # STRING may not start with a hyphen.
15253 func_len ()
15254 {
15255 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15256 }
15257
15258 _LT_EOF
15259 esac
15260
15261 case $lt_shell_append in
15262 yes)
15263 cat << \_LT_EOF >> "$cfgfile"
15264
15265 # func_append var value
15266 # Append VALUE to the end of shell variable VAR.
15267 func_append ()
15268 {
15269 eval "$1+=\$2"
15270 }
15271 _LT_EOF
15272 ;;
15273 *)
15274 cat << \_LT_EOF >> "$cfgfile"
15275
15276 # func_append var value
15277 # Append VALUE to the end of shell variable VAR.
15278 func_append ()
15279 {
15280 eval "$1=\$$1\$2"
15281 }
15282
15283 _LT_EOF
15284 ;;
15285 esac
15286
15287
15288 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15289 || (rm -f "$cfgfile"; exit 1)
15290
15291 mv -f "$cfgfile" "$ofile" ||
15292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15293 chmod +x "$ofile"
15294
15295 ;;
15296
15297 esac
15298 done # for ac_tag
15299
15300
15301 { (exit 0); exit 0; }
15302 _ACEOF
15303 chmod +x $CONFIG_STATUS
15304 ac_clean_files=$ac_clean_files_save
15305
15306
15307 # configure is writing to config.log, and then calls config.status.
15308 # config.status does its own redirection, appending to config.log.
15309 # Unfortunately, on DOS this fails, as config.log is still kept open
15310 # by configure, so config.status won't be able to write to it; its
15311 # output is simply discarded. So we exec the FD to /dev/null,
15312 # effectively closing config.log, so it can be properly (re)opened and
15313 # appended to by config.status. When coming back to configure, we
15314 # need to make the FD available again.
15315 if test "$no_create" != yes; then
15316 ac_cs_success=:
15317 ac_config_status_args=
15318 test "$silent" = yes &&
15319 ac_config_status_args="$ac_config_status_args --quiet"
15320 exec 5>/dev/null
15321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15322 exec 5>>config.log
15323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15324 # would make configure fail if this is the last instruction.
15325 $ac_cs_success || { (exit 1); exit 1; }
15326 fi
15327