Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / md5 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d138742 3# Generated by GNU Autoconf 2.63 for libmd5 1.21.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 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
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
8d138742 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
8d138742
CE
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
dd184caf 369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
dd184caf 441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
8d138742 580case X$lt_ECHO in
d9898ee8 581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
8d138742 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
d9898ee8 584 ;;
585esac
586
8d138742 587ECHO=${lt_ECHO-echo}
d9898ee8 588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
8d138742
CE
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
d9898ee8 596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
8d138742 605 cat <<_LT_EOF
d9898ee8 606$*
8d138742 607_LT_EOF
d9898ee8 608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
8d138742
CE
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
d9898ee8 627
8d138742
CE
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
d9898ee8 638
8d138742
CE
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
d9898ee8 650 IFS="$lt_save_ifs"
d9898ee8 651
8d138742
CE
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
d9898ee8 667 else
8d138742
CE
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
d9898ee8 692
8d138742
CE
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
d9898ee8 700
8d138742
CE
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
d9898ee8 710 fi
711 fi
712 fi
713fi
d9898ee8 714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
8d138742
CE
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
d9898ee8 720fi
721
722
723
724
dd184caf 725exec 7<&0 </dev/null 6>&1
726
d9898ee8 727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
d9898ee8 732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
dd184caf 736ac_clean_files=
d9898ee8 737ac_config_libobj_dir=.
dd184caf 738LIBOBJS=
d9898ee8 739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
d9898ee8 745# Identity of this package.
746PACKAGE_NAME='libmd5'
747PACKAGE_TARNAME='libmd5'
748PACKAGE_VERSION='1.21'
749PACKAGE_STRING='libmd5 1.21'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="hmac.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
dd184caf 756#ifdef HAVE_SYS_TYPES_H
d9898ee8 757# include <sys/types.h>
758#endif
dd184caf 759#ifdef HAVE_SYS_STAT_H
d9898ee8 760# include <sys/stat.h>
761#endif
dd184caf 762#ifdef STDC_HEADERS
d9898ee8 763# include <stdlib.h>
764# include <stddef.h>
765#else
dd184caf 766# ifdef HAVE_STDLIB_H
d9898ee8 767# include <stdlib.h>
768# endif
769#endif
dd184caf 770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 772# include <memory.h>
773# endif
774# include <string.h>
775#endif
dd184caf 776#ifdef HAVE_STRINGS_H
d9898ee8 777# include <strings.h>
778#endif
dd184caf 779#ifdef HAVE_INTTYPES_H
d9898ee8 780# include <inttypes.h>
d9898ee8 781#endif
dd184caf 782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
d9898ee8 786# include <unistd.h>
787#endif"
788
8d138742
CE
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
dd184caf 793CPP
8d138742
CE
794OTOOL64
795OTOOL
796LIPO
797NMEDIT
798DSYMUTIL
799lt_ECHO
800RANLIB
801AR
802OBJDUMP
803NM
804ac_ct_DUMPBIN
805DUMPBIN
806LD
807FGREP
808EGREP
809GREP
810SED
811host_os
812host_vendor
813host_cpu
814host
815build_os
816build_vendor
817build_cpu
818build
dd184caf 819LIBTOOL
8d138742
CE
820am__fastdepCC_FALSE
821am__fastdepCC_TRUE
822CCDEPMODE
823AMDEPBACKSLASH
824AMDEP_FALSE
825AMDEP_TRUE
826am__quote
827am__include
828DEPDIR
829OBJEXT
830EXEEXT
831ac_ct_CC
832CPPFLAGS
833LDFLAGS
834CFLAGS
835CC
836LN_S
837HMACC_FALSE
838HMACC_TRUE
839am__untar
840am__tar
841AMTAR
842am__leading_dot
843SET_MAKE
844AWK
845mkdir_p
846MKDIR_P
847INSTALL_STRIP_PROGRAM
848STRIP
849install_sh
850MAKEINFO
851AUTOHEADER
852AUTOMAKE
853AUTOCONF
854ACLOCAL
855VERSION
856PACKAGE
857CYGPATH_W
858am__isrc
859INSTALL_DATA
860INSTALL_SCRIPT
861INSTALL_PROGRAM
862target_alias
863host_alias
864build_alias
865LIBS
866ECHO_T
867ECHO_N
868ECHO_C
869DEFS
870mandir
871localedir
872libdir
873psdir
874pdfdir
875dvidir
876htmldir
877infodir
878docdir
879oldincludedir
880includedir
881localstatedir
882sharedstatedir
883sysconfdir
884datadir
885datarootdir
886libexecdir
887sbindir
888bindir
889program_transform_name
890prefix
891exec_prefix
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL'
d9898ee8 899ac_subst_files=''
8d138742
CE
900ac_user_opts='
901enable_option_checking
902enable_dependency_tracking
903enable_shared
904enable_static
905with_pic
906enable_fast_install
907with_gnu_ld
908enable_libtool_lock
909with_int32
910'
dd184caf 911 ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
8d138742 919CPP'
dd184caf 920
d9898ee8 921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
8d138742
CE
925ac_unrecognized_opts=
926ac_unrecognized_sep=
d9898ee8 927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 949# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
dd184caf 953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
d9898ee8 955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
d9898ee8 958includedir='${prefix}/include'
959oldincludedir='/usr/include'
dd184caf 960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
d9898ee8 969
970ac_prev=
dd184caf 971ac_dashdash=
d9898ee8 972for ac_option
973do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
dd184caf 976 eval $ac_prev=\$ac_option
d9898ee8 977 ac_prev=
978 continue
979 fi
980
dd184caf 981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
d9898ee8 985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
dd184caf 988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
d9898ee8 991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
dd184caf 1012 -datadir | --datadir | --datadi | --datad)
d9898ee8 1013 ac_prev=datadir ;;
dd184caf 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1015 datadir=$ac_optarg ;;
1016
dd184caf 1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
d9898ee8 1024 -disable-* | --disable-*)
8d138742 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1026 # Reject names that are not valid shell variable names.
8d138742
CE
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1029 { (exit 1); exit 1; }; }
8d138742
CE
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
dd184caf 1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
d9898ee8 1050
1051 -enable-* | --enable-*)
8d138742 1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1053 # Reject names that are not valid shell variable names.
8d138742
CE
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1056 { (exit 1); exit 1; }; }
8d138742
CE
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"enable_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1067
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1076
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1080
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1087
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1092
dd184caf 1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1098
d9898ee8 1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1105
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1110
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1115
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1122
dd184caf 1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1127
d9898ee8 1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1129 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1133 localstatedir=$ac_optarg ;;
1134
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1139
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1143
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1146 no_create=yes ;;
1147
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1151
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1160
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1165
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1172
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1179
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1196
dd184caf 1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1201
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1206
d9898ee8 1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1210
1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 ac_prev=sbindir ;;
1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 | --sbi=* | --sb=*)
1215 sbindir=$ac_optarg ;;
1216
1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219 | --sharedst | --shareds | --shared | --share | --shar \
1220 | --sha | --sh)
1221 ac_prev=sharedstatedir ;;
1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 | --sha=* | --sh=*)
1226 sharedstatedir=$ac_optarg ;;
1227
1228 -site | --site | --sit)
1229 ac_prev=site ;;
1230 -site=* | --site=* | --sit=*)
1231 site=$ac_optarg ;;
1232
1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 ac_prev=srcdir ;;
1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236 srcdir=$ac_optarg ;;
1237
1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239 | --syscon | --sysco | --sysc | --sys | --sy)
1240 ac_prev=sysconfdir ;;
1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243 sysconfdir=$ac_optarg ;;
1244
1245 -target | --target | --targe | --targ | --tar | --ta | --t)
1246 ac_prev=target_alias ;;
1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248 target_alias=$ac_optarg ;;
1249
1250 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 verbose=yes ;;
1252
1253 -version | --version | --versio | --versi | --vers | -V)
1254 ac_init_version=: ;;
1255
1256 -with-* | --with-*)
8d138742 1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1258 # Reject names that are not valid shell variable names.
8d138742
CE
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1261 { (exit 1); exit 1; }; }
8d138742
CE
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266"with_$ac_useropt"
1267"*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1272
1273 -without-* | --without-*)
8d138742 1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1275 # Reject names that are not valid shell variable names.
8d138742
CE
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1278 { (exit 1); exit 1; }; }
8d138742
CE
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283"with_$ac_useropt"
1284"*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=no ;;
d9898ee8 1289
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1293
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1300
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1307
8d138742 1308 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1309Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1311 ;;
1312
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1317 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1318 { (exit 1); exit 1; }; }
dd184caf 1319 eval $ac_envvar=\$ac_optarg
d9898ee8 1320 export $ac_envvar ;;
1321
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
8d138742 1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 ;;
1329
1330 esac
1331done
1332
1333if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1335 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1336 { (exit 1); exit 1; }; }
1337fi
1338
8d138742
CE
1339if test -n "$ac_unrecognized_opts"; then
1340 case $enable_option_checking in
1341 no) ;;
1342 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1343 { (exit 1); exit 1; }; } ;;
1344 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 esac
1346fi
1347
1348# Check all directory arguments for consistency.
dd184caf 1349for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
d9898ee8 1353do
dd184caf 1354 eval ac_val=\$$ac_var
8d138742
CE
1355 # Remove trailing slashes.
1356 case $ac_val in
1357 */ )
1358 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359 eval $ac_var=\$ac_val;;
1360 esac
1361 # Be sure to have absolute directory names.
d9898ee8 1362 case $ac_val in
dd184caf 1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1365 esac
8d138742 1366 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1367 { (exit 1); exit 1; }; }
d9898ee8 1368done
1369
1370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
1372# FIXME: To remove some day.
1373build=$build_alias
1374host=$host_alias
1375target=$target_alias
1376
1377# FIXME: To remove some day.
1378if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
8d138742 1381 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1385 fi
1386fi
1387
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
1392
1393
dd184caf 1394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1397 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1398 { (exit 1); exit 1; }; }
1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1400 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1401 { (exit 1); exit 1; }; }
1402
1403
d9898ee8 1404# Find the source files, if location was not specified.
1405if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
dd184caf 1407 # Try the directory containing this script, then the parent directory.
8d138742
CE
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413$as_echo X"$as_myself" |
dd184caf 1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
d9898ee8 1431 srcdir=$ac_confdir
dd184caf 1432 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1433 srcdir=..
1434 fi
1435else
1436 ac_srcdir_defaulted=no
1437fi
dd184caf 1438if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1440 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1441 { (exit 1); exit 1; }; }
d9898ee8 1442fi
dd184caf 1443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
8d138742 1445 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1446 { (exit 1); exit 1; }; }
dd184caf 1447 pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
d9898ee8 1464
1465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
1472\`configure' configures libmd5 1.21 to adapt to many kinds of systems.
1473
1474Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479Defaults for the options are specified in brackets.
1480
1481Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
d9898ee8 1492Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1494 [$ac_default_prefix]
d9898ee8 1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1496 [PREFIX]
d9898ee8 1497
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
1502
1503For better control, use the options below.
1504
1505Fine tuning of the installation directories:
8d138742
CE
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/libmd5]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1525_ACEOF
1526
1527 cat <<\_ACEOF
1528
1529Program names:
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1533
1534System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of libmd5 1.21:";;
1543 esac
1544 cat <<\_ACEOF
1545
1546Optional Features:
8d138742 1547 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --disable-dependency-tracking speeds up one-time build
1551 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1552 --enable-shared[=PKGS] build shared libraries [default=yes]
1553 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation [default=yes]
1556 --disable-libtool-lock avoid locking (might break parallel builds)
1557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
8d138742 1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1564 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1565 ( default is 'unsigned')
1566
1567Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
dd184caf 1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
d9898ee8 1575 CPP C preprocessor
d9898ee8 1576
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
1580Report bugs to <courier-users@lists.sourceforge.net>.
1581_ACEOF
dd184caf 1582ac_status=$?
d9898ee8 1583fi
1584
1585if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
d9898ee8 1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
d9898ee8 1591 ac_builddir=.
1592
dd184caf 1593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
8d138742 1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1597 # A ".." for each directory in $ac_dir_suffix.
8d138742 1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
d9898ee8 1608
1609case $srcdir in
dd184caf 1610 .) # We are building in place.
d9898ee8 1611 ac_srcdir=.
dd184caf 1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1615 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1622esac
dd184caf 1623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1633 else
8d138742 1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1637 done
1638fi
1639
dd184caf 1640test -n "$ac_init_help" && exit $ac_status
d9898ee8 1641if $ac_init_version; then
1642 cat <<\_ACEOF
1643libmd5 configure 1.21
8d138742 1644generated by GNU Autoconf 2.63
d9898ee8 1645
dd184caf 1646Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16472002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1648This configure script is free software; the Free Software Foundation
1649gives unlimited permission to copy, distribute and modify it.
1650_ACEOF
dd184caf 1651 exit
d9898ee8 1652fi
dd184caf 1653cat >config.log <<_ACEOF
d9898ee8 1654This file contains any messages produced by compilers while
1655running configure, to aid debugging if configure makes a mistake.
1656
1657It was created by libmd5 $as_me 1.21, which was
8d138742 1658generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1659
1660 $ $0 $@
1661
1662_ACEOF
dd184caf 1663exec 5>>config.log
d9898ee8 1664{
1665cat <<_ASUNAME
1666## --------- ##
1667## Platform. ##
1668## --------- ##
1669
1670hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675
1676/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678
1679/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1680/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1681/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1682/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1683/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1684/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1685/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686
1687_ASUNAME
1688
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
8d138742 1694 $as_echo "PATH: $as_dir"
d9898ee8 1695done
dd184caf 1696IFS=$as_save_IFS
d9898ee8 1697
1698} >&5
1699
1700cat >&5 <<_ACEOF
1701
1702
1703## ----------- ##
1704## Core tests. ##
1705## ----------- ##
1706
1707_ACEOF
1708
1709
1710# Keep a trace of the command line.
1711# Strip out --no-create and --no-recursion so they do not pile up.
1712# Strip out --silent because we don't want to record it for future runs.
1713# Also quote any args containing shell meta-characters.
1714# Make two passes to allow for proper duplicate-argument suppression.
1715ac_configure_args=
1716ac_configure_args0=
1717ac_configure_args1=
d9898ee8 1718ac_must_keep_next=false
1719for ac_pass in 1 2
1720do
1721 for ac_arg
1722 do
1723 case $ac_arg in
1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726 | -silent | --silent | --silen | --sile | --sil)
1727 continue ;;
dd184caf 1728 *\'*)
8d138742 1729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1730 esac
1731 case $ac_pass in
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 2)
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735 if test $ac_must_keep_next = true; then
1736 ac_must_keep_next=false # Got value, back to normal.
1737 else
1738 case $ac_arg in
1739 *=* | --config-cache | -C | -disable-* | --disable-* \
1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742 | -with-* | --with-* | -without-* | --without-* | --x)
1743 case "$ac_configure_args0 " in
1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 esac
1746 ;;
1747 -* ) ac_must_keep_next=true ;;
1748 esac
1749 fi
dd184caf 1750 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1751 ;;
1752 esac
1753 done
1754done
1755$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757
1758# When interrupted or exit'd, cleanup temporary files, and complete
1759# config.log. We remove comments because anyway the quotes in there
1760# would cause problems or look ugly.
dd184caf 1761# WARNING: Use '\'' to represent an apostrophe within the trap.
1762# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1763trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1765 {
1766 echo
1767
1768 cat <<\_ASBOX
1769## ---------------- ##
1770## Cache variables. ##
1771## ---------------- ##
1772_ASBOX
1773 echo
1774 # The following way of writing the cache mishandles newlines in values,
dd184caf 1775(
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777 eval ac_val=\$$ac_var
1778 case $ac_val in #(
1779 *${as_nl}*)
1780 case $ac_var in #(
8d138742
CE
1781 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1782$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1783 esac
1784 case $ac_var in #(
1785 _ | IFS | as_nl) ;; #(
8d138742 1786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1787 *) $as_unset $ac_var ;;
1788 esac ;;
1789 esac
1790 done
d9898ee8 1791 (set) 2>&1 |
dd184caf 1792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793 *${as_nl}ac_space=\ *)
d9898ee8 1794 sed -n \
dd184caf 1795 "s/'\''/'\''\\\\'\'''\''/g;
1796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 ;; #(
d9898ee8 1798 *)
dd184caf 1799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1800 ;;
dd184caf 1801 esac |
1802 sort
1803)
d9898ee8 1804 echo
1805
1806 cat <<\_ASBOX
1807## ----------------- ##
1808## Output variables. ##
1809## ----------------- ##
1810_ASBOX
1811 echo
1812 for ac_var in $ac_subst_vars
1813 do
dd184caf 1814 eval ac_val=\$$ac_var
1815 case $ac_val in
8d138742 1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1817 esac
8d138742 1818 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1819 done | sort
1820 echo
1821
1822 if test -n "$ac_subst_files"; then
1823 cat <<\_ASBOX
dd184caf 1824## ------------------- ##
1825## File substitutions. ##
1826## ------------------- ##
d9898ee8 1827_ASBOX
1828 echo
1829 for ac_var in $ac_subst_files
1830 do
dd184caf 1831 eval ac_val=\$$ac_var
1832 case $ac_val in
8d138742 1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1834 esac
8d138742 1835 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1836 done | sort
1837 echo
1838 fi
1839
1840 if test -s confdefs.h; then
1841 cat <<\_ASBOX
1842## ----------- ##
1843## confdefs.h. ##
1844## ----------- ##
1845_ASBOX
1846 echo
dd184caf 1847 cat confdefs.h
d9898ee8 1848 echo
1849 fi
1850 test "$ac_signal" != 0 &&
8d138742
CE
1851 $as_echo "$as_me: caught signal $ac_signal"
1852 $as_echo "$as_me: exit $exit_status"
d9898ee8 1853 } >&5
dd184caf 1854 rm -f core *.core core.conftest.* &&
1855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1856 exit $exit_status
dd184caf 1857' 0
d9898ee8 1858for ac_signal in 1 2 13 15; do
1859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860done
1861ac_signal=0
1862
1863# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1864rm -f -r conftest* confdefs.h
d9898ee8 1865
1866# Predefined preprocessor variables.
1867
1868cat >>confdefs.h <<_ACEOF
1869#define PACKAGE_NAME "$PACKAGE_NAME"
1870_ACEOF
1871
1872
1873cat >>confdefs.h <<_ACEOF
1874#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875_ACEOF
1876
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_VERSION "$PACKAGE_VERSION"
1880_ACEOF
1881
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_STRING "$PACKAGE_STRING"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890_ACEOF
1891
1892
1893# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1894# Prefer an explicitly selected file to automatically selected ones.
1895ac_site_file1=NONE
1896ac_site_file2=NONE
dd184caf 1897if test -n "$CONFIG_SITE"; then
8d138742 1898 ac_site_file1=$CONFIG_SITE
dd184caf 1899elif test "x$prefix" != xNONE; then
8d138742
CE
1900 ac_site_file1=$prefix/share/config.site
1901 ac_site_file2=$prefix/etc/config.site
dd184caf 1902else
8d138742
CE
1903 ac_site_file1=$ac_default_prefix/share/config.site
1904 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1905fi
8d138742 1906for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1907do
8d138742 1908 test "x$ac_site_file" = xNONE && continue
d9898ee8 1909 if test -r "$ac_site_file"; then
8d138742
CE
1910 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1912 sed 's/^/| /' "$ac_site_file" >&5
1913 . "$ac_site_file"
1914 fi
1915done
1916
1917if test -r "$cache_file"; then
1918 # Some versions of bash will fail to source /dev/null (special
1919 # files actually), so we avoid doing that.
1920 if test -f "$cache_file"; then
8d138742
CE
1921 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1923 case $cache_file in
dd184caf 1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
d9898ee8 1926 esac
1927 fi
1928else
8d138742
CE
1929 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1931 >$cache_file
1932fi
1933
1934# Check that the precious variables saved in the cache have kept the same
1935# value.
1936ac_cache_corrupted=false
dd184caf 1937for ac_var in $ac_precious_vars; do
d9898ee8 1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1942 case $ac_old_set,$ac_new_set in
1943 set,)
8d138742
CE
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1946 ac_cache_corrupted=: ;;
1947 ,set)
8d138742
CE
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1950 ac_cache_corrupted=: ;;
1951 ,);;
1952 *)
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1954 # differences in whitespace do not lead to failure.
1955 ac_old_val_w=`echo x $ac_old_val`
1956 ac_new_val_w=`echo x $ac_new_val`
1957 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960 ac_cache_corrupted=:
1961 else
1962 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1963$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1964 eval $ac_var=\$ac_old_val
1965 fi
1966 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1967$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1968 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1969$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1970 fi;;
1971 esac
1972 # Pass precious variables to config.status.
1973 if test "$ac_new_set" = set; then
1974 case $ac_new_val in
8d138742 1975 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1976 *) ac_arg=$ac_var=$ac_new_val ;;
1977 esac
1978 case " $ac_configure_args " in
1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1980 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981 esac
1982 fi
1983done
1984if $ac_cache_corrupted; then
8d138742
CE
1985 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1987 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 1991 { (exit 1); exit 1; }; }
1992fi
1993
d9898ee8 1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
dd184caf 2018ac_ext=c
2019ac_cpp='$CPP $CPPFLAGS'
2020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2023
2024
2025
2026>confdefs.h # Kill PACKAGE_ macros
2027
2028
dd184caf 2029ac_config_headers="$ac_config_headers config.h"
2030
8d138742 2031am__api_version='1.11'
d9898ee8 2032
d9898ee8 2033ac_aux_dir=
dd184caf 2034for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2035 if test -f "$ac_dir/install-sh"; then
d9898ee8 2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/install-sh -c"
2038 break
dd184caf 2039 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install.sh -c"
2042 break
dd184caf 2043 elif test -f "$ac_dir/shtool"; then
d9898ee8 2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/shtool install -c"
2046 break
2047 fi
2048done
2049if test -z "$ac_aux_dir"; then
8d138742
CE
2050 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2051$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2052 { (exit 1); exit 1; }; }
2053fi
dd184caf 2054
2055# These three variables are undocumented and unsupported,
2056# and are intended to be withdrawn in a future Autoconf release.
2057# They can cause serious problems if a builder's source tree is in a directory
2058# whose full name contains unusual characters.
2059ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2060ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2061ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2062
d9898ee8 2063
2064# Find a good install program. We prefer a C program (faster),
2065# so one script is as good as another. But avoid the broken or
2066# incompatible versions:
2067# SysV /etc/install, /usr/sbin/install
2068# SunOS /usr/etc/install
2069# IRIX /sbin/install
2070# AIX /bin/install
2071# AmigaOS /C/install, which installs bootblocks on floppy discs
2072# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2073# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2074# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2075# OS/2's system install, which has a completely different semantic
2076# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2077# Reject install programs that cannot install multiple files.
2078{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2079$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2080if test -z "$INSTALL"; then
2081if test "${ac_cv_path_install+set}" = set; then
8d138742 2082 $as_echo_n "(cached) " >&6
d9898ee8 2083else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 # Account for people who put trailing slashes in PATH elements.
2090case $as_dir/ in
2091 ./ | .// | /cC/* | \
2092 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2093 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2094 /usr/ucb/* ) ;;
2095 *)
2096 # OSF1 and SCO ODT 3.0 have their own names for install.
2097 # Don't use installbsd from OSF since it installs stuff as root
2098 # by default.
2099 for ac_prog in ginstall scoinst install; do
2100 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2101 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2102 if test $ac_prog = install &&
2103 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2104 # AIX install. It has an incompatible calling convention.
2105 :
2106 elif test $ac_prog = install &&
2107 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2108 # program-specific install script used by HP pwplus--don't use.
2109 :
2110 else
8d138742
CE
2111 rm -rf conftest.one conftest.two conftest.dir
2112 echo one > conftest.one
2113 echo two > conftest.two
2114 mkdir conftest.dir
2115 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2116 test -s conftest.one && test -s conftest.two &&
2117 test -s conftest.dir/conftest.one &&
2118 test -s conftest.dir/conftest.two
2119 then
2120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2121 break 3
2122 fi
d9898ee8 2123 fi
2124 fi
2125 done
2126 done
2127 ;;
2128esac
8d138742 2129
d9898ee8 2130done
dd184caf 2131IFS=$as_save_IFS
d9898ee8 2132
8d138742 2133rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2134
2135fi
2136 if test "${ac_cv_path_install+set}" = set; then
2137 INSTALL=$ac_cv_path_install
2138 else
dd184caf 2139 # As a last resort, use the slow shell script. Don't cache a
2140 # value for INSTALL within a source directory, because that will
d9898ee8 2141 # break other packages using the cache if that directory is
dd184caf 2142 # removed, or if the value is a relative name.
d9898ee8 2143 INSTALL=$ac_install_sh
2144 fi
2145fi
8d138742
CE
2146{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2147$as_echo "$INSTALL" >&6; }
d9898ee8 2148
2149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150# It thinks the first close brace ends the variable substitution.
2151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2152
2153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2154
2155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2156
8d138742
CE
2157{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2158$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2159# Just in case
2160sleep 1
2161echo timestamp > conftest.file
8d138742
CE
2162# Reject unsafe characters in $srcdir or the absolute working directory
2163# name. Accept space and tab only in the latter.
2164am_lf='
2165'
2166case `pwd` in
2167 *[\\\"\#\$\&\'\`$am_lf]*)
2168 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2169$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2170 { (exit 1); exit 1; }; };;
2171esac
2172case $srcdir in
2173 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2174 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2175$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2176 { (exit 1); exit 1; }; };;
2177esac
2178
d9898ee8 2179# Do `set' in a subshell so we don't clobber the current shell's
2180# arguments. Must try -L first in case configure is actually a
2181# symlink; some systems play weird games with the mod time of symlinks
2182# (eg FreeBSD returns the mod time of the symlink's containing
2183# directory).
2184if (
8d138742 2185 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2186 if test "$*" = "X"; then
2187 # -L didn't work.
8d138742 2188 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2189 fi
2190 rm -f conftest.file
2191 if test "$*" != "X $srcdir/configure conftest.file" \
2192 && test "$*" != "X conftest.file $srcdir/configure"; then
2193
2194 # If neither matched, then we have a broken ls. This can happen
2195 # if, for instance, CONFIG_SHELL is bash and it inherits a
2196 # broken ls alias from the environment. This has actually
2197 # happened. Such a system could not be considered "sane".
8d138742 2198 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2199alias in your environment" >&5
8d138742 2200$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2201alias in your environment" >&2;}
2202 { (exit 1); exit 1; }; }
2203 fi
2204
2205 test "$2" = conftest.file
2206 )
2207then
2208 # Ok.
2209 :
2210else
8d138742 2211 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2212Check your system clock" >&5
8d138742 2213$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2214Check your system clock" >&2;}
2215 { (exit 1); exit 1; }; }
2216fi
8d138742
CE
2217{ $as_echo "$as_me:$LINENO: result: yes" >&5
2218$as_echo "yes" >&6; }
d9898ee8 2219test "$program_prefix" != NONE &&
dd184caf 2220 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2221# Use a double $ so make ignores it.
2222test "$program_suffix" != NONE &&
dd184caf 2223 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2224# Double any \ or $.
d9898ee8 2225# By default was `s,x,x', remove it if useless.
8d138742
CE
2226ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2227program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2228
2229# expand $ac_aux_dir to an absolute path
2230am_aux_dir=`cd $ac_aux_dir && pwd`
2231
8d138742
CE
2232if test x"${MISSING+set}" != xset; then
2233 case $am_aux_dir in
2234 *\ * | *\ *)
2235 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2236 *)
2237 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2238 esac
2239fi
d9898ee8 2240# Use eval to expand $SHELL
2241if eval "$MISSING --run true"; then
2242 am_missing_run="$MISSING --run "
2243else
2244 am_missing_run=
8d138742
CE
2245 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2246$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2247fi
2248
2249if test x"${install_sh}" != xset; then
2250 case $am_aux_dir in
2251 *\ * | *\ *)
2252 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2253 *)
2254 install_sh="\${SHELL} $am_aux_dir/install-sh"
2255 esac
2256fi
2257
2258# Installed binaries are usually stripped using `strip' when the user
2259# run `make install-strip'. However `strip' might not be the right
2260# tool to use in cross-compilation environments, therefore Automake
2261# will honor the `STRIP' environment variable to overrule this program.
2262if test "$cross_compiling" != no; then
2263 if test -n "$ac_tool_prefix"; then
2264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2265set dummy ${ac_tool_prefix}strip; ac_word=$2
2266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2267$as_echo_n "checking for $ac_word... " >&6; }
2268if test "${ac_cv_prog_STRIP+set}" = set; then
2269 $as_echo_n "(cached) " >&6
2270else
2271 if test -n "$STRIP"; then
2272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2273else
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2284 fi
2285done
2286done
2287IFS=$as_save_IFS
2288
2289fi
2290fi
2291STRIP=$ac_cv_prog_STRIP
2292if test -n "$STRIP"; then
2293 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2294$as_echo "$STRIP" >&6; }
2295else
2296 { $as_echo "$as_me:$LINENO: result: no" >&5
2297$as_echo "no" >&6; }
d9898ee8 2298fi
2299
8d138742
CE
2300
2301fi
2302if test -z "$ac_cv_prog_STRIP"; then
2303 ac_ct_STRIP=$STRIP
2304 # Extract the first word of "strip", so it can be a program name with args.
2305set dummy strip; ac_word=$2
2306{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2307$as_echo_n "checking for $ac_word... " >&6; }
2308if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2309 $as_echo_n "(cached) " >&6
2310else
2311 if test -n "$ac_ct_STRIP"; then
2312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_ac_ct_STRIP="strip"
2322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325done
2326done
2327IFS=$as_save_IFS
2328
2329fi
2330fi
2331ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2332if test -n "$ac_ct_STRIP"; then
2333 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2334$as_echo "$ac_ct_STRIP" >&6; }
2335else
2336 { $as_echo "$as_me:$LINENO: result: no" >&5
2337$as_echo "no" >&6; }
2338fi
2339
2340 if test "x$ac_ct_STRIP" = x; then
2341 STRIP=":"
2342 else
2343 case $cross_compiling:$ac_tool_warned in
2344yes:)
2345{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2347ac_tool_warned=yes ;;
2348esac
2349 STRIP=$ac_ct_STRIP
2350 fi
2351else
2352 STRIP="$ac_cv_prog_STRIP"
2353fi
2354
2355fi
2356INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2357
2358{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2359$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2360if test -z "$MKDIR_P"; then
2361 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2362 $as_echo_n "(cached) " >&6
dd184caf 2363else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_prog in mkdir gmkdir; do
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2372 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2373 'mkdir (GNU coreutils) '* | \
2374 'mkdir (coreutils) '* | \
2375 'mkdir (fileutils) '4.1*)
2376 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2377 break 3;;
2378 esac
2379 done
2380 done
2381done
2382IFS=$as_save_IFS
2383
2384fi
2385
2386 if test "${ac_cv_path_mkdir+set}" = set; then
2387 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2388 else
dd184caf 2389 # As a last resort, use the slow shell script. Don't cache a
2390 # value for MKDIR_P within a source directory, because that will
2391 # break other packages using the cache if that directory is
2392 # removed, or if the value is a relative name.
2393 test -d ./--version && rmdir ./--version
2394 MKDIR_P="$ac_install_sh -d"
d9898ee8 2395 fi
2396fi
8d138742
CE
2397{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2398$as_echo "$MKDIR_P" >&6; }
dd184caf 2399
2400mkdir_p="$MKDIR_P"
2401case $mkdir_p in
2402 [\\/$]* | ?:[\\/]*) ;;
2403 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2404esac
d9898ee8 2405
2406for ac_prog in gawk mawk nawk awk
2407do
2408 # Extract the first word of "$ac_prog", so it can be a program name with args.
2409set dummy $ac_prog; ac_word=$2
8d138742
CE
2410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2412if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2413 $as_echo_n "(cached) " >&6
d9898ee8 2414else
2415 if test -n "$AWK"; then
2416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2425 ac_cv_prog_AWK="$ac_prog"
8d138742 2426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2427 break 2
2428 fi
2429done
2430done
dd184caf 2431IFS=$as_save_IFS
d9898ee8 2432
2433fi
2434fi
2435AWK=$ac_cv_prog_AWK
2436if test -n "$AWK"; then
8d138742
CE
2437 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2438$as_echo "$AWK" >&6; }
d9898ee8 2439else
8d138742
CE
2440 { $as_echo "$as_me:$LINENO: result: no" >&5
2441$as_echo "no" >&6; }
d9898ee8 2442fi
2443
dd184caf 2444
d9898ee8 2445 test -n "$AWK" && break
2446done
2447
8d138742
CE
2448{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2449$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2450set x ${MAKE-make}
2451ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2452if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2453 $as_echo_n "(cached) " >&6
d9898ee8 2454else
2455 cat >conftest.make <<\_ACEOF
dd184caf 2456SHELL = /bin/sh
d9898ee8 2457all:
dd184caf 2458 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2459_ACEOF
2460# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2461case `${MAKE-make} -f conftest.make 2>/dev/null` in
2462 *@@@%%%=?*=@@@%%%*)
2463 eval ac_cv_prog_make_${ac_make}_set=yes;;
2464 *)
2465 eval ac_cv_prog_make_${ac_make}_set=no;;
2466esac
d9898ee8 2467rm -f conftest.make
2468fi
dd184caf 2469if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2470 { $as_echo "$as_me:$LINENO: result: yes" >&5
2471$as_echo "yes" >&6; }
d9898ee8 2472 SET_MAKE=
2473else
8d138742
CE
2474 { $as_echo "$as_me:$LINENO: result: no" >&5
2475$as_echo "no" >&6; }
d9898ee8 2476 SET_MAKE="MAKE=${MAKE-make}"
2477fi
2478
2479rm -rf .tst 2>/dev/null
2480mkdir .tst 2>/dev/null
2481if test -d .tst; then
2482 am__leading_dot=.
2483else
2484 am__leading_dot=_
2485fi
2486rmdir .tst 2>/dev/null
2487
dd184caf 2488if test "`cd $srcdir && pwd`" != "`pwd`"; then
2489 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2490 # is not polluted with repeated "-I."
2491 am__isrc=' -I$(srcdir)'
2492 # test to see if srcdir already configured
2493 if test -f $srcdir/config.status; then
8d138742
CE
2494 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2495$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2496 { (exit 1); exit 1; }; }
dd184caf 2497 fi
d9898ee8 2498fi
2499
2500# test whether we have cygpath
2501if test -z "$CYGPATH_W"; then
2502 if (cygpath --version) >/dev/null 2>/dev/null; then
2503 CYGPATH_W='cygpath -w'
2504 else
2505 CYGPATH_W=echo
2506 fi
2507fi
2508
2509
2510# Define the identity of the package.
2511 PACKAGE='libmd5'
2512 VERSION='1.21'
2513
2514
2515# Some tools Automake needs.
2516
2517ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2518
2519
2520AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2521
2522
2523AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2524
2525
2526AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2527
2528
2529MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2530
d9898ee8 2531# We need awk for the "check" target. The system "awk" is bad on
2532# some platforms.
2533# Always define AMTAR for backward compatibility.
2534
2535AMTAR=${AMTAR-"${am_missing_run}tar"}
2536
2537am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2538
2539
2540
2541
2542
2543
dd184caf 2544 if test -d ${srcdir}/../libhmac; then
d9898ee8 2545 HMACC_TRUE=
2546 HMACC_FALSE='#'
2547else
2548 HMACC_TRUE='#'
2549 HMACC_FALSE=
2550fi
2551
2552
2553for ac_prog in gawk mawk nawk awk
2554do
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556set dummy $ac_prog; ac_word=$2
8d138742
CE
2557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2559if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2560 $as_echo_n "(cached) " >&6
d9898ee8 2561else
2562 if test -n "$AWK"; then
2563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2572 ac_cv_prog_AWK="$ac_prog"
8d138742 2573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2574 break 2
2575 fi
2576done
2577done
dd184caf 2578IFS=$as_save_IFS
d9898ee8 2579
2580fi
2581fi
2582AWK=$ac_cv_prog_AWK
2583if test -n "$AWK"; then
8d138742
CE
2584 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2585$as_echo "$AWK" >&6; }
d9898ee8 2586else
8d138742
CE
2587 { $as_echo "$as_me:$LINENO: result: no" >&5
2588$as_echo "no" >&6; }
d9898ee8 2589fi
2590
dd184caf 2591
d9898ee8 2592 test -n "$AWK" && break
2593done
2594
2595# Find a good install program. We prefer a C program (faster),
2596# so one script is as good as another. But avoid the broken or
2597# incompatible versions:
2598# SysV /etc/install, /usr/sbin/install
2599# SunOS /usr/etc/install
2600# IRIX /sbin/install
2601# AIX /bin/install
2602# AmigaOS /C/install, which installs bootblocks on floppy discs
2603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2604# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2606# OS/2's system install, which has a completely different semantic
2607# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2608# Reject install programs that cannot install multiple files.
2609{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2610$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2611if test -z "$INSTALL"; then
2612if test "${ac_cv_path_install+set}" = set; then
8d138742 2613 $as_echo_n "(cached) " >&6
d9898ee8 2614else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 # Account for people who put trailing slashes in PATH elements.
2621case $as_dir/ in
2622 ./ | .// | /cC/* | \
2623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2625 /usr/ucb/* ) ;;
2626 *)
2627 # OSF1 and SCO ODT 3.0 have their own names for install.
2628 # Don't use installbsd from OSF since it installs stuff as root
2629 # by default.
2630 for ac_prog in ginstall scoinst install; do
2631 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2633 if test $ac_prog = install &&
2634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # AIX install. It has an incompatible calling convention.
2636 :
2637 elif test $ac_prog = install &&
2638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639 # program-specific install script used by HP pwplus--don't use.
2640 :
2641 else
8d138742
CE
2642 rm -rf conftest.one conftest.two conftest.dir
2643 echo one > conftest.one
2644 echo two > conftest.two
2645 mkdir conftest.dir
2646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2647 test -s conftest.one && test -s conftest.two &&
2648 test -s conftest.dir/conftest.one &&
2649 test -s conftest.dir/conftest.two
2650 then
2651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2652 break 3
2653 fi
d9898ee8 2654 fi
2655 fi
2656 done
2657 done
2658 ;;
2659esac
8d138742 2660
d9898ee8 2661done
dd184caf 2662IFS=$as_save_IFS
d9898ee8 2663
8d138742 2664rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2665
2666fi
2667 if test "${ac_cv_path_install+set}" = set; then
2668 INSTALL=$ac_cv_path_install
2669 else
dd184caf 2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for INSTALL within a source directory, because that will
d9898ee8 2672 # break other packages using the cache if that directory is
dd184caf 2673 # removed, or if the value is a relative name.
d9898ee8 2674 INSTALL=$ac_install_sh
2675 fi
2676fi
8d138742
CE
2677{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2678$as_echo "$INSTALL" >&6; }
d9898ee8 2679
2680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2681# It thinks the first close brace ends the variable substitution.
2682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683
2684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685
2686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687
8d138742
CE
2688{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2689$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 2690LN_S=$as_ln_s
2691if test "$LN_S" = "ln -s"; then
8d138742
CE
2692 { $as_echo "$as_me:$LINENO: result: yes" >&5
2693$as_echo "yes" >&6; }
d9898ee8 2694else
8d138742
CE
2695 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2696$as_echo "no, using $LN_S" >&6; }
d9898ee8 2697fi
2698
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2707{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2709if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2710 $as_echo_n "(cached) " >&6
d9898ee8 2711else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2724 break 2
2725 fi
2726done
2727done
dd184caf 2728IFS=$as_save_IFS
d9898ee8 2729
2730fi
2731fi
2732CC=$ac_cv_prog_CC
2733if test -n "$CC"; then
8d138742
CE
2734 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2735$as_echo "$CC" >&6; }
d9898ee8 2736else
8d138742
CE
2737 { $as_echo "$as_me:$LINENO: result: no" >&5
2738$as_echo "no" >&6; }
d9898ee8 2739fi
2740
dd184caf 2741
d9898ee8 2742fi
2743if test -z "$ac_cv_prog_CC"; then
2744 ac_ct_CC=$CC
2745 # Extract the first word of "gcc", so it can be a program name with args.
2746set dummy gcc; ac_word=$2
8d138742
CE
2747{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2749if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2750 $as_echo_n "(cached) " >&6
d9898ee8 2751else
2752 if test -n "$ac_ct_CC"; then
2753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2762 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2764 break 2
2765 fi
2766done
2767done
dd184caf 2768IFS=$as_save_IFS
d9898ee8 2769
2770fi
2771fi
2772ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773if test -n "$ac_ct_CC"; then
8d138742
CE
2774 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2776else
8d138742
CE
2777 { $as_echo "$as_me:$LINENO: result: no" >&5
2778$as_echo "no" >&6; }
d9898ee8 2779fi
2780
dd184caf 2781 if test "x$ac_ct_CC" = x; then
2782 CC=""
2783 else
2784 case $cross_compiling:$ac_tool_warned in
2785yes:)
8d138742
CE
2786{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2788ac_tool_warned=yes ;;
2789esac
2790 CC=$ac_ct_CC
2791 fi
d9898ee8 2792else
2793 CC="$ac_cv_prog_CC"
2794fi
2795
2796if test -z "$CC"; then
dd184caf 2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2799set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2802if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2803 $as_echo_n "(cached) " >&6
d9898ee8 2804else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2815 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2817 break 2
2818 fi
2819done
2820done
dd184caf 2821IFS=$as_save_IFS
d9898ee8 2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
8d138742
CE
2827 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2828$as_echo "$CC" >&6; }
d9898ee8 2829else
8d138742
CE
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831$as_echo "no" >&6; }
d9898ee8 2832fi
2833
d9898ee8 2834
dd184caf 2835 fi
d9898ee8 2836fi
2837if test -z "$CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839set dummy cc; ac_word=$2
8d138742
CE
2840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2842if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2843 $as_echo_n "(cached) " >&6
d9898ee8 2844else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848 ac_prog_rejected=no
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857 ac_prog_rejected=yes
2858 continue
2859 fi
2860 ac_cv_prog_CC="cc"
8d138742 2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2862 break 2
2863 fi
2864done
2865done
dd184caf 2866IFS=$as_save_IFS
d9898ee8 2867
2868if test $ac_prog_rejected = yes; then
2869 # We found a bogon in the path, so make sure we never use it.
2870 set dummy $ac_cv_prog_CC
2871 shift
2872 if test $# != 0; then
2873 # We chose a different compiler from the bogus one.
2874 # However, it has the same basename, so the bogon will be chosen
2875 # first if we set CC to just the basename; use the full file name.
2876 shift
2877 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878 fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
8d138742
CE
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885$as_echo "$CC" >&6; }
d9898ee8 2886else
8d138742
CE
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888$as_echo "no" >&6; }
d9898ee8 2889fi
2890
dd184caf 2891
d9898ee8 2892fi
2893if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
dd184caf 2895 for ac_prog in cl.exe
d9898ee8 2896 do
2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2901if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2902 $as_echo_n "(cached) " >&6
d9898ee8 2903else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2916 break 2
2917 fi
2918done
2919done
dd184caf 2920IFS=$as_save_IFS
d9898ee8 2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
8d138742
CE
2926 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2927$as_echo "$CC" >&6; }
d9898ee8 2928else
8d138742
CE
2929 { $as_echo "$as_me:$LINENO: result: no" >&5
2930$as_echo "no" >&6; }
d9898ee8 2931fi
2932
dd184caf 2933
d9898ee8 2934 test -n "$CC" && break
2935 done
2936fi
2937if test -z "$CC"; then
2938 ac_ct_CC=$CC
dd184caf 2939 for ac_prog in cl.exe
d9898ee8 2940do
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
8d138742
CE
2943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2945if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2946 $as_echo_n "(cached) " >&6
d9898ee8 2947else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2958 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2960 break 2
2961 fi
2962done
2963done
dd184caf 2964IFS=$as_save_IFS
d9898ee8 2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
8d138742
CE
2970 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2971$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2972else
8d138742
CE
2973 { $as_echo "$as_me:$LINENO: result: no" >&5
2974$as_echo "no" >&6; }
d9898ee8 2975fi
2976
dd184caf 2977
d9898ee8 2978 test -n "$ac_ct_CC" && break
2979done
2980
dd184caf 2981 if test "x$ac_ct_CC" = x; then
2982 CC=""
2983 else
2984 case $cross_compiling:$ac_tool_warned in
2985yes:)
8d138742
CE
2986{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2988ac_tool_warned=yes ;;
2989esac
2990 CC=$ac_ct_CC
2991 fi
d9898ee8 2992fi
2993
2994fi
2995
2996
8d138742
CE
2997test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 3000See \`config.log' for more details." >&5
8d138742 3001$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 3002See \`config.log' for more details." >&2;}
8d138742 3003 { (exit 1); exit 1; }; }; }
d9898ee8 3004
3005# Provide some information about the compiler.
8d138742
CE
3006$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3007set X $ac_compile
3008ac_compiler=$2
dd184caf 3009{ (ac_try="$ac_compiler --version >&5"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
8d138742
CE
3014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3015$as_echo "$ac_try_echo") >&5
dd184caf 3016 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 3017 ac_status=$?
8d138742 3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3019 (exit $ac_status); }
dd184caf 3020{ (ac_try="$ac_compiler -v >&5"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
8d138742
CE
3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3026$as_echo "$ac_try_echo") >&5
dd184caf 3027 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 3028 ac_status=$?
8d138742 3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3030 (exit $ac_status); }
dd184caf 3031{ (ac_try="$ac_compiler -V >&5"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
8d138742
CE
3036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3037$as_echo "$ac_try_echo") >&5
dd184caf 3038 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 3039 ac_status=$?
8d138742 3040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3041 (exit $ac_status); }
3042
3043cat >conftest.$ac_ext <<_ACEOF
3044/* confdefs.h. */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h. */
3049
3050int
3051main ()
3052{
3053
3054 ;
3055 return 0;
3056}
3057_ACEOF
3058ac_clean_files_save=$ac_clean_files
8d138742 3059ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3060# Try to create an executable without -o first, disregard a.out.
3061# It will help us diagnose broken compilers, and finding out an intuition
3062# of exeext.
8d138742
CE
3063{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3064$as_echo_n "checking for C compiler default output file name... " >&6; }
3065ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3066
3067# The possible output files:
3068ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3069
dd184caf 3070ac_rmfiles=
3071for ac_file in $ac_files
3072do
3073 case $ac_file in
8d138742 3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3075 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076 esac
3077done
3078rm -f $ac_rmfiles
3079
3080if { (ac_try="$ac_link_default"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
8d138742
CE
3085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086$as_echo "$ac_try_echo") >&5
dd184caf 3087 (eval "$ac_link_default") 2>&5
d9898ee8 3088 ac_status=$?
8d138742 3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3090 (exit $ac_status); }; then
dd184caf 3091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3092# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3093# in a Makefile. We should not override ac_cv_exeext if it was cached,
3094# so that the user can short-circuit this test for compilers unknown to
3095# Autoconf.
3096for ac_file in $ac_files ''
d9898ee8 3097do
3098 test -f "$ac_file" || continue
3099 case $ac_file in
8d138742 3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3101 ;;
3102 [ab].out )
3103 # We found the default executable, but exeext='' is most
3104 # certainly right.
3105 break;;
3106 *.* )
dd184caf 3107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3108 then :; else
3109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110 fi
3111 # We set ac_cv_exeext here because the later test for it is not
3112 # safe: cross compilers may not add the suffix if given an `-o'
3113 # argument, so we may need to know it at that point already.
3114 # Even if this section looks crufty: it has the advantage of
3115 # actually working.
d9898ee8 3116 break;;
3117 * )
3118 break;;
3119 esac
3120done
dd184caf 3121test "$ac_cv_exeext" = no && ac_cv_exeext=
3122
d9898ee8 3123else
dd184caf 3124 ac_file=''
3125fi
3126
8d138742
CE
3127{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3128$as_echo "$ac_file" >&6; }
dd184caf 3129if test -z "$ac_file"; then
8d138742 3130 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3131sed 's/^/| /' conftest.$ac_ext >&5
3132
8d138742
CE
3133{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3136See \`config.log' for more details." >&5
8d138742 3137$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3138See \`config.log' for more details." >&2;}
8d138742 3139 { (exit 77); exit 77; }; }; }
d9898ee8 3140fi
3141
3142ac_exeext=$ac_cv_exeext
d9898ee8 3143
dd184caf 3144# Check that the compiler produces executables we can run. If not, either
d9898ee8 3145# the compiler is broken, or we cross compile.
8d138742
CE
3146{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3147$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3148# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3149# If not cross compiling, check that we can run a simple program.
3150if test "$cross_compiling" != yes; then
3151 if { ac_try='./$ac_file'
dd184caf 3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
8d138742
CE
3156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3157$as_echo "$ac_try_echo") >&5
dd184caf 3158 (eval "$ac_try") 2>&5
d9898ee8 3159 ac_status=$?
8d138742 3160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3161 (exit $ac_status); }; }; then
3162 cross_compiling=no
3163 else
3164 if test "$cross_compiling" = maybe; then
3165 cross_compiling=yes
3166 else
8d138742
CE
3167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3170If you meant to cross compile, use \`--host'.
3171See \`config.log' for more details." >&5
8d138742 3172$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3173If you meant to cross compile, use \`--host'.
3174See \`config.log' for more details." >&2;}
8d138742 3175 { (exit 1); exit 1; }; }; }
d9898ee8 3176 fi
3177 fi
3178fi
8d138742
CE
3179{ $as_echo "$as_me:$LINENO: result: yes" >&5
3180$as_echo "yes" >&6; }
d9898ee8 3181
8d138742 3182rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3183ac_clean_files=$ac_clean_files_save
dd184caf 3184# Check that the compiler produces executables we can run. If not, either
d9898ee8 3185# the compiler is broken, or we cross compile.
8d138742
CE
3186{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187$as_echo_n "checking whether we are cross compiling... " >&6; }
3188{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189$as_echo "$cross_compiling" >&6; }
dd184caf 3190
8d138742
CE
3191{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3193if { (ac_try="$ac_link"
3194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
8d138742
CE
3198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3199$as_echo "$ac_try_echo") >&5
dd184caf 3200 (eval "$ac_link") 2>&5
d9898ee8 3201 ac_status=$?
8d138742 3202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3203 (exit $ac_status); }; then
3204 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3205# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3206# work properly (i.e., refer to `conftest.exe'), while it won't with
3207# `rm'.
3208for ac_file in conftest.exe conftest conftest.*; do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
8d138742 3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3213 break;;
3214 * ) break;;
3215 esac
3216done
3217else
8d138742
CE
3218 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3221See \`config.log' for more details." >&5
8d138742 3222$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3223See \`config.log' for more details." >&2;}
8d138742 3224 { (exit 1); exit 1; }; }; }
d9898ee8 3225fi
3226
3227rm -f conftest$ac_cv_exeext
8d138742
CE
3228{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3229$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3230
3231rm -f conftest.$ac_ext
3232EXEEXT=$ac_cv_exeext
3233ac_exeext=$EXEEXT
8d138742
CE
3234{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3235$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3236if test "${ac_cv_objext+set}" = set; then
8d138742 3237 $as_echo_n "(cached) " >&6
d9898ee8 3238else
3239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254rm -f conftest.o conftest.obj
dd184caf 3255if { (ac_try="$ac_compile"
3256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
8d138742
CE
3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3261$as_echo "$ac_try_echo") >&5
dd184caf 3262 (eval "$ac_compile") 2>&5
d9898ee8 3263 ac_status=$?
8d138742 3264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3265 (exit $ac_status); }; then
dd184caf 3266 for ac_file in conftest.o conftest.obj conftest.*; do
3267 test -f "$ac_file" || continue;
d9898ee8 3268 case $ac_file in
8d138742 3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271 break;;
3272 esac
3273done
3274else
8d138742 3275 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3276sed 's/^/| /' conftest.$ac_ext >&5
3277
8d138742
CE
3278{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3281See \`config.log' for more details." >&5
8d138742 3282$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3283See \`config.log' for more details." >&2;}
8d138742 3284 { (exit 1); exit 1; }; }; }
d9898ee8 3285fi
3286
3287rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288fi
8d138742
CE
3289{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3290$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3291OBJEXT=$ac_cv_objext
3292ac_objext=$OBJEXT
8d138742
CE
3293{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3295if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3296 $as_echo_n "(cached) " >&6
d9898ee8 3297else
3298 cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308#ifndef __GNUC__
3309 choke me
3310#endif
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316rm -f conftest.$ac_objext
dd184caf 3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
8d138742
CE
3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323$as_echo "$ac_try_echo") >&5
dd184caf 3324 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
8d138742 3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
d9898ee8 3334 ac_compiler_gnu=yes
3335else
8d138742 3336 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3337sed 's/^/| /' conftest.$ac_ext >&5
3338
dd184caf 3339 ac_compiler_gnu=no
d9898ee8 3340fi
dd184caf 3341
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3343ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344
3345fi
8d138742
CE
3346{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3347$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348if test $ac_compiler_gnu = yes; then
3349 GCC=yes
3350else
3351 GCC=
3352fi
d9898ee8 3353ac_test_CFLAGS=${CFLAGS+set}
3354ac_save_CFLAGS=$CFLAGS
8d138742
CE
3355{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3356$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3357if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3358 $as_echo_n "(cached) " >&6
d9898ee8 3359else
dd184caf 3360 ac_save_c_werror_flag=$ac_c_werror_flag
3361 ac_c_werror_flag=yes
3362 ac_cv_prog_cc_g=no
3363 CFLAGS="-g"
3364 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370
3371int
3372main ()
3373{
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
dd184caf 3380if { (ac_try="$ac_compile"
3381case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
8d138742
CE
3385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386$as_echo "$ac_try_echo") >&5
dd184caf 3387 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
8d138742 3392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
3397 ac_cv_prog_cc_g=yes
3398else
8d138742 3399 $as_echo "$as_me: failed program was:" >&5
dd184caf 3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 CFLAGS=""
3403 cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409
3410int
3411main ()
3412{
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (ac_try="$ac_compile"
3420case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423esac
8d138742
CE
3424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425$as_echo "$ac_try_echo") >&5
dd184caf 3426 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3427 ac_status=$?
dd184caf 3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
8d138742 3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3432 (exit $ac_status); } && {
3433 test -z "$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 } && test -s conftest.$ac_objext; then
3436 :
3437else
8d138742 3438 $as_echo "$as_me: failed program was:" >&5
dd184caf 3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442 CFLAGS="-g"
3443 cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h. */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h. */
3449
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (ac_try="$ac_compile"
3460case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463esac
8d138742
CE
3464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465$as_echo "$ac_try_echo") >&5
dd184caf 3466 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3467 ac_status=$?
dd184caf 3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
8d138742 3471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
d9898ee8 3476 ac_cv_prog_cc_g=yes
3477else
8d138742 3478 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3479sed 's/^/| /' conftest.$ac_ext >&5
3480
dd184caf 3481
3482fi
3483
3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485fi
3486
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3488fi
dd184caf 3489
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3492fi
8d138742
CE
3493{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3494$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3495if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3499 CFLAGS="-g -O2"
3500 else
3501 CFLAGS="-g"
3502 fi
3503else
3504 if test "$GCC" = yes; then
3505 CFLAGS="-O2"
3506 else
3507 CFLAGS=
3508 fi
3509fi
8d138742
CE
3510{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3512if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3513 $as_echo_n "(cached) " >&6
d9898ee8 3514else
dd184caf 3515 ac_cv_prog_cc_c89=no
d9898ee8 3516ac_save_CC=$CC
3517cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523#include <stdarg.h>
3524#include <stdio.h>
3525#include <sys/types.h>
3526#include <sys/stat.h>
3527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3528struct buf { int x; };
3529FILE * (*rcsopen) (struct buf *, struct stat *, int);
3530static char *e (p, i)
3531 char **p;
3532 int i;
3533{
3534 return p[i];
3535}
3536static char *f (char * (*g) (char **, int), char **p, ...)
3537{
3538 char *s;
3539 va_list v;
3540 va_start (v,p);
3541 s = g (p, va_arg (v,int));
3542 va_end (v);
3543 return s;
3544}
3545
3546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3547 function prototypes and stuff, but not '\xHH' hex character constants.
3548 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3549 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3551 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3552 that's true only with -std. */
d9898ee8 3553int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3554
dd184caf 3555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3556 inside strings and character constants. */
3557#define FOO(x) 'x'
3558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3559
d9898ee8 3560int test (int i, double x);
3561struct s1 {int (*f) (int a);};
3562struct s2 {int (*f) (double a);};
3563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3564int argc;
3565char **argv;
3566int
3567main ()
3568{
3569return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3570 ;
3571 return 0;
3572}
3573_ACEOF
dd184caf 3574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3576do
3577 CC="$ac_save_CC $ac_arg"
3578 rm -f conftest.$ac_objext
dd184caf 3579if { (ac_try="$ac_compile"
3580case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583esac
8d138742
CE
3584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585$as_echo "$ac_try_echo") >&5
dd184caf 3586 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
8d138742 3591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3597else
8d138742 3598 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3599sed 's/^/| /' conftest.$ac_ext >&5
3600
dd184caf 3601
d9898ee8 3602fi
dd184caf 3603
3604rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3606done
dd184caf 3607rm -f conftest.$ac_ext
d9898ee8 3608CC=$ac_save_CC
3609
3610fi
dd184caf 3611# AC_CACHE_VAL
3612case "x$ac_cv_prog_cc_c89" in
3613 x)
8d138742
CE
3614 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3615$as_echo "none needed" >&6; } ;;
dd184caf 3616 xno)
8d138742
CE
3617 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3618$as_echo "unsupported" >&6; } ;;
d9898ee8 3619 *)
dd184caf 3620 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3621 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3623esac
3624
d9898ee8 3625
d9898ee8 3626ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631DEPDIR="${am__leading_dot}deps"
3632
dd184caf 3633ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3634
3635
3636am_make=${MAKE-make}
3637cat > confinc << 'END'
3638am__doit:
8d138742 3639 @echo this is the am__doit target
d9898ee8 3640.PHONY: am__doit
3641END
3642# If we don't find an include directive, just comment out the code.
8d138742
CE
3643{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3644$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3645am__include="#"
3646am__quote=
3647_am_result=none
3648# First try GNU make style include.
3649echo "include confinc" > confmf
8d138742
CE
3650# Ignore all kinds of additional output from `make'.
3651case `$am_make -s -f confmf 2> /dev/null` in #(
3652*the\ am__doit\ target*)
3653 am__include=include
3654 am__quote=
3655 _am_result=GNU
3656 ;;
3657esac
d9898ee8 3658# Now try BSD make style include.
3659if test "$am__include" = "#"; then
3660 echo '.include "confinc"' > confmf
8d138742
CE
3661 case `$am_make -s -f confmf 2> /dev/null` in #(
3662 *the\ am__doit\ target*)
3663 am__include=.include
3664 am__quote="\""
3665 _am_result=BSD
3666 ;;
3667 esac
d9898ee8 3668fi
3669
3670
8d138742
CE
3671{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3672$as_echo "$_am_result" >&6; }
d9898ee8 3673rm -f confinc confmf
3674
dd184caf 3675# Check whether --enable-dependency-tracking was given.
d9898ee8 3676if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3677 enableval=$enable_dependency_tracking;
3678fi
d9898ee8 3679
d9898ee8 3680if test "x$enable_dependency_tracking" != xno; then
3681 am_depcomp="$ac_aux_dir/depcomp"
3682 AMDEPBACKSLASH='\'
3683fi
dd184caf 3684 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3685 AMDEP_TRUE=
3686 AMDEP_FALSE='#'
3687else
3688 AMDEP_TRUE='#'
3689 AMDEP_FALSE=
3690fi
3691
3692
3693
d9898ee8 3694depcc="$CC" am_compiler_list=
3695
8d138742
CE
3696{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3697$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3698if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3699 $as_echo_n "(cached) " >&6
d9898ee8 3700else
3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3702 # We make a subdir and do the tests there. Otherwise we can end up
3703 # making bogus files that we don't know about and never remove. For
3704 # instance it was reported that on HP-UX the gcc test will end up
3705 # making a dummy file named `D' -- because `-MD' means `put the output
3706 # in D'.
3707 mkdir conftest.dir
3708 # Copy depcomp to subdir because otherwise we won't find it if we're
3709 # using a relative directory.
3710 cp "$am_depcomp" conftest.dir
3711 cd conftest.dir
3712 # We will build objects and dependencies in a subdirectory because
3713 # it helps to detect inapplicable dependency modes. For instance
3714 # both Tru64's cc and ICC support -MD to output dependencies as a
3715 # side effect of compilation, but ICC will put the dependencies in
3716 # the current directory while Tru64 will put them in the object
3717 # directory.
3718 mkdir sub
3719
3720 am_cv_CC_dependencies_compiler_type=none
3721 if test "$am_compiler_list" = ""; then
3722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3723 fi
8d138742
CE
3724 am__universal=false
3725 case " $depcc " in #(
3726 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3727 esac
3728
d9898ee8 3729 for depmode in $am_compiler_list; do
3730 # Setup a source with many dependencies, because some compilers
3731 # like to wrap large dependency lists on column 80 (with \), and
3732 # we should not choose a depcomp mode which is confused by this.
3733 #
3734 # We need to recreate these files for each test, as the compiler may
3735 # overwrite some of them when testing with obscure command lines.
3736 # This happens at least with the AIX C compiler.
3737 : > sub/conftest.c
3738 for i in 1 2 3 4 5 6; do
3739 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3740 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3741 # Solaris 8's {/usr,}/bin/sh.
3742 touch sub/conftst$i.h
3743 done
3744 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3745
8d138742
CE
3746 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3747 # mode. It turns out that the SunPro C++ compiler does not properly
3748 # handle `-M -o', and we need to detect this. Also, some Intel
3749 # versions had trouble with output in subdirs
3750 am__obj=sub/conftest.${OBJEXT-o}
3751 am__minus_obj="-o $am__obj"
d9898ee8 3752 case $depmode in
8d138742
CE
3753 gcc)
3754 # This depmode causes a compiler race in universal mode.
3755 test "$am__universal" = false || continue
3756 ;;
d9898ee8 3757 nosideeffect)
3758 # after this tag, mechanisms are not by side-effect, so they'll
3759 # only be used when explicitly requested
3760 if test "x$enable_dependency_tracking" = xyes; then
3761 continue
3762 else
3763 break
3764 fi
3765 ;;
8d138742
CE
3766 msvisualcpp | msvcmsys)
3767 # This compiler won't grok `-c -o', but also, the minuso test has
3768 # not run yet. These depmodes are late enough in the game, and
3769 # so weak that their functioning should not be impacted.
3770 am__obj=conftest.${OBJEXT-o}
3771 am__minus_obj=
3772 ;;
d9898ee8 3773 none) break ;;
3774 esac
d9898ee8 3775 if depmode=$depmode \
8d138742 3776 source=sub/conftest.c object=$am__obj \
d9898ee8 3777 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3778 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3779 >/dev/null 2>conftest.err &&
dd184caf 3780 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3782 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3784 # icc doesn't choke on unknown options, it will just issue warnings
3785 # or remarks (even with -Werror). So we grep stderr for any message
3786 # that says an option was ignored or not supported.
3787 # When given -MP, icc 7.0 and 7.1 complain thusly:
3788 # icc: Command line warning: ignoring option '-M'; no argument required
3789 # The diagnosis changed in icc 8.0:
3790 # icc: Command line remark: option '-MP' not supported
3791 if (grep 'ignoring option' conftest.err ||
3792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3793 am_cv_CC_dependencies_compiler_type=$depmode
3794 break
3795 fi
3796 fi
3797 done
3798
3799 cd ..
3800 rm -rf conftest.dir
3801else
3802 am_cv_CC_dependencies_compiler_type=none
3803fi
3804
3805fi
8d138742
CE
3806{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3807$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3808CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3809
dd184caf 3810 if
d9898ee8 3811 test "x$enable_dependency_tracking" != xno \
3812 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3813 am__fastdepCC_TRUE=
3814 am__fastdepCC_FALSE='#'
3815else
3816 am__fastdepCC_TRUE='#'
3817 am__fastdepCC_FALSE=
3818fi
3819
3820
8d138742
CE
3821case `pwd` in
3822 *\ * | *\ *)
3823 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3824$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3825esac
3826
3827
3828
3829macro_version='2.2.6'
3830macro_revision='1.3012'
3831
3832
3833
3834
d9898ee8 3835
dd184caf 3836
d9898ee8 3837
dd184caf 3838
dd184caf 3839
d9898ee8 3840
8d138742
CE
3841
3842
3843
3844ltmain="$ac_aux_dir/ltmain.sh"
3845
d9898ee8 3846# Make sure we can run config.sub.
dd184caf 3847$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
3848 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3849$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3850 { (exit 1); exit 1; }; }
3851
8d138742
CE
3852{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3853$as_echo_n "checking build system type... " >&6; }
d9898ee8 3854if test "${ac_cv_build+set}" = set; then
8d138742 3855 $as_echo_n "(cached) " >&6
d9898ee8 3856else
dd184caf 3857 ac_build_alias=$build_alias
3858test "x$ac_build_alias" = x &&
3859 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3860test "x$ac_build_alias" = x &&
8d138742
CE
3861 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3862$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 3863 { (exit 1); exit 1; }; }
dd184caf 3864ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
3865 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3866$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3867 { (exit 1); exit 1; }; }
3868
3869fi
8d138742
CE
3870{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3871$as_echo "$ac_cv_build" >&6; }
dd184caf 3872case $ac_cv_build in
3873*-*-*) ;;
8d138742
CE
3874*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3875$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 3876 { (exit 1); exit 1; }; };;
3877esac
d9898ee8 3878build=$ac_cv_build
dd184caf 3879ac_save_IFS=$IFS; IFS='-'
3880set x $ac_cv_build
3881shift
3882build_cpu=$1
3883build_vendor=$2
3884shift; shift
3885# Remember, the first character of IFS is used to create $*,
3886# except with old shells:
3887build_os=$*
3888IFS=$ac_save_IFS
3889case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3890
3891
8d138742
CE
3892{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3893$as_echo_n "checking host system type... " >&6; }
d9898ee8 3894if test "${ac_cv_host+set}" = set; then
8d138742 3895 $as_echo_n "(cached) " >&6
d9898ee8 3896else
dd184caf 3897 if test "x$host_alias" = x; then
3898 ac_cv_host=$ac_cv_build
3899else
3900 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
3901 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3902$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3903 { (exit 1); exit 1; }; }
dd184caf 3904fi
d9898ee8 3905
3906fi
8d138742
CE
3907{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3908$as_echo "$ac_cv_host" >&6; }
dd184caf 3909case $ac_cv_host in
3910*-*-*) ;;
8d138742
CE
3911*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3912$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 3913 { (exit 1); exit 1; }; };;
3914esac
d9898ee8 3915host=$ac_cv_host
dd184caf 3916ac_save_IFS=$IFS; IFS='-'
3917set x $ac_cv_host
3918shift
3919host_cpu=$1
3920host_vendor=$2
3921shift; shift
3922# Remember, the first character of IFS is used to create $*,
3923# except with old shells:
3924host_os=$*
3925IFS=$ac_save_IFS
3926case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3927
3928
8d138742
CE
3929{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3930$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3931if test "${ac_cv_path_SED+set}" = set; then
3932 $as_echo_n "(cached) " >&6
3933else
3934 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3935 for ac_i in 1 2 3 4 5 6 7; do
3936 ac_script="$ac_script$as_nl$ac_script"
3937 done
3938 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3939 $as_unset ac_script || ac_script=
3940 if test -z "$SED"; then
3941 ac_path_SED_found=false
3942 # Loop through the user's path and test for each of PROGNAME-LIST
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
8d138742 3948 for ac_prog in sed gsed; do
d9898ee8 3949 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
3950 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3951 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3952# Check for GNU ac_path_SED and select it if it is found.
3953 # Check for GNU $ac_path_SED
3954case `"$ac_path_SED" --version 2>&1` in
3955*GNU*)
3956 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3957*)
3958 ac_count=0
3959 $as_echo_n 0123456789 >"conftest.in"
3960 while :
3961 do
3962 cat "conftest.in" "conftest.in" >"conftest.tmp"
3963 mv "conftest.tmp" "conftest.in"
3964 cp "conftest.in" "conftest.nl"
3965 $as_echo '' >> "conftest.nl"
3966 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968 ac_count=`expr $ac_count + 1`
3969 if test $ac_count -gt ${ac_path_SED_max-0}; then
3970 # Best one so far, save it but keep looking for a better one
3971 ac_cv_path_SED="$ac_path_SED"
3972 ac_path_SED_max=$ac_count
3973 fi
3974 # 10*(2^10) chars as input seems more than enough
3975 test $ac_count -gt 10 && break
3976 done
3977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978esac
3979
3980 $ac_path_SED_found && break 3
d9898ee8 3981 done
3982 done
3983done
3984IFS=$as_save_IFS
8d138742
CE
3985 if test -z "$ac_cv_path_SED"; then
3986 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3987$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3988 { (exit 1); exit 1; }; }
d9898ee8 3989 fi
8d138742
CE
3990else
3991 ac_cv_path_SED=$SED
3992fi
d9898ee8 3993
3994fi
8d138742
CE
3995{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3996$as_echo "$ac_cv_path_SED" >&6; }
3997 SED="$ac_cv_path_SED"
3998 rm -f conftest.sed
3999
4000test -z "$SED" && SED=sed
4001Xsed="$SED -e 1s/^X//"
d9898ee8 4002
d9898ee8 4003
dd184caf 4004
8d138742
CE
4005
4006
4007
4008
4009
4010
4011
4012
4013{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4014$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 4015if test "${ac_cv_path_GREP+set}" = set; then
8d138742 4016 $as_echo_n "(cached) " >&6
dd184caf 4017else
8d138742 4018 if test -z "$GREP"; then
dd184caf 4019 ac_path_GREP_found=false
8d138742
CE
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4022for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4023do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_prog in grep ggrep; do
8d138742
CE
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4029 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4030# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4031 # Check for GNU $ac_path_GREP
4032case `"$ac_path_GREP" --version 2>&1` in
4033*GNU*)
4034 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4035*)
4036 ac_count=0
8d138742 4037 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4038 while :
4039 do
4040 cat "conftest.in" "conftest.in" >"conftest.tmp"
4041 mv "conftest.tmp" "conftest.in"
4042 cp "conftest.in" "conftest.nl"
8d138742 4043 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4044 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046 ac_count=`expr $ac_count + 1`
4047 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4048 # Best one so far, save it but keep looking for a better one
4049 ac_cv_path_GREP="$ac_path_GREP"
4050 ac_path_GREP_max=$ac_count
4051 fi
4052 # 10*(2^10) chars as input seems more than enough
4053 test $ac_count -gt 10 && break
4054 done
4055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056esac
4057
8d138742
CE
4058 $ac_path_GREP_found && break 3
4059 done
dd184caf 4060 done
4061done
dd184caf 4062IFS=$as_save_IFS
8d138742
CE
4063 if test -z "$ac_cv_path_GREP"; then
4064 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4065$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4066 { (exit 1); exit 1; }; }
8d138742 4067 fi
dd184caf 4068else
4069 ac_cv_path_GREP=$GREP
4070fi
4071
dd184caf 4072fi
8d138742
CE
4073{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4074$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4075 GREP="$ac_cv_path_GREP"
4076
d9898ee8 4077
8d138742
CE
4078{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4079$as_echo_n "checking for egrep... " >&6; }
dd184caf 4080if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 4081 $as_echo_n "(cached) " >&6
dd184caf 4082else
4083 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4084 then ac_cv_path_EGREP="$GREP -E"
4085 else
8d138742 4086 if test -z "$EGREP"; then
dd184caf 4087 ac_path_EGREP_found=false
8d138742
CE
4088 # Loop through the user's path and test for each of PROGNAME-LIST
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_prog in egrep; do
8d138742
CE
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4097 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4098# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4099 # Check for GNU $ac_path_EGREP
4100case `"$ac_path_EGREP" --version 2>&1` in
4101*GNU*)
4102 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4103*)
4104 ac_count=0
8d138742 4105 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4106 while :
4107 do
4108 cat "conftest.in" "conftest.in" >"conftest.tmp"
4109 mv "conftest.tmp" "conftest.in"
4110 cp "conftest.in" "conftest.nl"
8d138742 4111 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4112 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114 ac_count=`expr $ac_count + 1`
4115 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4116 # Best one so far, save it but keep looking for a better one
4117 ac_cv_path_EGREP="$ac_path_EGREP"
4118 ac_path_EGREP_max=$ac_count
d9898ee8 4119 fi
dd184caf 4120 # 10*(2^10) chars as input seems more than enough
4121 test $ac_count -gt 10 && break
4122 done
4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124esac
4125
8d138742
CE
4126 $ac_path_EGREP_found && break 3
4127 done
dd184caf 4128 done
4129done
dd184caf 4130IFS=$as_save_IFS
8d138742
CE
4131 if test -z "$ac_cv_path_EGREP"; then
4132 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4133$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4134 { (exit 1); exit 1; }; }
4135 fi
4136else
4137 ac_cv_path_EGREP=$EGREP
dd184caf 4138fi
4139
8d138742 4140 fi
dd184caf 4141fi
8d138742
CE
4142{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4143$as_echo "$ac_cv_path_EGREP" >&6; }
4144 EGREP="$ac_cv_path_EGREP"
dd184caf 4145
8d138742
CE
4146
4147{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4148$as_echo_n "checking for fgrep... " >&6; }
4149if test "${ac_cv_path_FGREP+set}" = set; then
4150 $as_echo_n "(cached) " >&6
dd184caf 4151else
8d138742
CE
4152 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4153 then ac_cv_path_FGREP="$GREP -F"
4154 else
4155 if test -z "$FGREP"; then
4156 ac_path_FGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in fgrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4167# Check for GNU ac_path_FGREP and select it if it is found.
4168 # Check for GNU $ac_path_FGREP
4169case `"$ac_path_FGREP" --version 2>&1` in
4170*GNU*)
4171 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4172*)
4173 ac_count=0
4174 $as_echo_n 0123456789 >"conftest.in"
4175 while :
4176 do
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo 'FGREP' >> "conftest.nl"
4181 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 ac_count=`expr $ac_count + 1`
4184 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_FGREP="$ac_path_FGREP"
4187 ac_path_FGREP_max=$ac_count
4188 fi
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193esac
dd184caf 4194
8d138742
CE
4195 $ac_path_FGREP_found && break 3
4196 done
4197 done
4198done
4199IFS=$as_save_IFS
4200 if test -z "$ac_cv_path_FGREP"; then
4201 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4202$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4203 { (exit 1); exit 1; }; }
4204 fi
4205else
4206 ac_cv_path_FGREP=$FGREP
4207fi
dd184caf 4208
4209 fi
d9898ee8 4210fi
8d138742
CE
4211{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4212$as_echo "$ac_cv_path_FGREP" >&6; }
4213 FGREP="$ac_cv_path_FGREP"
4214
4215
4216test -z "$GREP" && GREP=grep
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
d9898ee8 4233
4234
4235
dd184caf 4236# Check whether --with-gnu-ld was given.
d9898ee8 4237if test "${with_gnu_ld+set}" = set; then
dd184caf 4238 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4239else
4240 with_gnu_ld=no
dd184caf 4241fi
4242
d9898ee8 4243ac_prog=ld
4244if test "$GCC" = yes; then
4245 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
4246 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4247$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4248 case $host in
4249 *-*-mingw*)
4250 # gcc leaves a trailing carriage return which upsets mingw
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4252 *)
4253 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4254 esac
4255 case $ac_prog in
4256 # Accept absolute paths.
4257 [\\/]* | ?:[\\/]*)
4258 re_direlt='/[^/][^/]*/\.\./'
4259 # Canonicalize the pathname of ld
8d138742
CE
4260 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4261 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4262 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4263 done
4264 test -z "$LD" && LD="$ac_prog"
4265 ;;
4266 "")
4267 # If it fails, then pretend we aren't using GCC.
4268 ac_prog=ld
4269 ;;
4270 *)
4271 # If it is relative, then search for the first ld in PATH.
4272 with_gnu_ld=unknown
4273 ;;
4274 esac
4275elif test "$with_gnu_ld" = yes; then
8d138742
CE
4276 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4277$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4278else
8d138742
CE
4279 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4280$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4281fi
4282if test "${lt_cv_path_LD+set}" = set; then
8d138742 4283 $as_echo_n "(cached) " >&6
d9898ee8 4284else
4285 if test -z "$LD"; then
4286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4287 for ac_dir in $PATH; do
4288 IFS="$lt_save_ifs"
4289 test -z "$ac_dir" && ac_dir=.
4290 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4291 lt_cv_path_LD="$ac_dir/$ac_prog"
4292 # Check to see if the program is GNU ld. I'd rather use --version,
4293 # but apparently some variants of GNU ld only accept -v.
4294 # Break only if it was the GNU/non-GNU ld that we prefer.
4295 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4296 *GNU* | *'with BFD'*)
4297 test "$with_gnu_ld" != no && break
4298 ;;
4299 *)
4300 test "$with_gnu_ld" != yes && break
4301 ;;
4302 esac
4303 fi
4304 done
4305 IFS="$lt_save_ifs"
4306else
4307 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4308fi
4309fi
4310
4311LD="$lt_cv_path_LD"
4312if test -n "$LD"; then
8d138742
CE
4313 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4314$as_echo "$LD" >&6; }
d9898ee8 4315else
8d138742
CE
4316 { $as_echo "$as_me:$LINENO: result: no" >&5
4317$as_echo "no" >&6; }
d9898ee8 4318fi
8d138742
CE
4319test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4320$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4321 { (exit 1); exit 1; }; }
8d138742
CE
4322{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4323$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4324if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4325 $as_echo_n "(cached) " >&6
d9898ee8 4326else
4327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4328case `$LD -v 2>&1 </dev/null` in
4329*GNU* | *'with BFD'*)
4330 lt_cv_prog_gnu_ld=yes
4331 ;;
4332*)
4333 lt_cv_prog_gnu_ld=no
4334 ;;
4335esac
4336fi
8d138742
CE
4337{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4338$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4339with_gnu_ld=$lt_cv_prog_gnu_ld
4340
4341
d9898ee8 4342
8d138742
CE
4343
4344
4345
4346
4347
4348
4349{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4350$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4351if test "${lt_cv_path_NM+set}" = set; then
8d138742 4352 $as_echo_n "(cached) " >&6
d9898ee8 4353else
4354 if test -n "$NM"; then
4355 # Let the user override the test.
4356 lt_cv_path_NM="$NM"
4357else
4358 lt_nm_to_check="${ac_tool_prefix}nm"
4359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4360 lt_nm_to_check="$lt_nm_to_check nm"
4361 fi
4362 for lt_tmp_nm in $lt_nm_to_check; do
4363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4364 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4365 IFS="$lt_save_ifs"
4366 test -z "$ac_dir" && ac_dir=.
4367 tmp_nm="$ac_dir/$lt_tmp_nm"
4368 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4369 # Check to see if the nm accepts a BSD-compat flag.
4370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4371 # nm: unknown option "B" ignored
4372 # Tru64's nm complains that /dev/null is an invalid object file
4373 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4374 */dev/null* | *'Invalid file or object type'*)
4375 lt_cv_path_NM="$tmp_nm -B"
4376 break
4377 ;;
4378 *)
4379 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4380 */dev/null*)
4381 lt_cv_path_NM="$tmp_nm -p"
4382 break
4383 ;;
4384 *)
4385 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4386 continue # so that we can try to find one that supports BSD flags
4387 ;;
4388 esac
4389 ;;
4390 esac
4391 fi
4392 done
4393 IFS="$lt_save_ifs"
4394 done
8d138742 4395 : ${lt_cv_path_NM=no}
d9898ee8 4396fi
4397fi
8d138742
CE
4398{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4399$as_echo "$lt_cv_path_NM" >&6; }
4400if test "$lt_cv_path_NM" != "no"; then
4401 NM="$lt_cv_path_NM"
d9898ee8 4402else
8d138742
CE
4403 # Didn't find any BSD compatible name lister, look for dumpbin.
4404 if test -n "$ac_tool_prefix"; then
4405 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4406 do
4407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4408set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4410$as_echo_n "checking for $ac_word... " >&6; }
4411if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4412 $as_echo_n "(cached) " >&6
4413else
4414 if test -n "$DUMPBIN"; then
4415 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4416else
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428done
4429done
4430IFS=$as_save_IFS
d9898ee8 4431
8d138742
CE
4432fi
4433fi
4434DUMPBIN=$ac_cv_prog_DUMPBIN
4435if test -n "$DUMPBIN"; then
4436 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4437$as_echo "$DUMPBIN" >&6; }
4438else
4439 { $as_echo "$as_me:$LINENO: result: no" >&5
4440$as_echo "no" >&6; }
4441fi
d9898ee8 4442
d9898ee8 4443
8d138742
CE
4444 test -n "$DUMPBIN" && break
4445 done
4446fi
4447if test -z "$DUMPBIN"; then
4448 ac_ct_DUMPBIN=$DUMPBIN
4449 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4450do
4451 # Extract the first word of "$ac_prog", so it can be a program name with args.
4452set dummy $ac_prog; ac_word=$2
4453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$ac_ct_DUMPBIN"; then
4459 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
ac40fd9e 4471 fi
8d138742
CE
4472done
4473done
4474IFS=$as_save_IFS
d9898ee8 4475
8d138742
CE
4476fi
4477fi
4478ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4479if test -n "$ac_ct_DUMPBIN"; then
4480 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4481$as_echo "$ac_ct_DUMPBIN" >&6; }
4482else
4483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
d9898ee8 4486
8d138742
CE
4487
4488 test -n "$ac_ct_DUMPBIN" && break
4489done
4490
4491 if test "x$ac_ct_DUMPBIN" = x; then
4492 DUMPBIN=":"
d9898ee8 4493 else
8d138742
CE
4494 case $cross_compiling:$ac_tool_warned in
4495yes:)
4496{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498ac_tool_warned=yes ;;
4499esac
4500 DUMPBIN=$ac_ct_DUMPBIN
d9898ee8 4501 fi
8d138742 4502fi
d9898ee8 4503
d9898ee8 4504
8d138742
CE
4505 if test "$DUMPBIN" != ":"; then
4506 NM="$DUMPBIN"
4507 fi
4508fi
4509test -z "$NM" && NM=nm
d9898ee8 4510
d9898ee8 4511
d9898ee8 4512
d9898ee8 4513
d9898ee8 4514
d9898ee8 4515
8d138742
CE
4516{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4517$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4518if test "${lt_cv_nm_interface+set}" = set; then
4519 $as_echo_n "(cached) " >&6
4520else
4521 lt_cv_nm_interface="BSD nm"
4522 echo "int some_variable = 0;" > conftest.$ac_ext
4523 (eval echo "\"\$as_me:4523: $ac_compile\"" >&5)
4524 (eval "$ac_compile" 2>conftest.err)
4525 cat conftest.err >&5
4526 (eval echo "\"\$as_me:4526: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4527 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4528 cat conftest.err >&5
4529 (eval echo "\"\$as_me:4529: output\"" >&5)
4530 cat conftest.out >&5
4531 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4532 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4533 fi
8d138742
CE
4534 rm -f conftest*
4535fi
4536{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4537$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4538
8d138742
CE
4539# find the maximum length of command line arguments
4540{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4541$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4542if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4543 $as_echo_n "(cached) " >&6
4544else
4545 i=0
4546 teststring="ABCD"
d9898ee8 4547
8d138742
CE
4548 case $build_os in
4549 msdosdjgpp*)
4550 # On DJGPP, this test can blow up pretty badly due to problems in libc
4551 # (any single argument exceeding 2000 bytes causes a buffer overrun
4552 # during glob expansion). Even if it were fixed, the result of this
4553 # check would be larger than it should be.
4554 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4555 ;;
ac40fd9e 4556
8d138742
CE
4557 gnu*)
4558 # Under GNU Hurd, this test is not required because there is
4559 # no limit to the length of command line arguments.
4560 # Libtool will interpret -1 as no limit whatsoever
4561 lt_cv_sys_max_cmd_len=-1;
4562 ;;
d9898ee8 4563
8d138742
CE
4564 cygwin* | mingw* | cegcc*)
4565 # On Win9x/ME, this test blows up -- it succeeds, but takes
4566 # about 5 minutes as the teststring grows exponentially.
4567 # Worse, since 9x/ME are not pre-emptively multitasking,
4568 # you end up with a "frozen" computer, even though with patience
4569 # the test eventually succeeds (with a max line length of 256k).
4570 # Instead, let's just punt: use the minimum linelength reported by
4571 # all of the supported platforms: 8192 (on NT/2K/XP).
4572 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4573 ;;
8d138742
CE
4574
4575 amigaos*)
4576 # On AmigaOS with pdksh, this test takes hours, literally.
4577 # So we just punt and use a minimum line length of 8192.
4578 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4579 ;;
8d138742
CE
4580
4581 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4582 # This has been around since 386BSD, at least. Likely further.
4583 if test -x /sbin/sysctl; then
4584 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4585 elif test -x /usr/sbin/sysctl; then
4586 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4587 else
4588 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4589 fi
4590 # And add a safety zone
4591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4593 ;;
8d138742
CE
4594
4595 interix*)
4596 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4597 lt_cv_sys_max_cmd_len=196608
d9898ee8 4598 ;;
8d138742
CE
4599
4600 osf*)
4601 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4602 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4603 # nice to cause kernel panics so lets avoid the loop below.
4604 # First set a reasonable default.
4605 lt_cv_sys_max_cmd_len=16384
4606 #
4607 if test -x /sbin/sysconfig; then
4608 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4609 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4610 esac
4611 fi
d9898ee8 4612 ;;
8d138742
CE
4613 sco3.2v5*)
4614 lt_cv_sys_max_cmd_len=102400
4615 ;;
4616 sysv5* | sco5v6* | sysv4.2uw2*)
4617 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4618 if test -n "$kargmax"; then
4619 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4620 else
4621 lt_cv_sys_max_cmd_len=32768
4622 fi
4623 ;;
4624 *)
4625 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4626 if test -n "$lt_cv_sys_max_cmd_len"; then
4627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4629 else
4630 # Make teststring a little bigger before we do anything with it.
4631 # a 1K string should be a reasonable start.
4632 for i in 1 2 3 4 5 6 7 8 ; do
4633 teststring=$teststring$teststring
4634 done
4635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4636 # If test is not a shell built-in, we'll probably end up computing a
4637 # maximum length that is only half of the actual maximum length, but
4638 # we can't tell.
4639 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4640 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4641 test $i != 17 # 1/2 MB should be enough
4642 do
4643 i=`expr $i + 1`
4644 teststring=$teststring$teststring
4645 done
4646 # Only check the string length outside the loop.
4647 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4648 teststring=
4649 # Add a significant safety factor because C++ compilers can tack on
4650 # massive amounts of additional arguments before passing them to the
4651 # linker. It appears as though 1/2 is a usable value.
4652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4653 fi
d9898ee8 4654 ;;
4655 esac
d9898ee8 4656
8d138742 4657fi
d9898ee8 4658
8d138742
CE
4659if test -n $lt_cv_sys_max_cmd_len ; then
4660 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4661$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4662else
4663 { $as_echo "$as_me:$LINENO: result: none" >&5
4664$as_echo "none" >&6; }
d9898ee8 4665fi
8d138742 4666max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4667
4668
4669
4670
d9898ee8 4671
d9898ee8 4672
8d138742
CE
4673: ${CP="cp -f"}
4674: ${MV="mv -f"}
4675: ${RM="rm -f"}
d9898ee8 4676
8d138742
CE
4677{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4678$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4679# Try some XSI features
4680xsi_shell=no
4681( _lt_dummy="a/b/c"
4682 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4683 = c,a/b,, \
4684 && eval 'test $(( 1 + 1 )) -eq 2 \
4685 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4686 && xsi_shell=yes
4687{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4688$as_echo "$xsi_shell" >&6; }
d9898ee8 4689
d9898ee8 4690
8d138742
CE
4691{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4692$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4693lt_shell_append=no
4694( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4695 >/dev/null 2>&1 \
4696 && lt_shell_append=yes
4697{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4698$as_echo "$lt_shell_append" >&6; }
d9898ee8 4699
d9898ee8 4700
8d138742
CE
4701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4702 lt_unset=unset
d9898ee8 4703else
8d138742
CE
4704 lt_unset=false
4705fi
d9898ee8 4706
d9898ee8 4707
d9898ee8 4708
dd184caf 4709
d9898ee8 4710
8d138742
CE
4711# test EBCDIC or ASCII
4712case `echo X|tr X '\101'` in
4713 A) # ASCII based system
4714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4715 lt_SP2NL='tr \040 \012'
4716 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4717 ;;
8d138742
CE
4718 *) # EBCDIC based system
4719 lt_SP2NL='tr \100 \n'
4720 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4721 ;;
8d138742 4722esac
d9898ee8 4723
4724
d9898ee8 4725
d9898ee8 4726
4727
8d138742
CE
4728
4729
4730
4731
4732{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4733$as_echo_n "checking for $LD option to reload object files... " >&6; }
4734if test "${lt_cv_ld_reload_flag+set}" = set; then
4735 $as_echo_n "(cached) " >&6
d9898ee8 4736else
8d138742
CE
4737 lt_cv_ld_reload_flag='-r'
4738fi
4739{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4740$as_echo "$lt_cv_ld_reload_flag" >&6; }
4741reload_flag=$lt_cv_ld_reload_flag
4742case $reload_flag in
4743"" | " "*) ;;
4744*) reload_flag=" $reload_flag" ;;
4745esac
4746reload_cmds='$LD$reload_flag -o $output$reload_objs'
4747case $host_os in
4748 darwin*)
4749 if test "$GCC" = yes; then
4750 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4751 else
4752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4753 fi
4754 ;;
dd184caf 4755esac
d9898ee8 4756
dd184caf 4757
d9898ee8 4758
d9898ee8 4759
dd184caf 4760
d9898ee8 4761
d9898ee8 4762
d9898ee8 4763
8d138742
CE
4764
4765if test -n "$ac_tool_prefix"; then
4766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4767set dummy ${ac_tool_prefix}objdump; ac_word=$2
4768{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4769$as_echo_n "checking for $ac_word... " >&6; }
4770if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4771 $as_echo_n "(cached) " >&6
d9898ee8 4772else
8d138742
CE
4773 if test -n "$OBJDUMP"; then
4774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4775else
8d138742
CE
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787done
4788done
4789IFS=$as_save_IFS
d9898ee8 4790
8d138742
CE
4791fi
4792fi
4793OBJDUMP=$ac_cv_prog_OBJDUMP
4794if test -n "$OBJDUMP"; then
4795 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4796$as_echo "$OBJDUMP" >&6; }
4797else
4798 { $as_echo "$as_me:$LINENO: result: no" >&5
4799$as_echo "no" >&6; }
d9898ee8 4800fi
dd184caf 4801
d9898ee8 4802
8d138742
CE
4803fi
4804if test -z "$ac_cv_prog_OBJDUMP"; then
4805 ac_ct_OBJDUMP=$OBJDUMP
4806 # Extract the first word of "objdump", so it can be a program name with args.
4807set dummy objdump; ac_word=$2
4808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4811 $as_echo_n "(cached) " >&6
d9898ee8 4812else
8d138742
CE
4813 if test -n "$ac_ct_OBJDUMP"; then
4814 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827done
4828done
4829IFS=$as_save_IFS
d9898ee8 4830
8d138742
CE
4831fi
4832fi
4833ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4834if test -n "$ac_ct_OBJDUMP"; then
4835 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4836$as_echo "$ac_ct_OBJDUMP" >&6; }
4837else
4838 { $as_echo "$as_me:$LINENO: result: no" >&5
4839$as_echo "no" >&6; }
d9898ee8 4840fi
dd184caf 4841
8d138742
CE
4842 if test "x$ac_ct_OBJDUMP" = x; then
4843 OBJDUMP="false"
4844 else
4845 case $cross_compiling:$ac_tool_warned in
4846yes:)
4847{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4849ac_tool_warned=yes ;;
4850esac
4851 OBJDUMP=$ac_ct_OBJDUMP
4852 fi
d9898ee8 4853else
8d138742 4854 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 4855fi
4856
8d138742 4857test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4858
4859
d9898ee8 4860
d9898ee8 4861
d9898ee8 4862
dd184caf 4863
d9898ee8 4864
d9898ee8 4865
8d138742
CE
4866
4867{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4868$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4869if test "${lt_cv_deplibs_check_method+set}" = set; then
4870 $as_echo_n "(cached) " >&6
d9898ee8 4871else
8d138742
CE
4872 lt_cv_file_magic_cmd='$MAGIC_CMD'
4873lt_cv_file_magic_test_file=
4874lt_cv_deplibs_check_method='unknown'
4875# Need to set the preceding variable on all platforms that support
4876# interlibrary dependencies.
4877# 'none' -- dependencies not supported.
4878# `unknown' -- same as none, but documents that we really don't know.
4879# 'pass_all' -- all dependencies passed with no checks.
4880# 'test_compile' -- check by making test program.
4881# 'file_magic [[regex]]' -- check by looking for files in library path
4882# which responds to the $file_magic_cmd with a given extended regex.
4883# If you have `file' or equivalent on your system and you're not sure
4884# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 4885
8d138742
CE
4886case $host_os in
4887aix[4-9]*)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
d9898ee8 4890
8d138742
CE
4891beos*)
4892 lt_cv_deplibs_check_method=pass_all
4893 ;;
d9898ee8 4894
8d138742
CE
4895bsdi[45]*)
4896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4897 lt_cv_file_magic_cmd='/usr/bin/file -L'
4898 lt_cv_file_magic_test_file=/shlib/libc.so
4899 ;;
d9898ee8 4900
8d138742
CE
4901cygwin*)
4902 # func_win32_libid is a shell function defined in ltmain.sh
4903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4904 lt_cv_file_magic_cmd='func_win32_libid'
4905 ;;
d9898ee8 4906
8d138742
CE
4907mingw* | pw32*)
4908 # Base MSYS/MinGW do not provide the 'file' command needed by
4909 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4910 # unless we find 'file', for example because we are cross-compiling.
4911 if ( file / ) >/dev/null 2>&1; then
4912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4913 lt_cv_file_magic_cmd='func_win32_libid'
4914 else
4915 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4916 lt_cv_file_magic_cmd='$OBJDUMP -f'
4917 fi
4918 ;;
d9898ee8 4919
8d138742
CE
4920cegcc)
4921 # use the weaker test based on 'objdump'. See mingw*.
4922 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4923 lt_cv_file_magic_cmd='$OBJDUMP -f'
4924 ;;
d9898ee8 4925
8d138742
CE
4926darwin* | rhapsody*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930freebsd* | dragonfly*)
4931 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4932 case $host_cpu in
4933 i*86 )
4934 # Not sure whether the presence of OpenBSD here was a mistake.
4935 # Let's accept both of them until this is cleared up.
4936 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4937 lt_cv_file_magic_cmd=/usr/bin/file
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4939 ;;
4940 esac
4941 else
4942 lt_cv_deplibs_check_method=pass_all
4943 fi
4944 ;;
dd184caf 4945
8d138742
CE
4946gnu*)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
dd184caf 4949
8d138742
CE
4950hpux10.20* | hpux11*)
4951 lt_cv_file_magic_cmd=/usr/bin/file
4952 case $host_cpu in
4953 ia64*)
4954 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4955 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4956 ;;
4957 hppa*64*)
4958 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]'
4959 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4960 ;;
4961 *)
4962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4963 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4964 ;;
4965 esac
4966 ;;
d9898ee8 4967
8d138742
CE
4968interix[3-9]*)
4969 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4971 ;;
d9898ee8 4972
8d138742
CE
4973irix5* | irix6* | nonstopux*)
4974 case $LD in
4975 *-32|*"-32 ") libmagic=32-bit;;
4976 *-n32|*"-n32 ") libmagic=N32;;
4977 *-64|*"-64 ") libmagic=64-bit;;
4978 *) libmagic=never-match;;
4979 esac
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
d9898ee8 4982
8d138742
CE
4983# This must be Linux ELF.
4984linux* | k*bsd*-gnu)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
d9898ee8 4987
8d138742
CE
4988netbsd*)
4989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4991 else
4992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4993 fi
4994 ;;
d9898ee8 4995
8d138742
CE
4996newos6*)
4997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4998 lt_cv_file_magic_cmd=/usr/bin/file
4999 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5000 ;;
d9898ee8 5001
8d138742
CE
5002*nto* | *qnx*)
5003 lt_cv_deplibs_check_method=pass_all
5004 ;;
d9898ee8 5005
8d138742
CE
5006openbsd*)
5007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5009 else
5010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5011 fi
5012 ;;
d9898ee8 5013
8d138742
CE
5014osf3* | osf4* | osf5*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
d9898ee8 5017
8d138742
CE
5018rdos*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
d9898ee8 5021
8d138742
CE
5022solaris*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
d9898ee8 5025
8d138742
CE
5026sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
d9898ee8 5029
8d138742
CE
5030sysv4 | sysv4.3*)
5031 case $host_vendor in
5032 motorola)
5033 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]'
5034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5035 ;;
5036 ncr)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039 sequent)
5040 lt_cv_file_magic_cmd='/bin/file'
5041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5042 ;;
5043 sni)
5044 lt_cv_file_magic_cmd='/bin/file'
5045 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5046 lt_cv_file_magic_test_file=/lib/libc.so
5047 ;;
5048 siemens)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051 pc)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054 esac
5055 ;;
d9898ee8 5056
8d138742
CE
5057tpf*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
dd184caf 5060esac
d9898ee8 5061
d9898ee8 5062fi
8d138742
CE
5063{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5064$as_echo "$lt_cv_deplibs_check_method" >&6; }
5065file_magic_cmd=$lt_cv_file_magic_cmd
5066deplibs_check_method=$lt_cv_deplibs_check_method
5067test -z "$deplibs_check_method" && deplibs_check_method=unknown
dd184caf 5068
d9898ee8 5069
d9898ee8 5070
d9898ee8 5071
5072
5073
d9898ee8 5074
dd184caf 5075
d9898ee8 5076
8d138742
CE
5077
5078
5079
5080if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5082set dummy ${ac_tool_prefix}ar; ac_word=$2
5083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if test "${ac_cv_prog_AR+set}" = set; then
5086 $as_echo_n "(cached) " >&6
d9898ee8 5087else
8d138742
CE
5088 if test -n "$AR"; then
5089 ac_cv_prog_AR="$AR" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_AR="${ac_tool_prefix}ar"
5099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102done
5103done
5104IFS=$as_save_IFS
d9898ee8 5105
8d138742
CE
5106fi
5107fi
5108AR=$ac_cv_prog_AR
5109if test -n "$AR"; then
5110 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5111$as_echo "$AR" >&6; }
5112else
5113 { $as_echo "$as_me:$LINENO: result: no" >&5
5114$as_echo "no" >&6; }
d9898ee8 5115fi
dd184caf 5116
d9898ee8 5117
d9898ee8 5118fi
8d138742
CE
5119if test -z "$ac_cv_prog_AR"; then
5120 ac_ct_AR=$AR
5121 # Extract the first word of "ar", so it can be a program name with args.
5122set dummy ar; ac_word=$2
5123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5126 $as_echo_n "(cached) " >&6
5127else
5128 if test -n "$ac_ct_AR"; then
5129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_ac_ct_AR="ar"
5139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142done
5143done
5144IFS=$as_save_IFS
d9898ee8 5145
5146fi
8d138742
CE
5147fi
5148ac_ct_AR=$ac_cv_prog_ac_ct_AR
5149if test -n "$ac_ct_AR"; then
5150 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5151$as_echo "$ac_ct_AR" >&6; }
5152else
5153 { $as_echo "$as_me:$LINENO: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
d9898ee8 5156
8d138742
CE
5157 if test "x$ac_ct_AR" = x; then
5158 AR="false"
5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161yes:)
5162{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164ac_tool_warned=yes ;;
5165esac
5166 AR=$ac_ct_AR
5167 fi
5168else
5169 AR="$ac_cv_prog_AR"
d9898ee8 5170fi
5171
8d138742
CE
5172test -z "$AR" && AR=ar
5173test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5174
8d138742
CE
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185if test -n "$ac_tool_prefix"; then
5186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5187set dummy ${ac_tool_prefix}strip; ac_word=$2
5188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_prog_STRIP+set}" = set; then
5191 $as_echo_n "(cached) " >&6
d9898ee8 5192else
8d138742
CE
5193 if test -n "$STRIP"; then
5194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5205 break 2
5206 fi
5207done
5208done
dd184caf 5209IFS=$as_save_IFS
d9898ee8 5210
5211fi
5212fi
8d138742
CE
5213STRIP=$ac_cv_prog_STRIP
5214if test -n "$STRIP"; then
5215 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5216$as_echo "$STRIP" >&6; }
d9898ee8 5217else
8d138742
CE
5218 { $as_echo "$as_me:$LINENO: result: no" >&5
5219$as_echo "no" >&6; }
d9898ee8 5220fi
5221
dd184caf 5222
d9898ee8 5223fi
8d138742
CE
5224if test -z "$ac_cv_prog_STRIP"; then
5225 ac_ct_STRIP=$STRIP
5226 # Extract the first word of "strip", so it can be a program name with args.
5227set dummy strip; ac_word=$2
5228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
5230if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5231 $as_echo_n "(cached) " >&6
d9898ee8 5232else
8d138742
CE
5233 if test -n "$ac_ct_STRIP"; then
5234 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5243 ac_cv_prog_ac_ct_STRIP="strip"
5244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5245 break 2
5246 fi
5247done
5248done
dd184caf 5249IFS=$as_save_IFS
d9898ee8 5250
5251fi
5252fi
8d138742
CE
5253ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5254if test -n "$ac_ct_STRIP"; then
5255 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5256$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5257else
8d138742
CE
5258 { $as_echo "$as_me:$LINENO: result: no" >&5
5259$as_echo "no" >&6; }
d9898ee8 5260fi
5261
8d138742
CE
5262 if test "x$ac_ct_STRIP" = x; then
5263 STRIP=":"
dd184caf 5264 else
5265 case $cross_compiling:$ac_tool_warned in
5266yes:)
8d138742
CE
5267{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5269ac_tool_warned=yes ;;
5270esac
8d138742 5271 STRIP=$ac_ct_STRIP
dd184caf 5272 fi
8d138742
CE
5273else
5274 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5275fi
5276
8d138742 5277test -z "$STRIP" && STRIP=:
d9898ee8 5278
d9898ee8 5279
d9898ee8 5280
8d138742
CE
5281
5282
5283
5284if test -n "$ac_tool_prefix"; then
5285 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5286set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5288$as_echo_n "checking for $ac_word... " >&6; }
5289if test "${ac_cv_prog_RANLIB+set}" = set; then
5290 $as_echo_n "(cached) " >&6
d9898ee8 5291else
8d138742
CE
5292 if test -n "$RANLIB"; then
5293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5294else
5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH
5297do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306done
5307done
5308IFS=$as_save_IFS
d9898ee8 5309
8d138742
CE
5310fi
5311fi
5312RANLIB=$ac_cv_prog_RANLIB
5313if test -n "$RANLIB"; then
5314 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5315$as_echo "$RANLIB" >&6; }
5316else
5317 { $as_echo "$as_me:$LINENO: result: no" >&5
5318$as_echo "no" >&6; }
d9898ee8 5319fi
dd184caf 5320
d9898ee8 5321
8d138742
CE
5322fi
5323if test -z "$ac_cv_prog_RANLIB"; then
5324 ac_ct_RANLIB=$RANLIB
5325 # Extract the first word of "ranlib", so it can be a program name with args.
5326set dummy ranlib; ac_word=$2
5327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5330 $as_echo_n "(cached) " >&6
5331else
5332 if test -n "$ac_ct_RANLIB"; then
5333 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_RANLIB="ranlib"
5343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346done
5347done
5348IFS=$as_save_IFS
d9898ee8 5349
8d138742
CE
5350fi
5351fi
5352ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5353if test -n "$ac_ct_RANLIB"; then
5354 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5355$as_echo "$ac_ct_RANLIB" >&6; }
5356else
5357 { $as_echo "$as_me:$LINENO: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361 if test "x$ac_ct_RANLIB" = x; then
5362 RANLIB=":"
5363 else
5364 case $cross_compiling:$ac_tool_warned in
5365yes:)
5366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368ac_tool_warned=yes ;;
dd184caf 5369esac
8d138742
CE
5370 RANLIB=$ac_ct_RANLIB
5371 fi
d9898ee8 5372else
8d138742
CE
5373 RANLIB="$ac_cv_prog_RANLIB"
5374fi
d9898ee8 5375
8d138742 5376test -z "$RANLIB" && RANLIB=:
dd184caf 5377
dd184caf 5378
d9898ee8 5379
dd184caf 5380
dd184caf 5381
d9898ee8 5382
8d138742
CE
5383# Determine commands to create old-style static archives.
5384old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5385old_postinstall_cmds='chmod 644 $oldlib'
5386old_postuninstall_cmds=
dd184caf 5387
8d138742
CE
5388if test -n "$RANLIB"; then
5389 case $host_os in
5390 openbsd*)
5391 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5392 ;;
5393 *)
5394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5395 ;;
5396 esac
5397 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d9898ee8 5398fi
dd184caf 5399
d9898ee8 5400
dd184caf 5401
d9898ee8 5402
d9898ee8 5403
d9898ee8 5404
d9898ee8 5405
d9898ee8 5406
d9898ee8 5407
d9898ee8 5408
d9898ee8 5409
5410
5411
5412
d9898ee8 5413
dd184caf 5414
d9898ee8 5415
d9898ee8 5416
dd184caf 5417
d9898ee8 5418
d9898ee8 5419
d9898ee8 5420
d9898ee8 5421
dd184caf 5422
d9898ee8 5423
d9898ee8 5424
dd184caf 5425
d9898ee8 5426
d9898ee8 5427
d9898ee8 5428
d9898ee8 5429
5430
d9898ee8 5431
d9898ee8 5432
8d138742
CE
5433# If no C compiler was specified, use CC.
5434LTCC=${LTCC-"$CC"}
dd184caf 5435
8d138742
CE
5436# If no C compiler flags were specified, use CFLAGS.
5437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5438
8d138742
CE
5439# Allow CC to be a program name with arguments.
5440compiler=$CC
5441
5442
5443# Check for command to grab the raw symbol name followed by C symbol from nm.
5444{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5445$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5446if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5447 $as_echo_n "(cached) " >&6
d9898ee8 5448else
d9898ee8 5449
8d138742
CE
5450# These are sane defaults that work on at least a few old systems.
5451# [They come from Ultrix. What could be older than Ultrix?!! ;)]
dd184caf 5452
8d138742
CE
5453# Character class describing NM global symbol codes.
5454symcode='[BCDEGRST]'
d9898ee8 5455
8d138742
CE
5456# Regexp to match symbols that can be accessed directly from C.
5457sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5458
5459# Define system-specific variables.
5460case $host_os in
5461aix*)
5462 symcode='[BCDT]'
5463 ;;
5464cygwin* | mingw* | pw32* | cegcc*)
5465 symcode='[ABCDGISTW]'
5466 ;;
5467hpux*)
5468 if test "$host_cpu" = ia64; then
5469 symcode='[ABCDEGRST]'
dd184caf 5470 fi
8d138742
CE
5471 ;;
5472irix* | nonstopux*)
5473 symcode='[BCDEGRST]'
5474 ;;
5475osf*)
5476 symcode='[BCDEGQRST]'
5477 ;;
5478solaris*)
5479 symcode='[BDRT]'
5480 ;;
5481sco3.2v5*)
5482 symcode='[DT]'
5483 ;;
5484sysv4.2uw2*)
5485 symcode='[DT]'
5486 ;;
5487sysv5* | sco5v6* | unixware* | OpenUNIX*)
5488 symcode='[ABDT]'
5489 ;;
5490sysv4)
5491 symcode='[DFNSTU]'
5492 ;;
5493esac
5494
5495# If we're using GNU nm, then use its standard symbol codes.
5496case `$NM -V 2>&1` in
5497*GNU* | *'with BFD'*)
5498 symcode='[ABCDGIRSTW]' ;;
5499esac
d9898ee8 5500
8d138742
CE
5501# Transform an extracted symbol line into a proper C declaration.
5502# Some systems (esp. on ia64) link data and code symbols differently,
5503# so use this general approach.
5504lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 5505
8d138742
CE
5506# Transform an extracted symbol line into symbol name and symbol address
5507lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5508lt_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'"
5509
5510# Handle CRLF in mingw tool chain
5511opt_cr=
5512case $build_os in
5513mingw*)
5514 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5515 ;;
dd184caf 5516esac
8d138742
CE
5517
5518# Try without a prefix underscore, then with it.
5519for ac_symprfx in "" "_"; do
5520
5521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5522 symxfrm="\\1 $ac_symprfx\\2 \\2"
5523
5524 # Write the raw and C identifiers.
5525 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5526 # Fake it for dumpbin and say T for any non-static function
5527 # and D for any global variable.
5528 # Also find C++ and __fastcall symbols from MSVC++,
5529 # which start with @ or ?.
5530 lt_cv_sys_global_symbol_pipe="$AWK '"\
5531" {last_section=section; section=\$ 3};"\
5532" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5533" \$ 0!~/External *\|/{next};"\
5534" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5535" {if(hide[section]) next};"\
5536" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5537" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5538" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5539" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5540" ' prfx=^$ac_symprfx"
5541 else
5542 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5543 fi
5544
5545 # Check to see that the pipe works correctly.
5546 pipe_works=no
5547
5548 rm -f conftest*
5549 cat > conftest.$ac_ext <<_LT_EOF
5550#ifdef __cplusplus
5551extern "C" {
5552#endif
5553char nm_test_var;
5554void nm_test_func(void);
5555void nm_test_func(void){}
5556#ifdef __cplusplus
5557}
5558#endif
5559int main(){nm_test_var='a';nm_test_func();return(0);}
5560_LT_EOF
5561
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>&5
d9898ee8 5564 ac_status=$?
8d138742
CE
5565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; then
5567 # Now try to grab the symbols.
5568 nlist=conftest.nm
5569 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5570 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
d9898ee8 5571 ac_status=$?
8d138742
CE
5572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && test -s "$nlist"; then
5574 # Try sorting and uniquifying the output.
5575 if sort "$nlist" | uniq > "$nlist"T; then
5576 mv -f "$nlist"T "$nlist"
5577 else
5578 rm -f "$nlist"T
5579 fi
d9898ee8 5580
8d138742
CE
5581 # Make sure that we snagged all the symbols we need.
5582 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5583 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5584 cat <<_LT_EOF > conftest.$ac_ext
5585#ifdef __cplusplus
5586extern "C" {
d9898ee8 5587#endif
5588
8d138742
CE
5589_LT_EOF
5590 # Now generate the symbol file.
5591 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5592
8d138742 5593 cat <<_LT_EOF >> conftest.$ac_ext
dd184caf 5594
8d138742
CE
5595/* The mapping between symbol names and symbols. */
5596const struct {
5597 const char *name;
5598 void *address;
5599}
5600lt__PROGRAM__LTX_preloaded_symbols[] =
5601{
5602 { "@PROGRAM@", (void *) 0 },
5603_LT_EOF
5604 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5605 cat <<\_LT_EOF >> conftest.$ac_ext
5606 {0, (void *) 0}
5607};
d9898ee8 5608
8d138742
CE
5609/* This works around a problem in FreeBSD linker */
5610#ifdef FREEBSD_WORKAROUND
5611static const void *lt_preloaded_setup() {
5612 return lt__PROGRAM__LTX_preloaded_symbols;
5613}
5614#endif
d9898ee8 5615
8d138742
CE
5616#ifdef __cplusplus
5617}
5618#endif
5619_LT_EOF
5620 # Now try linking the two files.
5621 mv conftest.$ac_objext conftstm.$ac_objext
5622 lt_save_LIBS="$LIBS"
5623 lt_save_CFLAGS="$CFLAGS"
5624 LIBS="conftstm.$ac_objext"
5625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>&5
d9898ee8 5628 ac_status=$?
8d138742
CE
5629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5631 pipe_works=yes
5632 fi
5633 LIBS="$lt_save_LIBS"
5634 CFLAGS="$lt_save_CFLAGS"
5635 else
5636 echo "cannot find nm_test_func in $nlist" >&5
5637 fi
5638 else
5639 echo "cannot find nm_test_var in $nlist" >&5
5640 fi
5641 else
5642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5643 fi
5644 else
5645 echo "$progname: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 fi
5648 rm -rf conftest* conftst*
d9898ee8 5649
8d138742
CE
5650 # Do not use the global_symbol_pipe unless it works.
5651 if test "$pipe_works" = yes; then
5652 break
5653 else
5654 lt_cv_sys_global_symbol_pipe=
5655 fi
5656done
dd184caf 5657
8d138742 5658fi
d9898ee8 5659
8d138742
CE
5660if test -z "$lt_cv_sys_global_symbol_pipe"; then
5661 lt_cv_sys_global_symbol_to_cdecl=
d9898ee8 5662fi
8d138742
CE
5663if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5664 { $as_echo "$as_me:$LINENO: result: failed" >&5
5665$as_echo "failed" >&6; }
d9898ee8 5666else
8d138742
CE
5667 { $as_echo "$as_me:$LINENO: result: ok" >&5
5668$as_echo "ok" >&6; }
d9898ee8 5669fi
5670
d9898ee8 5671
5672
5673
d9898ee8 5674
d9898ee8 5675
d9898ee8 5676
d9898ee8 5677
d9898ee8 5678
d9898ee8 5679
d9898ee8 5680
d9898ee8 5681
d9898ee8 5682
d9898ee8 5683
d9898ee8 5684
5685
5686
5687
ac40fd9e 5688
d9898ee8 5689
d9898ee8 5690
d9898ee8 5691
d9898ee8 5692
8d138742
CE
5693# Check whether --enable-libtool-lock was given.
5694if test "${enable_libtool_lock+set}" = set; then
5695 enableval=$enable_libtool_lock;
5696fi
d9898ee8 5697
8d138742 5698test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 5699
8d138742
CE
5700# Some flags need to be propagated to the compiler or linker for good
5701# libtool support.
5702case $host in
5703ia64-*-hpux*)
5704 # Find out which ABI we are using.
5705 echo 'int i;' > conftest.$ac_ext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; then
5711 case `/usr/bin/file conftest.$ac_objext` in
5712 *ELF-32*)
5713 HPUX_IA64_MODE="32"
5714 ;;
5715 *ELF-64*)
5716 HPUX_IA64_MODE="64"
5717 ;;
5718 esac
d9898ee8 5719 fi
8d138742 5720 rm -rf conftest*
d9898ee8 5721 ;;
8d138742
CE
5722*-*-irix6*)
5723 # Find out which ABI we are using.
5724 echo '#line 5724 "configure"' > conftest.$ac_ext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>&5
5727 ac_status=$?
5728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; then
5730 if test "$lt_cv_prog_gnu_ld" = yes; then
5731 case `/usr/bin/file conftest.$ac_objext` in
5732 *32-bit*)
5733 LD="${LD-ld} -melf32bsmip"
5734 ;;
5735 *N32*)
5736 LD="${LD-ld} -melf32bmipn32"
5737 ;;
5738 *64-bit*)
5739 LD="${LD-ld} -melf64bmip"
5740 ;;
5741 esac
5742 else
5743 case `/usr/bin/file conftest.$ac_objext` in
5744 *32-bit*)
5745 LD="${LD-ld} -32"
5746 ;;
5747 *N32*)
5748 LD="${LD-ld} -n32"
5749 ;;
5750 *64-bit*)
5751 LD="${LD-ld} -64"
5752 ;;
5753 esac
5754 fi
d9898ee8 5755 fi
8d138742 5756 rm -rf conftest*
d9898ee8 5757 ;;
d9898ee8 5758
8d138742
CE
5759x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5760s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5761 # Find out which ABI we are using.
5762 echo 'int i;' > conftest.$ac_ext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>&5
5765 ac_status=$?
5766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; then
5768 case `/usr/bin/file conftest.o` in
5769 *32-bit*)
5770 case $host in
5771 x86_64-*kfreebsd*-gnu)
5772 LD="${LD-ld} -m elf_i386_fbsd"
5773 ;;
5774 x86_64-*linux*)
5775 LD="${LD-ld} -m elf_i386"
5776 ;;
5777 ppc64-*linux*|powerpc64-*linux*)
5778 LD="${LD-ld} -m elf32ppclinux"
5779 ;;
5780 s390x-*linux*)
5781 LD="${LD-ld} -m elf_s390"
5782 ;;
5783 sparc64-*linux*)
5784 LD="${LD-ld} -m elf32_sparc"
5785 ;;
5786 esac
5787 ;;
5788 *64-bit*)
5789 case $host in
5790 x86_64-*kfreebsd*-gnu)
5791 LD="${LD-ld} -m elf_x86_64_fbsd"
5792 ;;
5793 x86_64-*linux*)
5794 LD="${LD-ld} -m elf_x86_64"
5795 ;;
5796 ppc*-*linux*|powerpc*-*linux*)
5797 LD="${LD-ld} -m elf64ppc"
5798 ;;
5799 s390*-*linux*|s390*-*tpf*)
5800 LD="${LD-ld} -m elf64_s390"
5801 ;;
5802 sparc*-*linux*)
5803 LD="${LD-ld} -m elf64_sparc"
5804 ;;
5805 esac
5806 ;;
5807 esac
5808 fi
5809 rm -rf conftest*
d9898ee8 5810 ;;
d9898ee8 5811
8d138742
CE
5812*-*-sco3.2v5*)
5813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5814 SAVE_CFLAGS="$CFLAGS"
5815 CFLAGS="$CFLAGS -belf"
5816 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5817$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5818if test "${lt_cv_cc_needs_belf+set}" = set; then
5819 $as_echo_n "(cached) " >&6
5820else
5821 ac_ext=c
5822ac_cpp='$CPP $CPPFLAGS'
5823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5826
8d138742
CE
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
d9898ee8 5833
8d138742
CE
5834int
5835main ()
5836{
d9898ee8 5837
8d138742
CE
5838 ;
5839 return 0;
5840}
5841_ACEOF
5842rm -f conftest.$ac_objext conftest$ac_exeext
5843if { (ac_try="$ac_link"
5844case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847esac
5848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5849$as_echo "$ac_try_echo") >&5
5850 (eval "$ac_link") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest$ac_exeext && {
5860 test "$cross_compiling" = yes ||
5861 $as_test_x conftest$ac_exeext
5862 }; then
5863 lt_cv_cc_needs_belf=yes
5864else
5865 $as_echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5867
8d138742
CE
5868 lt_cv_cc_needs_belf=no
5869fi
d9898ee8 5870
8d138742
CE
5871rm -rf conftest.dSYM
5872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5873 conftest$ac_exeext conftest.$ac_ext
5874 ac_ext=c
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5879
8d138742
CE
5880fi
5881{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5882$as_echo "$lt_cv_cc_needs_belf" >&6; }
5883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885 CFLAGS="$SAVE_CFLAGS"
5886 fi
5887 ;;
5888sparc*-*solaris*)
5889 # Find out which ABI we are using.
5890 echo 'int i;' > conftest.$ac_ext
d9898ee8 5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>&5
5893 ac_status=$?
8d138742 5894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5895 (exit $ac_status); }; then
8d138742
CE
5896 case `/usr/bin/file conftest.o` in
5897 *64-bit*)
5898 case $lt_cv_prog_gnu_ld in
5899 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5900 *)
5901 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5902 LD="${LD-ld} -64"
5903 fi
5904 ;;
5905 esac
5906 ;;
5907 esac
5908 fi
5909 rm -rf conftest*
5910 ;;
5911esac
d9898ee8 5912
8d138742 5913need_locks="$enable_libtool_lock"
d9898ee8 5914
d9898ee8 5915
8d138742
CE
5916 case $host_os in
5917 rhapsody* | darwin*)
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$DSYMUTIL"; then
5927 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941done
5942IFS=$as_save_IFS
d9898ee8 5943
8d138742
CE
5944fi
5945fi
5946DSYMUTIL=$ac_cv_prog_DSYMUTIL
5947if test -n "$DSYMUTIL"; then
5948 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5949$as_echo "$DSYMUTIL" >&6; }
5950else
5951 { $as_echo "$as_me:$LINENO: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
d9898ee8 5954
d9898ee8 5955
8d138742
CE
5956fi
5957if test -z "$ac_cv_prog_DSYMUTIL"; then
5958 ac_ct_DSYMUTIL=$DSYMUTIL
5959 # Extract the first word of "dsymutil", so it can be a program name with args.
5960set dummy dsymutil; ac_word=$2
5961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$ac_ct_DSYMUTIL"; then
5967 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
d9898ee8 5979 fi
5980done
8d138742
CE
5981done
5982IFS=$as_save_IFS
d9898ee8 5983
5984fi
d9898ee8 5985fi
8d138742
CE
5986ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5987if test -n "$ac_ct_DSYMUTIL"; then
5988 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5989$as_echo "$ac_ct_DSYMUTIL" >&6; }
d9898ee8 5990else
8d138742
CE
5991 { $as_echo "$as_me:$LINENO: result: no" >&5
5992$as_echo "no" >&6; }
d9898ee8 5993fi
5994
8d138742
CE
5995 if test "x$ac_ct_DSYMUTIL" = x; then
5996 DSYMUTIL=":"
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999yes:)
6000{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002ac_tool_warned=yes ;;
6003esac
6004 DSYMUTIL=$ac_ct_DSYMUTIL
6005 fi
d9898ee8 6006else
8d138742 6007 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6008fi
d9898ee8 6009
8d138742
CE
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6012set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
6015if test "${ac_cv_prog_NMEDIT+set}" = set; then
6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$NMEDIT"; then
6019 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
d9898ee8 6031 fi
8d138742
CE
6032done
6033done
6034IFS=$as_save_IFS
d9898ee8 6035
8d138742
CE
6036fi
6037fi
6038NMEDIT=$ac_cv_prog_NMEDIT
6039if test -n "$NMEDIT"; then
6040 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6041$as_echo "$NMEDIT" >&6; }
6042else
6043 { $as_echo "$as_me:$LINENO: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
d9898ee8 6046
d9898ee8 6047
8d138742
CE
6048fi
6049if test -z "$ac_cv_prog_NMEDIT"; then
6050 ac_ct_NMEDIT=$NMEDIT
6051 # Extract the first word of "nmedit", so it can be a program name with args.
6052set dummy nmedit; ac_word=$2
6053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$ac_ct_NMEDIT"; then
6059 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073done
6074IFS=$as_save_IFS
d9898ee8 6075
8d138742
CE
6076fi
6077fi
6078ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6079if test -n "$ac_ct_NMEDIT"; then
6080 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6081$as_echo "$ac_ct_NMEDIT" >&6; }
6082else
6083 { $as_echo "$as_me:$LINENO: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
d9898ee8 6086
8d138742
CE
6087 if test "x$ac_ct_NMEDIT" = x; then
6088 NMEDIT=":"
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096 NMEDIT=$ac_ct_NMEDIT
6097 fi
6098else
6099 NMEDIT="$ac_cv_prog_NMEDIT"
6100fi
d9898ee8 6101
8d138742
CE
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6104set dummy ${ac_tool_prefix}lipo; ac_word=$2
6105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
6107if test "${ac_cv_prog_LIPO+set}" = set; then
6108 $as_echo_n "(cached) " >&6
d9898ee8 6109else
8d138742
CE
6110 if test -n "$LIPO"; then
6111 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6120 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6122 break 2
6123 fi
6124done
6125done
dd184caf 6126IFS=$as_save_IFS
d9898ee8 6127
6128fi
6129fi
8d138742
CE
6130LIPO=$ac_cv_prog_LIPO
6131if test -n "$LIPO"; then
6132 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6133$as_echo "$LIPO" >&6; }
d9898ee8 6134else
8d138742
CE
6135 { $as_echo "$as_me:$LINENO: result: no" >&5
6136$as_echo "no" >&6; }
d9898ee8 6137fi
6138
dd184caf 6139
d9898ee8 6140fi
8d138742
CE
6141if test -z "$ac_cv_prog_LIPO"; then
6142 ac_ct_LIPO=$LIPO
6143 # Extract the first word of "lipo", so it can be a program name with args.
6144set dummy lipo; ac_word=$2
6145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6148 $as_echo_n "(cached) " >&6
d9898ee8 6149else
8d138742
CE
6150 if test -n "$ac_ct_LIPO"; then
6151 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6160 ac_cv_prog_ac_ct_LIPO="lipo"
6161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6162 break 2
6163 fi
6164done
6165done
dd184caf 6166IFS=$as_save_IFS
d9898ee8 6167
d9898ee8 6168fi
6169fi
8d138742
CE
6170ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6171if test -n "$ac_ct_LIPO"; then
6172 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6173$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6174else
8d138742
CE
6175 { $as_echo "$as_me:$LINENO: result: no" >&5
6176$as_echo "no" >&6; }
d9898ee8 6177fi
6178
8d138742
CE
6179 if test "x$ac_ct_LIPO" = x; then
6180 LIPO=":"
dd184caf 6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183yes:)
8d138742
CE
6184{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6186ac_tool_warned=yes ;;
6187esac
8d138742 6188 LIPO=$ac_ct_LIPO
dd184caf 6189 fi
d9898ee8 6190else
8d138742 6191 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6192fi
6193
8d138742
CE
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6196set dummy ${ac_tool_prefix}otool; ac_word=$2
6197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if test "${ac_cv_prog_OTOOL+set}" = set; then
6200 $as_echo_n "(cached) " >&6
d9898ee8 6201else
8d138742
CE
6202 if test -n "$OTOOL"; then
6203 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
d9898ee8 6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6212 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6214 break 2
6215 fi
6216done
6217done
dd184caf 6218IFS=$as_save_IFS
d9898ee8 6219
6220fi
6221fi
8d138742
CE
6222OTOOL=$ac_cv_prog_OTOOL
6223if test -n "$OTOOL"; then
6224 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6225$as_echo "$OTOOL" >&6; }
d9898ee8 6226else
8d138742
CE
6227 { $as_echo "$as_me:$LINENO: result: no" >&5
6228$as_echo "no" >&6; }
d9898ee8 6229fi
6230
dd184caf 6231
d9898ee8 6232fi
8d138742
CE
6233if test -z "$ac_cv_prog_OTOOL"; then
6234 ac_ct_OTOOL=$OTOOL
6235 # Extract the first word of "otool", so it can be a program name with args.
6236set dummy otool; ac_word=$2
6237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6240 $as_echo_n "(cached) " >&6
d9898ee8 6241else
8d138742
CE
6242 if test -n "$ac_ct_OTOOL"; then
6243 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
d9898ee8 6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6252 ac_cv_prog_ac_ct_OTOOL="otool"
6253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6254 break 2
6255 fi
6256done
6257done
dd184caf 6258IFS=$as_save_IFS
d9898ee8 6259
d9898ee8 6260fi
6261fi
8d138742
CE
6262ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6263if test -n "$ac_ct_OTOOL"; then
6264 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6265$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6266else
8d138742
CE
6267 { $as_echo "$as_me:$LINENO: result: no" >&5
6268$as_echo "no" >&6; }
d9898ee8 6269fi
6270
8d138742
CE
6271 if test "x$ac_ct_OTOOL" = x; then
6272 OTOOL=":"
dd184caf 6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275yes:)
8d138742
CE
6276{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6278ac_tool_warned=yes ;;
6279esac
8d138742 6280 OTOOL=$ac_ct_OTOOL
dd184caf 6281 fi
d9898ee8 6282else
8d138742 6283 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6284fi
6285
8d138742
CE
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}otool64; ac_word=$2
6289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if test "${ac_cv_prog_OTOOL64+set}" = set; then
6292 $as_echo_n "(cached) " >&6
d9898ee8 6293else
8d138742
CE
6294 if test -n "$OTOOL64"; then
6295 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
d9898ee8 6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6304 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6306 break 2
6307 fi
6308done
6309done
dd184caf 6310IFS=$as_save_IFS
d9898ee8 6311
6312fi
6313fi
8d138742
CE
6314OTOOL64=$ac_cv_prog_OTOOL64
6315if test -n "$OTOOL64"; then
6316 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6317$as_echo "$OTOOL64" >&6; }
d9898ee8 6318else
8d138742
CE
6319 { $as_echo "$as_me:$LINENO: result: no" >&5
6320$as_echo "no" >&6; }
d9898ee8 6321fi
6322
dd184caf 6323
d9898ee8 6324fi
8d138742
CE
6325if test -z "$ac_cv_prog_OTOOL64"; then
6326 ac_ct_OTOOL64=$OTOOL64
6327 # Extract the first word of "otool64", so it can be a program name with args.
6328set dummy otool64; ac_word=$2
6329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6332 $as_echo_n "(cached) " >&6
d9898ee8 6333else
8d138742
CE
6334 if test -n "$ac_ct_OTOOL64"; then
6335 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
d9898ee8 6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6344 ac_cv_prog_ac_ct_OTOOL64="otool64"
6345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6346 break 2
6347 fi
6348done
6349done
dd184caf 6350IFS=$as_save_IFS
d9898ee8 6351
d9898ee8 6352fi
6353fi
8d138742
CE
6354ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6355if test -n "$ac_ct_OTOOL64"; then
6356 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6357$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6358else
8d138742
CE
6359 { $as_echo "$as_me:$LINENO: result: no" >&5
6360$as_echo "no" >&6; }
d9898ee8 6361fi
6362
8d138742
CE
6363 if test "x$ac_ct_OTOOL64" = x; then
6364 OTOOL64=":"
dd184caf 6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367yes:)
8d138742
CE
6368{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6370ac_tool_warned=yes ;;
6371esac
8d138742 6372 OTOOL64=$ac_ct_OTOOL64
dd184caf 6373 fi
d9898ee8 6374else
8d138742 6375 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 6376fi
6377
6378
d9898ee8 6379
d9898ee8 6380
d9898ee8 6381
d9898ee8 6382
d9898ee8 6383
6384
dd184caf 6385
d9898ee8 6386
6387
d9898ee8 6388
d9898ee8 6389
d9898ee8 6390
d9898ee8 6391
6392
d9898ee8 6393
d9898ee8 6394
d9898ee8 6395
6396
d9898ee8 6397
d9898ee8 6398
6399
6400
d9898ee8 6401
d9898ee8 6402
6403
8d138742
CE
6404 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6405$as_echo_n "checking for -single_module linker flag... " >&6; }
6406if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6407 $as_echo_n "(cached) " >&6
d9898ee8 6408else
8d138742
CE
6409 lt_cv_apple_cc_single_mod=no
6410 if test -z "${LT_MULTI_MODULE}"; then
6411 # By default we will add the -single_module flag. You can override
6412 # by either setting the environment variable LT_MULTI_MODULE
6413 # non-empty at configure time, or by adding -multi_module to the
6414 # link flags.
6415 rm -rf libconftest.dylib*
6416 echo "int foo(void){return 1;}" > conftest.c
6417 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6418-dynamiclib -Wl,-single_module conftest.c" >&5
6419 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6420 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6421 _lt_result=$?
6422 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6423 lt_cv_apple_cc_single_mod=yes
6424 else
6425 cat conftest.err >&5
6426 fi
6427 rm -rf libconftest.dylib*
6428 rm -f conftest.*
6429 fi
d9898ee8 6430fi
8d138742
CE
6431{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6432$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6433 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6434$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6435if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6436 $as_echo_n "(cached) " >&6
6437else
6438 lt_cv_ld_exported_symbols_list=no
6439 save_LDFLAGS=$LDFLAGS
6440 echo "_main" > conftest.sym
6441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6442 cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
d9898ee8 6448
8d138742
CE
6449int
6450main ()
6451{
6452
6453 ;
6454 return 0;
6455}
6456_ACEOF
6457rm -f conftest.$ac_objext conftest$ac_exeext
6458if { (ac_try="$ac_link"
6459case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462esac
6463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6464$as_echo "$ac_try_echo") >&5
6465 (eval "$ac_link") 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && {
6472 test -z "$ac_c_werror_flag" ||
6473 test ! -s conftest.err
6474 } && test -s conftest$ac_exeext && {
6475 test "$cross_compiling" = yes ||
6476 $as_test_x conftest$ac_exeext
6477 }; then
6478 lt_cv_ld_exported_symbols_list=yes
d9898ee8 6479else
8d138742
CE
6480 $as_echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6482
8d138742 6483 lt_cv_ld_exported_symbols_list=no
d9898ee8 6484fi
6485
8d138742
CE
6486rm -rf conftest.dSYM
6487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6488 conftest$ac_exeext conftest.$ac_ext
6489 LDFLAGS="$save_LDFLAGS"
d9898ee8 6490
8d138742
CE
6491fi
6492{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6493$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
d9898ee8 6494 case $host_os in
8d138742
CE
6495 rhapsody* | darwin1.[012])
6496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6497 darwin1.*)
6498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6499 darwin*) # darwin 5.x on
6500 # if running on 10.5 or later, the deployment target defaults
6501 # to the OS version, if on x86, and 10.4, the deployment
6502 # target defaults to 10.4. Don't you love it?
6503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6506 10.[012]*)
6507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6508 10.*)
6509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6510 esac
6511 ;;
6512 esac
6513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6514 _lt_dar_single_mod='$single_module'
6515 fi
6516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6518 else
6519 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6520 fi
6521 if test "$DSYMUTIL" != ":"; then
6522 _lt_dsymutil='~$DSYMUTIL $lib || :'
6523 else
6524 _lt_dsymutil=
6525 fi
6526 ;;
6527 esac
d9898ee8 6528
8d138742
CE
6529ac_ext=c
6530ac_cpp='$CPP $CPPFLAGS'
6531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6535$as_echo_n "checking how to run the C preprocessor... " >&6; }
6536# On Suns, sometimes $CPP names a directory.
6537if test -n "$CPP" && test -d "$CPP"; then
6538 CPP=
d9898ee8 6539fi
8d138742
CE
6540if test -z "$CPP"; then
6541 if test "${ac_cv_prog_CPP+set}" = set; then
6542 $as_echo_n "(cached) " >&6
d9898ee8 6543else
8d138742
CE
6544 # Double quotes because CPP needs to be expanded
6545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6546 do
6547 ac_preproc_ok=false
6548for ac_c_preproc_warn_flag in '' yes
6549do
6550 # Use a header file that comes with gcc, so configuring glibc
6551 # with a fresh cross-compiler works.
6552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6553 # <limits.h> exists even on freestanding compilers.
6554 # On the NeXT, cc -E runs the code through the compiler's parser,
6555 # not just through cpp. "Syntax error" is here to catch this case.
6556 cat >conftest.$ac_ext <<_ACEOF
6557/* confdefs.h. */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h. */
6562#ifdef __STDC__
6563# include <limits.h>
6564#else
6565# include <assert.h>
6566#endif
6567 Syntax error
6568_ACEOF
6569if { (ac_try="$ac_cpp conftest.$ac_ext"
6570case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575$as_echo "$ac_try_echo") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null && {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 }; then
6586 :
6587else
6588 $as_echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6590
8d138742
CE
6591 # Broken: fails on valid input.
6592continue
6593fi
d9898ee8 6594
8d138742 6595rm -f conftest.err conftest.$ac_ext
d9898ee8 6596
8d138742
CE
6597 # OK, works on sane cases. Now check whether nonexistent headers
6598 # can be detected and how.
6599 cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605#include <ac_nonexistent.h>
6606_ACEOF
6607if { (ac_try="$ac_cpp conftest.$ac_ext"
6608case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613$as_echo "$ac_try_echo") >&5
6614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null && {
6621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 }; then
6624 # Broken: success on invalid input.
6625continue
6626else
6627 $as_echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6629
8d138742
CE
6630 # Passes both tests.
6631ac_preproc_ok=:
6632break
6633fi
d9898ee8 6634
8d138742 6635rm -f conftest.err conftest.$ac_ext
d9898ee8 6636
8d138742
CE
6637done
6638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6639rm -f conftest.err conftest.$ac_ext
6640if $ac_preproc_ok; then
6641 break
6642fi
d9898ee8 6643
8d138742
CE
6644 done
6645 ac_cv_prog_CPP=$CPP
d9898ee8 6646
8d138742
CE
6647fi
6648 CPP=$ac_cv_prog_CPP
6649else
6650 ac_cv_prog_CPP=$CPP
6651fi
6652{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6653$as_echo "$CPP" >&6; }
6654ac_preproc_ok=false
6655for ac_c_preproc_warn_flag in '' yes
6656do
6657 # Use a header file that comes with gcc, so configuring glibc
6658 # with a fresh cross-compiler works.
6659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6660 # <limits.h> exists even on freestanding compilers.
6661 # On the NeXT, cc -E runs the code through the compiler's parser,
6662 # not just through cpp. "Syntax error" is here to catch this case.
6663 cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h. */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h. */
6669#ifdef __STDC__
6670# include <limits.h>
6671#else
6672# include <assert.h>
6673#endif
6674 Syntax error
6675_ACEOF
6676if { (ac_try="$ac_cpp conftest.$ac_ext"
6677case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6680esac
6681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6682$as_echo "$ac_try_echo") >&5
6683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } >/dev/null && {
6690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 }; then
6693 :
6694else
6695 $as_echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6697
8d138742
CE
6698 # Broken: fails on valid input.
6699continue
6700fi
d9898ee8 6701
8d138742 6702rm -f conftest.err conftest.$ac_ext
d9898ee8 6703
8d138742
CE
6704 # OK, works on sane cases. Now check whether nonexistent headers
6705 # can be detected and how.
6706 cat >conftest.$ac_ext <<_ACEOF
6707/* confdefs.h. */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h. */
6712#include <ac_nonexistent.h>
6713_ACEOF
6714if { (ac_try="$ac_cpp conftest.$ac_ext"
6715case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
6719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6720$as_echo "$ac_try_echo") >&5
6721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } >/dev/null && {
6728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 }; then
6731 # Broken: success on invalid input.
6732continue
6733else
6734 $as_echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6736
8d138742
CE
6737 # Passes both tests.
6738ac_preproc_ok=:
6739break
6740fi
d9898ee8 6741
8d138742 6742rm -f conftest.err conftest.$ac_ext
d9898ee8 6743
8d138742
CE
6744done
6745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6746rm -f conftest.err conftest.$ac_ext
6747if $ac_preproc_ok; then
6748 :
6749else
6750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6752{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6753See \`config.log' for more details." >&5
6754$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6755See \`config.log' for more details." >&2;}
6756 { (exit 1); exit 1; }; }; }
6757fi
d9898ee8 6758
8d138742
CE
6759ac_ext=c
6760ac_cpp='$CPP $CPPFLAGS'
6761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6764
d9898ee8 6765
8d138742
CE
6766{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6767$as_echo_n "checking for ANSI C header files... " >&6; }
6768if test "${ac_cv_header_stdc+set}" = set; then
6769 $as_echo_n "(cached) " >&6
6770else
6771 cat >conftest.$ac_ext <<_ACEOF
6772/* confdefs.h. */
6773_ACEOF
6774cat confdefs.h >>conftest.$ac_ext
6775cat >>conftest.$ac_ext <<_ACEOF
6776/* end confdefs.h. */
6777#include <stdlib.h>
6778#include <stdarg.h>
6779#include <string.h>
6780#include <float.h>
d9898ee8 6781
8d138742
CE
6782int
6783main ()
6784{
d9898ee8 6785
8d138742
CE
6786 ;
6787 return 0;
6788}
6789_ACEOF
6790rm -f conftest.$ac_objext
6791if { (ac_try="$ac_compile"
6792case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795esac
6796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6797$as_echo "$ac_try_echo") >&5
6798 (eval "$ac_compile") 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } && {
6805 test -z "$ac_c_werror_flag" ||
6806 test ! -s conftest.err
6807 } && test -s conftest.$ac_objext; then
6808 ac_cv_header_stdc=yes
6809else
6810 $as_echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6812
8d138742
CE
6813 ac_cv_header_stdc=no
6814fi
d9898ee8 6815
8d138742 6816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6817
8d138742
CE
6818if test $ac_cv_header_stdc = yes; then
6819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6820 cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h. */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h. */
6826#include <string.h>
d9898ee8 6827
8d138742
CE
6828_ACEOF
6829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "memchr" >/dev/null 2>&1; then
6831 :
6832else
6833 ac_cv_header_stdc=no
6834fi
6835rm -f conftest*
d9898ee8 6836
8d138742 6837fi
d9898ee8 6838
8d138742
CE
6839if test $ac_cv_header_stdc = yes; then
6840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847#include <stdlib.h>
d9898ee8 6848
8d138742
CE
6849_ACEOF
6850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6851 $EGREP "free" >/dev/null 2>&1; then
6852 :
6853else
6854 ac_cv_header_stdc=no
6855fi
6856rm -f conftest*
d9898ee8 6857
8d138742 6858fi
d9898ee8 6859
8d138742
CE
6860if test $ac_cv_header_stdc = yes; then
6861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6862 if test "$cross_compiling" = yes; then
6863 :
6864else
6865 cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
6871#include <ctype.h>
6872#include <stdlib.h>
6873#if ((' ' & 0x0FF) == 0x020)
6874# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6875# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6876#else
6877# define ISLOWER(c) \
6878 (('a' <= (c) && (c) <= 'i') \
6879 || ('j' <= (c) && (c) <= 'r') \
6880 || ('s' <= (c) && (c) <= 'z'))
6881# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6882#endif
d9898ee8 6883
8d138742
CE
6884#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6885int
6886main ()
6887{
6888 int i;
6889 for (i = 0; i < 256; i++)
6890 if (XOR (islower (i), ISLOWER (i))
6891 || toupper (i) != TOUPPER (i))
6892 return 2;
6893 return 0;
6894}
6895_ACEOF
6896rm -f conftest$ac_exeext
6897if { (ac_try="$ac_link"
6898case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901esac
6902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6903$as_echo "$ac_try_echo") >&5
6904 (eval "$ac_link") 2>&5
6905 ac_status=$?
6906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6908 { (case "(($ac_try" in
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6911esac
6912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913$as_echo "$ac_try_echo") >&5
6914 (eval "$ac_try") 2>&5
6915 ac_status=$?
6916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 :
6919else
6920 $as_echo "$as_me: program exited with status $ac_status" >&5
6921$as_echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6923
8d138742
CE
6924( exit $ac_status )
6925ac_cv_header_stdc=no
6926fi
6927rm -rf conftest.dSYM
6928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929fi
d9898ee8 6930
d9898ee8 6931
8d138742
CE
6932fi
6933fi
6934{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6935$as_echo "$ac_cv_header_stdc" >&6; }
6936if test $ac_cv_header_stdc = yes; then
d9898ee8 6937
8d138742
CE
6938cat >>confdefs.h <<\_ACEOF
6939#define STDC_HEADERS 1
6940_ACEOF
d9898ee8 6941
8d138742 6942fi
d9898ee8 6943
8d138742 6944# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 6945
d9898ee8 6946
d9898ee8 6947
d9898ee8 6948
d9898ee8 6949
d9898ee8 6950
d9898ee8 6951
d9898ee8 6952
d9898ee8 6953
8d138742
CE
6954for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6955 inttypes.h stdint.h unistd.h
6956do
6957as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6959$as_echo_n "checking for $ac_header... " >&6; }
6960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6961 $as_echo_n "(cached) " >&6
6962else
6963 cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
6969$ac_includes_default
d9898ee8 6970
8d138742
CE
6971#include <$ac_header>
6972_ACEOF
6973rm -f conftest.$ac_objext
6974if { (ac_try="$ac_compile"
6975case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978esac
6979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980$as_echo "$ac_try_echo") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 eval "$as_ac_Header=yes"
6992else
6993 $as_echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6995
8d138742
CE
6996 eval "$as_ac_Header=no"
6997fi
d9898ee8 6998
8d138742
CE
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000fi
7001ac_res=`eval 'as_val=${'$as_ac_Header'}
7002 $as_echo "$as_val"'`
7003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7004$as_echo "$ac_res" >&6; }
7005as_val=`eval 'as_val=${'$as_ac_Header'}
7006 $as_echo "$as_val"'`
7007 if test "x$as_val" = x""yes; then
7008 cat >>confdefs.h <<_ACEOF
7009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010_ACEOF
d9898ee8 7011
8d138742 7012fi
d9898ee8 7013
8d138742 7014done
d9898ee8 7015
d9898ee8 7016
d9898ee8 7017
8d138742
CE
7018for ac_header in dlfcn.h
7019do
7020as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7021{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7022$as_echo_n "checking for $ac_header... " >&6; }
7023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7024 $as_echo_n "(cached) " >&6
7025else
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032$ac_includes_default
d9898ee8 7033
8d138742
CE
7034#include <$ac_header>
7035_ACEOF
7036rm -f conftest.$ac_objext
7037if { (ac_try="$ac_compile"
7038case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041esac
7042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7043$as_echo "$ac_try_echo") >&5
7044 (eval "$ac_compile") 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest.$ac_objext; then
7054 eval "$as_ac_Header=yes"
7055else
7056 $as_echo "$as_me: failed program was:" >&5
7057sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7058
8d138742
CE
7059 eval "$as_ac_Header=no"
7060fi
d9898ee8 7061
8d138742
CE
7062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063fi
7064ac_res=`eval 'as_val=${'$as_ac_Header'}
7065 $as_echo "$as_val"'`
7066 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7067$as_echo "$ac_res" >&6; }
7068as_val=`eval 'as_val=${'$as_ac_Header'}
7069 $as_echo "$as_val"'`
7070 if test "x$as_val" = x""yes; then
7071 cat >>confdefs.h <<_ACEOF
7072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073_ACEOF
d9898ee8 7074
8d138742 7075fi
d9898ee8 7076
8d138742 7077done
d9898ee8 7078
d9898ee8 7079
d9898ee8 7080
8d138742 7081# Set options
d9898ee8 7082
d9898ee8 7083
d9898ee8 7084
8d138742 7085 enable_dlopen=no
d9898ee8 7086
d9898ee8 7087
8d138742 7088 enable_win32_dll=no
d9898ee8 7089
d9898ee8 7090
8d138742
CE
7091 # Check whether --enable-shared was given.
7092if test "${enable_shared+set}" = set; then
7093 enableval=$enable_shared; p=${PACKAGE-default}
7094 case $enableval in
7095 yes) enable_shared=yes ;;
7096 no) enable_shared=no ;;
7097 *)
7098 enable_shared=no
7099 # Look at the argument we got. We use all the common list separators.
7100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7101 for pkg in $enableval; do
7102 IFS="$lt_save_ifs"
7103 if test "X$pkg" = "X$p"; then
7104 enable_shared=yes
7105 fi
7106 done
7107 IFS="$lt_save_ifs"
7108 ;;
7109 esac
7110else
7111 enable_shared=yes
7112fi
d9898ee8 7113
d9898ee8 7114
d9898ee8 7115
d9898ee8 7116
d9898ee8 7117
d9898ee8 7118
d9898ee8 7119
d9898ee8 7120
7121
8d138742
CE
7122 # Check whether --enable-static was given.
7123if test "${enable_static+set}" = set; then
7124 enableval=$enable_static; p=${PACKAGE-default}
7125 case $enableval in
7126 yes) enable_static=yes ;;
7127 no) enable_static=no ;;
7128 *)
7129 enable_static=no
7130 # Look at the argument we got. We use all the common list separators.
7131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7132 for pkg in $enableval; do
7133 IFS="$lt_save_ifs"
7134 if test "X$pkg" = "X$p"; then
7135 enable_static=yes
7136 fi
7137 done
7138 IFS="$lt_save_ifs"
7139 ;;
7140 esac
d9898ee8 7141else
8d138742 7142 enable_static=yes
d9898ee8 7143fi
7144
7145
d9898ee8 7146
d9898ee8 7147
d9898ee8 7148
d9898ee8 7149
d9898ee8 7150
d9898ee8 7151
d9898ee8 7152
d9898ee8 7153
8d138742
CE
7154# Check whether --with-pic was given.
7155if test "${with_pic+set}" = set; then
7156 withval=$with_pic; pic_mode="$withval"
7157else
7158 pic_mode=default
7159fi
d9898ee8 7160
7161
8d138742 7162test -z "$pic_mode" && pic_mode=default
d9898ee8 7163
d9898ee8 7164
7165
d9898ee8 7166
7167
d9898ee8 7168
d9898ee8 7169
8d138742
CE
7170 # Check whether --enable-fast-install was given.
7171if test "${enable_fast_install+set}" = set; then
7172 enableval=$enable_fast_install; p=${PACKAGE-default}
7173 case $enableval in
7174 yes) enable_fast_install=yes ;;
7175 no) enable_fast_install=no ;;
7176 *)
7177 enable_fast_install=no
7178 # Look at the argument we got. We use all the common list separators.
7179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7180 for pkg in $enableval; do
7181 IFS="$lt_save_ifs"
7182 if test "X$pkg" = "X$p"; then
7183 enable_fast_install=yes
7184 fi
7185 done
7186 IFS="$lt_save_ifs"
7187 ;;
7188 esac
7189else
7190 enable_fast_install=yes
7191fi
d9898ee8 7192
d9898ee8 7193
d9898ee8 7194
d9898ee8 7195
d9898ee8 7196
d9898ee8 7197
d9898ee8 7198
d9898ee8 7199
d9898ee8 7200
d9898ee8 7201
d9898ee8 7202
8d138742
CE
7203# This can be used to rebuild libtool when needed
7204LIBTOOL_DEPS="$ltmain"
d9898ee8 7205
8d138742
CE
7206# Always use our own libtool.
7207LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7208
d9898ee8 7209
d9898ee8 7210
d9898ee8 7211
d9898ee8 7212
d9898ee8 7213
d9898ee8 7214
d9898ee8 7215
d9898ee8 7216
d9898ee8 7217
ac40fd9e 7218
d9898ee8 7219
d9898ee8 7220
d9898ee8 7221
d9898ee8 7222
d9898ee8 7223
d9898ee8 7224
d9898ee8 7225
d9898ee8 7226
d9898ee8 7227
d9898ee8 7228
d9898ee8 7229
d9898ee8 7230
d9898ee8 7231
d9898ee8 7232
8d138742
CE
7233test -z "$LN_S" && LN_S="ln -s"
7234
d9898ee8 7235
d9898ee8 7236
d9898ee8 7237
7238
d9898ee8 7239
d9898ee8 7240
d9898ee8 7241
7242
8d138742
CE
7243
7244
7245
7246
7247
7248if test -n "${ZSH_VERSION+set}" ; then
7249 setopt NO_GLOB_SUBST
7250fi
7251
7252{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7253$as_echo_n "checking for objdir... " >&6; }
7254if test "${lt_cv_objdir+set}" = set; then
7255 $as_echo_n "(cached) " >&6
d9898ee8 7256else
8d138742
CE
7257 rm -f .libs 2>/dev/null
7258mkdir .libs 2>/dev/null
7259if test -d .libs; then
7260 lt_cv_objdir=.libs
7261else
7262 # MS-DOS does not allow filenames that begin with a dot.
7263 lt_cv_objdir=_libs
d9898ee8 7264fi
8d138742
CE
7265rmdir .libs 2>/dev/null
7266fi
7267{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7268$as_echo "$lt_cv_objdir" >&6; }
7269objdir=$lt_cv_objdir
d9898ee8 7270
d9898ee8 7271
d9898ee8 7272
d9898ee8 7273
d9898ee8 7274
8d138742
CE
7275cat >>confdefs.h <<_ACEOF
7276#define LT_OBJDIR "$lt_cv_objdir/"
7277_ACEOF
d9898ee8 7278
d9898ee8 7279
d9898ee8 7280
d9898ee8 7281
d9898ee8 7282
d9898ee8 7283
d9898ee8 7284
d9898ee8 7285
d9898ee8 7286
d9898ee8 7287
d9898ee8 7288
d9898ee8 7289
d9898ee8 7290
d9898ee8 7291
d9898ee8 7292
d9898ee8 7293
d9898ee8 7294
8d138742
CE
7295case $host_os in
7296aix3*)
7297 # AIX sometimes has problems with the GCC collect2 program. For some
7298 # reason, if we set the COLLECT_NAMES environment variable, the problems
7299 # vanish in a puff of smoke.
7300 if test "X${COLLECT_NAMES+set}" != Xset; then
7301 COLLECT_NAMES=
7302 export COLLECT_NAMES
7303 fi
7304 ;;
7305esac
d9898ee8 7306
8d138742
CE
7307# Sed substitution that helps us do robust quoting. It backslashifies
7308# metacharacters that are still active within double-quoted strings.
7309sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 7310
8d138742
CE
7311# Same as above, but do not quote variable references.
7312double_quote_subst='s/\(["`\\]\)/\\\1/g'
7313
7314# Sed substitution to delay expansion of an escaped shell variable in a
7315# double_quote_subst'ed string.
7316delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7317
7318# Sed substitution to delay expansion of an escaped single quote.
7319delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7320
7321# Sed substitution to avoid accidental globbing in evaled expressions
7322no_glob_subst='s/\*/\\\*/g'
d9898ee8 7323
8d138742
CE
7324# Global variables:
7325ofile=libtool
7326can_build_shared=yes
d9898ee8 7327
8d138742
CE
7328# All known linkers require a `.a' archive for static linking (except MSVC,
7329# which needs '.lib').
7330libext=a
d9898ee8 7331
8d138742 7332with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7333
8d138742
CE
7334old_CC="$CC"
7335old_CFLAGS="$CFLAGS"
d9898ee8 7336
8d138742
CE
7337# Set sane defaults for various variables
7338test -z "$CC" && CC=cc
7339test -z "$LTCC" && LTCC=$CC
7340test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7341test -z "$LD" && LD=ld
7342test -z "$ac_objext" && ac_objext=o
d9898ee8 7343
8d138742
CE
7344for cc_temp in $compiler""; do
7345 case $cc_temp in
7346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348 \-*) ;;
7349 *) break;;
7350 esac
7351done
7352cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7353
7354
7355# Only perform the check for file, if the check method requires it
7356test -z "$MAGIC_CMD" && MAGIC_CMD=file
7357case $deplibs_check_method in
7358file_magic*)
7359 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7360 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7361$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7362if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7363 $as_echo_n "(cached) " >&6
7364else
7365 case $MAGIC_CMD in
7366[\\/*] | ?:[\\/]*)
7367 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7368 ;;
7369*)
7370 lt_save_MAGIC_CMD="$MAGIC_CMD"
7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7373 for ac_dir in $ac_dummy; do
7374 IFS="$lt_save_ifs"
7375 test -z "$ac_dir" && ac_dir=.
7376 if test -f $ac_dir/${ac_tool_prefix}file; then
7377 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7378 if test -n "$file_magic_test_file"; then
7379 case $deplibs_check_method in
7380 "file_magic "*)
7381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7384 $EGREP "$file_magic_regex" > /dev/null; then
7385 :
d9898ee8 7386 else
8d138742 7387 cat <<_LT_EOF 1>&2
d9898ee8 7388
8d138742
CE
7389*** Warning: the command libtool uses to detect shared libraries,
7390*** $file_magic_cmd, produces output that libtool cannot recognize.
7391*** The result is that libtool may fail to recognize shared libraries
7392*** as such. This will affect the creation of libtool libraries that
7393*** depend on shared libraries, but programs linked with such libtool
7394*** libraries will work regardless of this problem. Nevertheless, you
7395*** may want to report the problem to your system manager and/or to
7396*** bug-libtool@gnu.org
d9898ee8 7397
8d138742
CE
7398_LT_EOF
7399 fi ;;
7400 esac
7401 fi
7402 break
7403 fi
7404 done
7405 IFS="$lt_save_ifs"
7406 MAGIC_CMD="$lt_save_MAGIC_CMD"
7407 ;;
dd184caf 7408esac
ac40fd9e 7409fi
8d138742
CE
7410
7411MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412if test -n "$MAGIC_CMD"; then
7413 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7414$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7415else
8d138742
CE
7416 { $as_echo "$as_me:$LINENO: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
d9898ee8 7419
dd184caf 7420
dd184caf 7421
d9898ee8 7422
d9898ee8 7423
8d138742
CE
7424if test -z "$lt_cv_path_MAGIC_CMD"; then
7425 if test -n "$ac_tool_prefix"; then
7426 { $as_echo "$as_me:$LINENO: checking for file" >&5
7427$as_echo_n "checking for file... " >&6; }
7428if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429 $as_echo_n "(cached) " >&6
7430else
7431 case $MAGIC_CMD in
7432[\\/*] | ?:[\\/]*)
7433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434 ;;
7435*)
7436 lt_save_MAGIC_CMD="$MAGIC_CMD"
7437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439 for ac_dir in $ac_dummy; do
7440 IFS="$lt_save_ifs"
7441 test -z "$ac_dir" && ac_dir=.
7442 if test -f $ac_dir/file; then
7443 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7444 if test -n "$file_magic_test_file"; then
7445 case $deplibs_check_method in
7446 "file_magic "*)
7447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450 $EGREP "$file_magic_regex" > /dev/null; then
7451 :
7452 else
7453 cat <<_LT_EOF 1>&2
d9898ee8 7454
8d138742
CE
7455*** Warning: the command libtool uses to detect shared libraries,
7456*** $file_magic_cmd, produces output that libtool cannot recognize.
7457*** The result is that libtool may fail to recognize shared libraries
7458*** as such. This will affect the creation of libtool libraries that
7459*** depend on shared libraries, but programs linked with such libtool
7460*** libraries will work regardless of this problem. Nevertheless, you
7461*** may want to report the problem to your system manager and/or to
7462*** bug-libtool@gnu.org
7463
7464_LT_EOF
7465 fi ;;
7466 esac
7467 fi
7468 break
7469 fi
7470 done
7471 IFS="$lt_save_ifs"
7472 MAGIC_CMD="$lt_save_MAGIC_CMD"
7473 ;;
7474esac
ac40fd9e 7475fi
8d138742
CE
7476
7477MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478if test -n "$MAGIC_CMD"; then
7479 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7481else
8d138742
CE
7482 { $as_echo "$as_me:$LINENO: result: no" >&5
7483$as_echo "no" >&6; }
7484fi
d9898ee8 7485
dd184caf 7486
8d138742
CE
7487 else
7488 MAGIC_CMD=:
7489 fi
d9898ee8 7490fi
dd184caf 7491
8d138742
CE
7492 fi
7493 ;;
7494esac
d9898ee8 7495
8d138742 7496# Use C for the default configuration in the libtool script
d9898ee8 7497
8d138742
CE
7498lt_save_CC="$CC"
7499ac_ext=c
7500ac_cpp='$CPP $CPPFLAGS'
7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7504
d9898ee8 7505
8d138742
CE
7506# Source file extension for C test sources.
7507ac_ext=c
d9898ee8 7508
8d138742
CE
7509# Object file extension for compiled C test sources.
7510objext=o
7511objext=$objext
d9898ee8 7512
8d138742
CE
7513# Code to be used in simple compile tests
7514lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7515
8d138742
CE
7516# Code to be used in simple link tests
7517lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7518
d9898ee8 7519
d9898ee8 7520
d9898ee8 7521
d9898ee8 7522
d9898ee8 7523
d9898ee8 7524
8d138742
CE
7525# If no C compiler was specified, use CC.
7526LTCC=${LTCC-"$CC"}
d9898ee8 7527
8d138742
CE
7528# If no C compiler flags were specified, use CFLAGS.
7529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7530
8d138742
CE
7531# Allow CC to be a program name with arguments.
7532compiler=$CC
d9898ee8 7533
8d138742
CE
7534# Save the default compiler, since it gets overwritten when the other
7535# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7536compiler_DEFAULT=$CC
d9898ee8 7537
8d138742
CE
7538# save warnings/boilerplate of simple test code
7539ac_outfile=conftest.$ac_objext
7540echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7541eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7542_lt_compiler_boilerplate=`cat conftest.err`
7543$RM conftest*
d9898ee8 7544
8d138742
CE
7545ac_outfile=conftest.$ac_objext
7546echo "$lt_simple_link_test_code" >conftest.$ac_ext
7547eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7548_lt_linker_boilerplate=`cat conftest.err`
7549$RM -r conftest*
d9898ee8 7550
d9898ee8 7551
8d138742 7552if test -n "$compiler"; then
d9898ee8 7553
8d138742 7554lt_prog_compiler_no_builtin_flag=
d9898ee8 7555
8d138742
CE
7556if test "$GCC" = yes; then
7557 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7558
8d138742
CE
7559 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7560$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7561if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7562 $as_echo_n "(cached) " >&6
7563else
7564 lt_cv_prog_compiler_rtti_exceptions=no
7565 ac_outfile=conftest.$ac_objext
7566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7567 lt_compiler_flag="-fno-rtti -fno-exceptions"
7568 # Insert the option either (1) after the last *FLAGS variable, or
7569 # (2) before a word containing "conftest.", or (3) at the end.
7570 # Note that $ac_compile itself does not contain backslashes and begins
7571 # with a dollar sign (not a hyphen), so the echo should work correctly.
7572 # The option is referenced via a variable to avoid confusing sed.
7573 lt_compile=`echo "$ac_compile" | $SED \
7574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7576 -e 's:$: $lt_compiler_flag:'`
7577 (eval echo "\"\$as_me:7577: $lt_compile\"" >&5)
7578 (eval "$lt_compile" 2>conftest.err)
7579 ac_status=$?
7580 cat conftest.err >&5
7581 echo "$as_me:7581: \$? = $ac_status" >&5
7582 if (exit $ac_status) && test -s "$ac_outfile"; then
7583 # The compiler can only warn and ignore the option if not recognized
7584 # So say no if there are warnings other than the usual output.
7585 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7588 lt_cv_prog_compiler_rtti_exceptions=yes
7589 fi
7590 fi
7591 $RM conftest*
d9898ee8 7592
8d138742
CE
7593fi
7594{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7595$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7596
8d138742
CE
7597if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7599else
7600 :
7601fi
d9898ee8 7602
8d138742 7603fi
d9898ee8 7604
d9898ee8 7605
d9898ee8 7606
d9898ee8 7607
d9898ee8 7608
d9898ee8 7609
8d138742
CE
7610 lt_prog_compiler_wl=
7611lt_prog_compiler_pic=
7612lt_prog_compiler_static=
7613
7614{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7615$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7616
7617 if test "$GCC" = yes; then
7618 lt_prog_compiler_wl='-Wl,'
7619 lt_prog_compiler_static='-static'
d9898ee8 7620
8d138742
CE
7621 case $host_os in
7622 aix*)
7623 # All AIX code is PIC.
7624 if test "$host_cpu" = ia64; then
7625 # AIX 5 now supports IA64 processor
7626 lt_prog_compiler_static='-Bstatic'
d9898ee8 7627 fi
7628 ;;
7629
8d138742
CE
7630 amigaos*)
7631 case $host_cpu in
7632 powerpc)
7633 # see comment about AmigaOS4 .so support
7634 lt_prog_compiler_pic='-fPIC'
7635 ;;
7636 m68k)
7637 # FIXME: we need at least 68020 code to build shared libraries, but
7638 # adding the `-m68020' flag to GCC prevents building anything better,
7639 # like `-m68040'.
7640 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7641 ;;
7642 esac
d9898ee8 7643 ;;
7644
8d138742
CE
7645 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7646 # PIC is the default for these OSes.
d9898ee8 7647 ;;
d9898ee8 7648
8d138742
CE
7649 mingw* | cygwin* | pw32* | os2* | cegcc*)
7650 # This hack is so that the source file can tell whether it is being
7651 # built for inclusion in a dll (and should export symbols for example).
7652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7653 # (--disable-auto-import) libraries
7654 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 7655 ;;
d9898ee8 7656
8d138742
CE
7657 darwin* | rhapsody*)
7658 # PIC is the default on this platform
7659 # Common symbols not allowed in MH_DYLIB files
7660 lt_prog_compiler_pic='-fno-common'
d9898ee8 7661 ;;
d9898ee8 7662
8d138742
CE
7663 hpux*)
7664 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7665 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7666 # sets the default TLS model and affects inlining.
7667 case $host_cpu in
7668 hppa*64*)
7669 # +Z the default
7670 ;;
7671 *)
7672 lt_prog_compiler_pic='-fPIC'
7673 ;;
7674 esac
7675 ;;
ac40fd9e 7676
8d138742
CE
7677 interix[3-9]*)
7678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7679 # Instead, we relocate shared libraries at runtime.
7680 ;;
d9898ee8 7681
8d138742
CE
7682 msdosdjgpp*)
7683 # Just because we use GCC doesn't mean we suddenly get shared libraries
7684 # on systems that don't support them.
7685 lt_prog_compiler_can_build_shared=no
7686 enable_shared=no
7687 ;;
d9898ee8 7688
8d138742
CE
7689 *nto* | *qnx*)
7690 # QNX uses GNU C++, but need to define -shared option too, otherwise
7691 # it will coredump.
7692 lt_prog_compiler_pic='-fPIC -shared'
7693 ;;
d9898ee8 7694
8d138742
CE
7695 sysv4*MP*)
7696 if test -d /usr/nec; then
7697 lt_prog_compiler_pic=-Kconform_pic
7698 fi
7699 ;;
d9898ee8 7700
8d138742
CE
7701 *)
7702 lt_prog_compiler_pic='-fPIC'
7703 ;;
7704 esac
d9898ee8 7705 else
8d138742 7706 # PORTME Check for flag to pass linker flags through the system compiler.
d9898ee8 7707 case $host_os in
8d138742
CE
7708 aix*)
7709 lt_prog_compiler_wl='-Wl,'
7710 if test "$host_cpu" = ia64; then
7711 # AIX 5 now supports IA64 processor
7712 lt_prog_compiler_static='-Bstatic'
d9898ee8 7713 else
8d138742 7714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 7715 fi
7716 ;;
d9898ee8 7717
8d138742
CE
7718 mingw* | cygwin* | pw32* | os2* | cegcc*)
7719 # This hack is so that the source file can tell whether it is being
7720 # built for inclusion in a dll (and should export symbols for example).
7721 lt_prog_compiler_pic='-DDLL_EXPORT'
7722 ;;
d9898ee8 7723
8d138742
CE
7724 hpux9* | hpux10* | hpux11*)
7725 lt_prog_compiler_wl='-Wl,'
7726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7727 # not for PA HP-UX.
7728 case $host_cpu in
7729 hppa*64*|ia64*)
7730 # +Z the default
7731 ;;
7732 *)
7733 lt_prog_compiler_pic='+Z'
7734 ;;
7735 esac
7736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7737 lt_prog_compiler_static='${wl}-a ${wl}archive'
7738 ;;
d9898ee8 7739
8d138742
CE
7740 irix5* | irix6* | nonstopux*)
7741 lt_prog_compiler_wl='-Wl,'
7742 # PIC (with -KPIC) is the default.
7743 lt_prog_compiler_static='-non_shared'
7744 ;;
7745
7746 linux* | k*bsd*-gnu)
7747 case $cc_basename in
7748 # old Intel for x86_64 which still supported -KPIC.
7749 ecc*)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-KPIC'
7752 lt_prog_compiler_static='-static'
7753 ;;
7754 # icc used to be incompatible with GCC.
7755 # ICC 10 doesn't accept -KPIC any more.
7756 icc* | ifort*)
7757 lt_prog_compiler_wl='-Wl,'
7758 lt_prog_compiler_pic='-fPIC'
7759 lt_prog_compiler_static='-static'
7760 ;;
7761 # Lahey Fortran 8.1.
7762 lf95*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='--shared'
7765 lt_prog_compiler_static='--static'
7766 ;;
7767 pgcc* | pgf77* | pgf90* | pgf95*)
7768 # Portland Group compilers (*not* the Pentium gcc compiler,
7769 # which looks to be a dead project)
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='-fpic'
7772 lt_prog_compiler_static='-Bstatic'
7773 ;;
7774 ccc*)
7775 lt_prog_compiler_wl='-Wl,'
7776 # All Alpha code is PIC.
7777 lt_prog_compiler_static='-non_shared'
7778 ;;
7779 xl*)
7780 # IBM XL C 8.0/Fortran 10.1 on PPC
7781 lt_prog_compiler_wl='-Wl,'
7782 lt_prog_compiler_pic='-qpic'
7783 lt_prog_compiler_static='-qstaticlink'
7784 ;;
7785 *)
7786 case `$CC -V 2>&1 | sed 5q` in
7787 *Sun\ C*)
7788 # Sun C 5.9
7789 lt_prog_compiler_pic='-KPIC'
7790 lt_prog_compiler_static='-Bstatic'
7791 lt_prog_compiler_wl='-Wl,'
7792 ;;
7793 *Sun\ F*)
7794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 lt_prog_compiler_wl=''
7798 ;;
7799 esac
7800 ;;
7801 esac
7802 ;;
d9898ee8 7803
8d138742
CE
7804 newsos6)
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 ;;
d9898ee8 7808
8d138742
CE
7809 *nto* | *qnx*)
7810 # QNX uses GNU C++, but need to define -shared option too, otherwise
7811 # it will coredump.
7812 lt_prog_compiler_pic='-fPIC -shared'
7813 ;;
d9898ee8 7814
8d138742
CE
7815 osf3* | osf4* | osf5*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # All OSF/1 code is PIC.
7818 lt_prog_compiler_static='-non_shared'
d9898ee8 7819 ;;
8d138742
CE
7820
7821 rdos*)
7822 lt_prog_compiler_static='-non_shared'
d9898ee8 7823 ;;
8d138742
CE
7824
7825 solaris*)
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7828 case $cc_basename in
7829 f77* | f90* | f95*)
7830 lt_prog_compiler_wl='-Qoption ld ';;
7831 *)
7832 lt_prog_compiler_wl='-Wl,';;
7833 esac
d9898ee8 7834 ;;
d9898ee8 7835
8d138742
CE
7836 sunos4*)
7837 lt_prog_compiler_wl='-Qoption ld '
7838 lt_prog_compiler_pic='-PIC'
7839 lt_prog_compiler_static='-Bstatic'
7840 ;;
d9898ee8 7841
8d138742
CE
7842 sysv4 | sysv4.2uw2* | sysv4.3*)
7843 lt_prog_compiler_wl='-Wl,'
7844 lt_prog_compiler_pic='-KPIC'
7845 lt_prog_compiler_static='-Bstatic'
7846 ;;
ac40fd9e 7847
8d138742
CE
7848 sysv4*MP*)
7849 if test -d /usr/nec ;then
7850 lt_prog_compiler_pic='-Kconform_pic'
7851 lt_prog_compiler_static='-Bstatic'
7852 fi
7853 ;;
d9898ee8 7854
8d138742
CE
7855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7856 lt_prog_compiler_wl='-Wl,'
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-Bstatic'
7859 ;;
d9898ee8 7860
8d138742
CE
7861 unicos*)
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_can_build_shared=no
7864 ;;
d9898ee8 7865
8d138742
CE
7866 uts4*)
7867 lt_prog_compiler_pic='-pic'
7868 lt_prog_compiler_static='-Bstatic'
d9898ee8 7869 ;;
8d138742
CE
7870
7871 *)
7872 lt_prog_compiler_can_build_shared=no
d9898ee8 7873 ;;
8d138742
CE
7874 esac
7875 fi
7876
7877case $host_os in
7878 # For platforms which do not support PIC, -DPIC is meaningless:
7879 *djgpp*)
7880 lt_prog_compiler_pic=
d9898ee8 7881 ;;
8d138742
CE
7882 *)
7883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
d9898ee8 7884 ;;
8d138742
CE
7885esac
7886{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7887$as_echo "$lt_prog_compiler_pic" >&6; }
d9898ee8 7888
d9898ee8 7889
d9898ee8 7890
d9898ee8 7891
d9898ee8 7892
d9898ee8 7893
8d138742
CE
7894#
7895# Check to make sure the PIC flag actually works.
7896#
7897if test -n "$lt_prog_compiler_pic"; then
7898 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7899$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7900if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7901 $as_echo_n "(cached) " >&6
7902else
7903 lt_cv_prog_compiler_pic_works=no
7904 ac_outfile=conftest.$ac_objext
7905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7907 # Insert the option either (1) after the last *FLAGS variable, or
7908 # (2) before a word containing "conftest.", or (3) at the end.
7909 # Note that $ac_compile itself does not contain backslashes and begins
7910 # with a dollar sign (not a hyphen), so the echo should work correctly.
7911 # The option is referenced via a variable to avoid confusing sed.
7912 lt_compile=`echo "$ac_compile" | $SED \
7913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915 -e 's:$: $lt_compiler_flag:'`
7916 (eval echo "\"\$as_me:7916: $lt_compile\"" >&5)
7917 (eval "$lt_compile" 2>conftest.err)
7918 ac_status=$?
7919 cat conftest.err >&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 if (exit $ac_status) && test -s "$ac_outfile"; then
7922 # The compiler can only warn and ignore the option if not recognized
7923 # So say no if there are warnings other than the usual output.
7924 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7927 lt_cv_prog_compiler_pic_works=yes
7928 fi
7929 fi
7930 $RM conftest*
d9898ee8 7931
8d138742
CE
7932fi
7933{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7934$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 7935
8d138742
CE
7936if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7937 case $lt_prog_compiler_pic in
7938 "" | " "*) ;;
7939 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7940 esac
7941else
7942 lt_prog_compiler_pic=
7943 lt_prog_compiler_can_build_shared=no
7944fi
d9898ee8 7945
8d138742 7946fi
d9898ee8 7947
d9898ee8 7948
d9898ee8 7949
d9898ee8 7950
d9898ee8 7951
d9898ee8 7952
8d138742
CE
7953#
7954# Check to make sure the static flag actually works.
7955#
7956wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7957{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7958$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7959if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7960 $as_echo_n "(cached) " >&6
7961else
7962 lt_cv_prog_compiler_static_works=no
7963 save_LDFLAGS="$LDFLAGS"
7964 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7967 # The linker can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 if test -s conftest.err; then
7970 # Append any errors to the config.log.
7971 cat conftest.err 1>&5
7972 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7974 if diff conftest.exp conftest.er2 >/dev/null; then
7975 lt_cv_prog_compiler_static_works=yes
7976 fi
7977 else
7978 lt_cv_prog_compiler_static_works=yes
7979 fi
7980 fi
7981 $RM -r conftest*
7982 LDFLAGS="$save_LDFLAGS"
ac40fd9e 7983
8d138742
CE
7984fi
7985{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7986$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 7987
8d138742
CE
7988if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7989 :
7990else
7991 lt_prog_compiler_static=
7992fi
d9898ee8 7993
d9898ee8 7994
d9898ee8 7995
d9898ee8 7996
d9898ee8 7997
d9898ee8 7998
8d138742
CE
7999
8000 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8001$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8002if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8003 $as_echo_n "(cached) " >&6
8004else
8005 lt_cv_prog_compiler_c_o=no
8006 $RM -r conftest 2>/dev/null
8007 mkdir conftest
8008 cd conftest
8009 mkdir out
8010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8011
8012 lt_compiler_flag="-o out/conftest2.$ac_objext"
8013 # Insert the option either (1) after the last *FLAGS variable, or
8014 # (2) before a word containing "conftest.", or (3) at the end.
8015 # Note that $ac_compile itself does not contain backslashes and begins
8016 # with a dollar sign (not a hyphen), so the echo should work correctly.
8017 lt_compile=`echo "$ac_compile" | $SED \
8018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020 -e 's:$: $lt_compiler_flag:'`
8021 (eval echo "\"\$as_me:8021: $lt_compile\"" >&5)
8022 (eval "$lt_compile" 2>out/conftest.err)
8023 ac_status=$?
8024 cat out/conftest.err >&5
8025 echo "$as_me:8025: \$? = $ac_status" >&5
8026 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8027 then
8028 # The compiler can only warn and ignore the option if not recognized
8029 # So say no if there are warnings
8030 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8033 lt_cv_prog_compiler_c_o=yes
8034 fi
8035 fi
8036 chmod u+w . 2>&5
8037 $RM conftest*
8038 # SGI C++ compiler will create directory out/ii_files/ for
8039 # template instantiation
8040 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8041 $RM out/* && rmdir out
8042 cd ..
8043 $RM -r conftest
8044 $RM conftest*
8045
d9898ee8 8046fi
8d138742
CE
8047{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8048$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8049
d9898ee8 8050
d9898ee8 8051
d9898ee8 8052
8053
d9898ee8 8054
8d138742
CE
8055 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8056$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8057if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8058 $as_echo_n "(cached) " >&6
8059else
8060 lt_cv_prog_compiler_c_o=no
8061 $RM -r conftest 2>/dev/null
8062 mkdir conftest
8063 cd conftest
8064 mkdir out
8065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8066
8d138742
CE
8067 lt_compiler_flag="-o out/conftest2.$ac_objext"
8068 # Insert the option either (1) after the last *FLAGS variable, or
8069 # (2) before a word containing "conftest.", or (3) at the end.
8070 # Note that $ac_compile itself does not contain backslashes and begins
8071 # with a dollar sign (not a hyphen), so the echo should work correctly.
8072 lt_compile=`echo "$ac_compile" | $SED \
8073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8075 -e 's:$: $lt_compiler_flag:'`
8076 (eval echo "\"\$as_me:8076: $lt_compile\"" >&5)
8077 (eval "$lt_compile" 2>out/conftest.err)
8078 ac_status=$?
8079 cat out/conftest.err >&5
8080 echo "$as_me:8080: \$? = $ac_status" >&5
8081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8082 then
8083 # The compiler can only warn and ignore the option if not recognized
8084 # So say no if there are warnings
8085 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8088 lt_cv_prog_compiler_c_o=yes
8089 fi
8090 fi
8091 chmod u+w . 2>&5
8092 $RM conftest*
8093 # SGI C++ compiler will create directory out/ii_files/ for
8094 # template instantiation
8095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8096 $RM out/* && rmdir out
8097 cd ..
8098 $RM -r conftest
8099 $RM conftest*
d9898ee8 8100
8d138742
CE
8101fi
8102{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8103$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8104
d9898ee8 8105
d9898ee8 8106
d9898ee8 8107
8d138742
CE
8108hard_links="nottested"
8109if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8110 # do not overwrite the value of need_locks provided by the user
8111 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8112$as_echo_n "checking if we can lock with hard links... " >&6; }
8113 hard_links=yes
8114 $RM conftest*
8115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8116 touch conftest.a
8117 ln conftest.a conftest.b 2>&5 || hard_links=no
8118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8119 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8120$as_echo "$hard_links" >&6; }
8121 if test "$hard_links" = no; then
8122 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8123$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8124 need_locks=warn
8125 fi
8126else
8127 need_locks=no
8128fi
d9898ee8 8129
d9898ee8 8130
d9898ee8 8131
d9898ee8 8132
d9898ee8 8133
d9898ee8 8134
8d138742
CE
8135 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8136$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8137
8d138742
CE
8138 runpath_var=
8139 allow_undefined_flag=
8140 always_export_symbols=no
8141 archive_cmds=
8142 archive_expsym_cmds=
8143 compiler_needs_object=no
8144 enable_shared_with_static_runtimes=no
8145 export_dynamic_flag_spec=
8146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8147 hardcode_automatic=no
8148 hardcode_direct=no
8149 hardcode_direct_absolute=no
8150 hardcode_libdir_flag_spec=
8151 hardcode_libdir_flag_spec_ld=
8152 hardcode_libdir_separator=
8153 hardcode_minus_L=no
8154 hardcode_shlibpath_var=unsupported
8155 inherit_rpath=no
8156 link_all_deplibs=unknown
8157 module_cmds=
8158 module_expsym_cmds=
8159 old_archive_from_new_cmds=
8160 old_archive_from_expsyms_cmds=
8161 thread_safe_flag_spec=
8162 whole_archive_flag_spec=
8163 # include_expsyms should be a list of space-separated symbols to be *always*
8164 # included in the symbol list
8165 include_expsyms=
8166 # exclude_expsyms can be an extended regexp of symbols to exclude
8167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8169 # as well as any symbol that contains `d'.
8170 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8172 # platforms (ab)use it in PIC code, but their linkers get confused if
8173 # the symbol is explicitly referenced. Since portable code cannot
8174 # rely on this symbol name, it's probably fine to never include it in
8175 # preloaded symbol tables.
8176 # Exclude shared library initialization/finalization symbols.
8177 extract_expsyms_cmds=
d9898ee8 8178
8d138742
CE
8179 case $host_os in
8180 cygwin* | mingw* | pw32* | cegcc*)
8181 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8182 # When not using gcc, we currently assume that we are using
8183 # Microsoft Visual C++.
8184 if test "$GCC" != yes; then
8185 with_gnu_ld=no
8186 fi
8187 ;;
8188 interix*)
8189 # we just hope/assume this is gcc and not c89 (= MSVC++)
8190 with_gnu_ld=yes
8191 ;;
8192 openbsd*)
8193 with_gnu_ld=no
8194 ;;
8195 esac
d9898ee8 8196
8d138742
CE
8197 ld_shlibs=yes
8198 if test "$with_gnu_ld" = yes; then
8199 # If archive_cmds runs LD, not CC, wlarc should be empty
8200 wlarc='${wl}'
8201
8202 # Set some defaults for GNU ld with shared library support. These
8203 # are reset later if shared libraries are not supported. Putting them
8204 # here allows them to be overridden if necessary.
8205 runpath_var=LD_RUN_PATH
8206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207 export_dynamic_flag_spec='${wl}--export-dynamic'
8208 # ancient GNU ld didn't support --whole-archive et. al.
8209 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8210 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8211 else
8212 whole_archive_flag_spec=
8213 fi
8214 supports_anon_versioning=no
8215 case `$LD -v 2>&1` in
8216 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8217 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8218 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8219 *\ 2.11.*) ;; # other 2.11 versions
8220 *) supports_anon_versioning=yes ;;
8221 esac
d9898ee8 8222
8d138742
CE
8223 # See if GNU ld supports shared libraries.
8224 case $host_os in
8225 aix[3-9]*)
8226 # On AIX/PPC, the GNU linker is very broken
8227 if test "$host_cpu" != ia64; then
8228 ld_shlibs=no
8229 cat <<_LT_EOF 1>&2
d9898ee8 8230
8d138742
CE
8231*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8232*** to be unable to reliably create shared libraries on AIX.
8233*** Therefore, libtool is disabling shared libraries support. If you
8234*** really care for shared libraries, you may want to modify your PATH
8235*** so that a non-GNU linker is found, and then restart.
d9898ee8 8236
8d138742
CE
8237_LT_EOF
8238 fi
8239 ;;
d9898ee8 8240
8d138742
CE
8241 amigaos*)
8242 case $host_cpu in
8243 powerpc)
8244 # see comment about AmigaOS4 .so support
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 archive_expsym_cmds=''
8247 ;;
8248 m68k)
8249 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)'
8250 hardcode_libdir_flag_spec='-L$libdir'
8251 hardcode_minus_L=yes
8252 ;;
8253 esac
8254 ;;
d9898ee8 8255
8d138742
CE
8256 beos*)
8257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8258 allow_undefined_flag=unsupported
8259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8260 # support --undefined. This deserves some investigation. FIXME
8261 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 else
8263 ld_shlibs=no
8264 fi
8265 ;;
d9898ee8 8266
8d138742
CE
8267 cygwin* | mingw* | pw32* | cegcc*)
8268 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8269 # as there is no search path for DLLs.
8270 hardcode_libdir_flag_spec='-L$libdir'
8271 allow_undefined_flag=unsupported
8272 always_export_symbols=no
8273 enable_shared_with_static_runtimes=yes
8274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8275
8d138742
CE
8276 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8278 # If the export-symbols file already is a .def file (1st line
8279 # is EXPORTS), use it as is; otherwise, prepend...
8280 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8281 cp $export_symbols $output_objdir/$soname.def;
8282 else
8283 echo EXPORTS > $output_objdir/$soname.def;
8284 cat $export_symbols >> $output_objdir/$soname.def;
8285 fi~
8286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
d9898ee8 8291
8d138742
CE
8292 interix[3-9]*)
8293 hardcode_direct=no
8294 hardcode_shlibpath_var=no
8295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8296 export_dynamic_flag_spec='${wl}-E'
8297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8298 # Instead, shared libraries are loaded at an image base (0x10000000 by
8299 # default) and relocated if they conflict, which is a slow very memory
8300 # consuming and fragmenting process. To avoid this, we pick a random,
8301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8302 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8304 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'
8305 ;;
d9898ee8 8306
8d138742
CE
8307 gnu* | linux* | tpf* | k*bsd*-gnu)
8308 tmp_diet=no
8309 if test "$host_os" = linux-dietlibc; then
8310 case $cc_basename in
8311 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8312 esac
8313 fi
8314 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8315 && test "$tmp_diet" = no
8316 then
8317 tmp_addflag=
8318 tmp_sharedflag='-shared'
8319 case $cc_basename,$host_cpu in
8320 pgcc*) # Portland Group C compiler
8321 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'
8322 tmp_addflag=' $pic_flag'
8323 ;;
8324 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8325 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'
8326 tmp_addflag=' $pic_flag -Mnomain' ;;
8327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8328 tmp_addflag=' -i_dynamic' ;;
8329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8330 tmp_addflag=' -i_dynamic -nofor_main' ;;
8331 ifc* | ifort*) # Intel Fortran compiler
8332 tmp_addflag=' -nofor_main' ;;
8333 lf95*) # Lahey Fortran 8.1
8334 whole_archive_flag_spec=
8335 tmp_sharedflag='--shared' ;;
8336 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8337 tmp_sharedflag='-qmkshrobj'
8338 tmp_addflag= ;;
8339 esac
8340 case `$CC -V 2>&1 | sed 5q` in
8341 *Sun\ C*) # Sun C 5.9
8342 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'
8343 compiler_needs_object=yes
8344 tmp_sharedflag='-G' ;;
8345 *Sun\ F*) # Sun Fortran 8.3
8346 tmp_sharedflag='-G' ;;
8347 esac
8348 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8349
8d138742
CE
8350 if test "x$supports_anon_versioning" = xyes; then
8351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8353 echo "local: *; };" >> $output_objdir/$libname.ver~
8354 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8355 fi
d9898ee8 8356
8d138742
CE
8357 case $cc_basename in
8358 xlf*)
8359 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8360 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8361 hardcode_libdir_flag_spec=
8362 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8363 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8364 if test "x$supports_anon_versioning" = xyes; then
8365 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8367 echo "local: *; };" >> $output_objdir/$libname.ver~
8368 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8369 fi
8370 ;;
8371 esac
8372 else
8373 ld_shlibs=no
8374 fi
8375 ;;
d9898ee8 8376
8d138742
CE
8377 netbsd*)
8378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8379 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8380 wlarc=
8381 else
8382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8384 fi
8385 ;;
d9898ee8 8386
8d138742
CE
8387 solaris*)
8388 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8389 ld_shlibs=no
8390 cat <<_LT_EOF 1>&2
d9898ee8 8391
8d138742
CE
8392*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8393*** create shared libraries on Solaris systems. Therefore, libtool
8394*** is disabling shared libraries support. We urge you to upgrade GNU
8395*** binutils to release 2.9.1 or newer. Another option is to modify
8396*** your PATH or compiler configuration so that the native linker is
8397*** used, and then restart.
d9898ee8 8398
8d138742
CE
8399_LT_EOF
8400 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8403 else
8404 ld_shlibs=no
8405 fi
8406 ;;
d9898ee8 8407
8d138742
CE
8408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8409 case `$LD -v 2>&1` in
8410 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8411 ld_shlibs=no
8412 cat <<_LT_EOF 1>&2
d9898ee8 8413
8d138742
CE
8414*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8415*** reliably create shared libraries on SCO systems. Therefore, libtool
8416*** is disabling shared libraries support. We urge you to upgrade GNU
8417*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8418*** your PATH or compiler configuration so that the native linker is
8419*** used, and then restart.
d9898ee8 8420
8d138742
CE
8421_LT_EOF
8422 ;;
8423 *)
8424 # For security reasons, it is highly recommended that you always
8425 # use absolute paths for naming shared libraries, and exclude the
8426 # DT_RUNPATH tag from executables and libraries. But doing so
8427 # requires that you compile everything twice, which is a pain.
8428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8432 else
8433 ld_shlibs=no
8434 fi
8435 ;;
8436 esac
8437 ;;
d9898ee8 8438
8d138742
CE
8439 sunos4*)
8440 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8441 wlarc=
8442 hardcode_direct=yes
8443 hardcode_shlibpath_var=no
8444 ;;
d9898ee8 8445
8d138742
CE
8446 *)
8447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8450 else
8451 ld_shlibs=no
8452 fi
8453 ;;
8454 esac
d9898ee8 8455
8d138742
CE
8456 if test "$ld_shlibs" = no; then
8457 runpath_var=
8458 hardcode_libdir_flag_spec=
8459 export_dynamic_flag_spec=
8460 whole_archive_flag_spec=
8461 fi
8462 else
8463 # PORTME fill in a description of your system's linker (not GNU ld)
8464 case $host_os in
8465 aix3*)
8466 allow_undefined_flag=unsupported
8467 always_export_symbols=yes
8468 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'
8469 # Note: this linker hardcodes the directories in LIBPATH if there
8470 # are no directories specified by -L.
8471 hardcode_minus_L=yes
8472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8473 # Neither direct hardcoding nor static linking is supported with a
8474 # broken collect2.
8475 hardcode_direct=unsupported
8476 fi
8477 ;;
d9898ee8 8478
8d138742
CE
8479 aix[4-9]*)
8480 if test "$host_cpu" = ia64; then
8481 # On IA64, the linker does run time linking by default, so we don't
8482 # have to do anything special.
8483 aix_use_runtimelinking=no
8484 exp_sym_flag='-Bexport'
8485 no_entry_flag=""
8486 else
8487 # If we're using GNU nm, then we don't want the "-C" option.
8488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8489 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8490 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'
8491 else
8492 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'
8493 fi
8494 aix_use_runtimelinking=no
d9898ee8 8495
8d138742
CE
8496 # Test if we are trying to use run time linking or normal
8497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8498 # need to do runtime linking.
8499 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8500 for ld_flag in $LDFLAGS; do
8501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8502 aix_use_runtimelinking=yes
8503 break
8504 fi
8505 done
8506 ;;
8507 esac
d9898ee8 8508
8d138742
CE
8509 exp_sym_flag='-bexport'
8510 no_entry_flag='-bnoentry'
8511 fi
d9898ee8 8512
8d138742
CE
8513 # When large executables or shared objects are built, AIX ld can
8514 # have problems creating the table of contents. If linking a library
8515 # or program results in "error TOC overflow" add -mminimal-toc to
8516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 8518
8d138742
CE
8519 archive_cmds=''
8520 hardcode_direct=yes
8521 hardcode_direct_absolute=yes
8522 hardcode_libdir_separator=':'
8523 link_all_deplibs=yes
8524 file_list_spec='${wl}-f,'
d9898ee8 8525
8d138742
CE
8526 if test "$GCC" = yes; then
8527 case $host_os in aix4.[012]|aix4.[012].*)
8528 # We only want to do this on AIX 4.2 and lower, the check
8529 # below for broken collect2 doesn't work under 4.3+
8530 collect2name=`${CC} -print-prog-name=collect2`
8531 if test -f "$collect2name" &&
8532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8533 then
8534 # We have reworked collect2
8535 :
8536 else
8537 # We have old collect2
8538 hardcode_direct=unsupported
8539 # It fails to find uninstalled libraries when the uninstalled
8540 # path is not listed in the libpath. Setting hardcode_minus_L
8541 # to unsupported forces relinking
8542 hardcode_minus_L=yes
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 hardcode_libdir_separator=
8545 fi
8546 ;;
8547 esac
8548 shared_flag='-shared'
8549 if test "$aix_use_runtimelinking" = yes; then
8550 shared_flag="$shared_flag "'${wl}-G'
8551 fi
8552 else
8553 # not using gcc
8554 if test "$host_cpu" = ia64; then
8555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8556 # chokes on -Wl,-G. The following line is correct:
8557 shared_flag='-G'
8558 else
8559 if test "$aix_use_runtimelinking" = yes; then
8560 shared_flag='${wl}-G'
8561 else
8562 shared_flag='${wl}-bM:SRE'
8563 fi
8564 fi
8565 fi
d9898ee8 8566
8d138742
CE
8567 export_dynamic_flag_spec='${wl}-bexpall'
8568 # It seems that -bexpall does not export symbols beginning with
8569 # underscore (_), so it is better to generate a list of symbols to export.
8570 always_export_symbols=yes
8571 if test "$aix_use_runtimelinking" = yes; then
8572 # Warning - without using the other runtime loading flags (-brtl),
8573 # -berok will link without error, but may produce a broken library.
8574 allow_undefined_flag='-berok'
8575 # Determine the default libpath from the value encoded in an
8576 # empty executable.
8577 cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
d9898ee8 8583
8d138742
CE
8584int
8585main ()
8586{
d9898ee8 8587
8d138742
CE
8588 ;
8589 return 0;
8590}
8591_ACEOF
8592rm -f conftest.$ac_objext conftest$ac_exeext
8593if { (ac_try="$ac_link"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599$as_echo "$ac_try_echo") >&5
8600 (eval "$ac_link") 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest$ac_exeext && {
8610 test "$cross_compiling" = yes ||
8611 $as_test_x conftest$ac_exeext
8612 }; then
d9898ee8 8613
8d138742
CE
8614lt_aix_libpath_sed='
8615 /Import File Strings/,/^$/ {
8616 /^0/ {
8617 s/^0 *\(.*\)$/\1/
8618 p
8619 }
8620 }'
8621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8622# Check for a 64-bit object if we didn't find anything.
8623if test -z "$aix_libpath"; then
8624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625fi
8626else
8627 $as_echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8629
d9898ee8 8630
8d138742 8631fi
d9898ee8 8632
8d138742
CE
8633rm -rf conftest.dSYM
8634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8635 conftest$ac_exeext conftest.$ac_ext
8636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8637
8d138742
CE
8638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8639 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"
8640 else
8641 if test "$host_cpu" = ia64; then
8642 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8643 allow_undefined_flag="-z nodefs"
8644 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"
8645 else
8646 # Determine the default libpath from the value encoded in an
8647 # empty executable.
8648 cat >conftest.$ac_ext <<_ACEOF
8649/* confdefs.h. */
8650_ACEOF
8651cat confdefs.h >>conftest.$ac_ext
8652cat >>conftest.$ac_ext <<_ACEOF
8653/* end confdefs.h. */
d9898ee8 8654
8d138742
CE
8655int
8656main ()
8657{
d9898ee8 8658
8d138742
CE
8659 ;
8660 return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext conftest$ac_exeext
8664if { (ac_try="$ac_link"
8665case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668esac
8669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8670$as_echo "$ac_try_echo") >&5
8671 (eval "$ac_link") 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest$ac_exeext && {
8681 test "$cross_compiling" = yes ||
8682 $as_test_x conftest$ac_exeext
8683 }; then
d9898ee8 8684
8d138742
CE
8685lt_aix_libpath_sed='
8686 /Import File Strings/,/^$/ {
8687 /^0/ {
8688 s/^0 *\(.*\)$/\1/
8689 p
8690 }
8691 }'
8692aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8693# Check for a 64-bit object if we didn't find anything.
8694if test -z "$aix_libpath"; then
8695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8696fi
8697else
8698 $as_echo "$as_me: failed program was:" >&5
8699sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8700
d9898ee8 8701
8d138742 8702fi
d9898ee8 8703
8d138742
CE
8704rm -rf conftest.dSYM
8705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8706 conftest$ac_exeext conftest.$ac_ext
8707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8708
8d138742
CE
8709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8710 # Warning - without using the other run time loading flags,
8711 # -berok will link without error, but may produce a broken library.
8712 no_undefined_flag=' ${wl}-bernotok'
8713 allow_undefined_flag=' ${wl}-berok'
8714 # Exported symbols can be pulled into shared objects from archives
8715 whole_archive_flag_spec='$convenience'
8716 archive_cmds_need_lc=yes
8717 # This is similar to how AIX traditionally builds its shared libraries.
8718 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'
8719 fi
8720 fi
8721 ;;
d9898ee8 8722
8d138742
CE
8723 amigaos*)
8724 case $host_cpu in
8725 powerpc)
8726 # see comment about AmigaOS4 .so support
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds=''
8729 ;;
8730 m68k)
8731 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)'
8732 hardcode_libdir_flag_spec='-L$libdir'
8733 hardcode_minus_L=yes
8734 ;;
8735 esac
8736 ;;
d9898ee8 8737
8d138742
CE
8738 bsdi[45]*)
8739 export_dynamic_flag_spec=-rdynamic
8740 ;;
d9898ee8 8741
8d138742
CE
8742 cygwin* | mingw* | pw32* | cegcc*)
8743 # When not using gcc, we currently assume that we are using
8744 # Microsoft Visual C++.
8745 # hardcode_libdir_flag_spec is actually meaningless, as there is
8746 # no search path for DLLs.
8747 hardcode_libdir_flag_spec=' '
8748 allow_undefined_flag=unsupported
8749 # Tell ltmain to make .lib files, not .a files.
8750 libext=lib
8751 # Tell ltmain to make .dll files, not .so files.
8752 shrext_cmds=".dll"
8753 # FIXME: Setting linknames here is a bad hack.
8754 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8755 # The linker will automatically build a .lib file if we build a DLL.
8756 old_archive_from_new_cmds='true'
8757 # FIXME: Should let the user specify the lib program.
8758 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8759 fix_srcfile_path='`cygpath -w "$srcfile"`'
8760 enable_shared_with_static_runtimes=yes
8761 ;;
d9898ee8 8762
8d138742 8763 darwin* | rhapsody*)
d9898ee8 8764
d9898ee8 8765
8d138742
CE
8766 archive_cmds_need_lc=no
8767 hardcode_direct=no
8768 hardcode_automatic=yes
8769 hardcode_shlibpath_var=unsupported
8770 whole_archive_flag_spec=''
8771 link_all_deplibs=yes
8772 allow_undefined_flag="$_lt_dar_allow_undefined"
8773 case $cc_basename in
8774 ifort*) _lt_dar_can_shared=yes ;;
8775 *) _lt_dar_can_shared=$GCC ;;
8776 esac
8777 if test "$_lt_dar_can_shared" = "yes"; then
8778 output_verbose_link_cmd=echo
8779 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8780 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8781 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}"
8782 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}"
d9898ee8 8783
8d138742
CE
8784 else
8785 ld_shlibs=no
8786 fi
d9898ee8 8787
8d138742 8788 ;;
d9898ee8 8789
8d138742
CE
8790 dgux*)
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_libdir_flag_spec='-L$libdir'
8793 hardcode_shlibpath_var=no
8794 ;;
d9898ee8 8795
8d138742
CE
8796 freebsd1*)
8797 ld_shlibs=no
8798 ;;
d9898ee8 8799
8d138742
CE
8800 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8801 # support. Future versions do this automatically, but an explicit c++rt0.o
8802 # does not break anything, and helps significantly (at the cost of a little
8803 # extra space).
8804 freebsd2.2*)
8805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8806 hardcode_libdir_flag_spec='-R$libdir'
8807 hardcode_direct=yes
8808 hardcode_shlibpath_var=no
8809 ;;
d9898ee8 8810
8d138742
CE
8811 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8812 freebsd2*)
8813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8814 hardcode_direct=yes
8815 hardcode_minus_L=yes
8816 hardcode_shlibpath_var=no
8817 ;;
d9898ee8 8818
8d138742
CE
8819 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8820 freebsd* | dragonfly*)
8821 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8822 hardcode_libdir_flag_spec='-R$libdir'
8823 hardcode_direct=yes
8824 hardcode_shlibpath_var=no
8825 ;;
d9898ee8 8826
8d138742
CE
8827 hpux9*)
8828 if test "$GCC" = yes; then
8829 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'
8830 else
8831 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'
8832 fi
8833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834 hardcode_libdir_separator=:
8835 hardcode_direct=yes
d9898ee8 8836
8d138742
CE
8837 # hardcode_minus_L: Not really in the search PATH,
8838 # but as the default location of the library.
8839 hardcode_minus_L=yes
8840 export_dynamic_flag_spec='${wl}-E'
8841 ;;
d9898ee8 8842
8d138742
CE
8843 hpux10*)
8844 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846 else
8847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8848 fi
8849 if test "$with_gnu_ld" = no; then
8850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851 hardcode_libdir_flag_spec_ld='+b $libdir'
8852 hardcode_libdir_separator=:
8853 hardcode_direct=yes
8854 hardcode_direct_absolute=yes
8855 export_dynamic_flag_spec='${wl}-E'
8856 # hardcode_minus_L: Not really in the search PATH,
8857 # but as the default location of the library.
8858 hardcode_minus_L=yes
8859 fi
8860 ;;
d9898ee8 8861
8d138742
CE
8862 hpux11*)
8863 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8864 case $host_cpu in
8865 hppa*64*)
8866 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 ;;
8868 ia64*)
8869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8870 ;;
8871 *)
8872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8873 ;;
8874 esac
8875 else
8876 case $host_cpu in
8877 hppa*64*)
8878 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879 ;;
8880 ia64*)
8881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8882 ;;
8883 *)
8884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8885 ;;
8886 esac
8887 fi
8888 if test "$with_gnu_ld" = no; then
8889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890 hardcode_libdir_separator=:
d9898ee8 8891
8d138742
CE
8892 case $host_cpu in
8893 hppa*64*|ia64*)
8894 hardcode_direct=no
8895 hardcode_shlibpath_var=no
8896 ;;
8897 *)
8898 hardcode_direct=yes
8899 hardcode_direct_absolute=yes
8900 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8901
8d138742
CE
8902 # hardcode_minus_L: Not really in the search PATH,
8903 # but as the default location of the library.
8904 hardcode_minus_L=yes
8905 ;;
8906 esac
8907 fi
8908 ;;
d9898ee8 8909
8d138742
CE
8910 irix5* | irix6* | nonstopux*)
8911 if test "$GCC" = yes; then
8912 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'
8913 # Try to use the -exported_symbol ld option, if it does not
8914 # work, assume that -exports_file does not work either and
8915 # implicitly export all symbols.
8916 save_LDFLAGS="$LDFLAGS"
8917 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8918 cat >conftest.$ac_ext <<_ACEOF
8919int foo(void) {}
8920_ACEOF
8921rm -f conftest.$ac_objext conftest$ac_exeext
8922if { (ac_try="$ac_link"
8923case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926esac
8927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8928$as_echo "$ac_try_echo") >&5
8929 (eval "$ac_link") 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && {
8936 test -z "$ac_c_werror_flag" ||
8937 test ! -s conftest.err
8938 } && test -s conftest$ac_exeext && {
8939 test "$cross_compiling" = yes ||
8940 $as_test_x conftest$ac_exeext
8941 }; then
8942 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'
d9898ee8 8943
8d138742
CE
8944else
8945 $as_echo "$as_me: failed program was:" >&5
8946sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8947
d9898ee8 8948
8d138742 8949fi
d9898ee8 8950
8d138742
CE
8951rm -rf conftest.dSYM
8952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953 conftest$ac_exeext conftest.$ac_ext
8954 LDFLAGS="$save_LDFLAGS"
8955 else
8956 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'
8957 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'
8958 fi
8959 archive_cmds_need_lc='no'
8960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8961 hardcode_libdir_separator=:
8962 inherit_rpath=yes
8963 link_all_deplibs=yes
8964 ;;
d9898ee8 8965
8d138742
CE
8966 netbsd*)
8967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8969 else
8970 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8971 fi
8972 hardcode_libdir_flag_spec='-R$libdir'
8973 hardcode_direct=yes
8974 hardcode_shlibpath_var=no
8975 ;;
d9898ee8 8976
8d138742
CE
8977 newsos6)
8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979 hardcode_direct=yes
8980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981 hardcode_libdir_separator=:
8982 hardcode_shlibpath_var=no
8983 ;;
d9898ee8 8984
8d138742
CE
8985 *nto* | *qnx*)
8986 ;;
d9898ee8 8987
8d138742
CE
8988 openbsd*)
8989 if test -f /usr/libexec/ld.so; then
8990 hardcode_direct=yes
8991 hardcode_shlibpath_var=no
8992 hardcode_direct_absolute=yes
8993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8995 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997 export_dynamic_flag_spec='${wl}-E'
8998 else
8999 case $host_os in
9000 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_libdir_flag_spec='-R$libdir'
9003 ;;
9004 *)
9005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9007 ;;
9008 esac
9009 fi
9010 else
9011 ld_shlibs=no
9012 fi
9013 ;;
d9898ee8 9014
8d138742
CE
9015 os2*)
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_minus_L=yes
9018 allow_undefined_flag=unsupported
9019 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'
9020 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9021 ;;
d9898ee8 9022
8d138742
CE
9023 osf3*)
9024 if test "$GCC" = yes; then
9025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9026 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'
9027 else
9028 allow_undefined_flag=' -expect_unresolved \*'
9029 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'
9030 fi
9031 archive_cmds_need_lc='no'
9032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033 hardcode_libdir_separator=:
9034 ;;
d9898ee8 9035
8d138742
CE
9036 osf4* | osf5*) # as osf3* with the addition of -msym flag
9037 if test "$GCC" = yes; then
9038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9039 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'
9040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041 else
9042 allow_undefined_flag=' -expect_unresolved \*'
9043 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'
9044 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~
9045 $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'
d9898ee8 9046
8d138742
CE
9047 # Both c and cxx compiler support -rpath directly
9048 hardcode_libdir_flag_spec='-rpath $libdir'
9049 fi
9050 archive_cmds_need_lc='no'
9051 hardcode_libdir_separator=:
9052 ;;
d9898ee8 9053
8d138742
CE
9054 solaris*)
9055 no_undefined_flag=' -z defs'
9056 if test "$GCC" = yes; then
9057 wlarc='${wl}'
9058 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9060 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9061 else
9062 case `$CC -V 2>&1` in
9063 *"Compilers 5.0"*)
9064 wlarc=''
9065 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9067 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9068 ;;
9069 *)
9070 wlarc='${wl}'
9071 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9073 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9074 ;;
9075 esac
9076 fi
9077 hardcode_libdir_flag_spec='-R$libdir'
9078 hardcode_shlibpath_var=no
9079 case $host_os in
9080 solaris2.[0-5] | solaris2.[0-5].*) ;;
9081 *)
9082 # The compiler driver will combine and reorder linker options,
9083 # but understands `-z linker_flag'. GCC discards it without `$wl',
9084 # but is careful enough not to reorder.
9085 # Supported since Solaris 2.6 (maybe 2.5.1?)
9086 if test "$GCC" = yes; then
9087 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9088 else
9089 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9090 fi
9091 ;;
9092 esac
9093 link_all_deplibs=yes
9094 ;;
d9898ee8 9095
8d138742
CE
9096 sunos4*)
9097 if test "x$host_vendor" = xsequent; then
9098 # Use $CC to link under sequent, because it throws in some extra .o
9099 # files that make .init and .fini sections work.
9100 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9101 else
9102 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9103 fi
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_direct=yes
9106 hardcode_minus_L=yes
9107 hardcode_shlibpath_var=no
9108 ;;
d9898ee8 9109
8d138742
CE
9110 sysv4)
9111 case $host_vendor in
9112 sni)
9113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_direct=yes # is this really true???
9115 ;;
9116 siemens)
9117 ## LD is ld it makes a PLAMLIB
9118 ## CC just makes a GrossModule.
9119 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9120 reload_cmds='$CC -r -o $output$reload_objs'
9121 hardcode_direct=no
9122 ;;
9123 motorola)
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9126 ;;
9127 esac
9128 runpath_var='LD_RUN_PATH'
9129 hardcode_shlibpath_var=no
9130 ;;
d9898ee8 9131
8d138742
CE
9132 sysv4.3*)
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_shlibpath_var=no
9135 export_dynamic_flag_spec='-Bexport'
9136 ;;
d9898ee8 9137
8d138742
CE
9138 sysv4*MP*)
9139 if test -d /usr/nec; then
9140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141 hardcode_shlibpath_var=no
9142 runpath_var=LD_RUN_PATH
9143 hardcode_runpath_var=yes
9144 ld_shlibs=yes
9145 fi
9146 ;;
d9898ee8 9147
8d138742
CE
9148 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9149 no_undefined_flag='${wl}-z,text'
9150 archive_cmds_need_lc=no
9151 hardcode_shlibpath_var=no
9152 runpath_var='LD_RUN_PATH'
d9898ee8 9153
8d138742
CE
9154 if test "$GCC" = yes; then
9155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 else
9158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 fi
9161 ;;
d9898ee8 9162
8d138742
CE
9163 sysv5* | sco3.2v5* | sco5v6*)
9164 # Note: We can NOT use -z defs as we might desire, because we do not
9165 # link with -lc, and that would cause any symbols used from libc to
9166 # always be unresolved, which means just about no library would
9167 # ever link correctly. If we're not using GNU ld we use -z text
9168 # though, which does catch some bad symbols but isn't as heavy-handed
9169 # as -z defs.
9170 no_undefined_flag='${wl}-z,text'
9171 allow_undefined_flag='${wl}-z,nodefs'
9172 archive_cmds_need_lc=no
9173 hardcode_shlibpath_var=no
9174 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9175 hardcode_libdir_separator=':'
9176 link_all_deplibs=yes
9177 export_dynamic_flag_spec='${wl}-Bexport'
9178 runpath_var='LD_RUN_PATH'
d9898ee8 9179
8d138742
CE
9180 if test "$GCC" = yes; then
9181 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 else
9184 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9185 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186 fi
9187 ;;
d9898ee8 9188
8d138742
CE
9189 uts4*)
9190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 hardcode_shlibpath_var=no
9193 ;;
d9898ee8 9194
8d138742
CE
9195 *)
9196 ld_shlibs=no
9197 ;;
9198 esac
d9898ee8 9199
8d138742
CE
9200 if test x$host_vendor = xsni; then
9201 case $host in
9202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9203 export_dynamic_flag_spec='${wl}-Blargedynsym'
d9898ee8 9204 ;;
8d138742
CE
9205 esac
9206 fi
9207 fi
9208
9209{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9210$as_echo "$ld_shlibs" >&6; }
9211test "$ld_shlibs" = no && can_build_shared=no
9212
9213with_gnu_ld=$with_gnu_ld
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229#
9230# Do we need to explicitly link libc?
9231#
9232case "x$archive_cmds_need_lc" in
9233x|xyes)
9234 # Assume -lc should be added
9235 archive_cmds_need_lc=yes
9236
9237 if test "$enable_shared" = yes && test "$GCC" = yes; then
9238 case $archive_cmds in
9239 *'~'*)
9240 # FIXME: we may have to deal with multi-command sequences.
9241 ;;
9242 '$CC '*)
9243 # Test whether the compiler implicitly links with -lc since on some
9244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9245 # to ld, don't add -lc before -lgcc.
9246 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9247$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9248 $RM conftest*
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>&5
9253 ac_status=$?
9254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } 2>conftest.err; then
9256 soname=conftest
9257 lib=conftest
9258 libobjs=conftest.$ac_objext
9259 deplibs=
9260 wl=$lt_prog_compiler_wl
9261 pic_flag=$lt_prog_compiler_pic
9262 compiler_flags=-v
9263 linker_flags=-v
9264 verstring=
9265 output_objdir=.
9266 libname=conftest
9267 lt_save_allow_undefined_flag=$allow_undefined_flag
9268 allow_undefined_flag=
9269 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9271 ac_status=$?
9272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }
9274 then
9275 archive_cmds_need_lc=no
9276 else
9277 archive_cmds_need_lc=yes
9278 fi
9279 allow_undefined_flag=$lt_save_allow_undefined_flag
9280 else
9281 cat conftest.err 1>&5
9282 fi
9283 $RM conftest*
9284 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9285$as_echo "$archive_cmds_need_lc" >&6; }
9286 ;;
9287 esac
9288 fi
9289 ;;
9290esac
9291
9292
d9898ee8 9293
d9898ee8 9294
d9898ee8 9295
d9898ee8 9296
d9898ee8 9297
d9898ee8 9298
d9898ee8 9299
d9898ee8 9300
d9898ee8 9301
d9898ee8 9302
9303
d9898ee8 9304
d9898ee8 9305
9306
d9898ee8 9307
9308
d9898ee8 9309
d9898ee8 9310
9311
d9898ee8 9312
d9898ee8 9313
9314
d9898ee8 9315
d9898ee8 9316
d9898ee8 9317
d9898ee8 9318
d9898ee8 9319
d9898ee8 9320
d9898ee8 9321
d9898ee8 9322
d9898ee8 9323
d9898ee8 9324
d9898ee8 9325
d9898ee8 9326
d9898ee8 9327
d9898ee8 9328
d9898ee8 9329
d9898ee8 9330
d9898ee8 9331
d9898ee8 9332
d9898ee8 9333
d9898ee8 9334
d9898ee8 9335
d9898ee8 9336
d9898ee8 9337
ac40fd9e 9338
d9898ee8 9339
d9898ee8 9340
d9898ee8 9341
d9898ee8 9342
d9898ee8 9343
d9898ee8 9344
d9898ee8 9345
d9898ee8 9346
d9898ee8 9347
d9898ee8 9348
d9898ee8 9349
d9898ee8 9350
d9898ee8 9351
d9898ee8 9352
d9898ee8 9353
d9898ee8 9354
d9898ee8 9355
9356
d9898ee8 9357
d9898ee8 9358
d9898ee8 9359
9360
d9898ee8 9361
d9898ee8 9362
d9898ee8 9363
d9898ee8 9364
d9898ee8 9365
d9898ee8 9366
d9898ee8 9367
d9898ee8 9368
d9898ee8 9369
d9898ee8 9370
d9898ee8 9371
d9898ee8 9372
d9898ee8 9373
d9898ee8 9374
d9898ee8 9375
d9898ee8 9376
d9898ee8 9377
d9898ee8 9378
d9898ee8 9379
d9898ee8 9380
d9898ee8 9381
d9898ee8 9382
d9898ee8 9383
d9898ee8 9384
d9898ee8 9385
d9898ee8 9386
d9898ee8 9387
d9898ee8 9388
d9898ee8 9389
d9898ee8 9390
d9898ee8 9391
d9898ee8 9392
d9898ee8 9393
d9898ee8 9394
d9898ee8 9395
dd184caf 9396
dd184caf 9397
d9898ee8 9398
d9898ee8 9399
d9898ee8 9400
d9898ee8 9401
d9898ee8 9402
dd184caf 9403
dd184caf 9404
d9898ee8 9405
d9898ee8 9406
d9898ee8 9407
d9898ee8 9408
d9898ee8 9409
d9898ee8 9410
d9898ee8 9411
d9898ee8 9412
d9898ee8 9413
d9898ee8 9414
d9898ee8 9415
d9898ee8 9416
d9898ee8 9417
d9898ee8 9418
d9898ee8 9419
d9898ee8 9420
d9898ee8 9421
d9898ee8 9422
d9898ee8 9423
d9898ee8 9424
d9898ee8 9425
d9898ee8 9426
d9898ee8 9427
d9898ee8 9428
d9898ee8 9429
d9898ee8 9430
d9898ee8 9431
d9898ee8 9432
d9898ee8 9433
d9898ee8 9434
d9898ee8 9435
d9898ee8 9436
d9898ee8 9437
d9898ee8 9438
d9898ee8 9439
d9898ee8 9440
d9898ee8 9441
d9898ee8 9442
d9898ee8 9443
d9898ee8 9444
d9898ee8 9445
d9898ee8 9446
8d138742
CE
9447
9448 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9449$as_echo_n "checking dynamic linker characteristics... " >&6; }
9450
9451if test "$GCC" = yes; then
9452 case $host_os in
9453 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9454 *) lt_awk_arg="/^libraries:/" ;;
9455 esac
9456 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9457 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9458 # if the path contains ";" then we assume it to be the separator
9459 # otherwise default to the standard path separator (i.e. ":") - it is
9460 # assumed that no part of a normal pathname contains ";" but that should
9461 # okay in the real world where ";" in dirpaths is itself problematic.
9462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9463 else
9464 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9465 fi
9466 # Ok, now we have the path, separated by spaces, we can step through it
9467 # and add multilib dir if necessary.
9468 lt_tmp_lt_search_path_spec=
9469 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9470 for lt_sys_path in $lt_search_path_spec; do
9471 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9472 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9473 else
9474 test -d "$lt_sys_path" && \
9475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9476 fi
9477 done
9478 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9479BEGIN {RS=" "; FS="/|\n";} {
9480 lt_foo="";
9481 lt_count=0;
9482 for (lt_i = NF; lt_i > 0; lt_i--) {
9483 if ($lt_i != "" && $lt_i != ".") {
9484 if ($lt_i == "..") {
9485 lt_count++;
9486 } else {
9487 if (lt_count == 0) {
9488 lt_foo="/" $lt_i lt_foo;
9489 } else {
9490 lt_count--;
9491 }
9492 }
9493 }
9494 }
9495 if (lt_foo != "") { lt_freq[lt_foo]++; }
9496 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9497}'`
9498 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9499else
9500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9501fi
d9898ee8 9502library_names_spec=
9503libname_spec='lib$name'
9504soname_spec=
9505shrext_cmds=".so"
9506postinstall_cmds=
9507postuninstall_cmds=
9508finish_cmds=
9509finish_eval=
9510shlibpath_var=
9511shlibpath_overrides_runpath=unknown
9512version_type=none
9513dynamic_linker="$host_os ld.so"
9514sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 9515need_lib_prefix=unknown
9516hardcode_into_libs=no
9517
9518# when you set need_version to no, make sure it does not cause -set_version
9519# flags to be left without arguments
9520need_version=unknown
9521
9522case $host_os in
9523aix3*)
9524 version_type=linux
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9526 shlibpath_var=LIBPATH
9527
9528 # AIX 3 has no versioning support, so we append a major version to the name.
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 ;;
9531
8d138742 9532aix[4-9]*)
d9898ee8 9533 version_type=linux
9534 need_lib_prefix=no
9535 need_version=no
9536 hardcode_into_libs=yes
9537 if test "$host_cpu" = ia64; then
9538 # AIX 5 supports IA64
9539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 else
9542 # With GCC up to 2.95.x, collect2 would create an import file
9543 # for dependence libraries. The import file would start with
9544 # the line `#! .'. This would cause the generated library to
9545 # depend on `.', always an invalid library. This was fixed in
9546 # development snapshots of GCC prior to 3.0.
9547 case $host_os in
9548 aix4 | aix4.[01] | aix4.[01].*)
9549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9550 echo ' yes '
8d138742 9551 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 9552 :
9553 else
9554 can_build_shared=no
9555 fi
9556 ;;
9557 esac
9558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9559 # soname into executable. Probably we can add versioning support to
9560 # collect2, so additional links can be useful in future.
9561 if test "$aix_use_runtimelinking" = yes; then
9562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9563 # instead of lib<name>.a to let people know that these are not
9564 # typical AIX shared libraries.
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 else
9567 # We preserve .a as extension for shared libraries through AIX4.2
9568 # and later when we are not doing run time linking.
9569 library_names_spec='${libname}${release}.a $libname.a'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 fi
9572 shlibpath_var=LIBPATH
9573 fi
9574 ;;
9575
9576amigaos*)
8d138742
CE
9577 case $host_cpu in
9578 powerpc)
9579 # Since July 2007 AmigaOS4 officially supports .so libraries.
9580 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 ;;
9583 m68k)
9584 library_names_spec='$libname.ixlibrary $libname.a'
9585 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9586 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'
9587 ;;
9588 esac
d9898ee8 9589 ;;
9590
9591beos*)
9592 library_names_spec='${libname}${shared_ext}'
9593 dynamic_linker="$host_os ld.so"
9594 shlibpath_var=LIBRARY_PATH
9595 ;;
9596
9597bsdi[45]*)
9598 version_type=linux
9599 need_version=no
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9606 # the default ld.so.conf also contains /usr/contrib/lib and
9607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9608 # libtool to hard-code these into programs
9609 ;;
9610
8d138742 9611cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9612 version_type=windows
9613 shrext_cmds=".dll"
9614 need_version=no
9615 need_lib_prefix=no
9616
9617 case $GCC,$host_os in
8d138742 9618 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 9619 library_names_spec='$libname.dll.a'
9620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9621 postinstall_cmds='base_file=`basename \${file}`~
8d138742 9622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 9623 dldir=$destdir/`dirname \$dlpath`~
9624 test -d \$dldir || mkdir -p \$dldir~
9625 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
9626 chmod a+x \$dldir/$dlname~
9627 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9628 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9629 fi'
d9898ee8 9630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9631 dlpath=$dir/\$dldll~
8d138742 9632 $RM \$dlpath'
d9898ee8 9633 shlibpath_overrides_runpath=yes
9634
9635 case $host_os in
9636 cygwin*)
9637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9639 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9640 ;;
8d138742 9641 mingw* | cegcc*)
d9898ee8 9642 # MinGW DLLs use traditional 'lib' prefix
9643 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
9644 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9645 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 9646 # It is most probably a Windows format PATH printed by
9647 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9648 # path with ; separators, and with drive letters. We can handle the
9649 # drive letters (cygwin fileutils understands them), so leave them,
9650 # especially as we might pass files found there to a mingw objdump,
9651 # which wouldn't understand a cygwinified path. Ahh.
8d138742 9652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9653 else
8d138742 9654 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9655 fi
9656 ;;
9657 pw32*)
9658 # pw32 DLLs use 'pw' prefix rather than 'lib'
9659 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 ;;
9661 esac
9662 ;;
9663
9664 *)
9665 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9666 ;;
9667 esac
9668 dynamic_linker='Win32 ld.exe'
9669 # FIXME: first we should search . and the directory the executable is in
9670 shlibpath_var=PATH
9671 ;;
9672
9673darwin* | rhapsody*)
9674 dynamic_linker="$host_os dyld"
9675 version_type=darwin
9676 need_lib_prefix=no
9677 need_version=no
8d138742 9678 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 9679 soname_spec='${libname}${release}${major}$shared_ext'
9680 shlibpath_overrides_runpath=yes
9681 shlibpath_var=DYLD_LIBRARY_PATH
9682 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9683
8d138742 9684 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9686 ;;
9687
9688dgux*)
9689 version_type=linux
9690 need_lib_prefix=no
9691 need_version=no
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 ;;
9696
9697freebsd1*)
9698 dynamic_linker=no
9699 ;;
9700
d9898ee8 9701freebsd* | dragonfly*)
9702 # DragonFly does not have aout. When/if they implement a new
9703 # versioning mechanism, adjust this.
9704 if test -x /usr/bin/objformat; then
9705 objformat=`/usr/bin/objformat`
9706 else
9707 case $host_os in
9708 freebsd[123]*) objformat=aout ;;
9709 *) objformat=elf ;;
9710 esac
9711 fi
9712 version_type=freebsd-$objformat
9713 case $version_type in
9714 freebsd-elf*)
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9716 need_version=no
9717 need_lib_prefix=no
9718 ;;
9719 freebsd-*)
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9721 need_version=yes
9722 ;;
9723 esac
9724 shlibpath_var=LD_LIBRARY_PATH
9725 case $host_os in
9726 freebsd2*)
9727 shlibpath_overrides_runpath=yes
9728 ;;
9729 freebsd3.[01]* | freebsdelf3.[01]*)
9730 shlibpath_overrides_runpath=yes
9731 hardcode_into_libs=yes
9732 ;;
9733 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9734 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9737 ;;
ac40fd9e 9738 *) # from 4.6 on, and DragonFly
d9898ee8 9739 shlibpath_overrides_runpath=yes
9740 hardcode_into_libs=yes
9741 ;;
9742 esac
9743 ;;
9744
9745gnu*)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 hardcode_into_libs=yes
9753 ;;
9754
9755hpux9* | hpux10* | hpux11*)
9756 # Give a soname corresponding to the major version so that dld.sl refuses to
9757 # link against other versions.
9758 version_type=sunos
9759 need_lib_prefix=no
9760 need_version=no
9761 case $host_cpu in
9762 ia64*)
9763 shrext_cmds='.so'
9764 hardcode_into_libs=yes
9765 dynamic_linker="$host_os dld.so"
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 if test "X$HPUX_IA64_MODE" = X32; then
9771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9772 else
9773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9774 fi
9775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776 ;;
8d138742
CE
9777 hppa*64*)
9778 shrext_cmds='.sl'
9779 hardcode_into_libs=yes
9780 dynamic_linker="$host_os dld.sl"
9781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9787 ;;
9788 *)
d9898ee8 9789 shrext_cmds='.sl'
9790 dynamic_linker="$host_os dld.sl"
9791 shlibpath_var=SHLIB_PATH
9792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 ;;
9796 esac
9797 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9798 postinstall_cmds='chmod 555 $lib'
9799 ;;
9800
ac40fd9e 9801interix[3-9]*)
d9898ee8 9802 version_type=linux
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=no
9810 hardcode_into_libs=yes
9811 ;;
9812
9813irix5* | irix6* | nonstopux*)
9814 case $host_os in
9815 nonstopux*) version_type=nonstopux ;;
9816 *)
9817 if test "$lt_cv_prog_gnu_ld" = yes; then
9818 version_type=linux
9819 else
9820 version_type=irix
9821 fi ;;
9822 esac
9823 need_lib_prefix=no
9824 need_version=no
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9827 case $host_os in
9828 irix5* | nonstopux*)
9829 libsuff= shlibsuff=
9830 ;;
9831 *)
9832 case $LD in # libtool.m4 will add one of these switches to LD
9833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9834 libsuff= shlibsuff= libmagic=32-bit;;
9835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9836 libsuff=32 shlibsuff=N32 libmagic=N32;;
9837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9839 *) libsuff= shlibsuff= libmagic=never-match;;
9840 esac
9841 ;;
9842 esac
9843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9844 shlibpath_overrides_runpath=no
9845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9847 hardcode_into_libs=yes
9848 ;;
9849
8d138742
CE
9850# No shared lib support for Linux oldld, aout, or coff.
9851linux*oldld* | linux*aout* | linux*coff*)
9852 dynamic_linker=no
9853 ;;
9854
9855# This must be Linux ELF.
9856linux* | k*bsd*-gnu)
9857 version_type=linux
9858 need_lib_prefix=no
9859 need_version=no
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 shlibpath_overrides_runpath=no
9865 # Some binutils ld are patched to set DT_RUNPATH
9866 save_LDFLAGS=$LDFLAGS
9867 save_libdir=$libdir
9868 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9869 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9870 cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876
9877int
9878main ()
9879{
9880
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext conftest$ac_exeext
9886if { (ac_try="$ac_link"
9887case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9892$as_echo "$ac_try_echo") >&5
9893 (eval "$ac_link") 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest$ac_exeext && {
9903 test "$cross_compiling" = yes ||
9904 $as_test_x conftest$ac_exeext
9905 }; then
9906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9907 shlibpath_overrides_runpath=yes
9908fi
9909
9910else
9911 $as_echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
9914
9915fi
9916
9917rm -rf conftest.dSYM
9918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LDFLAGS=$save_LDFLAGS
9921 libdir=$save_libdir
d9898ee8 9922
d9898ee8 9923 # This implies no fast_install, which is unacceptable.
9924 # Some rework will be needed to allow for fast_install
9925 # before this can be enabled.
9926 hardcode_into_libs=yes
8d138742
CE
9927
9928 # Add ABI-specific directories to the system library path.
9929 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 9930
9931 # Append ld.so.conf contents to the search path
9932 if test -f /etc/ld.so.conf; then
8d138742 9933 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' ' '`
ac40fd9e 9934 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9935 fi
9936
9937 # We used to test for /lib/ld.so.1 and disable shared libraries on
9938 # powerpc, because MkLinux only supported shared libraries with the
9939 # GNU dynamic linker. Since this was broken with cross compilers,
9940 # most powerpc-linux boxes support dynamic linking these days and
9941 # people can always --disable-shared, the test was removed, and we
9942 # assume the GNU/Linux dynamic linker is in use.
9943 dynamic_linker='GNU/Linux ld.so'
9944 ;;
9945
d9898ee8 9946netbsd*)
9947 version_type=sunos
9948 need_lib_prefix=no
9949 need_version=no
8d138742 9950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9953 dynamic_linker='NetBSD (a.out) ld.so'
9954 else
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 dynamic_linker='NetBSD ld.elf_so'
9958 fi
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 ;;
9963
9964newsos6)
9965 version_type=linux
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 ;;
9970
8d138742
CE
9971*nto* | *qnx*)
9972 version_type=qnx
d9898ee8 9973 need_lib_prefix=no
9974 need_version=no
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
9978 shlibpath_overrides_runpath=no
9979 hardcode_into_libs=yes
9980 dynamic_linker='ldqnx.so'
d9898ee8 9981 ;;
9982
9983openbsd*)
9984 version_type=sunos
9985 sys_lib_dlsearch_path_spec="/usr/lib"
9986 need_lib_prefix=no
9987 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9988 case $host_os in
8d138742
CE
9989 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9990 *) need_version=no ;;
d9898ee8 9991 esac
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9994 shlibpath_var=LD_LIBRARY_PATH
8d138742 9995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 9996 case $host_os in
9997 openbsd2.[89] | openbsd2.[89].*)
9998 shlibpath_overrides_runpath=no
9999 ;;
10000 *)
10001 shlibpath_overrides_runpath=yes
10002 ;;
10003 esac
10004 else
10005 shlibpath_overrides_runpath=yes
10006 fi
10007 ;;
10008
10009os2*)
10010 libname_spec='$name'
10011 shrext_cmds=".dll"
10012 need_lib_prefix=no
10013 library_names_spec='$libname${shared_ext} $libname.a'
10014 dynamic_linker='OS/2 ld.exe'
10015 shlibpath_var=LIBPATH
10016 ;;
10017
10018osf3* | osf4* | osf5*)
10019 version_type=osf
10020 need_lib_prefix=no
10021 need_version=no
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10027 ;;
10028
ac40fd9e 10029rdos*)
10030 dynamic_linker=no
10031 ;;
10032
d9898ee8 10033solaris*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
10041 hardcode_into_libs=yes
10042 # ldd complains unless libraries are executable
10043 postinstall_cmds='chmod +x $lib'
10044 ;;
10045
10046sunos4*)
10047 version_type=sunos
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10050 shlibpath_var=LD_LIBRARY_PATH
10051 shlibpath_overrides_runpath=yes
10052 if test "$with_gnu_ld" = yes; then
10053 need_lib_prefix=no
10054 fi
10055 need_version=yes
10056 ;;
10057
10058sysv4 | sysv4.3*)
10059 version_type=linux
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 case $host_vendor in
10064 sni)
10065 shlibpath_overrides_runpath=no
10066 need_lib_prefix=no
d9898ee8 10067 runpath_var=LD_RUN_PATH
10068 ;;
10069 siemens)
10070 need_lib_prefix=no
10071 ;;
10072 motorola)
10073 need_lib_prefix=no
10074 need_version=no
10075 shlibpath_overrides_runpath=no
10076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10077 ;;
10078 esac
10079 ;;
10080
10081sysv4*MP*)
10082 if test -d /usr/nec ;then
10083 version_type=linux
10084 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10085 soname_spec='$libname${shared_ext}.$major'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 fi
10088 ;;
10089
10090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10091 version_type=freebsd-elf
10092 need_lib_prefix=no
10093 need_version=no
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 shlibpath_var=LD_LIBRARY_PATH
8d138742 10097 shlibpath_overrides_runpath=yes
d9898ee8 10098 hardcode_into_libs=yes
10099 if test "$with_gnu_ld" = yes; then
10100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10101 else
10102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10103 case $host_os in
10104 sco3.2v5*)
10105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10106 ;;
10107 esac
10108 fi
10109 sys_lib_dlsearch_path_spec='/usr/lib'
10110 ;;
10111
8d138742
CE
10112tpf*)
10113 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 shlibpath_var=LD_LIBRARY_PATH
10119 shlibpath_overrides_runpath=no
10120 hardcode_into_libs=yes
10121 ;;
10122
d9898ee8 10123uts4*)
10124 version_type=linux
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 ;;
10129
10130*)
10131 dynamic_linker=no
10132 ;;
10133esac
8d138742
CE
10134{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10135$as_echo "$dynamic_linker" >&6; }
d9898ee8 10136test "$dynamic_linker" = no && can_build_shared=no
10137
10138variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10139if test "$GCC" = yes; then
10140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10141fi
10142
8d138742
CE
10143if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10144 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10145fi
8d138742
CE
10146if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10147 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10148fi
10149
10150
d9898ee8 10151
d9898ee8 10152
d9898ee8 10153
d9898ee8 10154
d9898ee8 10155
d9898ee8 10156
d9898ee8 10157
d9898ee8 10158
d9898ee8 10159
d9898ee8 10160
d9898ee8 10161
d9898ee8 10162
d9898ee8 10163
d9898ee8 10164
d9898ee8 10165
d9898ee8 10166
d9898ee8 10167
d9898ee8 10168
d9898ee8 10169
d9898ee8 10170
d9898ee8 10171
d9898ee8 10172
d9898ee8 10173
d9898ee8 10174
d9898ee8 10175
d9898ee8 10176
d9898ee8 10177
d9898ee8 10178
d9898ee8 10179
d9898ee8 10180
d9898ee8 10181
d9898ee8 10182
d9898ee8 10183
d9898ee8 10184
d9898ee8 10185
d9898ee8 10186
d9898ee8 10187
d9898ee8 10188
d9898ee8 10189
d9898ee8 10190
d9898ee8 10191
d9898ee8 10192
d9898ee8 10193
d9898ee8 10194
d9898ee8 10195
d9898ee8 10196
d9898ee8 10197
d9898ee8 10198
d9898ee8 10199
d9898ee8 10200
d9898ee8 10201
d9898ee8 10202
d9898ee8 10203
d9898ee8 10204
d9898ee8 10205
d9898ee8 10206
d9898ee8 10207
d9898ee8 10208
d9898ee8 10209
d9898ee8 10210
d9898ee8 10211
d9898ee8 10212
d9898ee8 10213
d9898ee8 10214
d9898ee8 10215
d9898ee8 10216
d9898ee8 10217
d9898ee8 10218
d9898ee8 10219
d9898ee8 10220
d9898ee8 10221
d9898ee8 10222
d9898ee8 10223
d9898ee8 10224
d9898ee8 10225
d9898ee8 10226
d9898ee8 10227
d9898ee8 10228
d9898ee8 10229
d9898ee8 10230
d9898ee8 10231
d9898ee8 10232
d9898ee8 10233
d9898ee8 10234
d9898ee8 10235
8d138742
CE
10236 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10237$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10238hardcode_action=
10239if test -n "$hardcode_libdir_flag_spec" ||
10240 test -n "$runpath_var" ||
10241 test "X$hardcode_automatic" = "Xyes" ; then
10242
10243 # We can hardcode non-existent directories.
10244 if test "$hardcode_direct" != no &&
10245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10246 # have to relink, otherwise we might link with an installed library
10247 # when we should be linking with a yet-to-be-installed one
10248 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10249 test "$hardcode_minus_L" != no; then
10250 # Linking always hardcodes the temporary library directory.
10251 hardcode_action=relink
10252 else
10253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10254 hardcode_action=immediate
10255 fi
10256else
10257 # We cannot hardcode anything, or else we can only hardcode existing
10258 # directories.
10259 hardcode_action=unsupported
10260fi
10261{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10262$as_echo "$hardcode_action" >&6; }
10263
10264if test "$hardcode_action" = relink ||
10265 test "$inherit_rpath" = yes; then
10266 # Fast installation is not supported
10267 enable_fast_install=no
10268elif test "$shlibpath_overrides_runpath" = yes ||
10269 test "$enable_shared" = no; then
10270 # Fast installation is not necessary
10271 enable_fast_install=needless
10272fi
10273
10274
10275
10276
10277
10278
10279 if test "x$enable_dlopen" != xyes; then
10280 enable_dlopen=unknown
10281 enable_dlopen_self=unknown
10282 enable_dlopen_self_static=unknown
10283else
10284 lt_cv_dlopen=no
10285 lt_cv_dlopen_libs=
10286
10287 case $host_os in
10288 beos*)
10289 lt_cv_dlopen="load_add_on"
10290 lt_cv_dlopen_libs=
10291 lt_cv_dlopen_self=yes
10292 ;;
10293
10294 mingw* | pw32* | cegcc*)
10295 lt_cv_dlopen="LoadLibrary"
10296 lt_cv_dlopen_libs=
10297 ;;
10298
10299 cygwin*)
10300 lt_cv_dlopen="dlopen"
10301 lt_cv_dlopen_libs=
10302 ;;
10303
10304 darwin*)
10305 # if libdl is installed we need to link against it
10306 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10307$as_echo_n "checking for dlopen in -ldl... " >&6; }
10308if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10309 $as_echo_n "(cached) " >&6
10310else
10311 ac_check_lib_save_LIBS=$LIBS
10312LIBS="-ldl $LIBS"
10313cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h. */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h. */
10319
10320/* Override any GCC internal prototype to avoid an error.
10321 Use char because int might match the return type of a GCC
10322 builtin and then its argument prototype would still apply. */
10323#ifdef __cplusplus
10324extern "C"
10325#endif
10326char dlopen ();
10327int
10328main ()
10329{
10330return dlopen ();
10331 ;
10332 return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (ac_try="$ac_link"
10337case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10342$as_echo "$ac_try_echo") >&5
10343 (eval "$ac_link") 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest$ac_exeext && {
10353 test "$cross_compiling" = yes ||
10354 $as_test_x conftest$ac_exeext
10355 }; then
10356 ac_cv_lib_dl_dlopen=yes
10357else
10358 $as_echo "$as_me: failed program was:" >&5
10359sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 ac_cv_lib_dl_dlopen=no
10362fi
10363
10364rm -rf conftest.dSYM
10365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10366 conftest$ac_exeext conftest.$ac_ext
10367LIBS=$ac_check_lib_save_LIBS
10368fi
10369{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10370$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10371if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10373else
10374
10375 lt_cv_dlopen="dyld"
10376 lt_cv_dlopen_libs=
10377 lt_cv_dlopen_self=yes
10378
10379fi
10380
10381 ;;
10382
10383 *)
10384 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10385$as_echo_n "checking for shl_load... " >&6; }
10386if test "${ac_cv_func_shl_load+set}" = set; then
10387 $as_echo_n "(cached) " >&6
10388else
10389 cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10397#define shl_load innocuous_shl_load
10398
10399/* System header to define __stub macros and hopefully few prototypes,
10400 which can conflict with char shl_load (); below.
10401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402 <limits.h> exists even on freestanding compilers. */
10403
10404#ifdef __STDC__
10405# include <limits.h>
10406#else
10407# include <assert.h>
10408#endif
10409
10410#undef shl_load
10411
10412/* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415#ifdef __cplusplus
10416extern "C"
10417#endif
10418char shl_load ();
10419/* The GNU C library defines this for functions which it implements
10420 to always fail with ENOSYS. Some functions are actually named
10421 something starting with __ and the normal name is an alias. */
10422#if defined __stub_shl_load || defined __stub___shl_load
10423choke me
10424#endif
10425
10426int
10427main ()
10428{
10429return shl_load ();
10430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (ac_try="$ac_link"
10436case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10441$as_echo "$ac_try_echo") >&5
10442 (eval "$ac_link") 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && {
10449 test -z "$ac_c_werror_flag" ||
10450 test ! -s conftest.err
10451 } && test -s conftest$ac_exeext && {
10452 test "$cross_compiling" = yes ||
10453 $as_test_x conftest$ac_exeext
10454 }; then
10455 ac_cv_func_shl_load=yes
10456else
10457 $as_echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 ac_cv_func_shl_load=no
10461fi
10462
10463rm -rf conftest.dSYM
10464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10466fi
10467{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10468$as_echo "$ac_cv_func_shl_load" >&6; }
10469if test "x$ac_cv_func_shl_load" = x""yes; then
10470 lt_cv_dlopen="shl_load"
10471else
10472 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10473$as_echo_n "checking for shl_load in -ldld... " >&6; }
10474if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10475 $as_echo_n "(cached) " >&6
10476else
10477 ac_check_lib_save_LIBS=$LIBS
10478LIBS="-ldld $LIBS"
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h. */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h. */
10485
10486/* Override any GCC internal prototype to avoid an error.
10487 Use char because int might match the return type of a GCC
10488 builtin and then its argument prototype would still apply. */
10489#ifdef __cplusplus
10490extern "C"
10491#endif
10492char shl_load ();
10493int
10494main ()
10495{
10496return shl_load ();
10497 ;
10498 return 0;
10499}
10500_ACEOF
10501rm -f conftest.$ac_objext conftest$ac_exeext
10502if { (ac_try="$ac_link"
10503case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10508$as_echo "$ac_try_echo") >&5
10509 (eval "$ac_link") 2>conftest.er1
10510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } && {
10516 test -z "$ac_c_werror_flag" ||
10517 test ! -s conftest.err
10518 } && test -s conftest$ac_exeext && {
10519 test "$cross_compiling" = yes ||
10520 $as_test_x conftest$ac_exeext
10521 }; then
10522 ac_cv_lib_dld_shl_load=yes
10523else
10524 $as_echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_lib_dld_shl_load=no
10528fi
10529
10530rm -rf conftest.dSYM
10531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10532 conftest$ac_exeext conftest.$ac_ext
10533LIBS=$ac_check_lib_save_LIBS
10534fi
10535{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10536$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10537if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10538 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10539else
10540 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10541$as_echo_n "checking for dlopen... " >&6; }
10542if test "${ac_cv_func_dlopen+set}" = set; then
10543 $as_echo_n "(cached) " >&6
10544else
10545 cat >conftest.$ac_ext <<_ACEOF
10546/* confdefs.h. */
10547_ACEOF
10548cat confdefs.h >>conftest.$ac_ext
10549cat >>conftest.$ac_ext <<_ACEOF
10550/* end confdefs.h. */
10551/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10553#define dlopen innocuous_dlopen
10554
10555/* System header to define __stub macros and hopefully few prototypes,
10556 which can conflict with char dlopen (); below.
10557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10558 <limits.h> exists even on freestanding compilers. */
d9898ee8 10559
8d138742
CE
10560#ifdef __STDC__
10561# include <limits.h>
10562#else
10563# include <assert.h>
10564#endif
d9898ee8 10565
8d138742 10566#undef dlopen
d9898ee8 10567
8d138742
CE
10568/* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571#ifdef __cplusplus
10572extern "C"
10573#endif
10574char dlopen ();
10575/* The GNU C library defines this for functions which it implements
10576 to always fail with ENOSYS. Some functions are actually named
10577 something starting with __ and the normal name is an alias. */
10578#if defined __stub_dlopen || defined __stub___dlopen
10579choke me
10580#endif
d9898ee8 10581
8d138742
CE
10582int
10583main ()
10584{
10585return dlopen ();
10586 ;
10587 return 0;
10588}
10589_ACEOF
10590rm -f conftest.$ac_objext conftest$ac_exeext
10591if { (ac_try="$ac_link"
10592case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595esac
10596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597$as_echo "$ac_try_echo") >&5
10598 (eval "$ac_link") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext && {
10608 test "$cross_compiling" = yes ||
10609 $as_test_x conftest$ac_exeext
10610 }; then
10611 ac_cv_func_dlopen=yes
10612else
10613 $as_echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10615
8d138742
CE
10616 ac_cv_func_dlopen=no
10617fi
d9898ee8 10618
8d138742
CE
10619rm -rf conftest.dSYM
10620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10621 conftest$ac_exeext conftest.$ac_ext
10622fi
10623{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10624$as_echo "$ac_cv_func_dlopen" >&6; }
10625if test "x$ac_cv_func_dlopen" = x""yes; then
10626 lt_cv_dlopen="dlopen"
10627else
10628 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10629$as_echo_n "checking for dlopen in -ldl... " >&6; }
10630if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10631 $as_echo_n "(cached) " >&6
10632else
10633 ac_check_lib_save_LIBS=$LIBS
10634LIBS="-ldl $LIBS"
10635cat >conftest.$ac_ext <<_ACEOF
10636/* confdefs.h. */
10637_ACEOF
10638cat confdefs.h >>conftest.$ac_ext
10639cat >>conftest.$ac_ext <<_ACEOF
10640/* end confdefs.h. */
d9898ee8 10641
8d138742
CE
10642/* Override any GCC internal prototype to avoid an error.
10643 Use char because int might match the return type of a GCC
10644 builtin and then its argument prototype would still apply. */
10645#ifdef __cplusplus
10646extern "C"
10647#endif
10648char dlopen ();
10649int
10650main ()
10651{
10652return dlopen ();
10653 ;
10654 return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext conftest$ac_exeext
10658if { (ac_try="$ac_link"
10659case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10664$as_echo "$ac_try_echo") >&5
10665 (eval "$ac_link") 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext && {
10675 test "$cross_compiling" = yes ||
10676 $as_test_x conftest$ac_exeext
10677 }; then
10678 ac_cv_lib_dl_dlopen=yes
10679else
10680 $as_echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10682
8d138742
CE
10683 ac_cv_lib_dl_dlopen=no
10684fi
d9898ee8 10685
8d138742
CE
10686rm -rf conftest.dSYM
10687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10689LIBS=$ac_check_lib_save_LIBS
10690fi
10691{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10692$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10693if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10695else
10696 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10697$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10698if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10700else
10701 ac_check_lib_save_LIBS=$LIBS
10702LIBS="-lsvld $LIBS"
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
d9898ee8 10709
8d138742
CE
10710/* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713#ifdef __cplusplus
10714extern "C"
10715#endif
10716char dlopen ();
10717int
10718main ()
10719{
10720return dlopen ();
10721 ;
10722 return 0;
10723}
10724_ACEOF
10725rm -f conftest.$ac_objext conftest$ac_exeext
10726if { (ac_try="$ac_link"
10727case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10732$as_echo "$ac_try_echo") >&5
10733 (eval "$ac_link") 2>conftest.er1
10734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest$ac_exeext && {
10743 test "$cross_compiling" = yes ||
10744 $as_test_x conftest$ac_exeext
10745 }; then
10746 ac_cv_lib_svld_dlopen=yes
10747else
10748 $as_echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10750
8d138742
CE
10751 ac_cv_lib_svld_dlopen=no
10752fi
d9898ee8 10753
8d138742
CE
10754rm -rf conftest.dSYM
10755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10756 conftest$ac_exeext conftest.$ac_ext
10757LIBS=$ac_check_lib_save_LIBS
10758fi
10759{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10760$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10761if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10763else
10764 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10765$as_echo_n "checking for dld_link in -ldld... " >&6; }
10766if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10767 $as_echo_n "(cached) " >&6
10768else
10769 ac_check_lib_save_LIBS=$LIBS
10770LIBS="-ldld $LIBS"
10771cat >conftest.$ac_ext <<_ACEOF
10772/* confdefs.h. */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
10776/* end confdefs.h. */
d9898ee8 10777
8d138742
CE
10778/* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781#ifdef __cplusplus
10782extern "C"
10783#endif
10784char dld_link ();
10785int
10786main ()
10787{
10788return dld_link ();
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext conftest$ac_exeext
10794if { (ac_try="$ac_link"
10795case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798esac
10799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800$as_echo "$ac_try_echo") >&5
10801 (eval "$ac_link") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest$ac_exeext && {
10811 test "$cross_compiling" = yes ||
10812 $as_test_x conftest$ac_exeext
10813 }; then
10814 ac_cv_lib_dld_dld_link=yes
d9898ee8 10815else
8d138742
CE
10816 $as_echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_cv_lib_dld_dld_link=no
d9898ee8 10820fi
10821
8d138742
CE
10822rm -rf conftest.dSYM
10823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10824 conftest$ac_exeext conftest.$ac_ext
10825LIBS=$ac_check_lib_save_LIBS
10826fi
10827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10828$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10829if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10830 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10831fi
d9898ee8 10832
d9898ee8 10833
8d138742 10834fi
d9898ee8 10835
d9898ee8 10836
8d138742 10837fi
d9898ee8 10838
10839
8d138742 10840fi
d9898ee8 10841
d9898ee8 10842
8d138742 10843fi
d9898ee8 10844
d9898ee8 10845
8d138742 10846fi
d9898ee8 10847
8d138742
CE
10848 ;;
10849 esac
d9898ee8 10850
8d138742
CE
10851 if test "x$lt_cv_dlopen" != xno; then
10852 enable_dlopen=yes
10853 else
10854 enable_dlopen=no
10855 fi
d9898ee8 10856
8d138742
CE
10857 case $lt_cv_dlopen in
10858 dlopen)
10859 save_CPPFLAGS="$CPPFLAGS"
10860 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 10861
8d138742
CE
10862 save_LDFLAGS="$LDFLAGS"
10863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 10864
8d138742
CE
10865 save_LIBS="$LIBS"
10866 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 10867
8d138742
CE
10868 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10869$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10870if test "${lt_cv_dlopen_self+set}" = set; then
10871 $as_echo_n "(cached) " >&6
10872else
10873 if test "$cross_compiling" = yes; then :
10874 lt_cv_dlopen_self=cross
10875else
10876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10877 lt_status=$lt_dlunknown
10878 cat > conftest.$ac_ext <<_LT_EOF
10879#line 10879 "configure"
10880#include "confdefs.h"
d9898ee8 10881
8d138742
CE
10882#if HAVE_DLFCN_H
10883#include <dlfcn.h>
10884#endif
d9898ee8 10885
8d138742 10886#include <stdio.h>
d9898ee8 10887
8d138742
CE
10888#ifdef RTLD_GLOBAL
10889# define LT_DLGLOBAL RTLD_GLOBAL
10890#else
10891# ifdef DL_GLOBAL
10892# define LT_DLGLOBAL DL_GLOBAL
10893# else
10894# define LT_DLGLOBAL 0
10895# endif
10896#endif
d9898ee8 10897
8d138742
CE
10898/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10899 find out it does not work in some platform. */
10900#ifndef LT_DLLAZY_OR_NOW
10901# ifdef RTLD_LAZY
10902# define LT_DLLAZY_OR_NOW RTLD_LAZY
10903# else
10904# ifdef DL_LAZY
10905# define LT_DLLAZY_OR_NOW DL_LAZY
10906# else
10907# ifdef RTLD_NOW
10908# define LT_DLLAZY_OR_NOW RTLD_NOW
10909# else
10910# ifdef DL_NOW
10911# define LT_DLLAZY_OR_NOW DL_NOW
10912# else
10913# define LT_DLLAZY_OR_NOW 0
10914# endif
10915# endif
10916# endif
10917# endif
10918#endif
d9898ee8 10919
8d138742
CE
10920void fnord() { int i=42;}
10921int main ()
10922{
10923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10924 int status = $lt_dlunknown;
d9898ee8 10925
8d138742
CE
10926 if (self)
10927 {
10928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10930 /* dlclose (self); */
10931 }
10932 else
10933 puts (dlerror ());
d9898ee8 10934
8d138742
CE
10935 return status;
10936}
10937_LT_EOF
10938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10939 (eval $ac_link) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10943 (./conftest; exit; ) >&5 2>/dev/null
10944 lt_status=$?
10945 case x$lt_status in
10946 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10947 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10948 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10949 esac
10950 else :
10951 # compilation failed
10952 lt_cv_dlopen_self=no
10953 fi
10954fi
10955rm -fr conftest*
d9898ee8 10956
d9898ee8 10957
8d138742
CE
10958fi
10959{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10960$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 10961
8d138742
CE
10962 if test "x$lt_cv_dlopen_self" = xyes; then
10963 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10964 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10965$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10966if test "${lt_cv_dlopen_self_static+set}" = set; then
10967 $as_echo_n "(cached) " >&6
10968else
10969 if test "$cross_compiling" = yes; then :
10970 lt_cv_dlopen_self_static=cross
10971else
10972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10973 lt_status=$lt_dlunknown
10974 cat > conftest.$ac_ext <<_LT_EOF
10975#line 10975 "configure"
10976#include "confdefs.h"
d9898ee8 10977
8d138742
CE
10978#if HAVE_DLFCN_H
10979#include <dlfcn.h>
10980#endif
d9898ee8 10981
8d138742 10982#include <stdio.h>
d9898ee8 10983
8d138742
CE
10984#ifdef RTLD_GLOBAL
10985# define LT_DLGLOBAL RTLD_GLOBAL
10986#else
10987# ifdef DL_GLOBAL
10988# define LT_DLGLOBAL DL_GLOBAL
10989# else
10990# define LT_DLGLOBAL 0
10991# endif
10992#endif
d9898ee8 10993
8d138742
CE
10994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10995 find out it does not work in some platform. */
10996#ifndef LT_DLLAZY_OR_NOW
10997# ifdef RTLD_LAZY
10998# define LT_DLLAZY_OR_NOW RTLD_LAZY
10999# else
11000# ifdef DL_LAZY
11001# define LT_DLLAZY_OR_NOW DL_LAZY
11002# else
11003# ifdef RTLD_NOW
11004# define LT_DLLAZY_OR_NOW RTLD_NOW
11005# else
11006# ifdef DL_NOW
11007# define LT_DLLAZY_OR_NOW DL_NOW
11008# else
11009# define LT_DLLAZY_OR_NOW 0
11010# endif
11011# endif
11012# endif
11013# endif
11014#endif
d9898ee8 11015
8d138742
CE
11016void fnord() { int i=42;}
11017int main ()
11018{
11019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11020 int status = $lt_dlunknown;
d9898ee8 11021
8d138742
CE
11022 if (self)
11023 {
11024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11026 /* dlclose (self); */
11027 }
11028 else
11029 puts (dlerror ());
d9898ee8 11030
8d138742
CE
11031 return status;
11032}
11033_LT_EOF
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>&5
11036 ac_status=$?
11037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11039 (./conftest; exit; ) >&5 2>/dev/null
11040 lt_status=$?
11041 case x$lt_status in
11042 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11043 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11044 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11045 esac
11046 else :
11047 # compilation failed
11048 lt_cv_dlopen_self_static=no
11049 fi
11050fi
11051rm -fr conftest*
d9898ee8 11052
d9898ee8 11053
8d138742
CE
11054fi
11055{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11056$as_echo "$lt_cv_dlopen_self_static" >&6; }
11057 fi
d9898ee8 11058
8d138742
CE
11059 CPPFLAGS="$save_CPPFLAGS"
11060 LDFLAGS="$save_LDFLAGS"
11061 LIBS="$save_LIBS"
11062 ;;
11063 esac
d9898ee8 11064
8d138742
CE
11065 case $lt_cv_dlopen_self in
11066 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11067 *) enable_dlopen_self=unknown ;;
11068 esac
d9898ee8 11069
8d138742
CE
11070 case $lt_cv_dlopen_self_static in
11071 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11072 *) enable_dlopen_self_static=unknown ;;
11073 esac
11074fi
d9898ee8 11075
d9898ee8 11076
d9898ee8 11077
d9898ee8 11078
d9898ee8 11079
d9898ee8 11080
d9898ee8 11081
d9898ee8 11082
d9898ee8 11083
d9898ee8 11084
d9898ee8 11085
d9898ee8 11086
d9898ee8 11087
d9898ee8 11088
d9898ee8 11089
d9898ee8 11090
d9898ee8 11091
8d138742
CE
11092striplib=
11093old_striplib=
11094{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11095$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11096if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11097 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11098 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11099 { $as_echo "$as_me:$LINENO: result: yes" >&5
11100$as_echo "yes" >&6; }
11101else
11102# FIXME - insert some real tests, host_os isn't really good enough
11103 case $host_os in
11104 darwin*)
11105 if test -n "$STRIP" ; then
11106 striplib="$STRIP -x"
11107 old_striplib="$STRIP -S"
11108 { $as_echo "$as_me:$LINENO: result: yes" >&5
11109$as_echo "yes" >&6; }
11110 else
11111 { $as_echo "$as_me:$LINENO: result: no" >&5
11112$as_echo "no" >&6; }
11113 fi
11114 ;;
11115 *)
11116 { $as_echo "$as_me:$LINENO: result: no" >&5
11117$as_echo "no" >&6; }
11118 ;;
11119 esac
11120fi
d9898ee8 11121
d9898ee8 11122
d9898ee8 11123
d9898ee8 11124
d9898ee8 11125
d9898ee8 11126
d9898ee8 11127
d9898ee8 11128
d9898ee8 11129
d9898ee8 11130
d9898ee8 11131
d9898ee8 11132
8d138742
CE
11133 # Report which library types will actually be built
11134 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11135$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11136 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11137$as_echo "$can_build_shared" >&6; }
d9898ee8 11138
8d138742
CE
11139 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11140$as_echo_n "checking whether to build shared libraries... " >&6; }
11141 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11142
8d138742
CE
11143 # On AIX, shared libraries and static libraries use the same namespace, and
11144 # are all built from PIC.
11145 case $host_os in
11146 aix3*)
11147 test "$enable_shared" = yes && enable_static=no
11148 if test -n "$RANLIB"; then
11149 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11150 postinstall_cmds='$RANLIB $lib'
11151 fi
11152 ;;
d9898ee8 11153
8d138742
CE
11154 aix[4-9]*)
11155 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11156 test "$enable_shared" = yes && enable_static=no
11157 fi
11158 ;;
11159 esac
11160 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11161$as_echo "$enable_shared" >&6; }
d9898ee8 11162
8d138742
CE
11163 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11164$as_echo_n "checking whether to build static libraries... " >&6; }
11165 # Make sure either enable_shared or enable_static is yes.
11166 test "$enable_shared" = yes || enable_static=yes
11167 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11168$as_echo "$enable_static" >&6; }
d9898ee8 11169
d9898ee8 11170
d9898ee8 11171
d9898ee8 11172
8d138742
CE
11173fi
11174ac_ext=c
11175ac_cpp='$CPP $CPPFLAGS'
11176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11179
8d138742 11180CC="$lt_save_CC"
d9898ee8 11181
d9898ee8 11182
d9898ee8 11183
d9898ee8 11184
d9898ee8 11185
d9898ee8 11186
d9898ee8 11187
d9898ee8 11188
d9898ee8 11189
d9898ee8 11190
d9898ee8 11191
d9898ee8 11192
d9898ee8 11193
8d138742 11194 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11195
d9898ee8 11196
d9898ee8 11197
d9898ee8 11198
8d138742 11199# Only expand once:
d9898ee8 11200
d9898ee8 11201
d9898ee8 11202
8d138742
CE
11203if test "$GCC" = yes
11204then
11205 CFLAGS="-Wall $CFLAGS"
11206fi
d9898ee8 11207
8d138742 11208CFLAGS="$CFLAGS -I$srcdir/.. -I.."
d9898ee8 11209
d9898ee8 11210
8d138742
CE
11211{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11212$as_echo_n "checking for ANSI C header files... " >&6; }
11213if test "${ac_cv_header_stdc+set}" = set; then
11214 $as_echo_n "(cached) " >&6
11215else
11216 cat >conftest.$ac_ext <<_ACEOF
11217/* confdefs.h. */
11218_ACEOF
11219cat confdefs.h >>conftest.$ac_ext
11220cat >>conftest.$ac_ext <<_ACEOF
11221/* end confdefs.h. */
11222#include <stdlib.h>
11223#include <stdarg.h>
11224#include <string.h>
11225#include <float.h>
d9898ee8 11226
8d138742
CE
11227int
11228main ()
11229{
d9898ee8 11230
8d138742
CE
11231 ;
11232 return 0;
11233}
11234_ACEOF
11235rm -f conftest.$ac_objext
11236if { (ac_try="$ac_compile"
11237case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
11241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242$as_echo "$ac_try_echo") >&5
11243 (eval "$ac_compile") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest.$ac_objext; then
11253 ac_cv_header_stdc=yes
11254else
11255 $as_echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11257
8d138742
CE
11258 ac_cv_header_stdc=no
11259fi
d9898ee8 11260
8d138742 11261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11262
8d138742
CE
11263if test $ac_cv_header_stdc = yes; then
11264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11265 cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271#include <string.h>
d9898ee8 11272
8d138742
CE
11273_ACEOF
11274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11275 $EGREP "memchr" >/dev/null 2>&1; then
11276 :
11277else
11278 ac_cv_header_stdc=no
11279fi
11280rm -f conftest*
d9898ee8 11281
8d138742 11282fi
d9898ee8 11283
8d138742
CE
11284if test $ac_cv_header_stdc = yes; then
11285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11286 cat >conftest.$ac_ext <<_ACEOF
11287/* confdefs.h. */
11288_ACEOF
11289cat confdefs.h >>conftest.$ac_ext
11290cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */
11292#include <stdlib.h>
d9898ee8 11293
8d138742
CE
11294_ACEOF
11295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11296 $EGREP "free" >/dev/null 2>&1; then
11297 :
11298else
11299 ac_cv_header_stdc=no
11300fi
11301rm -f conftest*
d9898ee8 11302
8d138742 11303fi
d9898ee8 11304
8d138742
CE
11305if test $ac_cv_header_stdc = yes; then
11306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11307 if test "$cross_compiling" = yes; then
11308 :
11309else
11310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316#include <ctype.h>
11317#include <stdlib.h>
11318#if ((' ' & 0x0FF) == 0x020)
11319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11321#else
11322# define ISLOWER(c) \
11323 (('a' <= (c) && (c) <= 'i') \
11324 || ('j' <= (c) && (c) <= 'r') \
11325 || ('s' <= (c) && (c) <= 'z'))
11326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11327#endif
d9898ee8 11328
8d138742
CE
11329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11330int
11331main ()
11332{
11333 int i;
11334 for (i = 0; i < 256; i++)
11335 if (XOR (islower (i), ISLOWER (i))
11336 || toupper (i) != TOUPPER (i))
11337 return 2;
11338 return 0;
11339}
11340_ACEOF
11341rm -f conftest$ac_exeext
11342if { (ac_try="$ac_link"
11343case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11348$as_echo "$ac_try_echo") >&5
11349 (eval "$ac_link") 2>&5
11350 ac_status=$?
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11353 { (case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11358$as_echo "$ac_try_echo") >&5
11359 (eval "$ac_try") 2>&5
11360 ac_status=$?
11361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 :
11364else
11365 $as_echo "$as_me: program exited with status $ac_status" >&5
11366$as_echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11368
8d138742
CE
11369( exit $ac_status )
11370ac_cv_header_stdc=no
11371fi
11372rm -rf conftest.dSYM
11373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11374fi
d9898ee8 11375
d9898ee8 11376
8d138742
CE
11377fi
11378fi
11379{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11380$as_echo "$ac_cv_header_stdc" >&6; }
11381if test $ac_cv_header_stdc = yes; then
d9898ee8 11382
8d138742
CE
11383cat >>confdefs.h <<\_ACEOF
11384#define STDC_HEADERS 1
11385_ACEOF
d9898ee8 11386
d9898ee8 11387fi
11388
11389
d9898ee8 11390
8d138742
CE
11391for ac_header in sys/types.h
11392do
11393as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11396$as_echo_n "checking for $ac_header... " >&6; }
11397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 $as_echo_n "(cached) " >&6
11399fi
11400ac_res=`eval 'as_val=${'$as_ac_Header'}
11401 $as_echo "$as_val"'`
11402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11403$as_echo "$ac_res" >&6; }
11404else
11405 # Is the header compilable?
11406{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11407$as_echo_n "checking $ac_header usability... " >&6; }
11408cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414$ac_includes_default
11415#include <$ac_header>
11416_ACEOF
11417rm -f conftest.$ac_objext
11418if { (ac_try="$ac_compile"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11424$as_echo "$ac_try_echo") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.$ac_objext; then
11435 ac_header_compiler=yes
11436else
11437 $as_echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11439
8d138742
CE
11440 ac_header_compiler=no
11441fi
d9898ee8 11442
8d138742
CE
11443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11445$as_echo "$ac_header_compiler" >&6; }
d9898ee8 11446
8d138742
CE
11447# Is the header present?
11448{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11449$as_echo_n "checking $ac_header presence... " >&6; }
11450cat >conftest.$ac_ext <<_ACEOF
11451/* confdefs.h. */
11452_ACEOF
11453cat confdefs.h >>conftest.$ac_ext
11454cat >>conftest.$ac_ext <<_ACEOF
11455/* end confdefs.h. */
11456#include <$ac_header>
11457_ACEOF
11458if { (ac_try="$ac_cpp conftest.$ac_ext"
11459case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462esac
11463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11464$as_echo "$ac_try_echo") >&5
11465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } >/dev/null && {
11472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 }; then
11475 ac_header_preproc=yes
11476else
11477 $as_echo "$as_me: failed program was:" >&5
11478sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11479
8d138742 11480 ac_header_preproc=no
d9898ee8 11481fi
11482
8d138742
CE
11483rm -f conftest.err conftest.$ac_ext
11484{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11485$as_echo "$ac_header_preproc" >&6; }
d9898ee8 11486
8d138742
CE
11487# So? What about this header?
11488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11489 yes:no: )
11490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11491$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11493$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11494 ac_header_preproc=yes
11495 ;;
11496 no:yes:* )
11497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11498$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11500$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11502$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11504$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11506$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11508$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11509 ( cat <<\_ASBOX
11510## -------------------------------------------------- ##
11511## Report this to courier-users@lists.sourceforge.net ##
11512## -------------------------------------------------- ##
11513_ASBOX
11514 ) | sed "s/^/$as_me: WARNING: /" >&2
11515 ;;
11516esac
11517{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11518$as_echo_n "checking for $ac_header... " >&6; }
11519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 $as_echo_n "(cached) " >&6
11521else
11522 eval "$as_ac_Header=\$ac_header_preproc"
11523fi
11524ac_res=`eval 'as_val=${'$as_ac_Header'}
11525 $as_echo "$as_val"'`
11526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11527$as_echo "$ac_res" >&6; }
d9898ee8 11528
8d138742
CE
11529fi
11530as_val=`eval 'as_val=${'$as_ac_Header'}
11531 $as_echo "$as_val"'`
11532 if test "x$as_val" = x""yes; then
11533 cat >>confdefs.h <<_ACEOF
11534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11535_ACEOF
d9898ee8 11536
8d138742 11537fi
d9898ee8 11538
8d138742 11539done
d9898ee8 11540
11541
11542
11543
8d138742
CE
11544# Check whether --with-int32 was given.
11545if test "${with_int32+set}" = set; then
11546 withval=$with_int32; int32="$withval"
11547else
d9898ee8 11548
11549
8d138742
CE
11550 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11551$as_echo_n "checking for uint32_t... " >&6; }
d9898ee8 11552
8d138742
CE
11553 cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
d9898ee8 11559
8d138742
CE
11560#if HAVE_SYS_TYPES_H
11561#include <sys/types.h>
11562#endif
d9898ee8 11563
8d138742
CE
11564int
11565main ()
11566{
d9898ee8 11567
8d138742 11568 uint32_t i=0;
d9898ee8 11569
8d138742
CE
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574rm -f conftest.$ac_objext
11575if { (ac_try="$ac_compile"
11576case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579esac
11580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11581$as_echo "$ac_try_echo") >&5
11582 (eval "$ac_compile") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest.$ac_objext; then
11592 { $as_echo "$as_me:$LINENO: result: yes" >&5
11593$as_echo "yes" >&6; } ; int32="uint32_t"
11594else
11595 $as_echo "$as_me: failed program was:" >&5
11596sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11597
11598
11599
8d138742
CE
11600 { $as_echo "$as_me:$LINENO: result: no" >&5
11601$as_echo "no" >&6; }
11602 { $as_echo "$as_me:$LINENO: checking for u_int_32_t" >&5
11603$as_echo_n "checking for u_int_32_t... " >&6; }
d9898ee8 11604
8d138742
CE
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
d9898ee8 11611
8d138742
CE
11612#if HAVE_SYS_TYPES_H
11613#include <sys/types.h>
11614#endif
d9898ee8 11615
8d138742
CE
11616int
11617main ()
11618{
d9898ee8 11619
8d138742 11620 u_int32_t i=0;
d9898ee8 11621
8d138742
CE
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626rm -f conftest.$ac_objext
11627if { (ac_try="$ac_compile"
11628case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11633$as_echo "$ac_try_echo") >&5
11634 (eval "$ac_compile") 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest.$ac_objext; then
11644 { $as_echo "$as_me:$LINENO: result: yes" >&5
11645$as_echo "yes" >&6; }; int32="u_int32_t"
11646else
11647 $as_echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11649
d9898ee8 11650
d9898ee8 11651
8d138742
CE
11652 { $as_echo "$as_me:$LINENO: result: no" >&5
11653$as_echo "no" >&6; }
d9898ee8 11654
8d138742
CE
11655 # The cast to long int works around a bug in the HP C Compiler
11656# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11657# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11658# This bug is HP SR number 8606223364.
11659{ $as_echo "$as_me:$LINENO: checking size of unsigned" >&5
11660$as_echo_n "checking size of unsigned... " >&6; }
11661if test "${ac_cv_sizeof_unsigned+set}" = set; then
11662 $as_echo_n "(cached) " >&6
d9898ee8 11663else
8d138742
CE
11664 if test "$cross_compiling" = yes; then
11665 # Depending upon the size, compute the lo and hi bounds.
11666cat >conftest.$ac_ext <<_ACEOF
d9898ee8 11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
8d138742
CE
11672$ac_includes_default
11673int
11674main ()
11675{
11676static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= 0)];
11677test_array [0] = 0
d9898ee8 11678
8d138742
CE
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (ac_try="$ac_compile"
11685case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11690$as_echo "$ac_try_echo") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_lo=0 ac_mid=0
11702 while :; do
11703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
11709$ac_includes_default
d9898ee8 11710int
11711main ()
11712{
8d138742
CE
11713static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
11714test_array [0] = 0
d9898ee8 11715
11716 ;
11717 return 0;
11718}
11719_ACEOF
11720rm -f conftest.$ac_objext
dd184caf 11721if { (ac_try="$ac_compile"
11722case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725esac
8d138742
CE
11726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11727$as_echo "$ac_try_echo") >&5
dd184caf 11728 (eval "$ac_compile") 2>conftest.er1
d9898ee8 11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
8d138742 11733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11734 (exit $ac_status); } && {
11735 test -z "$ac_c_werror_flag" ||
11736 test ! -s conftest.err
11737 } && test -s conftest.$ac_objext; then
8d138742 11738 ac_hi=$ac_mid; break
d9898ee8 11739else
8d138742 11740 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11741sed 's/^/| /' conftest.$ac_ext >&5
11742
8d138742
CE
11743 ac_lo=`expr $ac_mid + 1`
11744 if test $ac_lo -le $ac_mid; then
11745 ac_lo= ac_hi=
11746 break
11747 fi
11748 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 11749fi
dd184caf 11750
11751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
11752 done
11753else
11754 $as_echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11756
8d138742 11757 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
8d138742
CE
11763$ac_includes_default
11764int
11765main ()
11766{
11767static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) < 0)];
11768test_array [0] = 0
d9898ee8 11769
8d138742
CE
11770 ;
11771 return 0;
11772}
d9898ee8 11773_ACEOF
8d138742
CE
11774rm -f conftest.$ac_objext
11775if { (ac_try="$ac_compile"
11776case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11781$as_echo "$ac_try_echo") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest.$ac_objext; then
11792 ac_hi=-1 ac_mid=-1
11793 while :; do
11794 cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
11800$ac_includes_default
11801int
11802main ()
11803{
11804static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= $ac_mid)];
11805test_array [0] = 0
11806
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (ac_try="$ac_compile"
11813case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11818$as_echo "$ac_try_echo") >&5
11819 (eval "$ac_compile") 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } && {
11826 test -z "$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11828 } && test -s conftest.$ac_objext; then
11829 ac_lo=$ac_mid; break
d9898ee8 11830else
8d138742
CE
11831 $as_echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 ac_hi=`expr '(' $ac_mid ')' - 1`
11835 if test $ac_mid -le $ac_hi; then
11836 ac_lo= ac_hi=
11837 break
11838 fi
11839 ac_mid=`expr 2 '*' $ac_mid`
11840fi
11841
11842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843 done
11844else
11845 $as_echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_lo= ac_hi=
d9898ee8 11849fi
d9898ee8 11850
8d138742 11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11852fi
11853
8d138742
CE
11854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855# Binary search between lo and hi bounds.
11856while test "x$ac_lo" != "x$ac_hi"; do
11857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
d9898ee8 11858 cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
8d138742
CE
11864$ac_includes_default
11865int
11866main ()
11867{
11868static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
11869test_array [0] = 0
d9898ee8 11870
8d138742
CE
11871 ;
11872 return 0;
11873}
d9898ee8 11874_ACEOF
8d138742
CE
11875rm -f conftest.$ac_objext
11876if { (ac_try="$ac_compile"
11877case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11880esac
11881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11882$as_echo "$ac_try_echo") >&5
11883 (eval "$ac_compile") 2>conftest.er1
11884 ac_status=$?
11885 grep -v '^ *+' conftest.er1 >conftest.err
11886 rm -f conftest.er1
11887 cat conftest.err >&5
11888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } && {
11890 test -z "$ac_c_werror_flag" ||
11891 test ! -s conftest.err
11892 } && test -s conftest.$ac_objext; then
11893 ac_hi=$ac_mid
11894else
11895 $as_echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11897
8d138742 11898 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 11899fi
11900
8d138742
CE
11901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902done
11903case $ac_lo in
11904?*) ac_cv_sizeof_unsigned=$ac_lo;;
11905'') if test "$ac_cv_type_unsigned" = yes; then
11906 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11908{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
11909See \`config.log' for more details." >&5
11910$as_echo "$as_me: error: cannot compute sizeof (unsigned)
11911See \`config.log' for more details." >&2;}
11912 { (exit 77); exit 77; }; }; }
11913 else
11914 ac_cv_sizeof_unsigned=0
11915 fi ;;
11916esac
d9898ee8 11917else
11918 cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
8d138742
CE
11924$ac_includes_default
11925static long int longval () { return (long int) (sizeof (unsigned)); }
11926static unsigned long int ulongval () { return (long int) (sizeof (unsigned)); }
11927#include <stdio.h>
dd184caf 11928#include <stdlib.h>
d9898ee8 11929int
11930main ()
11931{
8d138742
CE
11932
11933 FILE *f = fopen ("conftest.val", "w");
11934 if (! f)
11935 return 1;
11936 if (((long int) (sizeof (unsigned))) < 0)
11937 {
11938 long int i = longval ();
11939 if (i != ((long int) (sizeof (unsigned))))
11940 return 1;
11941 fprintf (f, "%ld", i);
11942 }
11943 else
11944 {
11945 unsigned long int i = ulongval ();
11946 if (i != ((long int) (sizeof (unsigned))))
11947 return 1;
11948 fprintf (f, "%lu", i);
11949 }
11950 /* Do not output a trailing newline, as this causes \r\n confusion
11951 on some platforms. */
11952 return ferror (f) || fclose (f) != 0;
11953
11954 ;
dd184caf 11955 return 0;
d9898ee8 11956}
11957_ACEOF
11958rm -f conftest$ac_exeext
dd184caf 11959if { (ac_try="$ac_link"
11960case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
8d138742
CE
11964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965$as_echo "$ac_try_echo") >&5
dd184caf 11966 (eval "$ac_link") 2>&5
d9898ee8 11967 ac_status=$?
8d138742 11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 11969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
8d138742
CE
11974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975$as_echo "$ac_try_echo") >&5
dd184caf 11976 (eval "$ac_try") 2>&5
d9898ee8 11977 ac_status=$?
8d138742 11978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 11979 (exit $ac_status); }; }; then
8d138742 11980 ac_cv_sizeof_unsigned=`cat conftest.val`
d9898ee8 11981else
8d138742
CE
11982 $as_echo "$as_me: program exited with status $ac_status" >&5
11983$as_echo "$as_me: failed program was:" >&5
d9898ee8 11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986( exit $ac_status )
8d138742
CE
11987if test "$ac_cv_type_unsigned" = yes; then
11988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11990{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
11991See \`config.log' for more details." >&5
11992$as_echo "$as_me: error: cannot compute sizeof (unsigned)
11993See \`config.log' for more details." >&2;}
11994 { (exit 77); exit 77; }; }; }
11995 else
11996 ac_cv_sizeof_unsigned=0
11997 fi
d9898ee8 11998fi
8d138742 11999rm -rf conftest.dSYM
dd184caf 12000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12001fi
8d138742 12002rm -f conftest.val
d9898ee8 12003fi
8d138742
CE
12004{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
12005$as_echo "$ac_cv_sizeof_unsigned" >&6; }
d9898ee8 12006
d9898ee8 12007
d9898ee8 12008
8d138742
CE
12009cat >>confdefs.h <<_ACEOF
12010#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12011_ACEOF
d9898ee8 12012
12013
8d138742
CE
12014 if test "$ac_cv_sizeof_unsigned" != 4
12015 then
12016 # The cast to long int works around a bug in the HP C Compiler
12017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12019# This bug is HP SR number 8606223364.
12020{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
12021$as_echo_n "checking size of unsigned long... " >&6; }
12022if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12023 $as_echo_n "(cached) " >&6
d9898ee8 12024else
8d138742
CE
12025 if test "$cross_compiling" = yes; then
12026 # Depending upon the size, compute the lo and hi bounds.
d9898ee8 12027cat >conftest.$ac_ext <<_ACEOF
12028/* confdefs.h. */
12029_ACEOF
12030cat confdefs.h >>conftest.$ac_ext
12031cat >>conftest.$ac_ext <<_ACEOF
12032/* end confdefs.h. */
12033$ac_includes_default
8d138742
CE
12034int
12035main ()
12036{
12037static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
12038test_array [0] = 0
12039
12040 ;
12041 return 0;
12042}
d9898ee8 12043_ACEOF
12044rm -f conftest.$ac_objext
dd184caf 12045if { (ac_try="$ac_compile"
12046case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049esac
8d138742
CE
12050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051$as_echo "$ac_try_echo") >&5
dd184caf 12052 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
8d138742 12057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
8d138742
CE
12062 ac_lo=0 ac_mid=0
12063 while :; do
12064 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12065/* confdefs.h. */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h. */
8d138742
CE
12070$ac_includes_default
12071int
12072main ()
12073{
12074static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
12075test_array [0] = 0
12076
12077 ;
12078 return 0;
12079}
d9898ee8 12080_ACEOF
8d138742
CE
12081rm -f conftest.$ac_objext
12082if { (ac_try="$ac_compile"
dd184caf 12083case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
8d138742
CE
12087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12088$as_echo "$ac_try_echo") >&5
12089 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
8d138742
CE
12094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } && {
12096 test -z "$ac_c_werror_flag" ||
dd184caf 12097 test ! -s conftest.err
8d138742
CE
12098 } && test -s conftest.$ac_objext; then
12099 ac_hi=$ac_mid; break
d9898ee8 12100else
8d138742 12101 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12102sed 's/^/| /' conftest.$ac_ext >&5
12103
8d138742
CE
12104 ac_lo=`expr $ac_mid + 1`
12105 if test $ac_lo -le $ac_mid; then
12106 ac_lo= ac_hi=
12107 break
12108 fi
12109 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 12110fi
dd184caf 12111
8d138742
CE
12112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 done
d9898ee8 12114else
8d138742
CE
12115 $as_echo "$as_me: failed program was:" >&5
12116sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12117
8d138742
CE
12118 cat >conftest.$ac_ext <<_ACEOF
12119/* confdefs.h. */
d9898ee8 12120_ACEOF
8d138742
CE
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
12124$ac_includes_default
12125int
12126main ()
12127{
12128static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
12129test_array [0] = 0
d9898ee8 12130
8d138742
CE
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135rm -f conftest.$ac_objext
12136if { (ac_try="$ac_compile"
12137case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140esac
12141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142$as_echo "$ac_try_echo") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.$ac_objext; then
12153 ac_hi=-1 ac_mid=-1
12154 while :; do
12155 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
8d138742 12161$ac_includes_default
d9898ee8 12162int
12163main ()
12164{
8d138742
CE
12165static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
12166test_array [0] = 0
d9898ee8 12167
12168 ;
12169 return 0;
12170}
12171_ACEOF
12172rm -f conftest.$ac_objext
dd184caf 12173if { (ac_try="$ac_compile"
12174case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
8d138742
CE
12178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12179$as_echo "$ac_try_echo") >&5
dd184caf 12180 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
8d138742 12185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
8d138742 12190 ac_lo=$ac_mid; break
d9898ee8 12191else
8d138742 12192 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12193sed 's/^/| /' conftest.$ac_ext >&5
12194
8d138742
CE
12195 ac_hi=`expr '(' $ac_mid ')' - 1`
12196 if test $ac_mid -le $ac_hi; then
12197 ac_lo= ac_hi=
12198 break
12199 fi
12200 ac_mid=`expr 2 '*' $ac_mid`
12201fi
d9898ee8 12202
8d138742
CE
12203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 done
12205else
12206 $as_echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12208
8d138742
CE
12209 ac_lo= ac_hi=
12210fi
d9898ee8 12211
8d138742
CE
12212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213fi
12214
12215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216# Binary search between lo and hi bounds.
12217while test "x$ac_lo" != "x$ac_hi"; do
12218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12219 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12220/* confdefs.h. */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
12224/* end confdefs.h. */
8d138742 12225$ac_includes_default
d9898ee8 12226int
12227main ()
12228{
8d138742
CE
12229static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
12230test_array [0] = 0
d9898ee8 12231
12232 ;
12233 return 0;
12234}
12235_ACEOF
12236rm -f conftest.$ac_objext
dd184caf 12237if { (ac_try="$ac_compile"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
8d138742
CE
12242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12243$as_echo "$ac_try_echo") >&5
dd184caf 12244 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
8d138742 12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest.$ac_objext; then
8d138742 12254 ac_hi=$ac_mid
d9898ee8 12255else
8d138742 12256 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12257sed 's/^/| /' conftest.$ac_ext >&5
12258
8d138742
CE
12259 ac_lo=`expr '(' $ac_mid ')' + 1`
12260fi
d9898ee8 12261
8d138742
CE
12262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263done
12264case $ac_lo in
12265?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12266'') if test "$ac_cv_type_unsigned_long" = yes; then
12267 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12269{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
12270See \`config.log' for more details." >&5
12271$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
12272See \`config.log' for more details." >&2;}
12273 { (exit 77); exit 77; }; }; }
12274 else
12275 ac_cv_sizeof_unsigned_long=0
12276 fi ;;
12277esac
d9898ee8 12278else
12279 cat >conftest.$ac_ext <<_ACEOF
12280/* confdefs.h. */
12281_ACEOF
12282cat confdefs.h >>conftest.$ac_ext
12283cat >>conftest.$ac_ext <<_ACEOF
12284/* end confdefs.h. */
12285$ac_includes_default
8d138742
CE
12286static long int longval () { return (long int) (sizeof (unsigned long)); }
12287static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
12288#include <stdio.h>
12289#include <stdlib.h>
d9898ee8 12290int
12291main ()
12292{
8d138742
CE
12293
12294 FILE *f = fopen ("conftest.val", "w");
12295 if (! f)
12296 return 1;
12297 if (((long int) (sizeof (unsigned long))) < 0)
12298 {
12299 long int i = longval ();
12300 if (i != ((long int) (sizeof (unsigned long))))
12301 return 1;
12302 fprintf (f, "%ld", i);
12303 }
12304 else
12305 {
12306 unsigned long int i = ulongval ();
12307 if (i != ((long int) (sizeof (unsigned long))))
12308 return 1;
12309 fprintf (f, "%lu", i);
12310 }
12311 /* Do not output a trailing newline, as this causes \r\n confusion
12312 on some platforms. */
12313 return ferror (f) || fclose (f) != 0;
12314
d9898ee8 12315 ;
12316 return 0;
12317}
12318_ACEOF
8d138742
CE
12319rm -f conftest$ac_exeext
12320if { (ac_try="$ac_link"
dd184caf 12321case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324esac
8d138742
CE
12325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12326$as_echo "$ac_try_echo") >&5
12327 (eval "$ac_link") 2>&5
d9898ee8 12328 ac_status=$?
8d138742
CE
12329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
12335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336$as_echo "$ac_try_echo") >&5
12337 (eval "$ac_try") 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_sizeof_unsigned_long=`cat conftest.val`
d9898ee8 12342else
8d138742
CE
12343 $as_echo "$as_me: program exited with status $ac_status" >&5
12344$as_echo "$as_me: failed program was:" >&5
d9898ee8 12345sed 's/^/| /' conftest.$ac_ext >&5
12346
8d138742
CE
12347( exit $ac_status )
12348if test "$ac_cv_type_unsigned_long" = yes; then
12349 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12351{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
12352See \`config.log' for more details." >&5
12353$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
12354See \`config.log' for more details." >&2;}
12355 { (exit 77); exit 77; }; }; }
12356 else
12357 ac_cv_sizeof_unsigned_long=0
12358 fi
d9898ee8 12359fi
8d138742
CE
12360rm -rf conftest.dSYM
12361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12362fi
12363rm -f conftest.val
d9898ee8 12364fi
8d138742
CE
12365{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12366$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12367
12368
12369
12370cat >>confdefs.h <<_ACEOF
12371#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12372_ACEOF
d9898ee8 12373
8d138742
CE
12374
12375 if test "$ac_cv_sizeof_unsigned_long" != 4
12376 then
12377 # The cast to long int works around a bug in the HP C Compiler
dd184caf 12378# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12379# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12380# This bug is HP SR number 8606223364.
8d138742
CE
12381{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
12382$as_echo_n "checking size of unsigned short... " >&6; }
12383if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
12384 $as_echo_n "(cached) " >&6
d9898ee8 12385else
d9898ee8 12386 if test "$cross_compiling" = yes; then
12387 # Depending upon the size, compute the lo and hi bounds.
12388cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394$ac_includes_default
12395int
12396main ()
12397{
8d138742 12398static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
d9898ee8 12399test_array [0] = 0
12400
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405rm -f conftest.$ac_objext
dd184caf 12406if { (ac_try="$ac_compile"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
8d138742
CE
12411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412$as_echo "$ac_try_echo") >&5
dd184caf 12413 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
8d138742 12418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
d9898ee8 12423 ac_lo=0 ac_mid=0
12424 while :; do
12425 cat >conftest.$ac_ext <<_ACEOF
12426/* confdefs.h. */
12427_ACEOF
12428cat confdefs.h >>conftest.$ac_ext
12429cat >>conftest.$ac_ext <<_ACEOF
12430/* end confdefs.h. */
12431$ac_includes_default
12432int
12433main ()
12434{
8d138742 12435static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
d9898ee8 12436test_array [0] = 0
12437
12438 ;
12439 return 0;
12440}
12441_ACEOF
12442rm -f conftest.$ac_objext
dd184caf 12443if { (ac_try="$ac_compile"
12444case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12447esac
8d138742
CE
12448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449$as_echo "$ac_try_echo") >&5
dd184caf 12450 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
8d138742 12455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12456 (exit $ac_status); } && {
12457 test -z "$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 } && test -s conftest.$ac_objext; then
d9898ee8 12460 ac_hi=$ac_mid; break
12461else
8d138742 12462 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12463sed 's/^/| /' conftest.$ac_ext >&5
12464
dd184caf 12465 ac_lo=`expr $ac_mid + 1`
12466 if test $ac_lo -le $ac_mid; then
12467 ac_lo= ac_hi=
12468 break
12469 fi
12470 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 12471fi
dd184caf 12472
12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12474 done
12475else
8d138742 12476 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12477sed 's/^/| /' conftest.$ac_ext >&5
12478
dd184caf 12479 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
12485$ac_includes_default
12486int
12487main ()
12488{
8d138742 12489static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
d9898ee8 12490test_array [0] = 0
12491
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496rm -f conftest.$ac_objext
dd184caf 12497if { (ac_try="$ac_compile"
12498case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
8d138742
CE
12502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12503$as_echo "$ac_try_echo") >&5
dd184caf 12504 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
8d138742 12509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
d9898ee8 12514 ac_hi=-1 ac_mid=-1
12515 while :; do
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522$ac_includes_default
12523int
12524main ()
12525{
8d138742 12526static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
d9898ee8 12527test_array [0] = 0
12528
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext
dd184caf 12534if { (ac_try="$ac_compile"
12535case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538esac
8d138742
CE
12539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540$as_echo "$ac_try_echo") >&5
dd184caf 12541 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
8d138742 12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest.$ac_objext; then
d9898ee8 12551 ac_lo=$ac_mid; break
12552else
8d138742 12553 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12554sed 's/^/| /' conftest.$ac_ext >&5
12555
dd184caf 12556 ac_hi=`expr '(' $ac_mid ')' - 1`
12557 if test $ac_mid -le $ac_hi; then
12558 ac_lo= ac_hi=
12559 break
12560 fi
12561 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 12562fi
dd184caf 12563
12564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12565 done
12566else
8d138742 12567 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12568sed 's/^/| /' conftest.$ac_ext >&5
12569
dd184caf 12570 ac_lo= ac_hi=
d9898ee8 12571fi
dd184caf 12572
12573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12574fi
dd184caf 12575
12576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12577# Binary search between lo and hi bounds.
12578while test "x$ac_lo" != "x$ac_hi"; do
12579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12580 cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586$ac_includes_default
12587int
12588main ()
12589{
8d138742 12590static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
d9898ee8 12591test_array [0] = 0
12592
12593 ;
12594 return 0;
12595}
12596_ACEOF
12597rm -f conftest.$ac_objext
dd184caf 12598if { (ac_try="$ac_compile"
12599case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
8d138742
CE
12603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12604$as_echo "$ac_try_echo") >&5
12605 (eval "$ac_compile") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest.$ac_objext; then
12615 ac_hi=$ac_mid
12616else
12617 $as_echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 ac_lo=`expr '(' $ac_mid ')' + 1`
12621fi
12622
12623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624done
12625case $ac_lo in
12626?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
12627'') if test "$ac_cv_type_unsigned_short" = yes; then
12628 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12630{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
12631See \`config.log' for more details." >&5
12632$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
12633See \`config.log' for more details." >&2;}
12634 { (exit 77); exit 77; }; }; }
12635 else
12636 ac_cv_sizeof_unsigned_short=0
12637 fi ;;
12638esac
12639else
12640 cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646$ac_includes_default
12647static long int longval () { return (long int) (sizeof (unsigned short)); }
12648static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
12649#include <stdio.h>
12650#include <stdlib.h>
12651int
12652main ()
12653{
12654
12655 FILE *f = fopen ("conftest.val", "w");
12656 if (! f)
12657 return 1;
12658 if (((long int) (sizeof (unsigned short))) < 0)
12659 {
12660 long int i = longval ();
12661 if (i != ((long int) (sizeof (unsigned short))))
12662 return 1;
12663 fprintf (f, "%ld", i);
12664 }
12665 else
12666 {
12667 unsigned long int i = ulongval ();
12668 if (i != ((long int) (sizeof (unsigned short))))
12669 return 1;
12670 fprintf (f, "%lu", i);
12671 }
12672 /* Do not output a trailing newline, as this causes \r\n confusion
12673 on some platforms. */
12674 return ferror (f) || fclose (f) != 0;
12675
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680rm -f conftest$ac_exeext
12681if { (ac_try="$ac_link"
12682case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12687$as_echo "$ac_try_echo") >&5
12688 (eval "$ac_link") 2>&5
12689 ac_status=$?
12690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12692 { (case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695esac
12696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697$as_echo "$ac_try_echo") >&5
12698 (eval "$ac_try") 2>&5
12699 ac_status=$?
12700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_sizeof_unsigned_short=`cat conftest.val`
12703else
12704 $as_echo "$as_me: program exited with status $ac_status" >&5
12705$as_echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708( exit $ac_status )
12709if test "$ac_cv_type_unsigned_short" = yes; then
12710 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12712{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
12713See \`config.log' for more details." >&5
12714$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
12715See \`config.log' for more details." >&2;}
12716 { (exit 77); exit 77; }; }; }
12717 else
12718 ac_cv_sizeof_unsigned_short=0
12719 fi
12720fi
12721rm -rf conftest.dSYM
12722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12723fi
12724rm -f conftest.val
12725fi
12726{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
12727$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12728
12729
12730
12731cat >>confdefs.h <<_ACEOF
12732#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12733_ACEOF
12734
12735
12736 if test "$ac_cv_sizeof_unsigned_short" != 4
12737 then
12738 { { $as_echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
12739$as_echo "$as_me: error: --with-int32 option is required" >&2;}
12740 { (exit 1); exit 1; }; }
12741 fi
12742 int32="unsigned short"
12743 fi
12744 int32="unsigned long"
12745 else
12746 int32="unsigned"
12747 fi
12748
12749fi
12750
12751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752
12753fi
12754
12755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756
12757
12758fi
12759
12760UINT32="$int32"
12761
12762
12763cat >>confdefs.h <<_ACEOF
12764#define MD5_WORD $UINT32
12765_ACEOF
12766
12767
12768{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12769$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12770if test "${ac_cv_c_const+set}" = set; then
12771 $as_echo_n "(cached) " >&6
12772else
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779
12780int
12781main ()
12782{
12783/* FIXME: Include the comments suggested by Paul. */
12784#ifndef __cplusplus
12785 /* Ultrix mips cc rejects this. */
12786 typedef int charset[2];
12787 const charset cs;
12788 /* SunOS 4.1.1 cc rejects this. */
12789 char const *const *pcpcc;
12790 char **ppc;
12791 /* NEC SVR4.0.2 mips cc rejects this. */
12792 struct point {int x, y;};
12793 static struct point const zero = {0,0};
12794 /* AIX XL C 1.02.0.0 rejects this.
12795 It does not let you subtract one const X* pointer from another in
12796 an arm of an if-expression whose if-part is not a constant
12797 expression */
12798 const char *g = "string";
12799 pcpcc = &g + (g ? g-g : 0);
12800 /* HPUX 7.0 cc rejects these. */
12801 ++pcpcc;
12802 ppc = (char**) pcpcc;
12803 pcpcc = (char const *const *) ppc;
12804 { /* SCO 3.2v4 cc rejects this. */
12805 char *t;
12806 char const *s = 0 ? (char *) 0 : (char const *) 0;
12807
12808 *t++ = 0;
12809 if (s) return 0;
12810 }
12811 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12812 int x[] = {25, 17};
12813 const int *foo = &x[0];
12814 ++foo;
12815 }
12816 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12817 typedef const int *iptr;
12818 iptr p = 0;
12819 ++p;
12820 }
12821 { /* AIX XL C 1.02.0.0 rejects this saying
12822 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12823 struct s { int j; const int *ap[3]; };
12824 struct s *b; b->j = 5;
12825 }
12826 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12827 const int foo = 10;
12828 if (!foo) return 0;
12829 }
12830 return !cs[0] && !zero.x;
12831#endif
12832
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837rm -f conftest.$ac_objext
12838if { (ac_try="$ac_compile"
12839case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12842esac
12843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844$as_echo "$ac_try_echo") >&5
dd184caf 12845 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
8d138742 12850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.$ac_objext; then
8d138742 12855 ac_cv_c_const=yes
d9898ee8 12856else
8d138742 12857 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12858sed 's/^/| /' conftest.$ac_ext >&5
12859
8d138742 12860 ac_cv_c_const=no
d9898ee8 12861fi
dd184caf 12862
12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
12864fi
12865{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12866$as_echo "$ac_cv_c_const" >&6; }
12867if test $ac_cv_c_const = no; then
12868
12869cat >>confdefs.h <<\_ACEOF
12870#define const /**/
d9898ee8 12871_ACEOF
d9898ee8 12872
8d138742
CE
12873fi
12874
12875
12876
12877ac_config_files="$ac_config_files Makefile"
12878
12879cat >confcache <<\_ACEOF
12880# This file is a shell script that caches the results of configure
12881# tests run on this system so they can be shared between configure
12882# scripts and configure runs, see configure's option --config-cache.
12883# It is not useful on other systems. If it contains results you don't
12884# want to keep, you may remove or edit it.
12885#
12886# config.status only pays attention to the cache file if you give it
12887# the --recheck option to rerun configure.
12888#
12889# `ac_cv_env_foo' variables (set or unset) will be overridden when
12890# loading this file, other *unset* `ac_cv_foo' will be assigned the
12891# following values.
12892
12893_ACEOF
12894
12895# The following way of writing the cache mishandles newlines in values,
12896# but we know of no workaround that is simple, portable, and efficient.
12897# So, we kill variables containing newlines.
12898# Ultrix sh set writes to stderr and can't be redirected directly,
12899# and sets the high bit in the cache file unless we assign to the vars.
12900(
12901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12902 eval ac_val=\$$ac_var
12903 case $ac_val in #(
12904 *${as_nl}*)
12905 case $ac_var in #(
12906 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12907$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12908 esac
12909 case $ac_var in #(
12910 _ | IFS | as_nl) ;; #(
12911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12912 *) $as_unset $ac_var ;;
12913 esac ;;
12914 esac
12915 done
12916
12917 (set) 2>&1 |
12918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12919 *${as_nl}ac_space=\ *)
12920 # `set' does not quote correctly, so add quotes (double-quote
12921 # substitution turns \\\\ into \\, and sed turns \\ into \).
12922 sed -n \
12923 "s/'/'\\\\''/g;
12924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12925 ;; #(
12926 *)
12927 # `set' quotes correctly as required by POSIX, so do not add quotes.
12928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12929 ;;
12930 esac |
12931 sort
12932) |
12933 sed '
12934 /^ac_cv_env_/b end
12935 t clear
12936 :clear
12937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12938 t end
12939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12940 :end' >>confcache
12941if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12942 if test -w "$cache_file"; then
12943 test "x$cache_file" != "x/dev/null" &&
12944 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12945$as_echo "$as_me: updating cache $cache_file" >&6;}
12946 cat confcache >$cache_file
d9898ee8 12947 else
8d138742
CE
12948 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12949$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12950 fi
12951fi
12952rm -f confcache
d9898ee8 12953
8d138742
CE
12954test "x$prefix" = xNONE && prefix=$ac_default_prefix
12955# Let make expand exec_prefix.
12956test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12957
12958DEFS=-DHAVE_CONFIG_H
12959
12960ac_libobjs=
12961ac_ltlibobjs=
12962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12963 # 1. Remove the extension, and $U if already installed.
12964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12967 # will be set to the directory where LIBOBJS objects are built.
12968 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12969 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12970done
12971LIBOBJS=$ac_libobjs
12972
12973LTLIBOBJS=$ac_ltlibobjs
12974
12975
12976 if test -n "$EXEEXT"; then
12977 am__EXEEXT_TRUE=
12978 am__EXEEXT_FALSE='#'
12979else
12980 am__EXEEXT_TRUE='#'
12981 am__EXEEXT_FALSE=
12982fi
12983
12984if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
12985 { { $as_echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
12986Usually this means the macro was only invoked conditionally." >&5
12987$as_echo "$as_me: error: conditional \"HMACC\" was never defined.
12988Usually this means the macro was only invoked conditionally." >&2;}
12989 { (exit 1); exit 1; }; }
12990fi
12991if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12992 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12993Usually this means the macro was only invoked conditionally." >&5
12994$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12995Usually this means the macro was only invoked conditionally." >&2;}
12996 { (exit 1); exit 1; }; }
12997fi
12998if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12999 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13000Usually this means the macro was only invoked conditionally." >&5
13001$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13002Usually this means the macro was only invoked conditionally." >&2;}
13003 { (exit 1); exit 1; }; }
13004fi
13005
13006: ${CONFIG_STATUS=./config.status}
13007ac_write_fail=0
13008ac_clean_files_save=$ac_clean_files
13009ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13010{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13011$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13012cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013#! $SHELL
13014# Generated by $as_me.
13015# Run this file to recreate the current configuration.
13016# Compiler output produced by configure, useful for debugging
13017# configure, is in config.log if it exists.
13018
13019debug=false
13020ac_cs_recheck=false
13021ac_cs_silent=false
13022SHELL=\${CONFIG_SHELL-$SHELL}
d9898ee8 13023_ACEOF
8d138742
CE
13024
13025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13026## --------------------- ##
13027## M4sh Initialization. ##
13028## --------------------- ##
13029
13030# Be more Bourne compatible
13031DUALCASE=1; export DUALCASE # for MKS sh
13032if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13033 emulate sh
13034 NULLCMD=:
13035 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13036 # is contrary to our usage. Disable this feature.
13037 alias -g '${1+"$@"}'='"$@"'
13038 setopt NO_GLOB_SUBST
d9898ee8 13039else
8d138742
CE
13040 case `(set -o) 2>/dev/null` in
13041 *posix*) set -o posix ;;
13042esac
d9898ee8 13043
d9898ee8 13044fi
8d138742
CE
13045
13046
13047
13048
13049# PATH needs CR
13050# Avoid depending upon Character Ranges.
13051as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13052as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13053as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13054as_cr_digits='0123456789'
13055as_cr_alnum=$as_cr_Letters$as_cr_digits
13056
13057as_nl='
13058'
13059export as_nl
13060# Printing a long string crashes Solaris 7 /usr/bin/printf.
13061as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13062as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13063as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13064if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13065 as_echo='printf %s\n'
13066 as_echo_n='printf %s'
13067else
13068 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13069 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13070 as_echo_n='/usr/ucb/echo -n'
13071 else
13072 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13073 as_echo_n_body='eval
13074 arg=$1;
13075 case $arg in
13076 *"$as_nl"*)
13077 expr "X$arg" : "X\\(.*\\)$as_nl";
13078 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13079 esac;
13080 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13081 '
13082 export as_echo_n_body
13083 as_echo_n='sh -c $as_echo_n_body as_echo'
13084 fi
13085 export as_echo_body
13086 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 13087fi
8d138742
CE
13088
13089# The user is always right.
13090if test "${PATH_SEPARATOR+set}" != set; then
13091 PATH_SEPARATOR=:
13092 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13093 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13094 PATH_SEPARATOR=';'
13095 }
d9898ee8 13096fi
dd184caf 13097
8d138742
CE
13098# Support unset when possible.
13099if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13100 as_unset=unset
13101else
13102 as_unset=false
13103fi
dd184caf 13104
13105
8d138742
CE
13106# IFS
13107# We need space, tab and new line, in precisely that order. Quoting is
13108# there to prevent editors from complaining about space-tab.
13109# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13110# splitting by setting IFS to empty value.)
13111IFS=" "" $as_nl"
d9898ee8 13112
8d138742
CE
13113# Find who we are. Look in the path if we contain no directory separator.
13114case $0 in
13115 *[\\/]* ) as_myself=$0 ;;
13116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13122done
13123IFS=$as_save_IFS
d9898ee8 13124
8d138742 13125 ;;
dd184caf 13126esac
8d138742
CE
13127# We did not find ourselves, most probably we were run as `sh COMMAND'
13128# in which case we are not to be found in the path.
13129if test "x$as_myself" = x; then
13130 as_myself=$0
d9898ee8 13131fi
8d138742
CE
13132if test ! -f "$as_myself"; then
13133 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13134 { (exit 1); exit 1; }
d9898ee8 13135fi
d9898ee8 13136
8d138742
CE
13137# Work around bugs in pre-3.0 UWIN ksh.
13138for as_var in ENV MAIL MAILPATH
13139do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13140done
13141PS1='$ '
13142PS2='> '
13143PS4='+ '
d9898ee8 13144
8d138742
CE
13145# NLS nuisances.
13146LC_ALL=C
13147export LC_ALL
13148LANGUAGE=C
13149export LANGUAGE
d9898ee8 13150
8d138742
CE
13151# Required to use basename.
13152if expr a : '\(a\)' >/dev/null 2>&1 &&
13153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13154 as_expr=expr
d9898ee8 13155else
8d138742 13156 as_expr=false
d9898ee8 13157fi
dd184caf 13158
8d138742
CE
13159if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13160 as_basename=basename
d9898ee8 13161else
8d138742
CE
13162 as_basename=false
13163fi
d9898ee8 13164
d9898ee8 13165
8d138742
CE
13166# Name of the executable.
13167as_me=`$as_basename -- "$0" ||
13168$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13169 X"$0" : 'X\(//\)$' \| \
13170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13171$as_echo X/"$0" |
13172 sed '/^.*\/\([^/][^/]*\)\/*$/{
13173 s//\1/
13174 q
13175 }
13176 /^X\/\(\/\/\)$/{
13177 s//\1/
13178 q
13179 }
13180 /^X\/\(\/\).*/{
13181 s//\1/
13182 q
13183 }
13184 s/.*/./; q'`
13185
13186# CDPATH.
13187$as_unset CDPATH
13188
13189
13190
13191 as_lineno_1=$LINENO
13192 as_lineno_2=$LINENO
13193 test "x$as_lineno_1" != "x$as_lineno_2" &&
13194 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13195
13196 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13197 # uniformly replaced by the line number. The first 'sed' inserts a
13198 # line-number line after each line using $LINENO; the second 'sed'
13199 # does the real work. The second script uses 'N' to pair each
13200 # line-number line with the line containing $LINENO, and appends
13201 # trailing '-' during substitution so that $LINENO is not a special
13202 # case at line end.
13203 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13204 # scripts with optimization help from Paolo Bonzini. Blame Lee
13205 # E. McMahon (1931-1989) for sed's syntax. :-)
13206 sed -n '
13207 p
13208 /[$]LINENO/=
13209 ' <$as_myself |
13210 sed '
13211 s/[$]LINENO.*/&-/
13212 t lineno
13213 b
13214 :lineno
13215 N
13216 :loop
13217 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13218 t loop
13219 s/-\n.*//
13220 ' >$as_me.lineno &&
13221 chmod +x "$as_me.lineno" ||
13222 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13223 { (exit 1); exit 1; }; }
d9898ee8 13224
8d138742
CE
13225 # Don't try to exec as it changes $[0], causing all sort of problems
13226 # (the dirname of $[0] is not the place where we might find the
13227 # original and so on. Autoconf is especially sensitive to this).
13228 . "./$as_me.lineno"
13229 # Exit status is that of the last command.
13230 exit
d9898ee8 13231}
8d138742
CE
13232
13233
13234if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13235 as_dirname=dirname
d9898ee8 13236else
8d138742
CE
13237 as_dirname=false
13238fi
d9898ee8 13239
8d138742
CE
13240ECHO_C= ECHO_N= ECHO_T=
13241case `echo -n x` in
13242-n*)
13243 case `echo 'x\c'` in
13244 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13245 *) ECHO_C='\c';;
13246 esac;;
13247*)
13248 ECHO_N='-n';;
13249esac
13250if expr a : '\(a\)' >/dev/null 2>&1 &&
13251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13252 as_expr=expr
13253else
13254 as_expr=false
d9898ee8 13255fi
dd184caf 13256
8d138742
CE
13257rm -f conf$$ conf$$.exe conf$$.file
13258if test -d conf$$.dir; then
13259 rm -f conf$$.dir/conf$$.file
d9898ee8 13260else
8d138742
CE
13261 rm -f conf$$.dir
13262 mkdir conf$$.dir 2>/dev/null
13263fi
13264if (echo >conf$$.file) 2>/dev/null; then
13265 if ln -s conf$$.file conf$$ 2>/dev/null; then
13266 as_ln_s='ln -s'
13267 # ... but there are two gotchas:
13268 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13269 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13270 # In both cases, we have to default to `cp -p'.
13271 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13272 as_ln_s='cp -p'
13273 elif ln conf$$.file conf$$ 2>/dev/null; then
13274 as_ln_s=ln
13275 else
13276 as_ln_s='cp -p'
13277 fi
13278else
13279 as_ln_s='cp -p'
13280fi
13281rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13282rmdir conf$$.dir 2>/dev/null
d9898ee8 13283
8d138742
CE
13284if mkdir -p . 2>/dev/null; then
13285 as_mkdir_p=:
13286else
13287 test -d ./-p && rmdir ./-p
13288 as_mkdir_p=false
d9898ee8 13289fi
dd184caf 13290
8d138742
CE
13291if test -x / >/dev/null 2>&1; then
13292 as_test_x='test -x'
13293else
13294 if ls -dL / >/dev/null 2>&1; then
13295 as_ls_L_option=L
13296 else
13297 as_ls_L_option=
13298 fi
13299 as_test_x='
13300 eval sh -c '\''
13301 if test -d "$1"; then
13302 test -d "$1/.";
13303 else
13304 case $1 in
13305 -*)set "./$1";;
13306 esac;
13307 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13308 ???[sx]*):;;*)false;;esac;fi
13309 '\'' sh
13310 '
d9898ee8 13311fi
8d138742 13312as_executable_p=$as_test_x
dd184caf 13313
8d138742
CE
13314# Sed expression to map a string onto a valid CPP name.
13315as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13316
8d138742
CE
13317# Sed expression to map a string onto a valid variable name.
13318as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13319
dd184caf 13320
8d138742 13321exec 6>&1
d9898ee8 13322
8d138742
CE
13323# Save the log message, to keep $[0] and so on meaningful, and to
13324# report actual input values of CONFIG_FILES etc. instead of their
13325# values after options handling.
13326ac_log="
13327This file was extended by libmd5 $as_me 1.21, which was
13328generated by GNU Autoconf 2.63. Invocation command line was
13329
13330 CONFIG_FILES = $CONFIG_FILES
13331 CONFIG_HEADERS = $CONFIG_HEADERS
13332 CONFIG_LINKS = $CONFIG_LINKS
13333 CONFIG_COMMANDS = $CONFIG_COMMANDS
13334 $ $0 $@
13335
13336on `(hostname || uname -n) 2>/dev/null | sed 1q`
13337"
d9898ee8 13338
d9898ee8 13339_ACEOF
8d138742
CE
13340
13341case $ac_config_files in *"
13342"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 13343esac
8d138742
CE
13344
13345case $ac_config_headers in *"
13346"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
dd184caf 13347esac
d9898ee8 13348
dd184caf 13349
8d138742
CE
13350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13351# Files that config.status was made for.
13352config_files="$ac_config_files"
13353config_headers="$ac_config_headers"
13354config_commands="$ac_config_commands"
13355
13356_ACEOF
13357
13358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13359ac_cs_usage="\
13360\`$as_me' instantiates files from templates according to the
13361current configuration.
13362
13363Usage: $0 [OPTION]... [FILE]...
13364
13365 -h, --help print this help, then exit
13366 -V, --version print version number and configuration settings, then exit
13367 -q, --quiet, --silent
13368 do not print progress messages
13369 -d, --debug don't remove temporary files
13370 --recheck update $as_me by reconfiguring in the same conditions
13371 --file=FILE[:TEMPLATE]
13372 instantiate the configuration file FILE
13373 --header=FILE[:TEMPLATE]
13374 instantiate the configuration header FILE
13375
13376Configuration files:
13377$config_files
13378
13379Configuration headers:
13380$config_headers
13381
13382Configuration commands:
13383$config_commands
dd184caf 13384
8d138742 13385Report bugs to <bug-autoconf@gnu.org>."
dd184caf 13386
d9898ee8 13387_ACEOF
8d138742
CE
13388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13389ac_cs_version="\\
13390libmd5 config.status 1.21
13391configured by $0, generated by GNU Autoconf 2.63,
13392 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 13393
8d138742
CE
13394Copyright (C) 2008 Free Software Foundation, Inc.
13395This config.status script is free software; the Free Software Foundation
13396gives unlimited permission to copy, distribute and modify it."
d9898ee8 13397
8d138742
CE
13398ac_pwd='$ac_pwd'
13399srcdir='$srcdir'
13400INSTALL='$INSTALL'
13401MKDIR_P='$MKDIR_P'
13402AWK='$AWK'
13403test -n "\$AWK" || AWK=awk
d9898ee8 13404_ACEOF
d9898ee8 13405
8d138742
CE
13406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13407# The default lists apply if the user does not specify any file.
13408ac_need_defaults=:
13409while test $# != 0
13410do
13411 case $1 in
13412 --*=*)
13413 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13414 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13415 ac_shift=:
13416 ;;
13417 *)
13418 ac_option=$1
13419 ac_optarg=$2
13420 ac_shift=shift
13421 ;;
13422 esac
dd184caf 13423
8d138742
CE
13424 case $ac_option in
13425 # Handling of the options.
13426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13427 ac_cs_recheck=: ;;
13428 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13429 $as_echo "$ac_cs_version"; exit ;;
13430 --debug | --debu | --deb | --de | --d | -d )
13431 debug=: ;;
13432 --file | --fil | --fi | --f )
13433 $ac_shift
13434 case $ac_optarg in
13435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13436 esac
13437 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13438 ac_need_defaults=false;;
13439 --header | --heade | --head | --hea )
13440 $ac_shift
13441 case $ac_optarg in
13442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13443 esac
13444 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13445 ac_need_defaults=false;;
13446 --he | --h)
13447 # Conflict between --help and --header
13448 { $as_echo "$as_me: error: ambiguous option: $1
13449Try \`$0 --help' for more information." >&2
13450 { (exit 1); exit 1; }; };;
13451 --help | --hel | -h )
13452 $as_echo "$ac_cs_usage"; exit ;;
13453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13455 ac_cs_silent=: ;;
13456
13457 # This is an error.
13458 -*) { $as_echo "$as_me: error: unrecognized option: $1
13459Try \`$0 --help' for more information." >&2
13460 { (exit 1); exit 1; }; } ;;
13461
13462 *) ac_config_targets="$ac_config_targets $1"
13463 ac_need_defaults=false ;;
13464
13465 esac
13466 shift
13467done
13468
13469ac_configure_extra_args=
13470
13471if $ac_cs_silent; then
13472 exec 6>/dev/null
13473 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13474fi
d9898ee8 13475
d9898ee8 13476_ACEOF
8d138742
CE
13477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13478if \$ac_cs_recheck; then
13479 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13480 shift
13481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13482 CONFIG_SHELL='$SHELL'
13483 export CONFIG_SHELL
13484 exec "\$@"
13485fi
d9898ee8 13486
d9898ee8 13487_ACEOF
8d138742
CE
13488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13489exec 5>>config.log
d9898ee8 13490{
8d138742
CE
13491 echo
13492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13493## Running $as_me. ##
13494_ASBOX
13495 $as_echo "$ac_log"
13496} >&5
d9898ee8 13497
d9898ee8 13498_ACEOF
8d138742
CE
13499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500#
13501# INIT-COMMANDS
13502#
13503AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13504
dd184caf 13505
8d138742
CE
13506# The HP-UX ksh and POSIX shell print the target directory to stdout
13507# if CDPATH is set.
13508(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13509
8d138742
CE
13510sed_quote_subst='$sed_quote_subst'
13511double_quote_subst='$double_quote_subst'
13512delay_variable_subst='$delay_variable_subst'
13513macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13514macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13515enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13516enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13517pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13518enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13519host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13520host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13521host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13522build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13523build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13524build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13525SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13526Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13527GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13528EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13529FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13530LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13531NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13532LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13533max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13534ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13535exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13536lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13537lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13538lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13539reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13540reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13541OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13542deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13543file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13544AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13545AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13546STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13547RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13548old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13549old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13550old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13551CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13552CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13553compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13554GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13555lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13556lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13557lt_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"`'
13558lt_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"`'
13559objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13560SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13561ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13562MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13563lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13564lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13565lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13566lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13567lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13568need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13569DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13570NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13571LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13572OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13573OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13574libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13575shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13576extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13577archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13578enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13579export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13580whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13581compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13582old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13583old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13584archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13585archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13586module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13587module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13588with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13589allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13590no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13591hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13592hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13593hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13594hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13595hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13596hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13597hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13598hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13599inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13600link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13601fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13602always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13603export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13604exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13605include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13606prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13607file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13608variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13609need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13610need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13611version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13612runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13613shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13614shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13615libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13616library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13617soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13618postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13619postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13620finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13621finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13622hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13623sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13624sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13625hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13626enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13627enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13628enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13629old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13630striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13631
13632LTCC='$LTCC'
13633LTCFLAGS='$LTCFLAGS'
13634compiler='$compiler_DEFAULT'
13635
13636# Quote evaled strings.
13637for var in SED \
13638GREP \
13639EGREP \
13640FGREP \
13641LD \
13642NM \
13643LN_S \
13644lt_SP2NL \
13645lt_NL2SP \
13646reload_flag \
13647OBJDUMP \
13648deplibs_check_method \
13649file_magic_cmd \
13650AR \
13651AR_FLAGS \
13652STRIP \
13653RANLIB \
13654CC \
13655CFLAGS \
13656compiler \
13657lt_cv_sys_global_symbol_pipe \
13658lt_cv_sys_global_symbol_to_cdecl \
13659lt_cv_sys_global_symbol_to_c_name_address \
13660lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13661SHELL \
13662ECHO \
13663lt_prog_compiler_no_builtin_flag \
13664lt_prog_compiler_wl \
13665lt_prog_compiler_pic \
13666lt_prog_compiler_static \
13667lt_cv_prog_compiler_c_o \
13668need_locks \
13669DSYMUTIL \
13670NMEDIT \
13671LIPO \
13672OTOOL \
13673OTOOL64 \
13674shrext_cmds \
13675export_dynamic_flag_spec \
13676whole_archive_flag_spec \
13677compiler_needs_object \
13678with_gnu_ld \
13679allow_undefined_flag \
13680no_undefined_flag \
13681hardcode_libdir_flag_spec \
13682hardcode_libdir_flag_spec_ld \
13683hardcode_libdir_separator \
13684fix_srcfile_path \
13685exclude_expsyms \
13686include_expsyms \
13687file_list_spec \
13688variables_saved_for_relink \
13689libname_spec \
13690library_names_spec \
13691soname_spec \
13692finish_eval \
13693old_striplib \
13694striplib; do
13695 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13696 *[\\\\\\\`\\"\\\$]*)
13697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13698 ;;
13699 *)
13700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13701 ;;
13702 esac
13703done
d9898ee8 13704
8d138742
CE
13705# Double-quote double-evaled strings.
13706for var in reload_cmds \
13707old_postinstall_cmds \
13708old_postuninstall_cmds \
13709old_archive_cmds \
13710extract_expsyms_cmds \
13711old_archive_from_new_cmds \
13712old_archive_from_expsyms_cmds \
13713archive_cmds \
13714archive_expsym_cmds \
13715module_cmds \
13716module_expsym_cmds \
13717export_symbols_cmds \
13718prelink_cmds \
13719postinstall_cmds \
13720postuninstall_cmds \
13721finish_cmds \
13722sys_lib_search_path_spec \
13723sys_lib_dlsearch_path_spec; do
13724 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13725 *[\\\\\\\`\\"\\\$]*)
13726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13727 ;;
13728 *)
13729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13730 ;;
13731 esac
13732done
d9898ee8 13733
8d138742
CE
13734# Fix-up fallback echo if it was mangled by the above quoting rules.
13735case \$lt_ECHO in
13736*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13737 ;;
dd184caf 13738esac
d9898ee8 13739
8d138742
CE
13740ac_aux_dir='$ac_aux_dir'
13741xsi_shell='$xsi_shell'
13742lt_shell_append='$lt_shell_append'
13743
13744# See if we are running on zsh, and set the options which allow our
13745# commands through without removal of \ escapes INIT.
13746if test -n "\${ZSH_VERSION+set}" ; then
13747 setopt NO_GLOB_SUBST
d9898ee8 13748fi
dd184caf 13749
d9898ee8 13750
8d138742
CE
13751 PACKAGE='$PACKAGE'
13752 VERSION='$VERSION'
13753 TIMESTAMP='$TIMESTAMP'
13754 RM='$RM'
13755 ofile='$ofile'
13756
13757
dd184caf 13758
dd184caf 13759
d9898ee8 13760_ACEOF
8d138742
CE
13761
13762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13763
13764# Handling of arguments.
13765for ac_config_target in $ac_config_targets
13766do
13767 case $ac_config_target in
13768 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13769 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13770 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13772
13773 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13774$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13775 { (exit 1); exit 1; }; };;
13776 esac
13777done
13778
13779
13780# If the user did not use the arguments to specify the items to instantiate,
13781# then the envvar interface is used. Set only those that are not.
13782# We use the long form for the default assignment because of an extremely
13783# bizarre bug on SunOS 4.1.3.
13784if $ac_need_defaults; then
13785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13788fi
13789
13790# Have a temporary directory for convenience. Make it in the build tree
13791# simply because there is no reason against having it here, and in addition,
13792# creating and moving files from /tmp can sometimes cause problems.
13793# Hook for its removal unless debugging.
13794# Note that there is a small window in which the directory will not be cleaned:
13795# after its creation but before its name has been assigned to `$tmp'.
13796$debug ||
d9898ee8 13797{
8d138742
CE
13798 tmp=
13799 trap 'exit_status=$?
13800 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13801' 0
13802 trap '{ (exit 1); exit 1; }' 1 2 13 15
13803}
13804# Create a (secure) tmp directory for tmp files.
d9898ee8 13805
8d138742
CE
13806{
13807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13808 test -n "$tmp" && test -d "$tmp"
13809} ||
13810{
13811 tmp=./conf$$-$RANDOM
13812 (umask 077 && mkdir "$tmp")
13813} ||
13814{
13815 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13816 { (exit 1); exit 1; }
d9898ee8 13817}
d9898ee8 13818
8d138742
CE
13819# Set up the scripts for CONFIG_FILES section.
13820# No need to generate them if there are no CONFIG_FILES.
13821# This happens for instance with `./config.status config.h'.
13822if test -n "$CONFIG_FILES"; then
dd184caf 13823
8d138742
CE
13824
13825ac_cr='\r'
13826ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13827if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13828 ac_cs_awk_cr='\\r'
d9898ee8 13829else
8d138742
CE
13830 ac_cs_awk_cr=$ac_cr
13831fi
13832
13833echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 13834_ACEOF
8d138742
CE
13835
13836
d9898ee8 13837{
8d138742
CE
13838 echo "cat >conf$$subs.awk <<_ACEOF" &&
13839 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13840 echo "_ACEOF"
13841} >conf$$subs.sh ||
13842 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13843$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13844 { (exit 1); exit 1; }; }
13845ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13846ac_delim='%!_!# '
13847for ac_last_try in false false false false false :; do
13848 . ./conf$$subs.sh ||
13849 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13850$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13851 { (exit 1); exit 1; }; }
d9898ee8 13852
8d138742
CE
13853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13854 if test $ac_delim_n = $ac_delim_num; then
13855 break
13856 elif $ac_last_try; then
13857 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13858$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13859 { (exit 1); exit 1; }; }
d9898ee8 13860 else
8d138742
CE
13861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13862 fi
13863done
13864rm -f conf$$subs.sh
13865
13866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13867cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13868_ACEOF
13869sed -n '
13870h
13871s/^/S["/; s/!.*/"]=/
13872p
13873g
13874s/^[^!]*!//
13875:repl
13876t repl
13877s/'"$ac_delim"'$//
13878t delim
13879:nl
13880h
13881s/\(.\{148\}\).*/\1/
13882t more1
13883s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13884p
13885n
13886b repl
13887:more1
13888s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13889p
13890g
13891s/.\{148\}//
13892t nl
13893:delim
13894h
13895s/\(.\{148\}\).*/\1/
13896t more2
13897s/["\\]/\\&/g; s/^/"/; s/$/"/
13898p
13899b
13900:more2
13901s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13902p
13903g
13904s/.\{148\}//
13905t delim
13906' <conf$$subs.awk | sed '
13907/^[^""]/{
13908 N
13909 s/\n//
13910}
13911' >>$CONFIG_STATUS || ac_write_fail=1
13912rm -f conf$$subs.awk
13913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13914_ACAWK
13915cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13916 for (key in S) S_is_set[key] = 1
13917 FS = "\a"
d9898ee8 13918
d9898ee8 13919}
8d138742
CE
13920{
13921 line = $ 0
13922 nfields = split(line, field, "@")
13923 substed = 0
13924 len = length(field[1])
13925 for (i = 2; i < nfields; i++) {
13926 key = field[i]
13927 keylen = length(key)
13928 if (S_is_set[key]) {
13929 value = S[key]
13930 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13931 len += length(value) + length(field[++i])
13932 substed = 1
13933 } else
13934 len += 1 + keylen
13935 }
13936
13937 print line
13938}
13939
13940_ACAWK
d9898ee8 13941_ACEOF
8d138742
CE
13942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13943if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13944 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13945else
8d138742
CE
13946 cat
13947fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13948 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13949$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13950 { (exit 1); exit 1; }; }
13951_ACEOF
d9898ee8 13952
8d138742
CE
13953# VPATH may cause trouble with some makes, so we remove $(srcdir),
13954# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13955# trailing colons and then remove the whole line if VPATH becomes empty
13956# (actually we leave an empty line to preserve line numbers).
13957if test "x$srcdir" = x.; then
13958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13959s/:*\$(srcdir):*/:/
13960s/:*\${srcdir}:*/:/
13961s/:*@srcdir@:*/:/
13962s/^\([^=]*=[ ]*\):*/\1/
13963s/:*$//
13964s/^[^=]*=[ ]*$//
13965}'
d9898ee8 13966fi
dd184caf 13967
8d138742
CE
13968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13969fi # test -n "$CONFIG_FILES"
dd184caf 13970
8d138742
CE
13971# Set up the scripts for CONFIG_HEADERS section.
13972# No need to generate them if there are no CONFIG_HEADERS.
13973# This happens for instance with `./config.status Makefile'.
13974if test -n "$CONFIG_HEADERS"; then
13975cat >"$tmp/defines.awk" <<\_ACAWK ||
13976BEGIN {
d9898ee8 13977_ACEOF
13978
8d138742
CE
13979# Transform confdefs.h into an awk script `defines.awk', embedded as
13980# here-document in config.status, that substitutes the proper values into
13981# config.h.in to produce config.h.
d9898ee8 13982
8d138742
CE
13983# Create a delimiter string that does not exist in confdefs.h, to ease
13984# handling of long lines.
13985ac_delim='%!_!# '
13986for ac_last_try in false false :; do
13987 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13988 if test -z "$ac_t"; then
13989 break
13990 elif $ac_last_try; then
13991 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13992$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
d9898ee8 13993 { (exit 1); exit 1; }; }
8d138742
CE
13994 else
13995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13996 fi
13997done
13998
13999# For the awk script, D is an array of macro values keyed by name,
14000# likewise P contains macro parameters if any. Preserve backslash
14001# newline sequences.
14002
14003ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14004sed -n '
14005s/.\{148\}/&'"$ac_delim"'/g
14006t rset
14007:rset
14008s/^[ ]*#[ ]*define[ ][ ]*/ /
14009t def
14010d
14011:def
14012s/\\$//
14013t bsnl
14014s/["\\]/\\&/g
14015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14016D["\1"]=" \3"/p
14017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14018d
14019:bsnl
14020s/["\\]/\\&/g
14021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14022D["\1"]=" \3\\\\\\n"\\/p
14023t cont
14024s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14025t cont
14026d
14027:cont
14028n
14029s/.\{148\}/&'"$ac_delim"'/g
14030t clear
14031:clear
14032s/\\$//
14033t bsnlc
14034s/["\\]/\\&/g; s/^/"/; s/$/"/p
14035d
14036:bsnlc
14037s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14038b cont
14039' <confdefs.h | sed '
14040s/'"$ac_delim"'/"\\\
14041"/g' >>$CONFIG_STATUS || ac_write_fail=1
14042
14043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14044 for (key in D) D_is_set[key] = 1
14045 FS = "\a"
14046}
14047/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14048 line = \$ 0
14049 split(line, arg, " ")
14050 if (arg[1] == "#") {
14051 defundef = arg[2]
14052 mac1 = arg[3]
14053 } else {
14054 defundef = substr(arg[1], 2)
14055 mac1 = arg[2]
14056 }
14057 split(mac1, mac2, "(") #)
14058 macro = mac2[1]
14059 prefix = substr(line, 1, index(line, defundef) - 1)
14060 if (D_is_set[macro]) {
14061 # Preserve the white space surrounding the "#".
14062 print prefix "define", macro P[macro] D[macro]
14063 next
14064 } else {
14065 # Replace #undef with comments. This is necessary, for example,
14066 # in the case of _POSIX_SOURCE, which is predefined and required
14067 # on some systems where configure will not decide to define it.
14068 if (defundef == "undef") {
14069 print "/*", prefix defundef, macro, "*/"
14070 next
14071 }
14072 }
14073}
14074{ print }
14075_ACAWK
14076_ACEOF
14077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14078 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14079$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14080 { (exit 1); exit 1; }; }
14081fi # test -n "$CONFIG_HEADERS"
d9898ee8 14082
dd184caf 14083
8d138742
CE
14084eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14085shift
14086for ac_tag
14087do
14088 case $ac_tag in
14089 :[FHLC]) ac_mode=$ac_tag; continue;;
14090 esac
14091 case $ac_mode$ac_tag in
14092 :[FHL]*:*);;
14093 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14094$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14095 { (exit 1); exit 1; }; };;
14096 :[FH]-) ac_tag=-:-;;
14097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14098 esac
14099 ac_save_IFS=$IFS
14100 IFS=:
14101 set x $ac_tag
14102 IFS=$ac_save_IFS
14103 shift
14104 ac_file=$1
14105 shift
d9898ee8 14106
8d138742
CE
14107 case $ac_mode in
14108 :L) ac_source=$1;;
14109 :[FH])
14110 ac_file_inputs=
14111 for ac_f
14112 do
14113 case $ac_f in
14114 -) ac_f="$tmp/stdin";;
14115 *) # Look for the file first in the build tree, then in the source tree
14116 # (if the path is not absolute). The absolute path cannot be DOS-style,
14117 # because $ac_f cannot contain `:'.
14118 test -f "$ac_f" ||
14119 case $ac_f in
14120 [\\/$]*) false;;
14121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14122 esac ||
14123 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14124$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14125 { (exit 1); exit 1; }; };;
14126 esac
14127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14128 ac_file_inputs="$ac_file_inputs '$ac_f'"
14129 done
d9898ee8 14130
8d138742
CE
14131 # Let's still pretend it is `configure' which instantiates (i.e., don't
14132 # use $as_me), people would be surprised to read:
14133 # /* config.h. Generated by config.status. */
14134 configure_input='Generated from '`
14135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14136 `' by configure.'
14137 if test x"$ac_file" != x-; then
14138 configure_input="$ac_file. $configure_input"
14139 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14140$as_echo "$as_me: creating $ac_file" >&6;}
14141 fi
14142 # Neutralize special characters interpreted by sed in replacement strings.
14143 case $configure_input in #(
14144 *\&* | *\|* | *\\* )
14145 ac_sed_conf_input=`$as_echo "$configure_input" |
14146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14147 *) ac_sed_conf_input=$configure_input;;
14148 esac
dd184caf 14149
8d138742
CE
14150 case $ac_tag in
14151 *:-:* | *:-) cat >"$tmp/stdin" \
14152 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14153$as_echo "$as_me: error: could not create $ac_file" >&2;}
14154 { (exit 1); exit 1; }; } ;;
14155 esac
14156 ;;
14157 esac
dd184caf 14158
8d138742
CE
14159 ac_dir=`$as_dirname -- "$ac_file" ||
14160$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14161 X"$ac_file" : 'X\(//\)[^/]' \| \
14162 X"$ac_file" : 'X\(//\)$' \| \
14163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14164$as_echo X"$ac_file" |
14165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14166 s//\1/
14167 q
14168 }
14169 /^X\(\/\/\)[^/].*/{
14170 s//\1/
14171 q
14172 }
14173 /^X\(\/\/\)$/{
14174 s//\1/
14175 q
14176 }
14177 /^X\(\/\).*/{
14178 s//\1/
14179 q
14180 }
14181 s/.*/./; q'`
14182 { as_dir="$ac_dir"
14183 case $as_dir in #(
14184 -*) as_dir=./$as_dir;;
14185 esac
14186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14187 as_dirs=
14188 while :; do
14189 case $as_dir in #(
14190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14191 *) as_qdir=$as_dir;;
14192 esac
14193 as_dirs="'$as_qdir' $as_dirs"
14194 as_dir=`$as_dirname -- "$as_dir" ||
14195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14196 X"$as_dir" : 'X\(//\)[^/]' \| \
14197 X"$as_dir" : 'X\(//\)$' \| \
14198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14199$as_echo X"$as_dir" |
14200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14201 s//\1/
14202 q
14203 }
14204 /^X\(\/\/\)[^/].*/{
14205 s//\1/
14206 q
14207 }
14208 /^X\(\/\/\)$/{
14209 s//\1/
14210 q
14211 }
14212 /^X\(\/\).*/{
14213 s//\1/
14214 q
14215 }
14216 s/.*/./; q'`
14217 test -d "$as_dir" && break
14218 done
14219 test -z "$as_dirs" || eval "mkdir $as_dirs"
14220 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14221$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14222 { (exit 1); exit 1; }; }; }
14223 ac_builddir=.
d9898ee8 14224
8d138742
CE
14225case "$ac_dir" in
14226.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14227*)
14228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14229 # A ".." for each directory in $ac_dir_suffix.
14230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14231 case $ac_top_builddir_sub in
14232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14234 esac ;;
14235esac
14236ac_abs_top_builddir=$ac_pwd
14237ac_abs_builddir=$ac_pwd$ac_dir_suffix
14238# for backward compatibility:
14239ac_top_builddir=$ac_top_build_prefix
d9898ee8 14240
8d138742
CE
14241case $srcdir in
14242 .) # We are building in place.
14243 ac_srcdir=.
14244 ac_top_srcdir=$ac_top_builddir_sub
14245 ac_abs_top_srcdir=$ac_pwd ;;
14246 [\\/]* | ?:[\\/]* ) # Absolute name.
14247 ac_srcdir=$srcdir$ac_dir_suffix;
14248 ac_top_srcdir=$srcdir
14249 ac_abs_top_srcdir=$srcdir ;;
14250 *) # Relative name.
14251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14252 ac_top_srcdir=$ac_top_build_prefix$srcdir
14253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14254esac
14255ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 14256
d9898ee8 14257
8d138742
CE
14258 case $ac_mode in
14259 :F)
14260 #
14261 # CONFIG_FILE
14262 #
d9898ee8 14263
8d138742
CE
14264 case $INSTALL in
14265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14267 esac
14268 ac_MKDIR_P=$MKDIR_P
14269 case $MKDIR_P in
14270 [\\/$]* | ?:[\\/]* ) ;;
14271 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14272 esac
d9898ee8 14273_ACEOF
d9898ee8 14274
8d138742
CE
14275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14276# If the template does not know about datarootdir, expand it.
14277# FIXME: This hack should be removed a few years after 2.60.
14278ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 14279
8d138742
CE
14280ac_sed_dataroot='
14281/datarootdir/ {
14282 p
14283 q
14284}
14285/@datadir@/p
14286/@docdir@/p
14287/@infodir@/p
14288/@localedir@/p
14289/@mandir@/p
14290'
14291case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14292*datarootdir*) ac_datarootdir_seen=yes;;
14293*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14294 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14295$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14296_ACEOF
14297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 ac_datarootdir_hack='
14299 s&@datadir@&$datadir&g
14300 s&@docdir@&$docdir&g
14301 s&@infodir@&$infodir&g
14302 s&@localedir@&$localedir&g
14303 s&@mandir@&$mandir&g
14304 s&\\\${datarootdir}&$datarootdir&g' ;;
14305esac
14306_ACEOF
14307
14308# Neutralize VPATH when `$srcdir' = `.'.
14309# Shell code in configure.ac might set extrasub.
14310# FIXME: do we really want to maintain this feature?
14311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14312ac_sed_extra="$ac_vpsub
14313$extrasub
14314_ACEOF
14315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316:t
14317/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14318s|@configure_input@|$ac_sed_conf_input|;t t
14319s&@top_builddir@&$ac_top_builddir_sub&;t t
14320s&@top_build_prefix@&$ac_top_build_prefix&;t t
14321s&@srcdir@&$ac_srcdir&;t t
14322s&@abs_srcdir@&$ac_abs_srcdir&;t t
14323s&@top_srcdir@&$ac_top_srcdir&;t t
14324s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14325s&@builddir@&$ac_builddir&;t t
14326s&@abs_builddir@&$ac_abs_builddir&;t t
14327s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14328s&@INSTALL@&$ac_INSTALL&;t t
14329s&@MKDIR_P@&$ac_MKDIR_P&;t t
14330$ac_datarootdir_hack
14331"
14332eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14333 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14334$as_echo "$as_me: error: could not create $ac_file" >&2;}
14335 { (exit 1); exit 1; }; }
d9898ee8 14336
8d138742
CE
14337test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14338 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14339 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14340 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14341which seems to be undefined. Please make sure it is defined." >&5
14342$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14343which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 14344
8d138742
CE
14345 rm -f "$tmp/stdin"
14346 case $ac_file in
14347 -) cat "$tmp/out" && rm -f "$tmp/out";;
14348 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14349 esac \
14350 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14351$as_echo "$as_me: error: could not create $ac_file" >&2;}
14352 { (exit 1); exit 1; }; }
14353 ;;
14354 :H)
14355 #
14356 # CONFIG_HEADER
14357 #
14358 if test x"$ac_file" != x-; then
14359 {
14360 $as_echo "/* $configure_input */" \
14361 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14362 } >"$tmp/config.h" \
14363 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14364$as_echo "$as_me: error: could not create $ac_file" >&2;}
14365 { (exit 1); exit 1; }; }
14366 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14367 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14368$as_echo "$as_me: $ac_file is unchanged" >&6;}
14369 else
14370 rm -f "$ac_file"
14371 mv "$tmp/config.h" "$ac_file" \
14372 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14373$as_echo "$as_me: error: could not create $ac_file" >&2;}
14374 { (exit 1); exit 1; }; }
14375 fi
14376 else
14377 $as_echo "/* $configure_input */" \
14378 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14379 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14380$as_echo "$as_me: error: could not create -" >&2;}
14381 { (exit 1); exit 1; }; }
14382 fi
14383# Compute "$ac_file"'s index in $config_headers.
14384_am_arg="$ac_file"
14385_am_stamp_count=1
14386for _am_header in $config_headers :; do
14387 case $_am_header in
14388 $_am_arg | $_am_arg:* )
14389 break ;;
14390 * )
14391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14392 esac
14393done
14394echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14395$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14396 X"$_am_arg" : 'X\(//\)[^/]' \| \
14397 X"$_am_arg" : 'X\(//\)$' \| \
14398 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14399$as_echo X"$_am_arg" |
14400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14401 s//\1/
14402 q
14403 }
14404 /^X\(\/\/\)[^/].*/{
14405 s//\1/
14406 q
14407 }
14408 /^X\(\/\/\)$/{
14409 s//\1/
14410 q
14411 }
14412 /^X\(\/\).*/{
14413 s//\1/
14414 q
14415 }
14416 s/.*/./; q'`/stamp-h$_am_stamp_count
14417 ;;
dd184caf 14418
8d138742
CE
14419 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14420$as_echo "$as_me: executing $ac_file commands" >&6;}
14421 ;;
14422 esac
d9898ee8 14423
d9898ee8 14424
8d138742
CE
14425 case $ac_file$ac_mode in
14426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14427 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14428 # are listed without --file. Let's play safe and only enable the eval
14429 # if we detect the quoting.
14430 case $CONFIG_FILES in
14431 *\'*) eval set x "$CONFIG_FILES" ;;
14432 *) set x $CONFIG_FILES ;;
14433 esac
14434 shift
14435 for mf
14436 do
14437 # Strip MF so we end up with the name of the file.
14438 mf=`echo "$mf" | sed -e 's/:.*$//'`
14439 # Check whether this is an Automake generated Makefile or not.
14440 # We used to match only the files named `Makefile.in', but
14441 # some people rename them; so instead we look at the file content.
14442 # Grep'ing the first line is not enough: some people post-process
14443 # each Makefile.in and add a new line on top of each file to say so.
14444 # Grep'ing the whole file is not good either: AIX grep has a line
14445 # limit of 2048, but all sed's we know have understand at least 4000.
14446 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14447 dirpart=`$as_dirname -- "$mf" ||
14448$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14449 X"$mf" : 'X\(//\)[^/]' \| \
14450 X"$mf" : 'X\(//\)$' \| \
14451 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14452$as_echo X"$mf" |
14453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14454 s//\1/
14455 q
14456 }
14457 /^X\(\/\/\)[^/].*/{
14458 s//\1/
14459 q
14460 }
14461 /^X\(\/\/\)$/{
14462 s//\1/
14463 q
14464 }
14465 /^X\(\/\).*/{
14466 s//\1/
14467 q
14468 }
14469 s/.*/./; q'`
14470 else
14471 continue
14472 fi
14473 # Extract the definition of DEPDIR, am__include, and am__quote
14474 # from the Makefile without running `make'.
14475 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14476 test -z "$DEPDIR" && continue
14477 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14478 test -z "am__include" && continue
14479 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14480 # When using ansi2knr, U may be empty or an underscore; expand it
14481 U=`sed -n 's/^U = //p' < "$mf"`
14482 # Find all dependency output files, they are included files with
14483 # $(DEPDIR) in their names. We invoke sed twice because it is the
14484 # simplest approach to changing $(DEPDIR) to its actual value in the
14485 # expansion.
14486 for file in `sed -n "
14487 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14488 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14489 # Make sure the directory exists.
14490 test -f "$dirpart/$file" && continue
14491 fdir=`$as_dirname -- "$file" ||
14492$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14493 X"$file" : 'X\(//\)[^/]' \| \
14494 X"$file" : 'X\(//\)$' \| \
14495 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14496$as_echo X"$file" |
14497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14498 s//\1/
14499 q
14500 }
14501 /^X\(\/\/\)[^/].*/{
14502 s//\1/
14503 q
14504 }
14505 /^X\(\/\/\)$/{
14506 s//\1/
14507 q
14508 }
14509 /^X\(\/\).*/{
14510 s//\1/
14511 q
14512 }
14513 s/.*/./; q'`
14514 { as_dir=$dirpart/$fdir
14515 case $as_dir in #(
14516 -*) as_dir=./$as_dir;;
14517 esac
14518 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14519 as_dirs=
14520 while :; do
14521 case $as_dir in #(
14522 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14523 *) as_qdir=$as_dir;;
14524 esac
14525 as_dirs="'$as_qdir' $as_dirs"
14526 as_dir=`$as_dirname -- "$as_dir" ||
14527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14528 X"$as_dir" : 'X\(//\)[^/]' \| \
14529 X"$as_dir" : 'X\(//\)$' \| \
14530 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14531$as_echo X"$as_dir" |
14532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14533 s//\1/
14534 q
14535 }
14536 /^X\(\/\/\)[^/].*/{
14537 s//\1/
14538 q
14539 }
14540 /^X\(\/\/\)$/{
14541 s//\1/
14542 q
14543 }
14544 /^X\(\/\).*/{
14545 s//\1/
14546 q
14547 }
14548 s/.*/./; q'`
14549 test -d "$as_dir" && break
14550 done
14551 test -z "$as_dirs" || eval "mkdir $as_dirs"
14552 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14553$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14554 { (exit 1); exit 1; }; }; }
14555 # echo "creating $dirpart/$file"
14556 echo '# dummy' > "$dirpart/$file"
14557 done
14558 done
14559}
14560 ;;
14561 "libtool":C)
d9898ee8 14562
8d138742
CE
14563 # See if we are running on zsh, and set the options which allow our
14564 # commands through without removal of \ escapes.
14565 if test -n "${ZSH_VERSION+set}" ; then
14566 setopt NO_GLOB_SUBST
14567 fi
d9898ee8 14568
8d138742
CE
14569 cfgfile="${ofile}T"
14570 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14571 $RM "$cfgfile"
d9898ee8 14572
8d138742
CE
14573 cat <<_LT_EOF >> "$cfgfile"
14574#! $SHELL
dd184caf 14575
8d138742
CE
14576# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14577# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14578# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14579# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14580#
8d138742
CE
14581# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14582# 2006, 2007, 2008 Free Software Foundation, Inc.
14583# Written by Gordon Matzigkeit, 1996
d9898ee8 14584#
8d138742
CE
14585# This file is part of GNU Libtool.
14586#
14587# GNU Libtool is free software; you can redistribute it and/or
14588# modify it under the terms of the GNU General Public License as
14589# published by the Free Software Foundation; either version 2 of
14590# the License, or (at your option) any later version.
14591#
14592# As a special exception to the GNU General Public License,
14593# if you distribute this file as part of a program or library that
14594# is built using GNU Libtool, you may include this file under the
14595# same distribution terms that you use for the rest of that program.
14596#
14597# GNU Libtool is distributed in the hope that it will be useful,
14598# but WITHOUT ANY WARRANTY; without even the implied warranty of
14599# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14600# GNU General Public License for more details.
14601#
14602# You should have received a copy of the GNU General Public License
14603# along with GNU Libtool; see the file COPYING. If not, a copy
14604# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14605# obtained by writing to the Free Software Foundation, Inc.,
14606# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14607
d9898ee8 14608
8d138742
CE
14609# The names of the tagged configurations supported by this script.
14610available_tags=""
dd184caf 14611
8d138742 14612# ### BEGIN LIBTOOL CONFIG
d9898ee8 14613
8d138742
CE
14614# Which release of libtool.m4 was used?
14615macro_version=$macro_version
14616macro_revision=$macro_revision
d9898ee8 14617
8d138742
CE
14618# Whether or not to build shared libraries.
14619build_libtool_libs=$enable_shared
d9898ee8 14620
8d138742
CE
14621# Whether or not to build static libraries.
14622build_old_libs=$enable_static
d9898ee8 14623
8d138742
CE
14624# What type of objects to build.
14625pic_mode=$pic_mode
d9898ee8 14626
8d138742
CE
14627# Whether or not to optimize for fast installation.
14628fast_install=$enable_fast_install
d9898ee8 14629
8d138742
CE
14630# The host system.
14631host_alias=$host_alias
14632host=$host
14633host_os=$host_os
d9898ee8 14634
8d138742
CE
14635# The build system.
14636build_alias=$build_alias
14637build=$build
14638build_os=$build_os
d9898ee8 14639
8d138742
CE
14640# A sed program that does not truncate output.
14641SED=$lt_SED
d9898ee8 14642
8d138742
CE
14643# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14644Xsed="\$SED -e 1s/^X//"
d9898ee8 14645
8d138742
CE
14646# A grep program that handles long lines.
14647GREP=$lt_GREP
dd184caf 14648
8d138742
CE
14649# An ERE matcher.
14650EGREP=$lt_EGREP
dd184caf 14651
8d138742
CE
14652# A literal string matcher.
14653FGREP=$lt_FGREP
dd184caf 14654
8d138742
CE
14655# A BSD- or MS-compatible name lister.
14656NM=$lt_NM
dd184caf 14657
8d138742
CE
14658# Whether we need soft or hard links.
14659LN_S=$lt_LN_S
dd184caf 14660
8d138742
CE
14661# What is the maximum length of a command?
14662max_cmd_len=$max_cmd_len
dd184caf 14663
8d138742
CE
14664# Object file suffix (normally "o").
14665objext=$ac_objext
d9898ee8 14666
8d138742
CE
14667# Executable file suffix (normally "").
14668exeext=$exeext
d9898ee8 14669
8d138742
CE
14670# whether the shell understands "unset".
14671lt_unset=$lt_unset
d9898ee8 14672
8d138742
CE
14673# turn spaces into newlines.
14674SP2NL=$lt_lt_SP2NL
dd184caf 14675
8d138742
CE
14676# turn newlines into spaces.
14677NL2SP=$lt_lt_NL2SP
dd184caf 14678
8d138742
CE
14679# How to create reloadable object files.
14680reload_flag=$lt_reload_flag
14681reload_cmds=$lt_reload_cmds
dd184caf 14682
8d138742
CE
14683# An object symbol dumper.
14684OBJDUMP=$lt_OBJDUMP
d9898ee8 14685
8d138742
CE
14686# Method to check whether dependent libraries are shared objects.
14687deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14688
8d138742
CE
14689# Command to use when deplibs_check_method == "file_magic".
14690file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14691
8d138742
CE
14692# The archiver.
14693AR=$lt_AR
14694AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14695
8d138742
CE
14696# A symbol stripping program.
14697STRIP=$lt_STRIP
d9898ee8 14698
8d138742
CE
14699# Commands used to install an old-style archive.
14700RANLIB=$lt_RANLIB
14701old_postinstall_cmds=$lt_old_postinstall_cmds
14702old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14703
8d138742
CE
14704# A C compiler.
14705LTCC=$lt_CC
d9898ee8 14706
8d138742
CE
14707# LTCC compiler flags.
14708LTCFLAGS=$lt_CFLAGS
d9898ee8 14709
8d138742
CE
14710# Take the output of nm and produce a listing of raw symbols and C names.
14711global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14712
8d138742
CE
14713# Transform the output of nm in a proper C declaration.
14714global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14715
8d138742
CE
14716# Transform the output of nm in a C name address pair.
14717global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14718
8d138742
CE
14719# Transform the output of nm in a C name address pair when lib prefix is needed.
14720global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14721
8d138742
CE
14722# The name of the directory that contains temporary libtool files.
14723objdir=$objdir
d9898ee8 14724
8d138742
CE
14725# Shell to use when invoking shell scripts.
14726SHELL=$lt_SHELL
dd184caf 14727
8d138742
CE
14728# An echo program that does not interpret backslashes.
14729ECHO=$lt_ECHO
d9898ee8 14730
8d138742
CE
14731# Used to examine libraries when file_magic_cmd begins with "file".
14732MAGIC_CMD=$MAGIC_CMD
d9898ee8 14733
8d138742
CE
14734# Must we lock files when doing compilation?
14735need_locks=$lt_need_locks
d9898ee8 14736
8d138742
CE
14737# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14738DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14739
8d138742
CE
14740# Tool to change global to local symbols on Mac OS X.
14741NMEDIT=$lt_NMEDIT
d9898ee8 14742
8d138742
CE
14743# Tool to manipulate fat objects and archives on Mac OS X.
14744LIPO=$lt_LIPO
d9898ee8 14745
8d138742
CE
14746# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14747OTOOL=$lt_OTOOL
d9898ee8 14748
8d138742
CE
14749# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14750OTOOL64=$lt_OTOOL64
d9898ee8 14751
8d138742
CE
14752# Old archive suffix (normally "a").
14753libext=$libext
d9898ee8 14754
8d138742
CE
14755# Shared library suffix (normally ".so").
14756shrext_cmds=$lt_shrext_cmds
d9898ee8 14757
8d138742
CE
14758# The commands to extract the exported symbol list from a shared archive.
14759extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14760
8d138742
CE
14761# Variables whose values should be saved in libtool wrapper scripts and
14762# restored at link time.
14763variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14764
8d138742
CE
14765# Do we need the "lib" prefix for modules?
14766need_lib_prefix=$need_lib_prefix
d9898ee8 14767
8d138742
CE
14768# Do we need a version for libraries?
14769need_version=$need_version
d9898ee8 14770
8d138742
CE
14771# Library versioning type.
14772version_type=$version_type
d9898ee8 14773
8d138742
CE
14774# Shared library runtime path variable.
14775runpath_var=$runpath_var
d9898ee8 14776
8d138742
CE
14777# Shared library path variable.
14778shlibpath_var=$shlibpath_var
d9898ee8 14779
8d138742
CE
14780# Is shlibpath searched before the hard-coded library search path?
14781shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14782
8d138742
CE
14783# Format of library name prefix.
14784libname_spec=$lt_libname_spec
d9898ee8 14785
8d138742
CE
14786# List of archive names. First name is the real one, the rest are links.
14787# The last name is the one that the linker finds with -lNAME
14788library_names_spec=$lt_library_names_spec
d9898ee8 14789
8d138742
CE
14790# The coded name of the library, if different from the real name.
14791soname_spec=$lt_soname_spec
d9898ee8 14792
8d138742
CE
14793# Command to use after installation of a shared archive.
14794postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14795
8d138742
CE
14796# Command to use after uninstallation of a shared archive.
14797postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14798
8d138742
CE
14799# Commands used to finish a libtool library installation in a directory.
14800finish_cmds=$lt_finish_cmds
dd184caf 14801
8d138742
CE
14802# As "finish_cmds", except a single script fragment to be evaled but
14803# not shown.
14804finish_eval=$lt_finish_eval
d9898ee8 14805
8d138742
CE
14806# Whether we should hardcode library paths into libraries.
14807hardcode_into_libs=$hardcode_into_libs
d9898ee8 14808
8d138742
CE
14809# Compile-time system search path for libraries.
14810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14811
8d138742
CE
14812# Run-time system search path for libraries.
14813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14814
8d138742
CE
14815# Whether dlopen is supported.
14816dlopen_support=$enable_dlopen
d9898ee8 14817
8d138742
CE
14818# Whether dlopen of programs is supported.
14819dlopen_self=$enable_dlopen_self
d9898ee8 14820
8d138742
CE
14821# Whether dlopen of statically linked programs is supported.
14822dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14823
8d138742
CE
14824# Commands to strip libraries.
14825old_striplib=$lt_old_striplib
14826striplib=$lt_striplib
d9898ee8 14827
d9898ee8 14828
8d138742
CE
14829# The linker used to build libraries.
14830LD=$lt_LD
d9898ee8 14831
8d138742
CE
14832# Commands used to build an old-style archive.
14833old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14834
8d138742
CE
14835# A language specific compiler.
14836CC=$lt_compiler
d9898ee8 14837
8d138742
CE
14838# Is the compiler the GNU compiler?
14839with_gcc=$GCC
dd184caf 14840
8d138742
CE
14841# Compiler flag to turn off builtin functions.
14842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14843
8d138742
CE
14844# How to pass a linker flag through the compiler.
14845wl=$lt_lt_prog_compiler_wl
d9898ee8 14846
8d138742
CE
14847# Additional compiler flags for building library objects.
14848pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14849
8d138742
CE
14850# Compiler flag to prevent dynamic linking.
14851link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14852
8d138742
CE
14853# Does compiler simultaneously support -c and -o options?
14854compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14855
14856# Whether or not to add -lc for building shared libraries.
14857build_libtool_need_lc=$archive_cmds_need_lc
14858
14859# Whether or not to disallow shared libs when runtime libs are static.
14860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14861
14862# Compiler flag to allow reflexive dlopens.
14863export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14864
8d138742
CE
14865# Compiler flag to generate shared objects directly from archives.
14866whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14867
8d138742
CE
14868# Whether the compiler copes with passing no objects directly.
14869compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14870
8d138742
CE
14871# Create an old-style archive from a shared archive.
14872old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14873
8d138742
CE
14874# Create a temporary old-style archive to link instead of a shared archive.
14875old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14876
8d138742
CE
14877# Commands used to build a shared archive.
14878archive_cmds=$lt_archive_cmds
14879archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14880
8d138742
CE
14881# Commands used to build a loadable module if different from building
14882# a shared archive.
14883module_cmds=$lt_module_cmds
14884module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14885
8d138742
CE
14886# Whether we are building with GNU ld or not.
14887with_gnu_ld=$lt_with_gnu_ld
dd184caf 14888
8d138742
CE
14889# Flag that allows shared libraries with undefined symbols to be built.
14890allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14891
8d138742
CE
14892# Flag that enforces no undefined symbols.
14893no_undefined_flag=$lt_no_undefined_flag
d9898ee8 14894
8d138742
CE
14895# Flag to hardcode \$libdir into a binary during linking.
14896# This must work even if \$libdir does not exist
14897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14898
8d138742
CE
14899# If ld is used when linking, flag to hardcode \$libdir into a binary
14900# during linking. This must work even if \$libdir does not exist.
14901hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 14902
8d138742
CE
14903# Whether we need a single "-rpath" flag with a separated argument.
14904hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14905
8d138742
CE
14906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14907# DIR into the resulting binary.
14908hardcode_direct=$hardcode_direct
dd184caf 14909
8d138742
CE
14910# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14911# DIR into the resulting binary and the resulting library dependency is
14912# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14913# library is relocated.
14914hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 14915
8d138742
CE
14916# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14917# into the resulting binary.
14918hardcode_minus_L=$hardcode_minus_L
dd184caf 14919
8d138742
CE
14920# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14921# into the resulting binary.
14922hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14923
8d138742
CE
14924# Set to "yes" if building a shared library automatically hardcodes DIR
14925# into the library and all subsequent libraries and executables linked
14926# against it.
14927hardcode_automatic=$hardcode_automatic
dd184caf 14928
8d138742
CE
14929# Set to yes if linker adds runtime paths of dependent libraries
14930# to runtime path list.
14931inherit_rpath=$inherit_rpath
dd184caf 14932
8d138742
CE
14933# Whether libtool must link a program against all its dependency libraries.
14934link_all_deplibs=$link_all_deplibs
dd184caf 14935
8d138742
CE
14936# Fix the shell variable \$srcfile for the compiler.
14937fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 14938
8d138742
CE
14939# Set to "yes" if exported symbols are required.
14940always_export_symbols=$always_export_symbols
dd184caf 14941
8d138742
CE
14942# The commands to list exported symbols.
14943export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14944
8d138742
CE
14945# Symbols that should not be listed in the preloaded symbols.
14946exclude_expsyms=$lt_exclude_expsyms
d9898ee8 14947
8d138742
CE
14948# Symbols that must always be exported.
14949include_expsyms=$lt_include_expsyms
d9898ee8 14950
8d138742
CE
14951# Commands necessary for linking programs (against libraries) with templates.
14952prelink_cmds=$lt_prelink_cmds
d9898ee8 14953
8d138742
CE
14954# Specify filename containing input files.
14955file_list_spec=$lt_file_list_spec
14956
14957# How to hardcode a shared library path into an executable.
14958hardcode_action=$hardcode_action
d9898ee8 14959
8d138742 14960# ### END LIBTOOL CONFIG
d9898ee8 14961
8d138742 14962_LT_EOF
d9898ee8 14963
8d138742
CE
14964 case $host_os in
14965 aix3*)
14966 cat <<\_LT_EOF >> "$cfgfile"
14967# AIX sometimes has problems with the GCC collect2 program. For some
14968# reason, if we set the COLLECT_NAMES environment variable, the problems
14969# vanish in a puff of smoke.
14970if test "X${COLLECT_NAMES+set}" != Xset; then
14971 COLLECT_NAMES=
14972 export COLLECT_NAMES
14973fi
14974_LT_EOF
14975 ;;
dd184caf 14976 esac
8d138742
CE
14977
14978
14979ltmain="$ac_aux_dir/ltmain.sh"
14980
14981
14982 # We use sed instead of cat because bash on DJGPP gets confused if
14983 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14984 # text mode, it properly converts lines to CR/LF. This bash problem
14985 # is reportedly fixed, but why not run on old versions too?
14986 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14987 || (rm -f "$cfgfile"; exit 1)
14988
14989 case $xsi_shell in
14990 yes)
14991 cat << \_LT_EOF >> "$cfgfile"
14992
14993# func_dirname file append nondir_replacement
14994# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14995# otherwise set result to NONDIR_REPLACEMENT.
14996func_dirname ()
14997{
14998 case ${1} in
14999 */*) func_dirname_result="${1%/*}${2}" ;;
15000 * ) func_dirname_result="${3}" ;;
d9898ee8 15001 esac
8d138742 15002}
d9898ee8 15003
8d138742
CE
15004# func_basename file
15005func_basename ()
15006{
15007 func_basename_result="${1##*/}"
15008}
dd184caf 15009
8d138742
CE
15010# func_dirname_and_basename file append nondir_replacement
15011# perform func_basename and func_dirname in a single function
15012# call:
15013# dirname: Compute the dirname of FILE. If nonempty,
15014# add APPEND to the result, otherwise set result
15015# to NONDIR_REPLACEMENT.
15016# value returned in "$func_dirname_result"
15017# basename: Compute filename of FILE.
15018# value retuned in "$func_basename_result"
15019# Implementation must be kept synchronized with func_dirname
15020# and func_basename. For efficiency, we do not delegate to
15021# those functions but instead duplicate the functionality here.
15022func_dirname_and_basename ()
15023{
15024 case ${1} in
15025 */*) func_dirname_result="${1%/*}${2}" ;;
15026 * ) func_dirname_result="${3}" ;;
15027 esac
15028 func_basename_result="${1##*/}"
dd184caf 15029}
dd184caf 15030
8d138742
CE
15031# func_stripname prefix suffix name
15032# strip PREFIX and SUFFIX off of NAME.
15033# PREFIX and SUFFIX must not contain globbing or regex special
15034# characters, hashes, percent signs, but SUFFIX may contain a leading
15035# dot (in which case that matches only a dot).
15036func_stripname ()
15037{
15038 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15039 # positional parameters, so assign one to ordinary parameter first.
15040 func_stripname_result=${3}
15041 func_stripname_result=${func_stripname_result#"${1}"}
15042 func_stripname_result=${func_stripname_result%"${2}"}
15043}
dd184caf 15044
8d138742
CE
15045# func_opt_split
15046func_opt_split ()
15047{
15048 func_opt_split_opt=${1%%=*}
15049 func_opt_split_arg=${1#*=}
15050}
dd184caf 15051
8d138742
CE
15052# func_lo2o object
15053func_lo2o ()
15054{
15055 case ${1} in
15056 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15057 *) func_lo2o_result=${1} ;;
d9898ee8 15058 esac
8d138742 15059}
d9898ee8 15060
8d138742
CE
15061# func_xform libobj-or-source
15062func_xform ()
15063{
15064 func_xform_result=${1%.*}.lo
15065}
d9898ee8 15066
8d138742
CE
15067# func_arith arithmetic-term...
15068func_arith ()
15069{
15070 func_arith_result=$(( $* ))
15071}
15072
15073# func_len string
15074# STRING may not start with a hyphen.
15075func_len ()
15076{
15077 func_len_result=${#1}
15078}
15079
15080_LT_EOF
15081 ;;
15082 *) # Bourne compatible functions.
15083 cat << \_LT_EOF >> "$cfgfile"
15084
15085# func_dirname file append nondir_replacement
15086# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15087# otherwise set result to NONDIR_REPLACEMENT.
15088func_dirname ()
15089{
15090 # Extract subdirectory from the argument.
15091 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15092 if test "X$func_dirname_result" = "X${1}"; then
15093 func_dirname_result="${3}"
d9898ee8 15094 else
8d138742 15095 func_dirname_result="$func_dirname_result${2}"
d9898ee8 15096 fi
8d138742 15097}
d9898ee8 15098
8d138742
CE
15099# func_basename file
15100func_basename ()
15101{
15102 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15103}
15104
15105
15106# func_stripname prefix suffix name
15107# strip PREFIX and SUFFIX off of NAME.
15108# PREFIX and SUFFIX must not contain globbing or regex special
15109# characters, hashes, percent signs, but SUFFIX may contain a leading
15110# dot (in which case that matches only a dot).
15111# func_strip_suffix prefix name
15112func_stripname ()
15113{
15114 case ${2} in
15115 .*) func_stripname_result=`$ECHO "X${3}" \
15116 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15117 *) func_stripname_result=`$ECHO "X${3}" \
15118 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 15119 esac
8d138742 15120}
d9898ee8 15121
8d138742
CE
15122# sed scripts:
15123my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15124my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 15125
8d138742
CE
15126# func_opt_split
15127func_opt_split ()
15128{
15129 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15130 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15131}
15132
15133# func_lo2o object
15134func_lo2o ()
15135{
15136 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15137}
15138
15139# func_xform libobj-or-source
15140func_xform ()
15141{
15142 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15143}
15144
15145# func_arith arithmetic-term...
15146func_arith ()
15147{
15148 func_arith_result=`expr "$@"`
15149}
15150
15151# func_len string
15152# STRING may not start with a hyphen.
15153func_len ()
15154{
15155 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15156}
15157
15158_LT_EOF
15159esac
15160
15161case $lt_shell_append in
15162 yes)
15163 cat << \_LT_EOF >> "$cfgfile"
15164
15165# func_append var value
15166# Append VALUE to the end of shell variable VAR.
15167func_append ()
15168{
15169 eval "$1+=\$2"
15170}
15171_LT_EOF
15172 ;;
15173 *)
15174 cat << \_LT_EOF >> "$cfgfile"
15175
15176# func_append var value
15177# Append VALUE to the end of shell variable VAR.
15178func_append ()
15179{
15180 eval "$1=\$$1\$2"
15181}
15182
15183_LT_EOF
15184 ;;
dd184caf 15185 esac
8d138742
CE
15186
15187
15188 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15189 || (rm -f "$cfgfile"; exit 1)
15190
15191 mv -f "$cfgfile" "$ofile" ||
15192 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15193 chmod +x "$ofile"
15194
d9898ee8 15195 ;;
dd184caf 15196
d9898ee8 15197 esac
dd184caf 15198done # for ac_tag
d9898ee8 15199
d9898ee8 15200
15201{ (exit 0); exit 0; }
15202_ACEOF
15203chmod +x $CONFIG_STATUS
15204ac_clean_files=$ac_clean_files_save
15205
8d138742
CE
15206test $ac_write_fail = 0 ||
15207 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15208$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15209 { (exit 1); exit 1; }; }
15210
d9898ee8 15211
15212# configure is writing to config.log, and then calls config.status.
15213# config.status does its own redirection, appending to config.log.
15214# Unfortunately, on DOS this fails, as config.log is still kept open
15215# by configure, so config.status won't be able to write to it; its
15216# output is simply discarded. So we exec the FD to /dev/null,
15217# effectively closing config.log, so it can be properly (re)opened and
15218# appended to by config.status. When coming back to configure, we
15219# need to make the FD available again.
15220if test "$no_create" != yes; then
15221 ac_cs_success=:
15222 ac_config_status_args=
15223 test "$silent" = yes &&
15224 ac_config_status_args="$ac_config_status_args --quiet"
15225 exec 5>/dev/null
15226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15227 exec 5>>config.log
15228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15229 # would make configure fail if this is the last instruction.
15230 $ac_cs_success || { (exit 1); exit 1; }
15231fi
8d138742
CE
15232if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15233 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15234$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15235fi
d9898ee8 15236