Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / random128 / 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 random128 0.10.
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='random128'
747PACKAGE_TARNAME='random128'
748PACKAGE_VERSION='0.10'
749PACKAGE_STRING='random128 0.10'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="random128.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
793OTOOL64
794OTOOL
795LIPO
796NMEDIT
797DSYMUTIL
798lt_ECHO
dd184caf 799RANLIB
8d138742
CE
800AR
801OBJDUMP
802NM
803ac_ct_DUMPBIN
804DUMPBIN
805LD
806FGREP
807SED
808host_os
809host_vendor
810host_cpu
811host
812build_os
813build_vendor
814build_cpu
815build
dd184caf 816LIBTOOL
8d138742
CE
817W
818PS
819LN_S
820EGREP
821GREP
822CPP
823am__fastdepCC_FALSE
824am__fastdepCC_TRUE
825CCDEPMODE
826AMDEPBACKSLASH
827AMDEP_FALSE
828AMDEP_TRUE
829am__quote
830am__include
831DEPDIR
832OBJEXT
833EXEEXT
834ac_ct_CC
835CPPFLAGS
836LDFLAGS
837CFLAGS
838CC
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_random
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 random128 0.10 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/random128]
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 random128 0.10:";;
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-random=/dev/urandom - location of the system random file generator
1565--without-random - there is no system random file generator
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
1643random128 configure 0.10
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 random128 $as_me 0.10, 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
8d138742 2029am__api_version='1.11'
dd184caf 2030
d9898ee8 2031ac_aux_dir=
dd184caf 2032for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2033 if test -f "$ac_dir/install-sh"; then
d9898ee8 2034 ac_aux_dir=$ac_dir
2035 ac_install_sh="$ac_aux_dir/install-sh -c"
2036 break
dd184caf 2037 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/install.sh -c"
2040 break
dd184caf 2041 elif test -f "$ac_dir/shtool"; then
d9898ee8 2042 ac_aux_dir=$ac_dir
2043 ac_install_sh="$ac_aux_dir/shtool install -c"
2044 break
2045 fi
2046done
2047if test -z "$ac_aux_dir"; then
8d138742
CE
2048 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2049$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2050 { (exit 1); exit 1; }; }
2051fi
dd184caf 2052
2053# These three variables are undocumented and unsupported,
2054# and are intended to be withdrawn in a future Autoconf release.
2055# They can cause serious problems if a builder's source tree is in a directory
2056# whose full name contains unusual characters.
2057ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2058ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2059ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2060
d9898ee8 2061
2062# Find a good install program. We prefer a C program (faster),
2063# so one script is as good as another. But avoid the broken or
2064# incompatible versions:
2065# SysV /etc/install, /usr/sbin/install
2066# SunOS /usr/etc/install
2067# IRIX /sbin/install
2068# AIX /bin/install
2069# AmigaOS /C/install, which installs bootblocks on floppy discs
2070# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2071# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2072# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2073# OS/2's system install, which has a completely different semantic
2074# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2075# Reject install programs that cannot install multiple files.
2076{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2077$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2078if test -z "$INSTALL"; then
2079if test "${ac_cv_path_install+set}" = set; then
8d138742 2080 $as_echo_n "(cached) " >&6
d9898ee8 2081else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 # Account for people who put trailing slashes in PATH elements.
2088case $as_dir/ in
2089 ./ | .// | /cC/* | \
2090 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2091 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2092 /usr/ucb/* ) ;;
2093 *)
2094 # OSF1 and SCO ODT 3.0 have their own names for install.
2095 # Don't use installbsd from OSF since it installs stuff as root
2096 # by default.
2097 for ac_prog in ginstall scoinst install; do
2098 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2099 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2100 if test $ac_prog = install &&
2101 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2102 # AIX install. It has an incompatible calling convention.
2103 :
2104 elif test $ac_prog = install &&
2105 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106 # program-specific install script used by HP pwplus--don't use.
2107 :
2108 else
8d138742
CE
2109 rm -rf conftest.one conftest.two conftest.dir
2110 echo one > conftest.one
2111 echo two > conftest.two
2112 mkdir conftest.dir
2113 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2114 test -s conftest.one && test -s conftest.two &&
2115 test -s conftest.dir/conftest.one &&
2116 test -s conftest.dir/conftest.two
2117 then
2118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2119 break 3
2120 fi
d9898ee8 2121 fi
2122 fi
2123 done
2124 done
2125 ;;
2126esac
8d138742 2127
d9898ee8 2128done
dd184caf 2129IFS=$as_save_IFS
d9898ee8 2130
8d138742 2131rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2132
2133fi
2134 if test "${ac_cv_path_install+set}" = set; then
2135 INSTALL=$ac_cv_path_install
2136 else
dd184caf 2137 # As a last resort, use the slow shell script. Don't cache a
2138 # value for INSTALL within a source directory, because that will
d9898ee8 2139 # break other packages using the cache if that directory is
dd184caf 2140 # removed, or if the value is a relative name.
d9898ee8 2141 INSTALL=$ac_install_sh
2142 fi
2143fi
8d138742
CE
2144{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2145$as_echo "$INSTALL" >&6; }
d9898ee8 2146
2147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148# It thinks the first close brace ends the variable substitution.
2149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
8d138742
CE
2155{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2156$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2157# Just in case
2158sleep 1
2159echo timestamp > conftest.file
8d138742
CE
2160# Reject unsafe characters in $srcdir or the absolute working directory
2161# name. Accept space and tab only in the latter.
2162am_lf='
2163'
2164case `pwd` in
2165 *[\\\"\#\$\&\'\`$am_lf]*)
2166 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2167$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2168 { (exit 1); exit 1; }; };;
2169esac
2170case $srcdir in
2171 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2172 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2173$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2174 { (exit 1); exit 1; }; };;
2175esac
2176
d9898ee8 2177# Do `set' in a subshell so we don't clobber the current shell's
2178# arguments. Must try -L first in case configure is actually a
2179# symlink; some systems play weird games with the mod time of symlinks
2180# (eg FreeBSD returns the mod time of the symlink's containing
2181# directory).
2182if (
8d138742 2183 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2184 if test "$*" = "X"; then
2185 # -L didn't work.
8d138742 2186 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2187 fi
2188 rm -f conftest.file
2189 if test "$*" != "X $srcdir/configure conftest.file" \
2190 && test "$*" != "X conftest.file $srcdir/configure"; then
2191
2192 # If neither matched, then we have a broken ls. This can happen
2193 # if, for instance, CONFIG_SHELL is bash and it inherits a
2194 # broken ls alias from the environment. This has actually
2195 # happened. Such a system could not be considered "sane".
8d138742 2196 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2197alias in your environment" >&5
8d138742 2198$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2199alias in your environment" >&2;}
2200 { (exit 1); exit 1; }; }
2201 fi
2202
2203 test "$2" = conftest.file
2204 )
2205then
2206 # Ok.
2207 :
2208else
8d138742 2209 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2210Check your system clock" >&5
8d138742 2211$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2212Check your system clock" >&2;}
2213 { (exit 1); exit 1; }; }
2214fi
8d138742
CE
2215{ $as_echo "$as_me:$LINENO: result: yes" >&5
2216$as_echo "yes" >&6; }
d9898ee8 2217test "$program_prefix" != NONE &&
dd184caf 2218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2219# Use a double $ so make ignores it.
2220test "$program_suffix" != NONE &&
dd184caf 2221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2222# Double any \ or $.
d9898ee8 2223# By default was `s,x,x', remove it if useless.
8d138742
CE
2224ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2225program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2226
2227# expand $ac_aux_dir to an absolute path
2228am_aux_dir=`cd $ac_aux_dir && pwd`
2229
8d138742
CE
2230if test x"${MISSING+set}" != xset; then
2231 case $am_aux_dir in
2232 *\ * | *\ *)
2233 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2234 *)
2235 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2236 esac
2237fi
d9898ee8 2238# Use eval to expand $SHELL
2239if eval "$MISSING --run true"; then
2240 am_missing_run="$MISSING --run "
2241else
2242 am_missing_run=
8d138742
CE
2243 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2244$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2245fi
2246
2247if test x"${install_sh}" != xset; then
2248 case $am_aux_dir in
2249 *\ * | *\ *)
2250 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2251 *)
2252 install_sh="\${SHELL} $am_aux_dir/install-sh"
2253 esac
2254fi
2255
2256# Installed binaries are usually stripped using `strip' when the user
2257# run `make install-strip'. However `strip' might not be the right
2258# tool to use in cross-compilation environments, therefore Automake
2259# will honor the `STRIP' environment variable to overrule this program.
2260if test "$cross_compiling" != no; then
2261 if test -n "$ac_tool_prefix"; then
2262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2263set dummy ${ac_tool_prefix}strip; ac_word=$2
2264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2265$as_echo_n "checking for $ac_word... " >&6; }
2266if test "${ac_cv_prog_STRIP+set}" = set; then
2267 $as_echo_n "(cached) " >&6
2268else
2269 if test -n "$STRIP"; then
2270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
2285IFS=$as_save_IFS
2286
2287fi
2288fi
2289STRIP=$ac_cv_prog_STRIP
2290if test -n "$STRIP"; then
2291 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2292$as_echo "$STRIP" >&6; }
2293else
2294 { $as_echo "$as_me:$LINENO: result: no" >&5
2295$as_echo "no" >&6; }
d9898ee8 2296fi
2297
8d138742
CE
2298
2299fi
2300if test -z "$ac_cv_prog_STRIP"; then
2301 ac_ct_STRIP=$STRIP
2302 # Extract the first word of "strip", so it can be a program name with args.
2303set dummy strip; ac_word=$2
2304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2305$as_echo_n "checking for $ac_word... " >&6; }
2306if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2308else
2309 if test -n "$ac_ct_STRIP"; then
2310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_ac_ct_STRIP="strip"
2320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
2325IFS=$as_save_IFS
2326
2327fi
2328fi
2329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2330if test -n "$ac_ct_STRIP"; then
2331 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2332$as_echo "$ac_ct_STRIP" >&6; }
2333else
2334 { $as_echo "$as_me:$LINENO: result: no" >&5
2335$as_echo "no" >&6; }
2336fi
2337
2338 if test "x$ac_ct_STRIP" = x; then
2339 STRIP=":"
2340 else
2341 case $cross_compiling:$ac_tool_warned in
2342yes:)
2343{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2345ac_tool_warned=yes ;;
2346esac
2347 STRIP=$ac_ct_STRIP
2348 fi
2349else
2350 STRIP="$ac_cv_prog_STRIP"
2351fi
2352
2353fi
2354INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2355
2356{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2357$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2358if test -z "$MKDIR_P"; then
2359 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2360 $as_echo_n "(cached) " >&6
dd184caf 2361else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_prog in mkdir gmkdir; do
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2370 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2371 'mkdir (GNU coreutils) '* | \
2372 'mkdir (coreutils) '* | \
2373 'mkdir (fileutils) '4.1*)
2374 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2375 break 3;;
2376 esac
2377 done
2378 done
2379done
2380IFS=$as_save_IFS
2381
2382fi
2383
2384 if test "${ac_cv_path_mkdir+set}" = set; then
2385 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2386 else
dd184caf 2387 # As a last resort, use the slow shell script. Don't cache a
2388 # value for MKDIR_P within a source directory, because that will
2389 # break other packages using the cache if that directory is
2390 # removed, or if the value is a relative name.
2391 test -d ./--version && rmdir ./--version
2392 MKDIR_P="$ac_install_sh -d"
d9898ee8 2393 fi
2394fi
8d138742
CE
2395{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2396$as_echo "$MKDIR_P" >&6; }
dd184caf 2397
2398mkdir_p="$MKDIR_P"
2399case $mkdir_p in
2400 [\\/$]* | ?:[\\/]*) ;;
2401 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2402esac
d9898ee8 2403
2404for ac_prog in gawk mawk nawk awk
2405do
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407set dummy $ac_prog; ac_word=$2
8d138742
CE
2408{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2410if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2411 $as_echo_n "(cached) " >&6
d9898ee8 2412else
2413 if test -n "$AWK"; then
2414 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2423 ac_cv_prog_AWK="$ac_prog"
8d138742 2424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2425 break 2
2426 fi
2427done
2428done
dd184caf 2429IFS=$as_save_IFS
d9898ee8 2430
2431fi
2432fi
2433AWK=$ac_cv_prog_AWK
2434if test -n "$AWK"; then
8d138742
CE
2435 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2436$as_echo "$AWK" >&6; }
d9898ee8 2437else
8d138742
CE
2438 { $as_echo "$as_me:$LINENO: result: no" >&5
2439$as_echo "no" >&6; }
d9898ee8 2440fi
2441
dd184caf 2442
d9898ee8 2443 test -n "$AWK" && break
2444done
2445
8d138742
CE
2446{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2447$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2448set x ${MAKE-make}
2449ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2450if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2451 $as_echo_n "(cached) " >&6
d9898ee8 2452else
2453 cat >conftest.make <<\_ACEOF
dd184caf 2454SHELL = /bin/sh
d9898ee8 2455all:
dd184caf 2456 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2457_ACEOF
2458# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2459case `${MAKE-make} -f conftest.make 2>/dev/null` in
2460 *@@@%%%=?*=@@@%%%*)
2461 eval ac_cv_prog_make_${ac_make}_set=yes;;
2462 *)
2463 eval ac_cv_prog_make_${ac_make}_set=no;;
2464esac
d9898ee8 2465rm -f conftest.make
2466fi
dd184caf 2467if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2468 { $as_echo "$as_me:$LINENO: result: yes" >&5
2469$as_echo "yes" >&6; }
d9898ee8 2470 SET_MAKE=
2471else
8d138742
CE
2472 { $as_echo "$as_me:$LINENO: result: no" >&5
2473$as_echo "no" >&6; }
d9898ee8 2474 SET_MAKE="MAKE=${MAKE-make}"
2475fi
2476
2477rm -rf .tst 2>/dev/null
2478mkdir .tst 2>/dev/null
2479if test -d .tst; then
2480 am__leading_dot=.
2481else
2482 am__leading_dot=_
2483fi
2484rmdir .tst 2>/dev/null
2485
dd184caf 2486if test "`cd $srcdir && pwd`" != "`pwd`"; then
2487 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2488 # is not polluted with repeated "-I."
2489 am__isrc=' -I$(srcdir)'
2490 # test to see if srcdir already configured
2491 if test -f $srcdir/config.status; then
8d138742
CE
2492 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2493$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2494 { (exit 1); exit 1; }; }
dd184caf 2495 fi
d9898ee8 2496fi
2497
2498# test whether we have cygpath
2499if test -z "$CYGPATH_W"; then
2500 if (cygpath --version) >/dev/null 2>/dev/null; then
2501 CYGPATH_W='cygpath -w'
2502 else
2503 CYGPATH_W=echo
2504 fi
2505fi
2506
2507
2508# Define the identity of the package.
2509 PACKAGE='random128'
2510 VERSION='0.10'
2511
2512
2513# Some tools Automake needs.
2514
2515ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2516
2517
2518AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2519
2520
2521AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2522
2523
2524AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2525
2526
2527MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2528
d9898ee8 2529# We need awk for the "check" target. The system "awk" is bad on
2530# some platforms.
2531# Always define AMTAR for backward compatibility.
2532
2533AMTAR=${AMTAR-"${am_missing_run}tar"}
2534
2535am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2536
2537
2538
2539
2540
2541LPATH="$PATH:/usr/local/bin"
2542
2543
dd184caf 2544ac_config_headers="$ac_config_headers config.h"
d9898ee8 2545
2546DEPDIR="${am__leading_dot}deps"
2547
dd184caf 2548ac_config_commands="$ac_config_commands depfiles"
d9898ee8 2549
2550
2551am_make=${MAKE-make}
2552cat > confinc << 'END'
2553am__doit:
8d138742 2554 @echo this is the am__doit target
d9898ee8 2555.PHONY: am__doit
2556END
2557# If we don't find an include directive, just comment out the code.
8d138742
CE
2558{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2559$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 2560am__include="#"
2561am__quote=
2562_am_result=none
2563# First try GNU make style include.
2564echo "include confinc" > confmf
8d138742
CE
2565# Ignore all kinds of additional output from `make'.
2566case `$am_make -s -f confmf 2> /dev/null` in #(
2567*the\ am__doit\ target*)
2568 am__include=include
2569 am__quote=
2570 _am_result=GNU
2571 ;;
2572esac
d9898ee8 2573# Now try BSD make style include.
2574if test "$am__include" = "#"; then
2575 echo '.include "confinc"' > confmf
8d138742
CE
2576 case `$am_make -s -f confmf 2> /dev/null` in #(
2577 *the\ am__doit\ target*)
2578 am__include=.include
2579 am__quote="\""
2580 _am_result=BSD
2581 ;;
2582 esac
d9898ee8 2583fi
2584
2585
8d138742
CE
2586{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2587$as_echo "$_am_result" >&6; }
d9898ee8 2588rm -f confinc confmf
2589
dd184caf 2590# Check whether --enable-dependency-tracking was given.
d9898ee8 2591if test "${enable_dependency_tracking+set}" = set; then
dd184caf 2592 enableval=$enable_dependency_tracking;
2593fi
d9898ee8 2594
d9898ee8 2595if test "x$enable_dependency_tracking" != xno; then
2596 am_depcomp="$ac_aux_dir/depcomp"
2597 AMDEPBACKSLASH='\'
2598fi
dd184caf 2599 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 2600 AMDEP_TRUE=
2601 AMDEP_FALSE='#'
2602else
2603 AMDEP_TRUE='#'
2604 AMDEP_FALSE=
2605fi
2606
2607
d9898ee8 2608ac_ext=c
2609ac_cpp='$CPP $CPPFLAGS'
2610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2616{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2618if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2619 $as_echo_n "(cached) " >&6
d9898ee8 2620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2633 break 2
2634 fi
2635done
2636done
dd184caf 2637IFS=$as_save_IFS
d9898ee8 2638
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
8d138742
CE
2643 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2644$as_echo "$CC" >&6; }
d9898ee8 2645else
8d138742
CE
2646 { $as_echo "$as_me:$LINENO: result: no" >&5
2647$as_echo "no" >&6; }
d9898ee8 2648fi
2649
dd184caf 2650
d9898ee8 2651fi
2652if test -z "$ac_cv_prog_CC"; then
2653 ac_ct_CC=$CC
2654 # Extract the first word of "gcc", so it can be a program name with args.
2655set dummy gcc; ac_word=$2
8d138742
CE
2656{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2659 $as_echo_n "(cached) " >&6
d9898ee8 2660else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2671 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2673 break 2
2674 fi
2675done
2676done
dd184caf 2677IFS=$as_save_IFS
d9898ee8 2678
2679fi
2680fi
2681ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682if test -n "$ac_ct_CC"; then
8d138742
CE
2683 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2685else
8d138742
CE
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687$as_echo "no" >&6; }
d9898ee8 2688fi
2689
dd184caf 2690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694yes:)
8d138742
CE
2695{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2697ac_tool_warned=yes ;;
2698esac
2699 CC=$ac_ct_CC
2700 fi
d9898ee8 2701else
2702 CC="$ac_cv_prog_CC"
2703fi
2704
2705if test -z "$CC"; then
dd184caf 2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2708set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2711if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2712 $as_echo_n "(cached) " >&6
d9898ee8 2713else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2724 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2726 break 2
2727 fi
2728done
2729done
dd184caf 2730IFS=$as_save_IFS
d9898ee8 2731
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
8d138742
CE
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737$as_echo "$CC" >&6; }
d9898ee8 2738else
8d138742
CE
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740$as_echo "no" >&6; }
d9898ee8 2741fi
2742
d9898ee8 2743
dd184caf 2744 fi
d9898ee8 2745fi
2746if test -z "$CC"; then
2747 # Extract the first word of "cc", so it can be a program name with args.
2748set dummy cc; ac_word=$2
8d138742
CE
2749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2751if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2752 $as_echo_n "(cached) " >&6
d9898ee8 2753else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756else
2757 ac_prog_rejected=no
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2766 ac_prog_rejected=yes
2767 continue
2768 fi
2769 ac_cv_prog_CC="cc"
8d138742 2770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2771 break 2
2772 fi
2773done
2774done
dd184caf 2775IFS=$as_save_IFS
d9898ee8 2776
2777if test $ac_prog_rejected = yes; then
2778 # We found a bogon in the path, so make sure we never use it.
2779 set dummy $ac_cv_prog_CC
2780 shift
2781 if test $# != 0; then
2782 # We chose a different compiler from the bogus one.
2783 # However, it has the same basename, so the bogon will be chosen
2784 # first if we set CC to just the basename; use the full file name.
2785 shift
2786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2787 fi
2788fi
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
8d138742
CE
2793 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2794$as_echo "$CC" >&6; }
d9898ee8 2795else
8d138742
CE
2796 { $as_echo "$as_me:$LINENO: result: no" >&5
2797$as_echo "no" >&6; }
d9898ee8 2798fi
2799
dd184caf 2800
d9898ee8 2801fi
2802if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
dd184caf 2804 for ac_prog in cl.exe
d9898ee8 2805 do
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2810if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2811 $as_echo_n "(cached) " >&6
d9898ee8 2812else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2825 break 2
2826 fi
2827done
2828done
dd184caf 2829IFS=$as_save_IFS
d9898ee8 2830
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
8d138742
CE
2835 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2836$as_echo "$CC" >&6; }
d9898ee8 2837else
8d138742
CE
2838 { $as_echo "$as_me:$LINENO: result: no" >&5
2839$as_echo "no" >&6; }
d9898ee8 2840fi
2841
dd184caf 2842
d9898ee8 2843 test -n "$CC" && break
2844 done
2845fi
2846if test -z "$CC"; then
2847 ac_ct_CC=$CC
dd184caf 2848 for ac_prog in cl.exe
d9898ee8 2849do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
8d138742
CE
2852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2855 $as_echo_n "(cached) " >&6
d9898ee8 2856else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2867 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2869 break 2
2870 fi
2871done
2872done
dd184caf 2873IFS=$as_save_IFS
d9898ee8 2874
2875fi
2876fi
2877ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878if test -n "$ac_ct_CC"; then
8d138742
CE
2879 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2880$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2881else
8d138742
CE
2882 { $as_echo "$as_me:$LINENO: result: no" >&5
2883$as_echo "no" >&6; }
d9898ee8 2884fi
2885
dd184caf 2886
d9898ee8 2887 test -n "$ac_ct_CC" && break
2888done
2889
dd184caf 2890 if test "x$ac_ct_CC" = x; then
2891 CC=""
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894yes:)
8d138742
CE
2895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2897ac_tool_warned=yes ;;
2898esac
2899 CC=$ac_ct_CC
2900 fi
d9898ee8 2901fi
2902
2903fi
2904
2905
8d138742
CE
2906test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 2909See \`config.log' for more details." >&5
8d138742 2910$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 2911See \`config.log' for more details." >&2;}
8d138742 2912 { (exit 1); exit 1; }; }; }
d9898ee8 2913
2914# Provide some information about the compiler.
8d138742
CE
2915$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2916set X $ac_compile
2917ac_compiler=$2
dd184caf 2918{ (ac_try="$ac_compiler --version >&5"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
8d138742
CE
2923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924$as_echo "$ac_try_echo") >&5
dd184caf 2925 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2926 ac_status=$?
8d138742 2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2928 (exit $ac_status); }
dd184caf 2929{ (ac_try="$ac_compiler -v >&5"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
8d138742
CE
2934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2935$as_echo "$ac_try_echo") >&5
dd184caf 2936 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2937 ac_status=$?
8d138742 2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2939 (exit $ac_status); }
dd184caf 2940{ (ac_try="$ac_compiler -V >&5"
2941case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
8d138742
CE
2945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2946$as_echo "$ac_try_echo") >&5
dd184caf 2947 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2948 ac_status=$?
8d138742 2949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2950 (exit $ac_status); }
2951
2952cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
2958
2959int
2960main ()
2961{
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
2967ac_clean_files_save=$ac_clean_files
8d138742 2968ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 2969# Try to create an executable without -o first, disregard a.out.
2970# It will help us diagnose broken compilers, and finding out an intuition
2971# of exeext.
8d138742
CE
2972{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2973$as_echo_n "checking for C compiler default output file name... " >&6; }
2974ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975
2976# The possible output files:
2977ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2978
dd184caf 2979ac_rmfiles=
2980for ac_file in $ac_files
2981do
2982 case $ac_file in
8d138742 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2985 esac
2986done
2987rm -f $ac_rmfiles
2988
2989if { (ac_try="$ac_link_default"
2990case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993esac
8d138742
CE
2994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995$as_echo "$ac_try_echo") >&5
dd184caf 2996 (eval "$ac_link_default") 2>&5
d9898ee8 2997 ac_status=$?
8d138742 2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2999 (exit $ac_status); }; then
dd184caf 3000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3001# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3002# in a Makefile. We should not override ac_cv_exeext if it was cached,
3003# so that the user can short-circuit this test for compilers unknown to
3004# Autoconf.
3005for ac_file in $ac_files ''
d9898ee8 3006do
3007 test -f "$ac_file" || continue
3008 case $ac_file in
8d138742 3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3010 ;;
3011 [ab].out )
3012 # We found the default executable, but exeext='' is most
3013 # certainly right.
3014 break;;
3015 *.* )
dd184caf 3016 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3017 then :; else
3018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 fi
3020 # We set ac_cv_exeext here because the later test for it is not
3021 # safe: cross compilers may not add the suffix if given an `-o'
3022 # argument, so we may need to know it at that point already.
3023 # Even if this section looks crufty: it has the advantage of
3024 # actually working.
d9898ee8 3025 break;;
3026 * )
3027 break;;
3028 esac
3029done
dd184caf 3030test "$ac_cv_exeext" = no && ac_cv_exeext=
3031
d9898ee8 3032else
dd184caf 3033 ac_file=''
3034fi
3035
8d138742
CE
3036{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3037$as_echo "$ac_file" >&6; }
dd184caf 3038if test -z "$ac_file"; then
8d138742 3039 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3040sed 's/^/| /' conftest.$ac_ext >&5
3041
8d138742
CE
3042{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3045See \`config.log' for more details." >&5
8d138742 3046$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3047See \`config.log' for more details." >&2;}
8d138742 3048 { (exit 77); exit 77; }; }; }
d9898ee8 3049fi
3050
3051ac_exeext=$ac_cv_exeext
d9898ee8 3052
dd184caf 3053# Check that the compiler produces executables we can run. If not, either
d9898ee8 3054# the compiler is broken, or we cross compile.
8d138742
CE
3055{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3056$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3057# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3058# If not cross compiling, check that we can run a simple program.
3059if test "$cross_compiling" != yes; then
3060 if { ac_try='./$ac_file'
dd184caf 3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
8d138742
CE
3065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066$as_echo "$ac_try_echo") >&5
dd184caf 3067 (eval "$ac_try") 2>&5
d9898ee8 3068 ac_status=$?
8d138742 3069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3070 (exit $ac_status); }; }; then
3071 cross_compiling=no
3072 else
3073 if test "$cross_compiling" = maybe; then
3074 cross_compiling=yes
3075 else
8d138742
CE
3076 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3079If you meant to cross compile, use \`--host'.
3080See \`config.log' for more details." >&5
8d138742 3081$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3082If you meant to cross compile, use \`--host'.
3083See \`config.log' for more details." >&2;}
8d138742 3084 { (exit 1); exit 1; }; }; }
d9898ee8 3085 fi
3086 fi
3087fi
8d138742
CE
3088{ $as_echo "$as_me:$LINENO: result: yes" >&5
3089$as_echo "yes" >&6; }
d9898ee8 3090
8d138742 3091rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3092ac_clean_files=$ac_clean_files_save
dd184caf 3093# Check that the compiler produces executables we can run. If not, either
d9898ee8 3094# the compiler is broken, or we cross compile.
8d138742
CE
3095{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3096$as_echo_n "checking whether we are cross compiling... " >&6; }
3097{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3098$as_echo "$cross_compiling" >&6; }
dd184caf 3099
8d138742
CE
3100{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3101$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3102if { (ac_try="$ac_link"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
8d138742
CE
3107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108$as_echo "$ac_try_echo") >&5
dd184caf 3109 (eval "$ac_link") 2>&5
d9898ee8 3110 ac_status=$?
8d138742 3111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115# work properly (i.e., refer to `conftest.exe'), while it won't with
3116# `rm'.
3117for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
8d138742 3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3122 break;;
3123 * ) break;;
3124 esac
3125done
3126else
8d138742
CE
3127 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3130See \`config.log' for more details." >&5
8d138742 3131$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3132See \`config.log' for more details." >&2;}
8d138742 3133 { (exit 1); exit 1; }; }; }
d9898ee8 3134fi
3135
3136rm -f conftest$ac_cv_exeext
8d138742
CE
3137{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3138$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3139
3140rm -f conftest.$ac_ext
3141EXEEXT=$ac_cv_exeext
3142ac_exeext=$EXEEXT
8d138742
CE
3143{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3144$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3145if test "${ac_cv_objext+set}" = set; then
8d138742 3146 $as_echo_n "(cached) " >&6
d9898ee8 3147else
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.o conftest.obj
dd184caf 3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
8d138742
CE
3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170$as_echo "$ac_try_echo") >&5
dd184caf 3171 (eval "$ac_compile") 2>&5
d9898ee8 3172 ac_status=$?
8d138742 3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3174 (exit $ac_status); }; then
dd184caf 3175 for ac_file in conftest.o conftest.obj conftest.*; do
3176 test -f "$ac_file" || continue;
d9898ee8 3177 case $ac_file in
8d138742 3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 break;;
3181 esac
3182done
3183else
8d138742 3184 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3185sed 's/^/| /' conftest.$ac_ext >&5
3186
8d138742
CE
3187{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3190See \`config.log' for more details." >&5
8d138742 3191$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3192See \`config.log' for more details." >&2;}
8d138742 3193 { (exit 1); exit 1; }; }; }
d9898ee8 3194fi
3195
3196rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197fi
8d138742
CE
3198{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3199$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3200OBJEXT=$ac_cv_objext
3201ac_objext=$OBJEXT
8d138742
CE
3202{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3203$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3204if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3205 $as_echo_n "(cached) " >&6
d9898ee8 3206else
3207 cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h. */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h. */
3213
3214int
3215main ()
3216{
3217#ifndef __GNUC__
3218 choke me
3219#endif
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
dd184caf 3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
8d138742
CE
3231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232$as_echo "$ac_try_echo") >&5
dd184caf 3233 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
8d138742 3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
d9898ee8 3243 ac_compiler_gnu=yes
3244else
8d138742 3245 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3246sed 's/^/| /' conftest.$ac_ext >&5
3247
dd184caf 3248 ac_compiler_gnu=no
d9898ee8 3249fi
dd184caf 3250
3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3252ac_cv_c_compiler_gnu=$ac_compiler_gnu
3253
3254fi
8d138742
CE
3255{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3256$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3257if test $ac_compiler_gnu = yes; then
3258 GCC=yes
3259else
3260 GCC=
3261fi
d9898ee8 3262ac_test_CFLAGS=${CFLAGS+set}
3263ac_save_CFLAGS=$CFLAGS
8d138742
CE
3264{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3265$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3266if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3267 $as_echo_n "(cached) " >&6
d9898ee8 3268else
dd184caf 3269 ac_save_c_werror_flag=$ac_c_werror_flag
3270 ac_c_werror_flag=yes
3271 ac_cv_prog_cc_g=no
3272 CFLAGS="-g"
3273 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3274/* confdefs.h. */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
dd184caf 3289if { (ac_try="$ac_compile"
3290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
8d138742
CE
3294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295$as_echo "$ac_try_echo") >&5
dd184caf 3296 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
8d138742 3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3306 ac_cv_prog_cc_g=yes
3307else
8d138742 3308 $as_echo "$as_me: failed program was:" >&5
dd184caf 3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 CFLAGS=""
3312 cat >conftest.$ac_ext <<_ACEOF
3313/* confdefs.h. */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h. */
3318
3319int
3320main ()
3321{
3322
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext
3328if { (ac_try="$ac_compile"
3329case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
8d138742
CE
3333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334$as_echo "$ac_try_echo") >&5
dd184caf 3335 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3336 ac_status=$?
dd184caf 3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
8d138742 3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3345 :
3346else
8d138742 3347 $as_echo "$as_me: failed program was:" >&5
dd184caf 3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351 CFLAGS="-g"
3352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358
3359int
3360main ()
3361{
3362
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (ac_try="$ac_compile"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
8d138742
CE
3373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374$as_echo "$ac_try_echo") >&5
dd184caf 3375 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3376 ac_status=$?
dd184caf 3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
8d138742 3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3381 (exit $ac_status); } && {
3382 test -z "$ac_c_werror_flag" ||
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
d9898ee8 3385 ac_cv_prog_cc_g=yes
3386else
8d138742 3387 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3388sed 's/^/| /' conftest.$ac_ext >&5
3389
dd184caf 3390
3391fi
3392
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394fi
3395
3396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3397fi
dd184caf 3398
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3401fi
8d138742
CE
3402{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3403$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3404if test "$ac_test_CFLAGS" = set; then
3405 CFLAGS=$ac_save_CFLAGS
3406elif test $ac_cv_prog_cc_g = yes; then
3407 if test "$GCC" = yes; then
3408 CFLAGS="-g -O2"
3409 else
3410 CFLAGS="-g"
3411 fi
3412else
3413 if test "$GCC" = yes; then
3414 CFLAGS="-O2"
3415 else
3416 CFLAGS=
3417 fi
3418fi
8d138742
CE
3419{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3420$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3421if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3422 $as_echo_n "(cached) " >&6
d9898ee8 3423else
dd184caf 3424 ac_cv_prog_cc_c89=no
d9898ee8 3425ac_save_CC=$CC
3426cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#include <stdarg.h>
3433#include <stdio.h>
3434#include <sys/types.h>
3435#include <sys/stat.h>
3436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3437struct buf { int x; };
3438FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439static char *e (p, i)
3440 char **p;
3441 int i;
3442{
3443 return p[i];
3444}
3445static char *f (char * (*g) (char **, int), char **p, ...)
3446{
3447 char *s;
3448 va_list v;
3449 va_start (v,p);
3450 s = g (p, va_arg (v,int));
3451 va_end (v);
3452 return s;
3453}
3454
3455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3456 function prototypes and stuff, but not '\xHH' hex character constants.
3457 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3458 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3460 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3461 that's true only with -std. */
d9898ee8 3462int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463
dd184caf 3464/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3465 inside strings and character constants. */
3466#define FOO(x) 'x'
3467int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468
d9898ee8 3469int test (int i, double x);
3470struct s1 {int (*f) (int a);};
3471struct s2 {int (*f) (double a);};
3472int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473int argc;
3474char **argv;
3475int
3476main ()
3477{
3478return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3479 ;
3480 return 0;
3481}
3482_ACEOF
dd184caf 3483for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3485do
3486 CC="$ac_save_CC $ac_arg"
3487 rm -f conftest.$ac_objext
dd184caf 3488if { (ac_try="$ac_compile"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
8d138742
CE
3493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494$as_echo "$ac_try_echo") >&5
dd184caf 3495 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
8d138742 3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3505 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3506else
8d138742 3507 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3508sed 's/^/| /' conftest.$ac_ext >&5
3509
dd184caf 3510
d9898ee8 3511fi
dd184caf 3512
3513rm -f core conftest.err conftest.$ac_objext
3514 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3515done
dd184caf 3516rm -f conftest.$ac_ext
d9898ee8 3517CC=$ac_save_CC
3518
3519fi
dd184caf 3520# AC_CACHE_VAL
3521case "x$ac_cv_prog_cc_c89" in
3522 x)
8d138742
CE
3523 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3524$as_echo "none needed" >&6; } ;;
dd184caf 3525 xno)
8d138742
CE
3526 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3527$as_echo "unsupported" >&6; } ;;
d9898ee8 3528 *)
dd184caf 3529 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3530 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3531$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3532esac
3533
d9898ee8 3534
d9898ee8 3535ac_ext=c
3536ac_cpp='$CPP $CPPFLAGS'
3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540
3541depcc="$CC" am_compiler_list=
3542
8d138742
CE
3543{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3545if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3546 $as_echo_n "(cached) " >&6
d9898ee8 3547else
3548 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549 # We make a subdir and do the tests there. Otherwise we can end up
3550 # making bogus files that we don't know about and never remove. For
3551 # instance it was reported that on HP-UX the gcc test will end up
3552 # making a dummy file named `D' -- because `-MD' means `put the output
3553 # in D'.
3554 mkdir conftest.dir
3555 # Copy depcomp to subdir because otherwise we won't find it if we're
3556 # using a relative directory.
3557 cp "$am_depcomp" conftest.dir
3558 cd conftest.dir
3559 # We will build objects and dependencies in a subdirectory because
3560 # it helps to detect inapplicable dependency modes. For instance
3561 # both Tru64's cc and ICC support -MD to output dependencies as a
3562 # side effect of compilation, but ICC will put the dependencies in
3563 # the current directory while Tru64 will put them in the object
3564 # directory.
3565 mkdir sub
3566
3567 am_cv_CC_dependencies_compiler_type=none
3568 if test "$am_compiler_list" = ""; then
3569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570 fi
8d138742
CE
3571 am__universal=false
3572 case " $depcc " in #(
3573 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3574 esac
3575
d9898ee8 3576 for depmode in $am_compiler_list; do
3577 # Setup a source with many dependencies, because some compilers
3578 # like to wrap large dependency lists on column 80 (with \), and
3579 # we should not choose a depcomp mode which is confused by this.
3580 #
3581 # We need to recreate these files for each test, as the compiler may
3582 # overwrite some of them when testing with obscure command lines.
3583 # This happens at least with the AIX C compiler.
3584 : > sub/conftest.c
3585 for i in 1 2 3 4 5 6; do
3586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3587 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3588 # Solaris 8's {/usr,}/bin/sh.
3589 touch sub/conftst$i.h
3590 done
3591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3592
8d138742
CE
3593 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3594 # mode. It turns out that the SunPro C++ compiler does not properly
3595 # handle `-M -o', and we need to detect this. Also, some Intel
3596 # versions had trouble with output in subdirs
3597 am__obj=sub/conftest.${OBJEXT-o}
3598 am__minus_obj="-o $am__obj"
d9898ee8 3599 case $depmode in
8d138742
CE
3600 gcc)
3601 # This depmode causes a compiler race in universal mode.
3602 test "$am__universal" = false || continue
3603 ;;
d9898ee8 3604 nosideeffect)
3605 # after this tag, mechanisms are not by side-effect, so they'll
3606 # only be used when explicitly requested
3607 if test "x$enable_dependency_tracking" = xyes; then
3608 continue
3609 else
3610 break
3611 fi
3612 ;;
8d138742
CE
3613 msvisualcpp | msvcmsys)
3614 # This compiler won't grok `-c -o', but also, the minuso test has
3615 # not run yet. These depmodes are late enough in the game, and
3616 # so weak that their functioning should not be impacted.
3617 am__obj=conftest.${OBJEXT-o}
3618 am__minus_obj=
3619 ;;
d9898ee8 3620 none) break ;;
3621 esac
d9898ee8 3622 if depmode=$depmode \
8d138742 3623 source=sub/conftest.c object=$am__obj \
d9898ee8 3624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3626 >/dev/null 2>conftest.err &&
dd184caf 3627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3631 # icc doesn't choke on unknown options, it will just issue warnings
3632 # or remarks (even with -Werror). So we grep stderr for any message
3633 # that says an option was ignored or not supported.
3634 # When given -MP, icc 7.0 and 7.1 complain thusly:
3635 # icc: Command line warning: ignoring option '-M'; no argument required
3636 # The diagnosis changed in icc 8.0:
3637 # icc: Command line remark: option '-MP' not supported
3638 if (grep 'ignoring option' conftest.err ||
3639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3640 am_cv_CC_dependencies_compiler_type=$depmode
3641 break
3642 fi
3643 fi
3644 done
3645
3646 cd ..
3647 rm -rf conftest.dir
3648else
3649 am_cv_CC_dependencies_compiler_type=none
3650fi
3651
3652fi
8d138742
CE
3653{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3654$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3655CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3656
dd184caf 3657 if
d9898ee8 3658 test "x$enable_dependency_tracking" != xno \
3659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3660 am__fastdepCC_TRUE=
3661 am__fastdepCC_FALSE='#'
3662else
3663 am__fastdepCC_TRUE='#'
3664 am__fastdepCC_FALSE=
3665fi
3666
3667
3668
3669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
8d138742
CE
3674{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3675$as_echo_n "checking how to run the C preprocessor... " >&6; }
d9898ee8 3676# On Suns, sometimes $CPP names a directory.
3677if test -n "$CPP" && test -d "$CPP"; then
3678 CPP=
3679fi
3680if test -z "$CPP"; then
3681 if test "${ac_cv_prog_CPP+set}" = set; then
8d138742 3682 $as_echo_n "(cached) " >&6
d9898ee8 3683else
3684 # Double quotes because CPP needs to be expanded
3685 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3686 do
3687 ac_preproc_ok=false
3688for ac_c_preproc_warn_flag in '' yes
3689do
3690 # Use a header file that comes with gcc, so configuring glibc
3691 # with a fresh cross-compiler works.
3692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3693 # <limits.h> exists even on freestanding compilers.
3694 # On the NeXT, cc -E runs the code through the compiler's parser,
3695 # not just through cpp. "Syntax error" is here to catch this case.
3696 cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702#ifdef __STDC__
3703# include <limits.h>
3704#else
3705# include <assert.h>
3706#endif
3707 Syntax error
3708_ACEOF
dd184caf 3709if { (ac_try="$ac_cpp conftest.$ac_ext"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
8d138742
CE
3714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715$as_echo "$ac_try_echo") >&5
dd184caf 3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
8d138742 3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3722 (exit $ac_status); } >/dev/null && {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 }; then
d9898ee8 3726 :
3727else
8d138742 3728 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 # Broken: fails on valid input.
3732continue
3733fi
dd184caf 3734
d9898ee8 3735rm -f conftest.err conftest.$ac_ext
3736
dd184caf 3737 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3738 # can be detected and how.
3739 cat >conftest.$ac_ext <<_ACEOF
3740/* confdefs.h. */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h. */
3745#include <ac_nonexistent.h>
3746_ACEOF
dd184caf 3747if { (ac_try="$ac_cpp conftest.$ac_ext"
3748case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751esac
8d138742
CE
3752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3753$as_echo "$ac_try_echo") >&5
dd184caf 3754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
8d138742 3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3760 (exit $ac_status); } >/dev/null && {
3761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 }; then
d9898ee8 3764 # Broken: success on invalid input.
3765continue
3766else
8d138742 3767 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 # Passes both tests.
3771ac_preproc_ok=:
3772break
3773fi
dd184caf 3774
d9898ee8 3775rm -f conftest.err conftest.$ac_ext
3776
3777done
3778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779rm -f conftest.err conftest.$ac_ext
3780if $ac_preproc_ok; then
3781 break
3782fi
3783
3784 done
3785 ac_cv_prog_CPP=$CPP
3786
3787fi
3788 CPP=$ac_cv_prog_CPP
3789else
3790 ac_cv_prog_CPP=$CPP
3791fi
8d138742
CE
3792{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3793$as_echo "$CPP" >&6; }
d9898ee8 3794ac_preproc_ok=false
3795for ac_c_preproc_warn_flag in '' yes
3796do
3797 # Use a header file that comes with gcc, so configuring glibc
3798 # with a fresh cross-compiler works.
3799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3800 # <limits.h> exists even on freestanding compilers.
3801 # On the NeXT, cc -E runs the code through the compiler's parser,
3802 # not just through cpp. "Syntax error" is here to catch this case.
3803 cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h. */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h. */
3809#ifdef __STDC__
3810# include <limits.h>
3811#else
3812# include <assert.h>
3813#endif
3814 Syntax error
3815_ACEOF
dd184caf 3816if { (ac_try="$ac_cpp conftest.$ac_ext"
3817case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
8d138742
CE
3821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3822$as_echo "$ac_try_echo") >&5
dd184caf 3823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
8d138742 3828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3829 (exit $ac_status); } >/dev/null && {
3830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 }; then
d9898ee8 3833 :
3834else
8d138742 3835 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3836sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 # Broken: fails on valid input.
3839continue
3840fi
dd184caf 3841
d9898ee8 3842rm -f conftest.err conftest.$ac_ext
3843
dd184caf 3844 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3845 # can be detected and how.
3846 cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h. */
3852#include <ac_nonexistent.h>
3853_ACEOF
dd184caf 3854if { (ac_try="$ac_cpp conftest.$ac_ext"
3855case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
8d138742
CE
3859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3860$as_echo "$ac_try_echo") >&5
dd184caf 3861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
8d138742 3866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3867 (exit $ac_status); } >/dev/null && {
3868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3869 test ! -s conftest.err
3870 }; then
d9898ee8 3871 # Broken: success on invalid input.
3872continue
3873else
8d138742 3874 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 # Passes both tests.
3878ac_preproc_ok=:
3879break
3880fi
dd184caf 3881
d9898ee8 3882rm -f conftest.err conftest.$ac_ext
3883
3884done
3885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3886rm -f conftest.err conftest.$ac_ext
3887if $ac_preproc_ok; then
3888 :
3889else
8d138742
CE
3890 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d9898ee8 3893See \`config.log' for more details." >&5
8d138742 3894$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d9898ee8 3895See \`config.log' for more details." >&2;}
8d138742 3896 { (exit 1); exit 1; }; }; }
d9898ee8 3897fi
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
3905
8d138742
CE
3906{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 3908if test "${ac_cv_path_GREP+set}" = set; then
8d138742 3909 $as_echo_n "(cached) " >&6
dd184caf 3910else
8d138742 3911 if test -z "$GREP"; then
dd184caf 3912 ac_path_GREP_found=false
8d138742
CE
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in grep ggrep; do
8d138742
CE
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3923# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 3924 # Check for GNU $ac_path_GREP
3925case `"$ac_path_GREP" --version 2>&1` in
3926*GNU*)
3927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3928*)
3929 ac_count=0
8d138742 3930 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3931 while :
3932 do
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
8d138742 3936 $as_echo 'GREP' >> "conftest.nl"
dd184caf 3937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 ac_count=`expr $ac_count + 1`
3940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_GREP="$ac_path_GREP"
3943 ac_path_GREP_max=$ac_count
3944 fi
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3947 done
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949esac
3950
8d138742
CE
3951 $ac_path_GREP_found && break 3
3952 done
dd184caf 3953 done
3954done
dd184caf 3955IFS=$as_save_IFS
8d138742
CE
3956 if test -z "$ac_cv_path_GREP"; then
3957 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3958$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 3959 { (exit 1); exit 1; }; }
8d138742 3960 fi
dd184caf 3961else
3962 ac_cv_path_GREP=$GREP
3963fi
3964
dd184caf 3965fi
8d138742
CE
3966{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3967$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 3968 GREP="$ac_cv_path_GREP"
3969
3970
8d138742
CE
3971{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3972$as_echo_n "checking for egrep... " >&6; }
dd184caf 3973if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 3974 $as_echo_n "(cached) " >&6
dd184caf 3975else
3976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977 then ac_cv_path_EGREP="$GREP -E"
3978 else
8d138742 3979 if test -z "$EGREP"; then
dd184caf 3980 ac_path_EGREP_found=false
8d138742
CE
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
8d138742
CE
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 3992 # Check for GNU $ac_path_EGREP
3993case `"$ac_path_EGREP" --version 2>&1` in
3994*GNU*)
3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996*)
3997 ac_count=0
8d138742 3998 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3999 while :
4000 do
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
8d138742 4004 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_EGREP="$ac_path_EGREP"
4011 ac_path_EGREP_max=$ac_count
d9898ee8 4012 fi
dd184caf 4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4015 done
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017esac
4018
8d138742
CE
4019 $ac_path_EGREP_found && break 3
4020 done
dd184caf 4021 done
4022done
dd184caf 4023IFS=$as_save_IFS
8d138742
CE
4024 if test -z "$ac_cv_path_EGREP"; then
4025 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4027 { (exit 1); exit 1; }; }
8d138742 4028 fi
dd184caf 4029else
4030 ac_cv_path_EGREP=$EGREP
4031fi
4032
dd184caf 4033 fi
4034fi
8d138742
CE
4035{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4037 EGREP="$ac_cv_path_EGREP"
d9898ee8 4038
4039
8d138742
CE
4040{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041$as_echo_n "checking for ANSI C header files... " >&6; }
d9898ee8 4042if test "${ac_cv_header_stdc+set}" = set; then
8d138742 4043 $as_echo_n "(cached) " >&6
d9898ee8 4044else
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051#include <stdlib.h>
4052#include <stdarg.h>
4053#include <string.h>
4054#include <float.h>
4055
4056int
4057main ()
4058{
4059
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext
dd184caf 4065if { (ac_try="$ac_compile"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
8d138742
CE
4070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071$as_echo "$ac_try_echo") >&5
dd184caf 4072 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
8d138742 4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4078 (exit $ac_status); } && {
4079 test -z "$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4081 } && test -s conftest.$ac_objext; then
d9898ee8 4082 ac_cv_header_stdc=yes
4083else
8d138742 4084 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4085sed 's/^/| /' conftest.$ac_ext >&5
4086
dd184caf 4087 ac_cv_header_stdc=no
d9898ee8 4088fi
dd184caf 4089
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4091
4092if test $ac_cv_header_stdc = yes; then
4093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
4100#include <string.h>
4101
4102_ACEOF
4103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4104 $EGREP "memchr" >/dev/null 2>&1; then
4105 :
4106else
4107 ac_cv_header_stdc=no
4108fi
4109rm -f conftest*
4110
4111fi
4112
4113if test $ac_cv_header_stdc = yes; then
4114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4115 cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h. */
4121#include <stdlib.h>
4122
4123_ACEOF
4124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "free" >/dev/null 2>&1; then
4126 :
4127else
4128 ac_cv_header_stdc=no
4129fi
4130rm -f conftest*
4131
4132fi
4133
4134if test $ac_cv_header_stdc = yes; then
4135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4136 if test "$cross_compiling" = yes; then
4137 :
4138else
4139 cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h. */
4145#include <ctype.h>
dd184caf 4146#include <stdlib.h>
d9898ee8 4147#if ((' ' & 0x0FF) == 0x020)
4148# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4149# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4150#else
4151# define ISLOWER(c) \
4152 (('a' <= (c) && (c) <= 'i') \
4153 || ('j' <= (c) && (c) <= 'r') \
4154 || ('s' <= (c) && (c) <= 'z'))
4155# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4156#endif
4157
4158#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4159int
4160main ()
4161{
4162 int i;
4163 for (i = 0; i < 256; i++)
4164 if (XOR (islower (i), ISLOWER (i))
4165 || toupper (i) != TOUPPER (i))
dd184caf 4166 return 2;
4167 return 0;
d9898ee8 4168}
4169_ACEOF
4170rm -f conftest$ac_exeext
dd184caf 4171if { (ac_try="$ac_link"
4172case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
8d138742
CE
4176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177$as_echo "$ac_try_echo") >&5
dd184caf 4178 (eval "$ac_link") 2>&5
d9898ee8 4179 ac_status=$?
8d138742 4180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
8d138742
CE
4186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187$as_echo "$ac_try_echo") >&5
dd184caf 4188 (eval "$ac_try") 2>&5
d9898ee8 4189 ac_status=$?
8d138742 4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4191 (exit $ac_status); }; }; then
4192 :
4193else
8d138742
CE
4194 $as_echo "$as_me: program exited with status $ac_status" >&5
4195$as_echo "$as_me: failed program was:" >&5
d9898ee8 4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198( exit $ac_status )
4199ac_cv_header_stdc=no
4200fi
8d138742 4201rm -rf conftest.dSYM
dd184caf 4202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4203fi
dd184caf 4204
4205
d9898ee8 4206fi
4207fi
8d138742
CE
4208{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4209$as_echo "$ac_cv_header_stdc" >&6; }
d9898ee8 4210if test $ac_cv_header_stdc = yes; then
4211
4212cat >>confdefs.h <<\_ACEOF
4213#define STDC_HEADERS 1
4214_ACEOF
4215
4216fi
4217
4218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4229 inttypes.h stdint.h unistd.h
4230do
8d138742
CE
4231as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4232{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4233$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 4234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 4235 $as_echo_n "(cached) " >&6
d9898ee8 4236else
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
4243$ac_includes_default
4244
4245#include <$ac_header>
4246_ACEOF
4247rm -f conftest.$ac_objext
dd184caf 4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
8d138742
CE
4253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4254$as_echo "$ac_try_echo") >&5
dd184caf 4255 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
8d138742 4260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest.$ac_objext; then
d9898ee8 4265 eval "$as_ac_Header=yes"
4266else
8d138742 4267 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4268sed 's/^/| /' conftest.$ac_ext >&5
4269
dd184caf 4270 eval "$as_ac_Header=no"
d9898ee8 4271fi
dd184caf 4272
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4274fi
8d138742
CE
4275ac_res=`eval 'as_val=${'$as_ac_Header'}
4276 $as_echo "$as_val"'`
4277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4278$as_echo "$ac_res" >&6; }
4279as_val=`eval 'as_val=${'$as_ac_Header'}
4280 $as_echo "$as_val"'`
4281 if test "x$as_val" = x""yes; then
d9898ee8 4282 cat >>confdefs.h <<_ACEOF
8d138742 4283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 4284_ACEOF
4285
4286fi
4287
4288done
4289
4290
8d138742
CE
4291
4292 if test "${ac_cv_header_minix_config_h+set}" = set; then
4293 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4294$as_echo_n "checking for minix/config.h... " >&6; }
d9898ee8 4295if test "${ac_cv_header_minix_config_h+set}" = set; then
8d138742 4296 $as_echo_n "(cached) " >&6
d9898ee8 4297fi
8d138742
CE
4298{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4299$as_echo "$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4300else
4301 # Is the header compilable?
8d138742
CE
4302{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4303$as_echo_n "checking minix/config.h usability... " >&6; }
d9898ee8 4304cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
4310$ac_includes_default
4311#include <minix/config.h>
4312_ACEOF
4313rm -f conftest.$ac_objext
dd184caf 4314if { (ac_try="$ac_compile"
4315case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
8d138742
CE
4319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4320$as_echo "$ac_try_echo") >&5
dd184caf 4321 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
8d138742 4326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4327 (exit $ac_status); } && {
4328 test -z "$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4330 } && test -s conftest.$ac_objext; then
d9898ee8 4331 ac_header_compiler=yes
4332else
8d138742 4333 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4334sed 's/^/| /' conftest.$ac_ext >&5
4335
dd184caf 4336 ac_header_compiler=no
d9898ee8 4337fi
dd184caf 4338
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
4340{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4341$as_echo "$ac_header_compiler" >&6; }
d9898ee8 4342
4343# Is the header present?
8d138742
CE
4344{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4345$as_echo_n "checking minix/config.h presence... " >&6; }
d9898ee8 4346cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */
4352#include <minix/config.h>
4353_ACEOF
dd184caf 4354if { (ac_try="$ac_cpp conftest.$ac_ext"
4355case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
8d138742
CE
4359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4360$as_echo "$ac_try_echo") >&5
dd184caf 4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
8d138742 4366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4367 (exit $ac_status); } >/dev/null && {
4368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 }; then
d9898ee8 4371 ac_header_preproc=yes
4372else
8d138742 4373 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376 ac_header_preproc=no
4377fi
dd184caf 4378
d9898ee8 4379rm -f conftest.err conftest.$ac_ext
8d138742
CE
4380{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4381$as_echo "$ac_header_preproc" >&6; }
d9898ee8 4382
4383# So? What about this header?
4384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4385 yes:no: )
8d138742
CE
4386 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4387$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4388 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4389$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
d9898ee8 4390 ac_header_preproc=yes
4391 ;;
4392 no:yes:* )
8d138742
CE
4393 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4394$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4395 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4396$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4397 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4398$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4399 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4400$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4401 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4402$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4403 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4404$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
dd184caf 4405 ( cat <<\_ASBOX
d9898ee8 4406## -------------------------------------------------- ##
4407## Report this to courier-users@lists.sourceforge.net ##
4408## -------------------------------------------------- ##
4409_ASBOX
dd184caf 4410 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 4411 ;;
4412esac
8d138742
CE
4413{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4414$as_echo_n "checking for minix/config.h... " >&6; }
d9898ee8 4415if test "${ac_cv_header_minix_config_h+set}" = set; then
8d138742 4416 $as_echo_n "(cached) " >&6
d9898ee8 4417else
4418 ac_cv_header_minix_config_h=$ac_header_preproc
4419fi
8d138742
CE
4420{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4421$as_echo "$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4422
4423fi
8d138742 4424if test "x$ac_cv_header_minix_config_h" = x""yes; then
d9898ee8 4425 MINIX=yes
4426else
4427 MINIX=
4428fi
4429
4430
8d138742 4431 if test "$MINIX" = yes; then
d9898ee8 4432
4433cat >>confdefs.h <<\_ACEOF
4434#define _POSIX_SOURCE 1
4435_ACEOF
4436
4437
4438cat >>confdefs.h <<\_ACEOF
4439#define _POSIX_1_SOURCE 2
4440_ACEOF
4441
4442
4443cat >>confdefs.h <<\_ACEOF
4444#define _MINIX 1
4445_ACEOF
4446
8d138742
CE
4447 fi
4448
4449
4450
4451 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4452$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4453if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4454 $as_echo_n "(cached) " >&6
4455else
4456 cat >conftest.$ac_ext <<_ACEOF
4457/* confdefs.h. */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h. */
4462
4463# define __EXTENSIONS__ 1
4464 $ac_includes_default
4465int
4466main ()
4467{
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext
4474if { (ac_try="$ac_compile"
4475case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478esac
4479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4480$as_echo "$ac_try_echo") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && {
4488 test -z "$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 } && test -s conftest.$ac_objext; then
4491 ac_cv_safe_to_define___extensions__=yes
4492else
4493 $as_echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_cv_safe_to_define___extensions__=no
4497fi
4498
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4500fi
8d138742
CE
4501{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4502$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4503 test $ac_cv_safe_to_define___extensions__ = yes &&
4504 cat >>confdefs.h <<\_ACEOF
4505#define __EXTENSIONS__ 1
4506_ACEOF
4507
4508 cat >>confdefs.h <<\_ACEOF
4509#define _ALL_SOURCE 1
4510_ACEOF
4511
4512 cat >>confdefs.h <<\_ACEOF
4513#define _GNU_SOURCE 1
4514_ACEOF
4515
4516 cat >>confdefs.h <<\_ACEOF
4517#define _POSIX_PTHREAD_SEMANTICS 1
4518_ACEOF
4519
4520 cat >>confdefs.h <<\_ACEOF
4521#define _TANDEM_SOURCE 1
4522_ACEOF
4523
d9898ee8 4524
4525# Find a good install program. We prefer a C program (faster),
4526# so one script is as good as another. But avoid the broken or
4527# incompatible versions:
4528# SysV /etc/install, /usr/sbin/install
4529# SunOS /usr/etc/install
4530# IRIX /sbin/install
4531# AIX /bin/install
4532# AmigaOS /C/install, which installs bootblocks on floppy discs
4533# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4534# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4535# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4536# OS/2's system install, which has a completely different semantic
4537# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
4538# Reject install programs that cannot install multiple files.
4539{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4540$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 4541if test -z "$INSTALL"; then
4542if test "${ac_cv_path_install+set}" = set; then
8d138742 4543 $as_echo_n "(cached) " >&6
d9898ee8 4544else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 # Account for people who put trailing slashes in PATH elements.
4551case $as_dir/ in
4552 ./ | .// | /cC/* | \
4553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4555 /usr/ucb/* ) ;;
4556 *)
4557 # OSF1 and SCO ODT 3.0 have their own names for install.
4558 # Don't use installbsd from OSF since it installs stuff as root
4559 # by default.
4560 for ac_prog in ginstall scoinst install; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4562 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 4563 if test $ac_prog = install &&
4564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4565 # AIX install. It has an incompatible calling convention.
4566 :
4567 elif test $ac_prog = install &&
4568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4569 # program-specific install script used by HP pwplus--don't use.
4570 :
4571 else
8d138742
CE
4572 rm -rf conftest.one conftest.two conftest.dir
4573 echo one > conftest.one
4574 echo two > conftest.two
4575 mkdir conftest.dir
4576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4577 test -s conftest.one && test -s conftest.two &&
4578 test -s conftest.dir/conftest.one &&
4579 test -s conftest.dir/conftest.two
4580 then
4581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4582 break 3
4583 fi
d9898ee8 4584 fi
4585 fi
4586 done
4587 done
4588 ;;
4589esac
8d138742 4590
d9898ee8 4591done
dd184caf 4592IFS=$as_save_IFS
d9898ee8 4593
8d138742 4594rm -rf conftest.one conftest.two conftest.dir
d9898ee8 4595
4596fi
4597 if test "${ac_cv_path_install+set}" = set; then
4598 INSTALL=$ac_cv_path_install
4599 else
dd184caf 4600 # As a last resort, use the slow shell script. Don't cache a
4601 # value for INSTALL within a source directory, because that will
d9898ee8 4602 # break other packages using the cache if that directory is
dd184caf 4603 # removed, or if the value is a relative name.
d9898ee8 4604 INSTALL=$ac_install_sh
4605 fi
4606fi
8d138742
CE
4607{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4608$as_echo "$INSTALL" >&6; }
d9898ee8 4609
4610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4611# It thinks the first close brace ends the variable substitution.
4612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4613
4614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4615
4616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4617
8d138742
CE
4618{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4619$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 4620LN_S=$as_ln_s
4621if test "$LN_S" = "ln -s"; then
8d138742
CE
4622 { $as_echo "$as_me:$LINENO: result: yes" >&5
4623$as_echo "yes" >&6; }
d9898ee8 4624else
8d138742
CE
4625 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4626$as_echo "no, using $LN_S" >&6; }
d9898ee8 4627fi
4628
4629ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4636set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
4637{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4638$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4639if test "${ac_cv_prog_CC+set}" = set; then
8d138742 4640 $as_echo_n "(cached) " >&6
d9898ee8 4641else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 4653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4654 break 2
4655 fi
4656done
4657done
dd184caf 4658IFS=$as_save_IFS
d9898ee8 4659
4660fi
4661fi
4662CC=$ac_cv_prog_CC
4663if test -n "$CC"; then
8d138742
CE
4664 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4665$as_echo "$CC" >&6; }
d9898ee8 4666else
8d138742
CE
4667 { $as_echo "$as_me:$LINENO: result: no" >&5
4668$as_echo "no" >&6; }
d9898ee8 4669fi
4670
dd184caf 4671
d9898ee8 4672fi
4673if test -z "$ac_cv_prog_CC"; then
4674 ac_ct_CC=$CC
4675 # Extract the first word of "gcc", so it can be a program name with args.
4676set dummy gcc; ac_word=$2
8d138742
CE
4677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4678$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4679if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 4680 $as_echo_n "(cached) " >&6
d9898ee8 4681else
4682 if test -n "$ac_ct_CC"; then
4683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4684else
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4692 ac_cv_prog_ac_ct_CC="gcc"
8d138742 4693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4694 break 2
4695 fi
4696done
4697done
dd184caf 4698IFS=$as_save_IFS
d9898ee8 4699
4700fi
4701fi
4702ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703if test -n "$ac_ct_CC"; then
8d138742
CE
4704 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4705$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4706else
8d138742
CE
4707 { $as_echo "$as_me:$LINENO: result: no" >&5
4708$as_echo "no" >&6; }
d9898ee8 4709fi
4710
dd184caf 4711 if test "x$ac_ct_CC" = x; then
4712 CC=""
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715yes:)
8d138742
CE
4716{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4718ac_tool_warned=yes ;;
4719esac
4720 CC=$ac_ct_CC
4721 fi
d9898ee8 4722else
4723 CC="$ac_cv_prog_CC"
4724fi
4725
4726if test -z "$CC"; then
dd184caf 4727 if test -n "$ac_tool_prefix"; then
4728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 4729set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
4730{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4732if test "${ac_cv_prog_CC+set}" = set; then
8d138742 4733 $as_echo_n "(cached) " >&6
d9898ee8 4734else
4735 if test -n "$CC"; then
4736 ac_cv_prog_CC="$CC" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4745 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 4746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4747 break 2
4748 fi
4749done
4750done
dd184caf 4751IFS=$as_save_IFS
d9898ee8 4752
4753fi
4754fi
4755CC=$ac_cv_prog_CC
4756if test -n "$CC"; then
8d138742
CE
4757 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4758$as_echo "$CC" >&6; }
d9898ee8 4759else
8d138742
CE
4760 { $as_echo "$as_me:$LINENO: result: no" >&5
4761$as_echo "no" >&6; }
d9898ee8 4762fi
4763
d9898ee8 4764
dd184caf 4765 fi
d9898ee8 4766fi
4767if test -z "$CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769set dummy cc; ac_word=$2
8d138742
CE
4770{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4772if test "${ac_cv_prog_CC+set}" = set; then
8d138742 4773 $as_echo_n "(cached) " >&6
d9898ee8 4774else
4775 if test -n "$CC"; then
4776 ac_cv_prog_CC="$CC" # Let the user override the test.
4777else
4778 ac_prog_rejected=no
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4788 continue
4789 fi
4790 ac_cv_prog_CC="cc"
8d138742 4791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4792 break 2
4793 fi
4794done
4795done
dd184caf 4796IFS=$as_save_IFS
d9898ee8 4797
4798if test $ac_prog_rejected = yes; then
4799 # We found a bogon in the path, so make sure we never use it.
4800 set dummy $ac_cv_prog_CC
4801 shift
4802 if test $# != 0; then
4803 # We chose a different compiler from the bogus one.
4804 # However, it has the same basename, so the bogon will be chosen
4805 # first if we set CC to just the basename; use the full file name.
4806 shift
4807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4808 fi
4809fi
4810fi
4811fi
4812CC=$ac_cv_prog_CC
4813if test -n "$CC"; then
8d138742
CE
4814 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4815$as_echo "$CC" >&6; }
d9898ee8 4816else
8d138742
CE
4817 { $as_echo "$as_me:$LINENO: result: no" >&5
4818$as_echo "no" >&6; }
d9898ee8 4819fi
4820
dd184caf 4821
d9898ee8 4822fi
4823if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
dd184caf 4825 for ac_prog in cl.exe
d9898ee8 4826 do
4827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4828set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
4829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4830$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4831if test "${ac_cv_prog_CC+set}" = set; then
8d138742 4832 $as_echo_n "(cached) " >&6
d9898ee8 4833else
4834 if test -n "$CC"; then
4835 ac_cv_prog_CC="$CC" # Let the user override the test.
4836else
4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 4845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4846 break 2
4847 fi
4848done
4849done
dd184caf 4850IFS=$as_save_IFS
d9898ee8 4851
4852fi
4853fi
4854CC=$ac_cv_prog_CC
4855if test -n "$CC"; then
8d138742
CE
4856 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4857$as_echo "$CC" >&6; }
d9898ee8 4858else
8d138742
CE
4859 { $as_echo "$as_me:$LINENO: result: no" >&5
4860$as_echo "no" >&6; }
d9898ee8 4861fi
4862
dd184caf 4863
d9898ee8 4864 test -n "$CC" && break
4865 done
4866fi
4867if test -z "$CC"; then
4868 ac_ct_CC=$CC
dd184caf 4869 for ac_prog in cl.exe
d9898ee8 4870do
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872set dummy $ac_prog; ac_word=$2
8d138742
CE
4873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4874$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4875if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 4876 $as_echo_n "(cached) " >&6
d9898ee8 4877else
4878 if test -n "$ac_ct_CC"; then
4879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4888 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 4889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4890 break 2
4891 fi
4892done
4893done
dd184caf 4894IFS=$as_save_IFS
d9898ee8 4895
4896fi
4897fi
4898ac_ct_CC=$ac_cv_prog_ac_ct_CC
4899if test -n "$ac_ct_CC"; then
8d138742
CE
4900 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4901$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4902else
8d138742
CE
4903 { $as_echo "$as_me:$LINENO: result: no" >&5
4904$as_echo "no" >&6; }
d9898ee8 4905fi
4906
dd184caf 4907
d9898ee8 4908 test -n "$ac_ct_CC" && break
4909done
4910
dd184caf 4911 if test "x$ac_ct_CC" = x; then
4912 CC=""
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915yes:)
8d138742
CE
4916{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4918ac_tool_warned=yes ;;
4919esac
4920 CC=$ac_ct_CC
4921 fi
d9898ee8 4922fi
4923
4924fi
4925
4926
8d138742
CE
4927test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 4930See \`config.log' for more details." >&5
8d138742 4931$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 4932See \`config.log' for more details." >&2;}
8d138742 4933 { (exit 1); exit 1; }; }; }
d9898ee8 4934
4935# Provide some information about the compiler.
8d138742
CE
4936$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4937set X $ac_compile
4938ac_compiler=$2
dd184caf 4939{ (ac_try="$ac_compiler --version >&5"
4940case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943esac
8d138742
CE
4944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945$as_echo "$ac_try_echo") >&5
dd184caf 4946 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 4947 ac_status=$?
8d138742 4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4949 (exit $ac_status); }
dd184caf 4950{ (ac_try="$ac_compiler -v >&5"
4951case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
8d138742
CE
4955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4956$as_echo "$ac_try_echo") >&5
dd184caf 4957 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 4958 ac_status=$?
8d138742 4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4960 (exit $ac_status); }
dd184caf 4961{ (ac_try="$ac_compiler -V >&5"
4962case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965esac
8d138742
CE
4966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967$as_echo "$ac_try_echo") >&5
dd184caf 4968 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 4969 ac_status=$?
8d138742 4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4971 (exit $ac_status); }
4972
8d138742
CE
4973{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4974$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 4975if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 4976 $as_echo_n "(cached) " >&6
d9898ee8 4977else
4978 cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
4988#ifndef __GNUC__
4989 choke me
4990#endif
4991
4992 ;
4993 return 0;
4994}
4995_ACEOF
4996rm -f conftest.$ac_objext
dd184caf 4997if { (ac_try="$ac_compile"
4998case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001esac
8d138742
CE
5002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003$as_echo "$ac_try_echo") >&5
dd184caf 5004 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
8d138742 5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
d9898ee8 5014 ac_compiler_gnu=yes
5015else
8d138742 5016 $as_echo "$as_me: failed program was:" >&5
d9898ee8 5017sed 's/^/| /' conftest.$ac_ext >&5
5018
dd184caf 5019 ac_compiler_gnu=no
d9898ee8 5020fi
dd184caf 5021
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5023ac_cv_c_compiler_gnu=$ac_compiler_gnu
5024
5025fi
8d138742
CE
5026{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5027$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5028if test $ac_compiler_gnu = yes; then
5029 GCC=yes
5030else
5031 GCC=
5032fi
d9898ee8 5033ac_test_CFLAGS=${CFLAGS+set}
5034ac_save_CFLAGS=$CFLAGS
8d138742
CE
5035{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5036$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 5037if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 5038 $as_echo_n "(cached) " >&6
d9898ee8 5039else
dd184caf 5040 ac_save_c_werror_flag=$ac_c_werror_flag
5041 ac_c_werror_flag=yes
5042 ac_cv_prog_cc_g=no
5043 CFLAGS="-g"
5044 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059rm -f conftest.$ac_objext
dd184caf 5060if { (ac_try="$ac_compile"
5061case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064esac
8d138742
CE
5065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066$as_echo "$ac_try_echo") >&5
dd184caf 5067 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
8d138742 5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5073 (exit $ac_status); } && {
5074 test -z "$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_prog_cc_g=yes
5078else
8d138742 5079 $as_echo "$as_me: failed program was:" >&5
dd184caf 5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 CFLAGS=""
5083 cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
8d138742
CE
5104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105$as_echo "$ac_try_echo") >&5
dd184caf 5106 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5107 ac_status=$?
dd184caf 5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
8d138742 5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 :
5117else
8d138742 5118 $as_echo "$as_me: failed program was:" >&5
dd184caf 5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_c_werror_flag=$ac_save_c_werror_flag
5122 CFLAGS="-g"
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129
5130int
5131main ()
5132{
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
8d138742
CE
5144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145$as_echo "$ac_try_echo") >&5
dd184caf 5146 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5147 ac_status=$?
dd184caf 5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
8d138742 5151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
d9898ee8 5156 ac_cv_prog_cc_g=yes
5157else
8d138742 5158 $as_echo "$as_me: failed program was:" >&5
d9898ee8 5159sed 's/^/| /' conftest.$ac_ext >&5
5160
dd184caf 5161
5162fi
5163
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5168fi
dd184caf 5169
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 5172fi
8d138742
CE
5173{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5174$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 5175if test "$ac_test_CFLAGS" = set; then
5176 CFLAGS=$ac_save_CFLAGS
5177elif test $ac_cv_prog_cc_g = yes; then
5178 if test "$GCC" = yes; then
5179 CFLAGS="-g -O2"
5180 else
5181 CFLAGS="-g"
5182 fi
5183else
5184 if test "$GCC" = yes; then
5185 CFLAGS="-O2"
5186 else
5187 CFLAGS=
5188 fi
5189fi
8d138742
CE
5190{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5191$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 5192if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 5193 $as_echo_n "(cached) " >&6
d9898ee8 5194else
dd184caf 5195 ac_cv_prog_cc_c89=no
d9898ee8 5196ac_save_CC=$CC
5197cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h. */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h. */
5203#include <stdarg.h>
5204#include <stdio.h>
5205#include <sys/types.h>
5206#include <sys/stat.h>
5207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5208struct buf { int x; };
5209FILE * (*rcsopen) (struct buf *, struct stat *, int);
5210static char *e (p, i)
5211 char **p;
5212 int i;
5213{
5214 return p[i];
5215}
5216static char *f (char * (*g) (char **, int), char **p, ...)
5217{
5218 char *s;
5219 va_list v;
5220 va_start (v,p);
5221 s = g (p, va_arg (v,int));
5222 va_end (v);
5223 return s;
5224}
5225
5226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5227 function prototypes and stuff, but not '\xHH' hex character constants.
5228 These don't provoke an error unfortunately, instead are silently treated
dd184caf 5229 as 'x'. The following induces an error, until -std is added to get
d9898ee8 5230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5231 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 5232 that's true only with -std. */
d9898ee8 5233int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5234
dd184caf 5235/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5236 inside strings and character constants. */
5237#define FOO(x) 'x'
5238int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5239
d9898ee8 5240int test (int i, double x);
5241struct s1 {int (*f) (int a);};
5242struct s2 {int (*f) (double a);};
5243int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5244int argc;
5245char **argv;
5246int
5247main ()
5248{
5249return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5250 ;
5251 return 0;
5252}
5253_ACEOF
dd184caf 5254for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 5256do
5257 CC="$ac_save_CC $ac_arg"
5258 rm -f conftest.$ac_objext
dd184caf 5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
8d138742
CE
5264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5265$as_echo "$ac_try_echo") >&5
dd184caf 5266 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
8d138742 5271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5272 (exit $ac_status); } && {
5273 test -z "$ac_c_werror_flag" ||
5274 test ! -s conftest.err
5275 } && test -s conftest.$ac_objext; then
5276 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 5277else
8d138742 5278 $as_echo "$as_me: failed program was:" >&5
d9898ee8 5279sed 's/^/| /' conftest.$ac_ext >&5
5280
dd184caf 5281
d9898ee8 5282fi
dd184caf 5283
5284rm -f core conftest.err conftest.$ac_objext
5285 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 5286done
dd184caf 5287rm -f conftest.$ac_ext
d9898ee8 5288CC=$ac_save_CC
5289
5290fi
dd184caf 5291# AC_CACHE_VAL
5292case "x$ac_cv_prog_cc_c89" in
5293 x)
8d138742
CE
5294 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5295$as_echo "none needed" >&6; } ;;
dd184caf 5296 xno)
8d138742
CE
5297 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5298$as_echo "unsupported" >&6; } ;;
d9898ee8 5299 *)
dd184caf 5300 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
5301 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5302$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 5303esac
5304
d9898ee8 5305
d9898ee8 5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312depcc="$CC" am_compiler_list=
5313
8d138742
CE
5314{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5315$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 5316if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 5317 $as_echo_n "(cached) " >&6
d9898ee8 5318else
5319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5320 # We make a subdir and do the tests there. Otherwise we can end up
5321 # making bogus files that we don't know about and never remove. For
5322 # instance it was reported that on HP-UX the gcc test will end up
5323 # making a dummy file named `D' -- because `-MD' means `put the output
5324 # in D'.
5325 mkdir conftest.dir
5326 # Copy depcomp to subdir because otherwise we won't find it if we're
5327 # using a relative directory.
5328 cp "$am_depcomp" conftest.dir
5329 cd conftest.dir
5330 # We will build objects and dependencies in a subdirectory because
5331 # it helps to detect inapplicable dependency modes. For instance
5332 # both Tru64's cc and ICC support -MD to output dependencies as a
5333 # side effect of compilation, but ICC will put the dependencies in
5334 # the current directory while Tru64 will put them in the object
5335 # directory.
5336 mkdir sub
5337
5338 am_cv_CC_dependencies_compiler_type=none
5339 if test "$am_compiler_list" = ""; then
5340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5341 fi
8d138742
CE
5342 am__universal=false
5343 case " $depcc " in #(
5344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5345 esac
5346
d9898ee8 5347 for depmode in $am_compiler_list; do
5348 # Setup a source with many dependencies, because some compilers
5349 # like to wrap large dependency lists on column 80 (with \), and
5350 # we should not choose a depcomp mode which is confused by this.
5351 #
5352 # We need to recreate these files for each test, as the compiler may
5353 # overwrite some of them when testing with obscure command lines.
5354 # This happens at least with the AIX C compiler.
5355 : > sub/conftest.c
5356 for i in 1 2 3 4 5 6; do
5357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5359 # Solaris 8's {/usr,}/bin/sh.
5360 touch sub/conftst$i.h
5361 done
5362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5363
8d138742
CE
5364 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5365 # mode. It turns out that the SunPro C++ compiler does not properly
5366 # handle `-M -o', and we need to detect this. Also, some Intel
5367 # versions had trouble with output in subdirs
5368 am__obj=sub/conftest.${OBJEXT-o}
5369 am__minus_obj="-o $am__obj"
d9898ee8 5370 case $depmode in
8d138742
CE
5371 gcc)
5372 # This depmode causes a compiler race in universal mode.
5373 test "$am__universal" = false || continue
5374 ;;
d9898ee8 5375 nosideeffect)
5376 # after this tag, mechanisms are not by side-effect, so they'll
5377 # only be used when explicitly requested
5378 if test "x$enable_dependency_tracking" = xyes; then
5379 continue
5380 else
5381 break
5382 fi
5383 ;;
8d138742
CE
5384 msvisualcpp | msvcmsys)
5385 # This compiler won't grok `-c -o', but also, the minuso test has
5386 # not run yet. These depmodes are late enough in the game, and
5387 # so weak that their functioning should not be impacted.
5388 am__obj=conftest.${OBJEXT-o}
5389 am__minus_obj=
5390 ;;
d9898ee8 5391 none) break ;;
5392 esac
d9898ee8 5393 if depmode=$depmode \
8d138742 5394 source=sub/conftest.c object=$am__obj \
d9898ee8 5395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 5396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 5397 >/dev/null 2>conftest.err &&
dd184caf 5398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 5400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402 # icc doesn't choke on unknown options, it will just issue warnings
5403 # or remarks (even with -Werror). So we grep stderr for any message
5404 # that says an option was ignored or not supported.
5405 # When given -MP, icc 7.0 and 7.1 complain thusly:
5406 # icc: Command line warning: ignoring option '-M'; no argument required
5407 # The diagnosis changed in icc 8.0:
5408 # icc: Command line remark: option '-MP' not supported
5409 if (grep 'ignoring option' conftest.err ||
5410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411 am_cv_CC_dependencies_compiler_type=$depmode
5412 break
5413 fi
5414 fi
5415 done
5416
5417 cd ..
5418 rm -rf conftest.dir
5419else
5420 am_cv_CC_dependencies_compiler_type=none
5421fi
5422
5423fi
8d138742
CE
5424{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 5426CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5427
dd184caf 5428 if
d9898ee8 5429 test "x$enable_dependency_tracking" != xno \
5430 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5431 am__fastdepCC_TRUE=
5432 am__fastdepCC_FALSE='#'
5433else
5434 am__fastdepCC_TRUE='#'
5435 am__fastdepCC_FALSE=
5436fi
5437
5438
5439for ac_prog in ps
5440do
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442set dummy $ac_prog; ac_word=$2
8d138742
CE
5443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 5445if test "${ac_cv_path_PS+set}" = set; then
8d138742 5446 $as_echo_n "(cached) " >&6
d9898ee8 5447else
5448 case $PS in
5449 [\\/]* | ?:[\\/]*)
5450 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5451 ;;
5452 *)
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $LPATH
5455do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5460 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
8d138742 5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5462 break 2
5463 fi
5464done
5465done
dd184caf 5466IFS=$as_save_IFS
d9898ee8 5467
5468 ;;
5469esac
5470fi
5471PS=$ac_cv_path_PS
d9898ee8 5472if test -n "$PS"; then
8d138742
CE
5473 { $as_echo "$as_me:$LINENO: result: $PS" >&5
5474$as_echo "$PS" >&6; }
d9898ee8 5475else
8d138742
CE
5476 { $as_echo "$as_me:$LINENO: result: no" >&5
5477$as_echo "no" >&6; }
d9898ee8 5478fi
5479
dd184caf 5480
d9898ee8 5481 test -n "$PS" && break
5482done
5483test -n "$PS" || PS="ps"
5484
5485for ac_prog in w
5486do
5487 # Extract the first word of "$ac_prog", so it can be a program name with args.
5488set dummy $ac_prog; ac_word=$2
8d138742
CE
5489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5490$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 5491if test "${ac_cv_path_W+set}" = set; then
8d138742 5492 $as_echo_n "(cached) " >&6
d9898ee8 5493else
5494 case $W in
5495 [\\/]* | ?:[\\/]*)
5496 ac_cv_path_W="$W" # Let the user override the test with a path.
5497 ;;
5498 *)
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $LPATH
5501do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5506 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
8d138742 5507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5508 break 2
5509 fi
5510done
5511done
dd184caf 5512IFS=$as_save_IFS
d9898ee8 5513
5514 ;;
5515esac
5516fi
5517W=$ac_cv_path_W
d9898ee8 5518if test -n "$W"; then
8d138742
CE
5519 { $as_echo "$as_me:$LINENO: result: $W" >&5
5520$as_echo "$W" >&6; }
d9898ee8 5521else
8d138742
CE
5522 { $as_echo "$as_me:$LINENO: result: no" >&5
5523$as_echo "no" >&6; }
d9898ee8 5524fi
5525
dd184caf 5526
d9898ee8 5527 test -n "$W" && break
5528done
5529test -n "$W" || W="w"
5530
8d138742
CE
5531case `pwd` in
5532 *\ * | *\ *)
5533 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5534$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5535esac
5536
5537
5538
5539macro_version='2.2.6'
5540macro_revision='1.3012'
5541
5542
5543
d9898ee8 5544
dd184caf 5545
d9898ee8 5546
dd184caf 5547
dd184caf 5548
d9898ee8 5549
8d138742
CE
5550
5551
5552
5553
5554ltmain="$ac_aux_dir/ltmain.sh"
5555
d9898ee8 5556# Make sure we can run config.sub.
dd184caf 5557$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
5558 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5559$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 5560 { (exit 1); exit 1; }; }
5561
8d138742
CE
5562{ $as_echo "$as_me:$LINENO: checking build system type" >&5
5563$as_echo_n "checking build system type... " >&6; }
d9898ee8 5564if test "${ac_cv_build+set}" = set; then
8d138742 5565 $as_echo_n "(cached) " >&6
d9898ee8 5566else
dd184caf 5567 ac_build_alias=$build_alias
5568test "x$ac_build_alias" = x &&
5569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5570test "x$ac_build_alias" = x &&
8d138742
CE
5571 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5572$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 5573 { (exit 1); exit 1; }; }
dd184caf 5574ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
5575 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5576$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 5577 { (exit 1); exit 1; }; }
5578
5579fi
8d138742
CE
5580{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5581$as_echo "$ac_cv_build" >&6; }
dd184caf 5582case $ac_cv_build in
5583*-*-*) ;;
8d138742
CE
5584*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5585$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 5586 { (exit 1); exit 1; }; };;
5587esac
d9898ee8 5588build=$ac_cv_build
dd184caf 5589ac_save_IFS=$IFS; IFS='-'
5590set x $ac_cv_build
5591shift
5592build_cpu=$1
5593build_vendor=$2
5594shift; shift
5595# Remember, the first character of IFS is used to create $*,
5596# except with old shells:
5597build_os=$*
5598IFS=$ac_save_IFS
5599case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5600
5601
8d138742
CE
5602{ $as_echo "$as_me:$LINENO: checking host system type" >&5
5603$as_echo_n "checking host system type... " >&6; }
d9898ee8 5604if test "${ac_cv_host+set}" = set; then
8d138742 5605 $as_echo_n "(cached) " >&6
d9898ee8 5606else
dd184caf 5607 if test "x$host_alias" = x; then
5608 ac_cv_host=$ac_cv_build
5609else
5610 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
5611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5612$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 5613 { (exit 1); exit 1; }; }
dd184caf 5614fi
d9898ee8 5615
5616fi
8d138742
CE
5617{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5618$as_echo "$ac_cv_host" >&6; }
dd184caf 5619case $ac_cv_host in
5620*-*-*) ;;
8d138742
CE
5621*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5622$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 5623 { (exit 1); exit 1; }; };;
5624esac
d9898ee8 5625host=$ac_cv_host
dd184caf 5626ac_save_IFS=$IFS; IFS='-'
5627set x $ac_cv_host
5628shift
5629host_cpu=$1
5630host_vendor=$2
5631shift; shift
5632# Remember, the first character of IFS is used to create $*,
5633# except with old shells:
5634host_os=$*
5635IFS=$ac_save_IFS
5636case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5637
5638
8d138742
CE
5639{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5640$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5641if test "${ac_cv_path_SED+set}" = set; then
5642 $as_echo_n "(cached) " >&6
5643else
5644 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5645 for ac_i in 1 2 3 4 5 6 7; do
5646 ac_script="$ac_script$as_nl$ac_script"
5647 done
5648 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5649 $as_unset ac_script || ac_script=
5650 if test -z "$SED"; then
5651 ac_path_SED_found=false
5652 # Loop through the user's path and test for each of PROGNAME-LIST
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
8d138742 5658 for ac_prog in sed gsed; do
d9898ee8 5659 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
5660 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5661 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5662# Check for GNU ac_path_SED and select it if it is found.
5663 # Check for GNU $ac_path_SED
5664case `"$ac_path_SED" --version 2>&1` in
5665*GNU*)
5666 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5667*)
5668 ac_count=0
5669 $as_echo_n 0123456789 >"conftest.in"
5670 while :
5671 do
5672 cat "conftest.in" "conftest.in" >"conftest.tmp"
5673 mv "conftest.tmp" "conftest.in"
5674 cp "conftest.in" "conftest.nl"
5675 $as_echo '' >> "conftest.nl"
5676 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5678 ac_count=`expr $ac_count + 1`
5679 if test $ac_count -gt ${ac_path_SED_max-0}; then
5680 # Best one so far, save it but keep looking for a better one
5681 ac_cv_path_SED="$ac_path_SED"
5682 ac_path_SED_max=$ac_count
5683 fi
5684 # 10*(2^10) chars as input seems more than enough
5685 test $ac_count -gt 10 && break
5686 done
5687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5688esac
5689
5690 $ac_path_SED_found && break 3
d9898ee8 5691 done
5692 done
5693done
5694IFS=$as_save_IFS
8d138742
CE
5695 if test -z "$ac_cv_path_SED"; then
5696 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5697$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5698 { (exit 1); exit 1; }; }
d9898ee8 5699 fi
8d138742
CE
5700else
5701 ac_cv_path_SED=$SED
5702fi
d9898ee8 5703
5704fi
8d138742
CE
5705{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5706$as_echo "$ac_cv_path_SED" >&6; }
5707 SED="$ac_cv_path_SED"
5708 rm -f conftest.sed
d9898ee8 5709
8d138742
CE
5710test -z "$SED" && SED=sed
5711Xsed="$SED -e 1s/^X//"
d9898ee8 5712
d9898ee8 5713
5714
8d138742
CE
5715
5716
5717
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5724$as_echo_n "checking for fgrep... " >&6; }
5725if test "${ac_cv_path_FGREP+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5727else
5728 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5729 then ac_cv_path_FGREP="$GREP -F"
5730 else
5731 if test -z "$FGREP"; then
5732 ac_path_FGREP_found=false
5733 # Loop through the user's path and test for each of PROGNAME-LIST
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_prog in fgrep; do
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5742 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5743# Check for GNU ac_path_FGREP and select it if it is found.
5744 # Check for GNU $ac_path_FGREP
5745case `"$ac_path_FGREP" --version 2>&1` in
5746*GNU*)
5747 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5748*)
5749 ac_count=0
5750 $as_echo_n 0123456789 >"conftest.in"
5751 while :
5752 do
5753 cat "conftest.in" "conftest.in" >"conftest.tmp"
5754 mv "conftest.tmp" "conftest.in"
5755 cp "conftest.in" "conftest.nl"
5756 $as_echo 'FGREP' >> "conftest.nl"
5757 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5759 ac_count=`expr $ac_count + 1`
5760 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5761 # Best one so far, save it but keep looking for a better one
5762 ac_cv_path_FGREP="$ac_path_FGREP"
5763 ac_path_FGREP_max=$ac_count
5764 fi
5765 # 10*(2^10) chars as input seems more than enough
5766 test $ac_count -gt 10 && break
5767 done
5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5769esac
5770
5771 $ac_path_FGREP_found && break 3
5772 done
5773 done
5774done
5775IFS=$as_save_IFS
5776 if test -z "$ac_cv_path_FGREP"; then
5777 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5778$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5779 { (exit 1); exit 1; }; }
5780 fi
5781else
5782 ac_cv_path_FGREP=$FGREP
5783fi
5784
5785 fi
5786fi
5787{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5788$as_echo "$ac_cv_path_FGREP" >&6; }
5789 FGREP="$ac_cv_path_FGREP"
5790
5791
5792test -z "$GREP" && GREP=grep
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812# Check whether --with-gnu-ld was given.
5813if test "${with_gnu_ld+set}" = set; then
5814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 5815else
5816 with_gnu_ld=no
dd184caf 5817fi
5818
d9898ee8 5819ac_prog=ld
5820if test "$GCC" = yes; then
5821 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
5822 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5823$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 5824 case $host in
5825 *-*-mingw*)
5826 # gcc leaves a trailing carriage return which upsets mingw
5827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5828 *)
5829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5830 esac
5831 case $ac_prog in
5832 # Accept absolute paths.
5833 [\\/]* | ?:[\\/]*)
5834 re_direlt='/[^/][^/]*/\.\./'
5835 # Canonicalize the pathname of ld
8d138742
CE
5836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 5839 done
5840 test -z "$LD" && LD="$ac_prog"
5841 ;;
5842 "")
5843 # If it fails, then pretend we aren't using GCC.
5844 ac_prog=ld
5845 ;;
5846 *)
5847 # If it is relative, then search for the first ld in PATH.
5848 with_gnu_ld=unknown
5849 ;;
5850 esac
5851elif test "$with_gnu_ld" = yes; then
8d138742
CE
5852 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5853$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 5854else
8d138742
CE
5855 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5856$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 5857fi
5858if test "${lt_cv_path_LD+set}" = set; then
8d138742 5859 $as_echo_n "(cached) " >&6
d9898ee8 5860else
5861 if test -z "$LD"; then
5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5867 lt_cv_path_LD="$ac_dir/$ac_prog"
5868 # Check to see if the program is GNU ld. I'd rather use --version,
5869 # but apparently some variants of GNU ld only accept -v.
5870 # Break only if it was the GNU/non-GNU ld that we prefer.
5871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5872 *GNU* | *'with BFD'*)
5873 test "$with_gnu_ld" != no && break
5874 ;;
5875 *)
5876 test "$with_gnu_ld" != yes && break
5877 ;;
5878 esac
5879 fi
5880 done
5881 IFS="$lt_save_ifs"
5882else
5883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5884fi
5885fi
5886
5887LD="$lt_cv_path_LD"
5888if test -n "$LD"; then
8d138742
CE
5889 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5890$as_echo "$LD" >&6; }
d9898ee8 5891else
8d138742
CE
5892 { $as_echo "$as_me:$LINENO: result: no" >&5
5893$as_echo "no" >&6; }
d9898ee8 5894fi
8d138742
CE
5895test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5896$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 5897 { (exit 1); exit 1; }; }
8d138742
CE
5898{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5899$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 5900if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 5901 $as_echo_n "(cached) " >&6
d9898ee8 5902else
5903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5904case `$LD -v 2>&1 </dev/null` in
5905*GNU* | *'with BFD'*)
5906 lt_cv_prog_gnu_ld=yes
5907 ;;
5908*)
5909 lt_cv_prog_gnu_ld=no
5910 ;;
5911esac
5912fi
8d138742
CE
5913{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5914$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 5915with_gnu_ld=$lt_cv_prog_gnu_ld
5916
5917
d9898ee8 5918
8d138742
CE
5919
5920
5921
5922
5923
5924
5925{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5926$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 5927if test "${lt_cv_path_NM+set}" = set; then
8d138742 5928 $as_echo_n "(cached) " >&6
d9898ee8 5929else
5930 if test -n "$NM"; then
5931 # Let the user override the test.
5932 lt_cv_path_NM="$NM"
5933else
5934 lt_nm_to_check="${ac_tool_prefix}nm"
5935 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5936 lt_nm_to_check="$lt_nm_to_check nm"
5937 fi
5938 for lt_tmp_nm in $lt_nm_to_check; do
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5941 IFS="$lt_save_ifs"
5942 test -z "$ac_dir" && ac_dir=.
5943 tmp_nm="$ac_dir/$lt_tmp_nm"
5944 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5945 # Check to see if the nm accepts a BSD-compat flag.
5946 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5947 # nm: unknown option "B" ignored
5948 # Tru64's nm complains that /dev/null is an invalid object file
5949 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5950 */dev/null* | *'Invalid file or object type'*)
5951 lt_cv_path_NM="$tmp_nm -B"
5952 break
5953 ;;
5954 *)
5955 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5956 */dev/null*)
5957 lt_cv_path_NM="$tmp_nm -p"
5958 break
5959 ;;
5960 *)
5961 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5962 continue # so that we can try to find one that supports BSD flags
5963 ;;
5964 esac
5965 ;;
5966 esac
5967 fi
5968 done
5969 IFS="$lt_save_ifs"
5970 done
8d138742 5971 : ${lt_cv_path_NM=no}
d9898ee8 5972fi
5973fi
8d138742
CE
5974{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5975$as_echo "$lt_cv_path_NM" >&6; }
5976if test "$lt_cv_path_NM" != "no"; then
5977 NM="$lt_cv_path_NM"
5978else
5979 # Didn't find any BSD compatible name lister, look for dumpbin.
5980 if test -n "$ac_tool_prefix"; then
5981 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5982 do
5983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
5987if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989else
5990 if test -n "$DUMPBIN"; then
5991 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005done
6006IFS=$as_save_IFS
d9898ee8 6007
8d138742
CE
6008fi
6009fi
6010DUMPBIN=$ac_cv_prog_DUMPBIN
6011if test -n "$DUMPBIN"; then
6012 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6013$as_echo "$DUMPBIN" >&6; }
d9898ee8 6014else
8d138742
CE
6015 { $as_echo "$as_me:$LINENO: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
d9898ee8 6018
d9898ee8 6019
8d138742
CE
6020 test -n "$DUMPBIN" && break
6021 done
6022fi
6023if test -z "$DUMPBIN"; then
6024 ac_ct_DUMPBIN=$DUMPBIN
6025 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6026do
6027 # Extract the first word of "$ac_prog", so it can be a program name with args.
6028set dummy $ac_prog; ac_word=$2
6029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
6031if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6032 $as_echo_n "(cached) " >&6
6033else
6034 if test -n "$ac_ct_DUMPBIN"; then
6035 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048done
6049done
6050IFS=$as_save_IFS
d9898ee8 6051
8d138742
CE
6052fi
6053fi
6054ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6055if test -n "$ac_ct_DUMPBIN"; then
6056 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6057$as_echo "$ac_ct_DUMPBIN" >&6; }
6058else
6059 { $as_echo "$as_me:$LINENO: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
d9898ee8 6062
d9898ee8 6063
8d138742
CE
6064 test -n "$ac_ct_DUMPBIN" && break
6065done
6066
6067 if test "x$ac_ct_DUMPBIN" = x; then
6068 DUMPBIN=":"
ac40fd9e 6069 else
8d138742
CE
6070 case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 6077 fi
8d138742 6078fi
d9898ee8 6079
d9898ee8 6080
8d138742
CE
6081 if test "$DUMPBIN" != ":"; then
6082 NM="$DUMPBIN"
d9898ee8 6083 fi
8d138742
CE
6084fi
6085test -z "$NM" && NM=nm
d9898ee8 6086
d9898ee8 6087
d9898ee8 6088
d9898ee8 6089
d9898ee8 6090
d9898ee8 6091
8d138742
CE
6092{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6093$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6094if test "${lt_cv_nm_interface+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6096else
6097 lt_cv_nm_interface="BSD nm"
6098 echo "int some_variable = 0;" > conftest.$ac_ext
6099 (eval echo "\"\$as_me:6099: $ac_compile\"" >&5)
6100 (eval "$ac_compile" 2>conftest.err)
6101 cat conftest.err >&5
6102 (eval echo "\"\$as_me:6102: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6103 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6104 cat conftest.err >&5
6105 (eval echo "\"\$as_me:6105: output\"" >&5)
6106 cat conftest.out >&5
6107 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6108 lt_cv_nm_interface="MS dumpbin"
d9898ee8 6109 fi
8d138742
CE
6110 rm -f conftest*
6111fi
6112{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6113$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 6114
8d138742
CE
6115# find the maximum length of command line arguments
6116{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6117$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6118if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6120else
6121 i=0
6122 teststring="ABCD"
d9898ee8 6123
8d138742
CE
6124 case $build_os in
6125 msdosdjgpp*)
6126 # On DJGPP, this test can blow up pretty badly due to problems in libc
6127 # (any single argument exceeding 2000 bytes causes a buffer overrun
6128 # during glob expansion). Even if it were fixed, the result of this
6129 # check would be larger than it should be.
6130 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6131 ;;
d9898ee8 6132
8d138742
CE
6133 gnu*)
6134 # Under GNU Hurd, this test is not required because there is
6135 # no limit to the length of command line arguments.
6136 # Libtool will interpret -1 as no limit whatsoever
6137 lt_cv_sys_max_cmd_len=-1;
6138 ;;
d9898ee8 6139
8d138742
CE
6140 cygwin* | mingw* | cegcc*)
6141 # On Win9x/ME, this test blows up -- it succeeds, but takes
6142 # about 5 minutes as the teststring grows exponentially.
6143 # Worse, since 9x/ME are not pre-emptively multitasking,
6144 # you end up with a "frozen" computer, even though with patience
6145 # the test eventually succeeds (with a max line length of 256k).
6146 # Instead, let's just punt: use the minimum linelength reported by
6147 # all of the supported platforms: 8192 (on NT/2K/XP).
6148 lt_cv_sys_max_cmd_len=8192;
6149 ;;
ac40fd9e 6150
8d138742
CE
6151 amigaos*)
6152 # On AmigaOS with pdksh, this test takes hours, literally.
6153 # So we just punt and use a minimum line length of 8192.
6154 lt_cv_sys_max_cmd_len=8192;
6155 ;;
d9898ee8 6156
8d138742
CE
6157 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6158 # This has been around since 386BSD, at least. Likely further.
6159 if test -x /sbin/sysctl; then
6160 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6161 elif test -x /usr/sbin/sysctl; then
6162 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6163 else
6164 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6165 fi
6166 # And add a safety zone
6167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 6169 ;;
8d138742
CE
6170
6171 interix*)
6172 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6173 lt_cv_sys_max_cmd_len=196608
d9898ee8 6174 ;;
8d138742
CE
6175
6176 osf*)
6177 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6178 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6179 # nice to cause kernel panics so lets avoid the loop below.
6180 # First set a reasonable default.
6181 lt_cv_sys_max_cmd_len=16384
6182 #
6183 if test -x /sbin/sysconfig; then
6184 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6185 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6186 esac
6187 fi
d9898ee8 6188 ;;
8d138742
CE
6189 sco3.2v5*)
6190 lt_cv_sys_max_cmd_len=102400
d9898ee8 6191 ;;
8d138742
CE
6192 sysv5* | sco5v6* | sysv4.2uw2*)
6193 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6194 if test -n "$kargmax"; then
6195 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6196 else
6197 lt_cv_sys_max_cmd_len=32768
6198 fi
d9898ee8 6199 ;;
8d138742
CE
6200 *)
6201 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6202 if test -n "$lt_cv_sys_max_cmd_len"; then
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6205 else
6206 # Make teststring a little bigger before we do anything with it.
6207 # a 1K string should be a reasonable start.
6208 for i in 1 2 3 4 5 6 7 8 ; do
6209 teststring=$teststring$teststring
6210 done
6211 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6212 # If test is not a shell built-in, we'll probably end up computing a
6213 # maximum length that is only half of the actual maximum length, but
6214 # we can't tell.
6215 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6216 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6217 test $i != 17 # 1/2 MB should be enough
6218 do
6219 i=`expr $i + 1`
6220 teststring=$teststring$teststring
6221 done
6222 # Only check the string length outside the loop.
6223 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6224 teststring=
6225 # Add a significant safety factor because C++ compilers can tack on
6226 # massive amounts of additional arguments before passing them to the
6227 # linker. It appears as though 1/2 is a usable value.
6228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6229 fi
d9898ee8 6230 ;;
6231 esac
d9898ee8 6232
8d138742 6233fi
d9898ee8 6234
8d138742
CE
6235if test -n $lt_cv_sys_max_cmd_len ; then
6236 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6237$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6238else
6239 { $as_echo "$as_me:$LINENO: result: none" >&5
6240$as_echo "none" >&6; }
d9898ee8 6241fi
8d138742 6242max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 6243
6244
6245
6246
d9898ee8 6247
d9898ee8 6248
8d138742
CE
6249: ${CP="cp -f"}
6250: ${MV="mv -f"}
6251: ${RM="rm -f"}
d9898ee8 6252
8d138742
CE
6253{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6254$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6255# Try some XSI features
6256xsi_shell=no
6257( _lt_dummy="a/b/c"
6258 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6259 = c,a/b,, \
6260 && eval 'test $(( 1 + 1 )) -eq 2 \
6261 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6262 && xsi_shell=yes
6263{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6264$as_echo "$xsi_shell" >&6; }
6265
6266
6267{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6268$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6269lt_shell_append=no
6270( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6271 >/dev/null 2>&1 \
6272 && lt_shell_append=yes
6273{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6274$as_echo "$lt_shell_append" >&6; }
6275
6276
6277if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6278 lt_unset=unset
6279else
6280 lt_unset=false
dd184caf 6281fi
d9898ee8 6282
d9898ee8 6283
8d138742
CE
6284
6285
6286
6287# test EBCDIC or ASCII
6288case `echo X|tr X '\101'` in
6289 A) # ASCII based system
6290 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6291 lt_SP2NL='tr \040 \012'
6292 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 6293 ;;
8d138742
CE
6294 *) # EBCDIC based system
6295 lt_SP2NL='tr \100 \n'
6296 lt_NL2SP='tr \r\n \100\100'
d9898ee8 6297 ;;
8d138742 6298esac
d9898ee8 6299
d9898ee8 6300
d9898ee8 6301
d9898ee8 6302
d9898ee8 6303
d9898ee8 6304
dd184caf 6305
d9898ee8 6306
6307
8d138742
CE
6308{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6309$as_echo_n "checking for $LD option to reload object files... " >&6; }
6310if test "${lt_cv_ld_reload_flag+set}" = set; then
6311 $as_echo_n "(cached) " >&6
d9898ee8 6312else
8d138742 6313 lt_cv_ld_reload_flag='-r'
d9898ee8 6314fi
8d138742
CE
6315{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6316$as_echo "$lt_cv_ld_reload_flag" >&6; }
6317reload_flag=$lt_cv_ld_reload_flag
6318case $reload_flag in
6319"" | " "*) ;;
6320*) reload_flag=" $reload_flag" ;;
6321esac
6322reload_cmds='$LD$reload_flag -o $output$reload_objs'
6323case $host_os in
6324 darwin*)
6325 if test "$GCC" = yes; then
6326 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6327 else
6328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6329 fi
6330 ;;
6331esac
dd184caf 6332
d9898ee8 6333
d9898ee8 6334
dd184caf 6335
d9898ee8 6336
d9898ee8 6337
d9898ee8 6338
d9898ee8 6339
d9898ee8 6340
8d138742
CE
6341if test -n "$ac_tool_prefix"; then
6342 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6343set dummy ${ac_tool_prefix}objdump; ac_word=$2
6344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6345$as_echo_n "checking for $ac_word... " >&6; }
6346if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6347 $as_echo_n "(cached) " >&6
d9898ee8 6348else
8d138742
CE
6349 if test -n "$OBJDUMP"; then
6350 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6359 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6361 break 2
6362 fi
6363done
6364done
dd184caf 6365IFS=$as_save_IFS
d9898ee8 6366
6367fi
6368fi
8d138742
CE
6369OBJDUMP=$ac_cv_prog_OBJDUMP
6370if test -n "$OBJDUMP"; then
6371 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6372$as_echo "$OBJDUMP" >&6; }
d9898ee8 6373else
8d138742
CE
6374 { $as_echo "$as_me:$LINENO: result: no" >&5
6375$as_echo "no" >&6; }
d9898ee8 6376fi
6377
dd184caf 6378
d9898ee8 6379fi
8d138742
CE
6380if test -z "$ac_cv_prog_OBJDUMP"; then
6381 ac_ct_OBJDUMP=$OBJDUMP
6382 # Extract the first word of "objdump", so it can be a program name with args.
6383set dummy objdump; ac_word=$2
6384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6385$as_echo_n "checking for $ac_word... " >&6; }
6386if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6387 $as_echo_n "(cached) " >&6
d9898ee8 6388else
8d138742
CE
6389 if test -n "$ac_ct_OBJDUMP"; then
6390 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9898ee8 6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6399 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6401 break 2
6402 fi
6403done
6404done
dd184caf 6405IFS=$as_save_IFS
d9898ee8 6406
6407fi
6408fi
8d138742
CE
6409ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6410if test -n "$ac_ct_OBJDUMP"; then
6411 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6412$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 6413else
8d138742
CE
6414 { $as_echo "$as_me:$LINENO: result: no" >&5
6415$as_echo "no" >&6; }
d9898ee8 6416fi
6417
8d138742
CE
6418 if test "x$ac_ct_OBJDUMP" = x; then
6419 OBJDUMP="false"
dd184caf 6420 else
6421 case $cross_compiling:$ac_tool_warned in
6422yes:)
8d138742
CE
6423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6425ac_tool_warned=yes ;;
6426esac
8d138742 6427 OBJDUMP=$ac_ct_OBJDUMP
dd184caf 6428 fi
8d138742
CE
6429else
6430 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 6431fi
6432
8d138742 6433test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 6434
d9898ee8 6435
d9898ee8 6436
d9898ee8 6437
dd184caf 6438
d9898ee8 6439
d9898ee8 6440
d9898ee8 6441
dd184caf 6442
8d138742
CE
6443{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6444$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6445if test "${lt_cv_deplibs_check_method+set}" = set; then
6446 $as_echo_n "(cached) " >&6
d9898ee8 6447else
8d138742
CE
6448 lt_cv_file_magic_cmd='$MAGIC_CMD'
6449lt_cv_file_magic_test_file=
6450lt_cv_deplibs_check_method='unknown'
6451# Need to set the preceding variable on all platforms that support
6452# interlibrary dependencies.
6453# 'none' -- dependencies not supported.
6454# `unknown' -- same as none, but documents that we really don't know.
6455# 'pass_all' -- all dependencies passed with no checks.
6456# 'test_compile' -- check by making test program.
6457# 'file_magic [[regex]]' -- check by looking for files in library path
6458# which responds to the $file_magic_cmd with a given extended regex.
6459# If you have `file' or equivalent on your system and you're not sure
6460# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 6461
8d138742
CE
6462case $host_os in
6463aix[4-9]*)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
dd184caf 6466
8d138742
CE
6467beos*)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
dd184caf 6470
8d138742
CE
6471bsdi[45]*)
6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6473 lt_cv_file_magic_cmd='/usr/bin/file -L'
6474 lt_cv_file_magic_test_file=/shlib/libc.so
6475 ;;
d9898ee8 6476
8d138742
CE
6477cygwin*)
6478 # func_win32_libid is a shell function defined in ltmain.sh
6479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6480 lt_cv_file_magic_cmd='func_win32_libid'
6481 ;;
dd184caf 6482
8d138742
CE
6483mingw* | pw32*)
6484 # Base MSYS/MinGW do not provide the 'file' command needed by
6485 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6486 # unless we find 'file', for example because we are cross-compiling.
6487 if ( file / ) >/dev/null 2>&1; then
6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6489 lt_cv_file_magic_cmd='func_win32_libid'
6490 else
6491 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6492 lt_cv_file_magic_cmd='$OBJDUMP -f'
6493 fi
6494 ;;
dd184caf 6495
8d138742
CE
6496cegcc)
6497 # use the weaker test based on 'objdump'. See mingw*.
6498 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6499 lt_cv_file_magic_cmd='$OBJDUMP -f'
6500 ;;
d9898ee8 6501
8d138742
CE
6502darwin* | rhapsody*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
dd184caf 6505
8d138742
CE
6506freebsd* | dragonfly*)
6507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6508 case $host_cpu in
6509 i*86 )
6510 # Not sure whether the presence of OpenBSD here was a mistake.
6511 # Let's accept both of them until this is cleared up.
6512 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6513 lt_cv_file_magic_cmd=/usr/bin/file
6514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6515 ;;
6516 esac
dd184caf 6517 else
8d138742 6518 lt_cv_deplibs_check_method=pass_all
dd184caf 6519 fi
8d138742 6520 ;;
d9898ee8 6521
8d138742
CE
6522gnu*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
d9898ee8 6525
8d138742
CE
6526hpux10.20* | hpux11*)
6527 lt_cv_file_magic_cmd=/usr/bin/file
6528 case $host_cpu in
6529 ia64*)
6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6531 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6532 ;;
6533 hppa*64*)
6534 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]'
6535 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6536 ;;
6537 *)
6538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6539 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6540 ;;
6541 esac
6542 ;;
d9898ee8 6543
8d138742
CE
6544interix[3-9]*)
6545 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6547 ;;
d9898ee8 6548
8d138742
CE
6549irix5* | irix6* | nonstopux*)
6550 case $LD in
6551 *-32|*"-32 ") libmagic=32-bit;;
6552 *-n32|*"-n32 ") libmagic=N32;;
6553 *-64|*"-64 ") libmagic=64-bit;;
6554 *) libmagic=never-match;;
6555 esac
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
d9898ee8 6558
8d138742
CE
6559# This must be Linux ELF.
6560linux* | k*bsd*-gnu)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
d9898ee8 6563
8d138742
CE
6564netbsd*)
6565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6567 else
6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6569 fi
6570 ;;
d9898ee8 6571
8d138742
CE
6572newos6*)
6573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6574 lt_cv_file_magic_cmd=/usr/bin/file
6575 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6576 ;;
d9898ee8 6577
8d138742
CE
6578*nto* | *qnx*)
6579 lt_cv_deplibs_check_method=pass_all
6580 ;;
d9898ee8 6581
8d138742
CE
6582openbsd*)
6583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6585 else
6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6587 fi
6588 ;;
d9898ee8 6589
8d138742
CE
6590osf3* | osf4* | osf5*)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
d9898ee8 6593
8d138742
CE
6594rdos*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
dd184caf 6597
8d138742
CE
6598solaris*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
d9898ee8 6601
8d138742
CE
6602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
d9898ee8 6605
8d138742
CE
6606sysv4 | sysv4.3*)
6607 case $host_vendor in
6608 motorola)
6609 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]'
6610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6611 ;;
6612 ncr)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615 sequent)
6616 lt_cv_file_magic_cmd='/bin/file'
6617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6618 ;;
6619 sni)
6620 lt_cv_file_magic_cmd='/bin/file'
6621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6622 lt_cv_file_magic_test_file=/lib/libc.so
6623 ;;
6624 siemens)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627 pc)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630 esac
6631 ;;
dd184caf 6632
8d138742
CE
6633tpf*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636esac
d9898ee8 6637
d9898ee8 6638fi
8d138742
CE
6639{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6640$as_echo "$lt_cv_deplibs_check_method" >&6; }
6641file_magic_cmd=$lt_cv_file_magic_cmd
6642deplibs_check_method=$lt_cv_deplibs_check_method
6643test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 6644
d9898ee8 6645
d9898ee8 6646
dd184caf 6647
d9898ee8 6648
d9898ee8 6649
dd184caf 6650
d9898ee8 6651
d9898ee8 6652
d9898ee8 6653
d9898ee8 6654
6655
d9898ee8 6656if test -n "$ac_tool_prefix"; then
8d138742
CE
6657 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6658set dummy ${ac_tool_prefix}ar; ac_word=$2
6659{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6660$as_echo_n "checking for $ac_word... " >&6; }
6661if test "${ac_cv_prog_AR+set}" = set; then
6662 $as_echo_n "(cached) " >&6
d9898ee8 6663else
8d138742
CE
6664 if test -n "$AR"; then
6665 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 6666else
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6674 ac_cv_prog_AR="${ac_tool_prefix}ar"
6675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6676 break 2
6677 fi
6678done
6679done
dd184caf 6680IFS=$as_save_IFS
d9898ee8 6681
6682fi
6683fi
8d138742
CE
6684AR=$ac_cv_prog_AR
6685if test -n "$AR"; then
6686 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6687$as_echo "$AR" >&6; }
d9898ee8 6688else
8d138742
CE
6689 { $as_echo "$as_me:$LINENO: result: no" >&5
6690$as_echo "no" >&6; }
d9898ee8 6691fi
6692
dd184caf 6693
d9898ee8 6694fi
8d138742
CE
6695if test -z "$ac_cv_prog_AR"; then
6696 ac_ct_AR=$AR
6697 # Extract the first word of "ar", so it can be a program name with args.
6698set dummy ar; ac_word=$2
6699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6700$as_echo_n "checking for $ac_word... " >&6; }
6701if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6702 $as_echo_n "(cached) " >&6
d9898ee8 6703else
8d138742
CE
6704 if test -n "$ac_ct_AR"; then
6705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6714 ac_cv_prog_ac_ct_AR="ar"
6715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6716 break 2
6717 fi
6718done
6719done
dd184caf 6720IFS=$as_save_IFS
d9898ee8 6721
6722fi
6723fi
8d138742
CE
6724ac_ct_AR=$ac_cv_prog_ac_ct_AR
6725if test -n "$ac_ct_AR"; then
6726 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6727$as_echo "$ac_ct_AR" >&6; }
d9898ee8 6728else
8d138742
CE
6729 { $as_echo "$as_me:$LINENO: result: no" >&5
6730$as_echo "no" >&6; }
d9898ee8 6731fi
6732
8d138742
CE
6733 if test "x$ac_ct_AR" = x; then
6734 AR="false"
dd184caf 6735 else
6736 case $cross_compiling:$ac_tool_warned in
6737yes:)
8d138742
CE
6738{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6740ac_tool_warned=yes ;;
6741esac
8d138742 6742 AR=$ac_ct_AR
dd184caf 6743 fi
8d138742
CE
6744else
6745 AR="$ac_cv_prog_AR"
d9898ee8 6746fi
6747
8d138742
CE
6748test -z "$AR" && AR=ar
6749test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 6750
d9898ee8 6751
d9898ee8 6752
8d138742
CE
6753
6754
6755
6756
6757
6758
6759
6760
6761if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6763set dummy ${ac_tool_prefix}strip; ac_word=$2
6764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if test "${ac_cv_prog_STRIP+set}" = set; then
6767 $as_echo_n "(cached) " >&6
d9898ee8 6768else
8d138742
CE
6769 if test -n "$STRIP"; then
6770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784done
6785IFS=$as_save_IFS
d9898ee8 6786
8d138742
CE
6787fi
6788fi
6789STRIP=$ac_cv_prog_STRIP
6790if test -n "$STRIP"; then
6791 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6792$as_echo "$STRIP" >&6; }
6793else
6794 { $as_echo "$as_me:$LINENO: result: no" >&5
6795$as_echo "no" >&6; }
d9898ee8 6796fi
dd184caf 6797
d9898ee8 6798
6799fi
8d138742
CE
6800if test -z "$ac_cv_prog_STRIP"; then
6801 ac_ct_STRIP=$STRIP
6802 # Extract the first word of "strip", so it can be a program name with args.
6803set dummy strip; ac_word=$2
6804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
6806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6807 $as_echo_n "(cached) " >&6
d9898ee8 6808else
8d138742
CE
6809 if test -n "$ac_ct_STRIP"; then
6810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_ac_ct_STRIP="strip"
6820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824done
6825IFS=$as_save_IFS
d9898ee8 6826
8d138742
CE
6827fi
6828fi
6829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6830if test -n "$ac_ct_STRIP"; then
6831 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6832$as_echo "$ac_ct_STRIP" >&6; }
6833else
6834 { $as_echo "$as_me:$LINENO: result: no" >&5
6835$as_echo "no" >&6; }
6836fi
6837
6838 if test "x$ac_ct_STRIP" = x; then
6839 STRIP=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842yes:)
6843{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845ac_tool_warned=yes ;;
dd184caf 6846esac
8d138742
CE
6847 STRIP=$ac_ct_STRIP
6848 fi
d9898ee8 6849else
8d138742
CE
6850 STRIP="$ac_cv_prog_STRIP"
6851fi
6852
6853test -z "$STRIP" && STRIP=:
6854
6855
6856
6857
6858
6859
6860if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6864$as_echo_n "checking for $ac_word... " >&6; }
6865if test "${ac_cv_prog_RANLIB+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6867else
6868 if test -n "$RANLIB"; then
6869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
6884IFS=$as_save_IFS
d9898ee8 6885
8d138742
CE
6886fi
6887fi
6888RANLIB=$ac_cv_prog_RANLIB
6889if test -n "$RANLIB"; then
6890 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6891$as_echo "$RANLIB" >&6; }
6892else
6893 { $as_echo "$as_me:$LINENO: result: no" >&5
6894$as_echo "no" >&6; }
d9898ee8 6895fi
dd184caf 6896
d9898ee8 6897
6898fi
8d138742
CE
6899if test -z "$ac_cv_prog_RANLIB"; then
6900 ac_ct_RANLIB=$RANLIB
6901 # Extract the first word of "ranlib", so it can be a program name with args.
6902set dummy ranlib; ac_word=$2
6903{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6907else
6908 if test -n "$ac_ct_RANLIB"; then
6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_RANLIB="ranlib"
6919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
d9898ee8 6921 fi
8d138742
CE
6922done
6923done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929if test -n "$ac_ct_RANLIB"; then
6930 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931$as_echo "$ac_ct_RANLIB" >&6; }
d9898ee8 6932else
8d138742
CE
6933 { $as_echo "$as_me:$LINENO: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937 if test "x$ac_ct_RANLIB" = x; then
6938 RANLIB=":"
d9898ee8 6939 else
8d138742
CE
6940 case $cross_compiling:$ac_tool_warned in
6941yes:)
6942{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944ac_tool_warned=yes ;;
6945esac
6946 RANLIB=$ac_ct_RANLIB
d9898ee8 6947 fi
8d138742
CE
6948else
6949 RANLIB="$ac_cv_prog_RANLIB"
d9898ee8 6950fi
6951
8d138742 6952test -z "$RANLIB" && RANLIB=:
d9898ee8 6953
6954
6955
d9898ee8 6956
d9898ee8 6957
d9898ee8 6958
8d138742
CE
6959# Determine commands to create old-style static archives.
6960old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6961old_postinstall_cmds='chmod 644 $oldlib'
6962old_postuninstall_cmds=
d9898ee8 6963
8d138742
CE
6964if test -n "$RANLIB"; then
6965 case $host_os in
6966 openbsd*)
6967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d9898ee8 6968 ;;
8d138742
CE
6969 *)
6970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d9898ee8 6971 ;;
8d138742
CE
6972 esac
6973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6974fi
6975
6976
6977
6978
6979
6980
6981
6982
d9898ee8 6983
d9898ee8 6984
d9898ee8 6985
d9898ee8 6986
d9898ee8 6987
d9898ee8 6988
6989
6990
6991
ac40fd9e 6992
8d138742
CE
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009# If no C compiler was specified, use CC.
7010LTCC=${LTCC-"$CC"}
7011
7012# If no C compiler flags were specified, use CFLAGS.
7013LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7014
7015# Allow CC to be a program name with arguments.
7016compiler=$CC
7017
7018
d9898ee8 7019# Check for command to grab the raw symbol name followed by C symbol from nm.
8d138742
CE
7020{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7021$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d9898ee8 7022if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8d138742 7023 $as_echo_n "(cached) " >&6
d9898ee8 7024else
7025
7026# These are sane defaults that work on at least a few old systems.
7027# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7028
7029# Character class describing NM global symbol codes.
7030symcode='[BCDEGRST]'
7031
7032# Regexp to match symbols that can be accessed directly from C.
7033sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7034
d9898ee8 7035# Define system-specific variables.
7036case $host_os in
7037aix*)
7038 symcode='[BCDT]'
7039 ;;
8d138742 7040cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 7041 symcode='[ABCDGISTW]'
7042 ;;
8d138742 7043hpux*)
d9898ee8 7044 if test "$host_cpu" = ia64; then
7045 symcode='[ABCDEGRST]'
7046 fi
d9898ee8 7047 ;;
7048irix* | nonstopux*)
7049 symcode='[BCDEGRST]'
7050 ;;
7051osf*)
7052 symcode='[BCDEGQRST]'
7053 ;;
7054solaris*)
7055 symcode='[BDRT]'
7056 ;;
7057sco3.2v5*)
7058 symcode='[DT]'
7059 ;;
7060sysv4.2uw2*)
7061 symcode='[DT]'
7062 ;;
7063sysv5* | sco5v6* | unixware* | OpenUNIX*)
7064 symcode='[ABDT]'
7065 ;;
7066sysv4)
7067 symcode='[DFNSTU]'
7068 ;;
7069esac
7070
8d138742
CE
7071# If we're using GNU nm, then use its standard symbol codes.
7072case `$NM -V 2>&1` in
7073*GNU* | *'with BFD'*)
7074 symcode='[ABCDGIRSTW]' ;;
7075esac
7076
7077# Transform an extracted symbol line into a proper C declaration.
7078# Some systems (esp. on ia64) link data and code symbols differently,
7079# so use this general approach.
7080lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7081
7082# Transform an extracted symbol line into symbol name and symbol address
7083lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7084lt_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'"
7085
d9898ee8 7086# Handle CRLF in mingw tool chain
7087opt_cr=
7088case $build_os in
7089mingw*)
8d138742 7090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 7091 ;;
7092esac
7093
8d138742 7094# Try without a prefix underscore, then with it.
d9898ee8 7095for ac_symprfx in "" "_"; do
7096
7097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7098 symxfrm="\\1 $ac_symprfx\\2 \\2"
7099
7100 # Write the raw and C identifiers.
8d138742
CE
7101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7102 # Fake it for dumpbin and say T for any non-static function
7103 # and D for any global variable.
7104 # Also find C++ and __fastcall symbols from MSVC++,
7105 # which start with @ or ?.
7106 lt_cv_sys_global_symbol_pipe="$AWK '"\
7107" {last_section=section; section=\$ 3};"\
7108" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7109" \$ 0!~/External *\|/{next};"\
7110" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7111" {if(hide[section]) next};"\
7112" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7113" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7114" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7115" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7116" ' prfx=^$ac_symprfx"
7117 else
7118 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7119 fi
d9898ee8 7120
7121 # Check to see that the pipe works correctly.
7122 pipe_works=no
7123
7124 rm -f conftest*
8d138742 7125 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 7126#ifdef __cplusplus
7127extern "C" {
7128#endif
7129char nm_test_var;
8d138742
CE
7130void nm_test_func(void);
7131void nm_test_func(void){}
d9898ee8 7132#ifdef __cplusplus
7133}
7134#endif
7135int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 7136_LT_EOF
d9898ee8 7137
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7140 ac_status=$?
8d138742 7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 7142 (exit $ac_status); }; then
7143 # Now try to grab the symbols.
7144 nlist=conftest.nm
7145 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7146 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7147 ac_status=$?
8d138742 7148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 7149 (exit $ac_status); } && test -s "$nlist"; then
7150 # Try sorting and uniquifying the output.
7151 if sort "$nlist" | uniq > "$nlist"T; then
7152 mv -f "$nlist"T "$nlist"
7153 else
7154 rm -f "$nlist"T
7155 fi
7156
7157 # Make sure that we snagged all the symbols we need.
8d138742
CE
7158 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7159 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7160 cat <<_LT_EOF > conftest.$ac_ext
d9898ee8 7161#ifdef __cplusplus
7162extern "C" {
7163#endif
7164
8d138742 7165_LT_EOF
d9898ee8 7166 # Now generate the symbol file.
8d138742 7167 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 7168
8d138742 7169 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 7170
8d138742 7171/* The mapping between symbol names and symbols. */
d9898ee8 7172const struct {
7173 const char *name;
8d138742 7174 void *address;
d9898ee8 7175}
8d138742 7176lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 7177{
8d138742
CE
7178 { "@PROGRAM@", (void *) 0 },
7179_LT_EOF
7180 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7181 cat <<\_LT_EOF >> conftest.$ac_ext
7182 {0, (void *) 0}
d9898ee8 7183};
7184
8d138742
CE
7185/* This works around a problem in FreeBSD linker */
7186#ifdef FREEBSD_WORKAROUND
7187static const void *lt_preloaded_setup() {
7188 return lt__PROGRAM__LTX_preloaded_symbols;
7189}
7190#endif
7191
d9898ee8 7192#ifdef __cplusplus
7193}
7194#endif
8d138742 7195_LT_EOF
d9898ee8 7196 # Now try linking the two files.
7197 mv conftest.$ac_objext conftstm.$ac_objext
7198 lt_save_LIBS="$LIBS"
7199 lt_save_CFLAGS="$CFLAGS"
7200 LIBS="conftstm.$ac_objext"
7201 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203 (eval $ac_link) 2>&5
7204 ac_status=$?
8d138742 7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 7206 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7207 pipe_works=yes
7208 fi
7209 LIBS="$lt_save_LIBS"
7210 CFLAGS="$lt_save_CFLAGS"
7211 else
7212 echo "cannot find nm_test_func in $nlist" >&5
7213 fi
7214 else
7215 echo "cannot find nm_test_var in $nlist" >&5
7216 fi
7217 else
7218 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7219 fi
7220 else
7221 echo "$progname: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7223 fi
8d138742 7224 rm -rf conftest* conftst*
d9898ee8 7225
7226 # Do not use the global_symbol_pipe unless it works.
7227 if test "$pipe_works" = yes; then
7228 break
7229 else
7230 lt_cv_sys_global_symbol_pipe=
7231 fi
7232done
7233
7234fi
7235
7236if test -z "$lt_cv_sys_global_symbol_pipe"; then
7237 lt_cv_sys_global_symbol_to_cdecl=
7238fi
7239if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8d138742
CE
7240 { $as_echo "$as_me:$LINENO: result: failed" >&5
7241$as_echo "failed" >&6; }
d9898ee8 7242else
8d138742
CE
7243 { $as_echo "$as_me:$LINENO: result: ok" >&5
7244$as_echo "ok" >&6; }
d9898ee8 7245fi
7246
d9898ee8 7247
7248
7249
7250
7251
d9898ee8 7252
d9898ee8 7253
d9898ee8 7254
d9898ee8 7255
d9898ee8 7256
d9898ee8 7257
d9898ee8 7258
d9898ee8 7259
d9898ee8 7260
d9898ee8 7261
dd184caf 7262
d9898ee8 7263
d9898ee8 7264
d9898ee8 7265
d9898ee8 7266
8d138742
CE
7267
7268# Check whether --enable-libtool-lock was given.
7269if test "${enable_libtool_lock+set}" = set; then
7270 enableval=$enable_libtool_lock;
d9898ee8 7271fi
8d138742
CE
7272
7273test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7274
7275# Some flags need to be propagated to the compiler or linker for good
7276# libtool support.
7277case $host in
7278ia64-*-hpux*)
7279 # Find out which ABI we are using.
7280 echo 'int i;' > conftest.$ac_ext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>&5
7283 ac_status=$?
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; then
7286 case `/usr/bin/file conftest.$ac_objext` in
7287 *ELF-32*)
7288 HPUX_IA64_MODE="32"
7289 ;;
7290 *ELF-64*)
7291 HPUX_IA64_MODE="64"
7292 ;;
7293 esac
7294 fi
7295 rm -rf conftest*
7296 ;;
7297*-*-irix6*)
7298 # Find out which ABI we are using.
7299 echo '#line 7299 "configure"' > conftest.$ac_ext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; then
7305 if test "$lt_cv_prog_gnu_ld" = yes; then
7306 case `/usr/bin/file conftest.$ac_objext` in
7307 *32-bit*)
7308 LD="${LD-ld} -melf32bsmip"
7309 ;;
7310 *N32*)
7311 LD="${LD-ld} -melf32bmipn32"
7312 ;;
7313 *64-bit*)
7314 LD="${LD-ld} -melf64bmip"
7315 ;;
7316 esac
7317 else
7318 case `/usr/bin/file conftest.$ac_objext` in
7319 *32-bit*)
7320 LD="${LD-ld} -32"
7321 ;;
7322 *N32*)
7323 LD="${LD-ld} -n32"
7324 ;;
7325 *64-bit*)
7326 LD="${LD-ld} -64"
7327 ;;
7328 esac
7329 fi
7330 fi
7331 rm -rf conftest*
7332 ;;
7333
7334x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7335s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7336 # Find out which ABI we are using.
7337 echo 'int i;' > conftest.$ac_ext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339 (eval $ac_compile) 2>&5
7340 ac_status=$?
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; then
7343 case `/usr/bin/file conftest.o` in
7344 *32-bit*)
7345 case $host in
7346 x86_64-*kfreebsd*-gnu)
7347 LD="${LD-ld} -m elf_i386_fbsd"
7348 ;;
7349 x86_64-*linux*)
7350 LD="${LD-ld} -m elf_i386"
7351 ;;
7352 ppc64-*linux*|powerpc64-*linux*)
7353 LD="${LD-ld} -m elf32ppclinux"
7354 ;;
7355 s390x-*linux*)
7356 LD="${LD-ld} -m elf_s390"
7357 ;;
7358 sparc64-*linux*)
7359 LD="${LD-ld} -m elf32_sparc"
7360 ;;
7361 esac
7362 ;;
7363 *64-bit*)
7364 case $host in
7365 x86_64-*kfreebsd*-gnu)
7366 LD="${LD-ld} -m elf_x86_64_fbsd"
7367 ;;
7368 x86_64-*linux*)
7369 LD="${LD-ld} -m elf_x86_64"
7370 ;;
7371 ppc*-*linux*|powerpc*-*linux*)
7372 LD="${LD-ld} -m elf64ppc"
7373 ;;
7374 s390*-*linux*|s390*-*tpf*)
7375 LD="${LD-ld} -m elf64_s390"
7376 ;;
7377 sparc*-*linux*)
7378 LD="${LD-ld} -m elf64_sparc"
7379 ;;
7380 esac
7381 ;;
7382 esac
7383 fi
7384 rm -rf conftest*
7385 ;;
7386
7387*-*-sco3.2v5*)
7388 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7389 SAVE_CFLAGS="$CFLAGS"
7390 CFLAGS="$CFLAGS -belf"
7391 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7392$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7393if test "${lt_cv_cc_needs_belf+set}" = set; then
7394 $as_echo_n "(cached) " >&6
7395else
7396 ac_ext=c
7397ac_cpp='$CPP $CPPFLAGS'
7398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402 cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408
7409int
7410main ()
7411{
7412
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext conftest$ac_exeext
7418if { (ac_try="$ac_link"
7419case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7422esac
7423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424$as_echo "$ac_try_echo") >&5
7425 (eval "$ac_link") 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest$ac_exeext && {
7435 test "$cross_compiling" = yes ||
7436 $as_test_x conftest$ac_exeext
7437 }; then
7438 lt_cv_cc_needs_belf=yes
d9898ee8 7439else
8d138742
CE
7440 $as_echo "$as_me: failed program was:" >&5
7441sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 lt_cv_cc_needs_belf=no
d9898ee8 7444fi
7445
8d138742
CE
7446rm -rf conftest.dSYM
7447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7449 ac_ext=c
7450ac_cpp='$CPP $CPPFLAGS'
7451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 7454
d9898ee8 7455fi
8d138742
CE
7456{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7457$as_echo "$lt_cv_cc_needs_belf" >&6; }
7458 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7459 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7460 CFLAGS="$SAVE_CFLAGS"
7461 fi
7462 ;;
7463sparc*-*solaris*)
7464 # Find out which ABI we are using.
7465 echo 'int i;' > conftest.$ac_ext
7466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467 (eval $ac_compile) 2>&5
7468 ac_status=$?
7469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; then
7471 case `/usr/bin/file conftest.o` in
7472 *64-bit*)
7473 case $lt_cv_prog_gnu_ld in
7474 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7475 *)
7476 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7477 LD="${LD-ld} -64"
7478 fi
7479 ;;
7480 esac
7481 ;;
7482 esac
7483 fi
7484 rm -rf conftest*
7485 ;;
7486esac
7487
7488need_locks="$enable_libtool_lock"
7489
7490
7491 case $host_os in
7492 rhapsody* | darwin*)
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7495set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7496{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7499 $as_echo_n "(cached) " >&6
d9898ee8 7500else
8d138742
CE
7501 if test -n "$DSYMUTIL"; then
7502 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
7511 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7513 break 2
7514 fi
7515done
7516done
dd184caf 7517IFS=$as_save_IFS
d9898ee8 7518
d9898ee8 7519fi
7520fi
8d138742
CE
7521DSYMUTIL=$ac_cv_prog_DSYMUTIL
7522if test -n "$DSYMUTIL"; then
7523 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7524$as_echo "$DSYMUTIL" >&6; }
d9898ee8 7525else
8d138742
CE
7526 { $as_echo "$as_me:$LINENO: result: no" >&5
7527$as_echo "no" >&6; }
d9898ee8 7528fi
7529
8d138742
CE
7530
7531fi
7532if test -z "$ac_cv_prog_DSYMUTIL"; then
7533 ac_ct_DSYMUTIL=$DSYMUTIL
7534 # Extract the first word of "dsymutil", so it can be a program name with args.
7535set dummy dsymutil; ac_word=$2
7536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7539 $as_echo_n "(cached) " >&6
7540else
7541 if test -n "$ac_ct_DSYMUTIL"; then
7542 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7543else
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555done
7556done
7557IFS=$as_save_IFS
7558
7559fi
7560fi
7561ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7562if test -n "$ac_ct_DSYMUTIL"; then
7563 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7564$as_echo "$ac_ct_DSYMUTIL" >&6; }
7565else
7566 { $as_echo "$as_me:$LINENO: result: no" >&5
7567$as_echo "no" >&6; }
7568fi
7569
7570 if test "x$ac_ct_DSYMUTIL" = x; then
7571 DSYMUTIL=":"
dd184caf 7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574yes:)
8d138742
CE
7575{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7577ac_tool_warned=yes ;;
7578esac
8d138742 7579 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 7580 fi
d9898ee8 7581else
8d138742 7582 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 7583fi
7584
8d138742
CE
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7587set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7588{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if test "${ac_cv_prog_NMEDIT+set}" = set; then
7591 $as_echo_n "(cached) " >&6
d9898ee8 7592else
8d138742
CE
7593 if test -n "$NMEDIT"; then
7594 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
7603 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7605 break 2
7606 fi
7607done
7608done
dd184caf 7609IFS=$as_save_IFS
d9898ee8 7610
7611fi
7612fi
8d138742
CE
7613NMEDIT=$ac_cv_prog_NMEDIT
7614if test -n "$NMEDIT"; then
7615 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7616$as_echo "$NMEDIT" >&6; }
d9898ee8 7617else
8d138742
CE
7618 { $as_echo "$as_me:$LINENO: result: no" >&5
7619$as_echo "no" >&6; }
d9898ee8 7620fi
7621
dd184caf 7622
d9898ee8 7623fi
8d138742
CE
7624if test -z "$ac_cv_prog_NMEDIT"; then
7625 ac_ct_NMEDIT=$NMEDIT
7626 # Extract the first word of "nmedit", so it can be a program name with args.
7627set dummy nmedit; ac_word=$2
7628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7631 $as_echo_n "(cached) " >&6
d9898ee8 7632else
8d138742
CE
7633 if test -n "$ac_ct_NMEDIT"; then
7634 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 7635else
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
7643 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7645 break 2
7646 fi
7647done
7648done
dd184caf 7649IFS=$as_save_IFS
d9898ee8 7650
d9898ee8 7651fi
7652fi
8d138742
CE
7653ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7654if test -n "$ac_ct_NMEDIT"; then
7655 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7656$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 7657else
8d138742
CE
7658 { $as_echo "$as_me:$LINENO: result: no" >&5
7659$as_echo "no" >&6; }
d9898ee8 7660fi
7661
8d138742
CE
7662 if test "x$ac_ct_NMEDIT" = x; then
7663 NMEDIT=":"
dd184caf 7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666yes:)
8d138742
CE
7667{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7669ac_tool_warned=yes ;;
7670esac
8d138742 7671 NMEDIT=$ac_ct_NMEDIT
dd184caf 7672 fi
d9898ee8 7673else
8d138742 7674 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 7675fi
7676
8d138742
CE
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7679set dummy ${ac_tool_prefix}lipo; ac_word=$2
7680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if test "${ac_cv_prog_LIPO+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7684else
7685 if test -n "$LIPO"; then
7686 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699done
7700done
7701IFS=$as_save_IFS
d9898ee8 7702
8d138742
CE
7703fi
7704fi
7705LIPO=$ac_cv_prog_LIPO
7706if test -n "$LIPO"; then
7707 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7708$as_echo "$LIPO" >&6; }
7709else
7710 { $as_echo "$as_me:$LINENO: result: no" >&5
7711$as_echo "no" >&6; }
7712fi
d9898ee8 7713
d9898ee8 7714
d9898ee8 7715fi
8d138742
CE
7716if test -z "$ac_cv_prog_LIPO"; then
7717 ac_ct_LIPO=$LIPO
7718 # Extract the first word of "lipo", so it can be a program name with args.
7719set dummy lipo; ac_word=$2
7720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7721$as_echo_n "checking for $ac_word... " >&6; }
7722if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7723 $as_echo_n "(cached) " >&6
7724else
7725 if test -n "$ac_ct_LIPO"; then
7726 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7727else
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_ac_ct_LIPO="lipo"
7736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
d9898ee8 7739done
8d138742
CE
7740done
7741IFS=$as_save_IFS
d9898ee8 7742
8d138742
CE
7743fi
7744fi
7745ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7746if test -n "$ac_ct_LIPO"; then
7747 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7748$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 7749else
8d138742
CE
7750 { $as_echo "$as_me:$LINENO: result: no" >&5
7751$as_echo "no" >&6; }
7752fi
d9898ee8 7753
8d138742
CE
7754 if test "x$ac_ct_LIPO" = x; then
7755 LIPO=":"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758yes:)
7759{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761ac_tool_warned=yes ;;
d9898ee8 7762esac
8d138742
CE
7763 LIPO=$ac_ct_LIPO
7764 fi
7765else
7766 LIPO="$ac_cv_prog_LIPO"
d9898ee8 7767fi
7768
8d138742
CE
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7771set dummy ${ac_tool_prefix}otool; ac_word=$2
7772{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_OTOOL+set}" = set; then
7775 $as_echo_n "(cached) " >&6
d9898ee8 7776else
8d138742
CE
7777 if test -n "$OTOOL"; then
7778 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792done
7793IFS=$as_save_IFS
d9898ee8 7794
8d138742
CE
7795fi
7796fi
7797OTOOL=$ac_cv_prog_OTOOL
7798if test -n "$OTOOL"; then
7799 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7800$as_echo "$OTOOL" >&6; }
d9898ee8 7801else
8d138742
CE
7802 { $as_echo "$as_me:$LINENO: result: no" >&5
7803$as_echo "no" >&6; }
7804fi
d9898ee8 7805
d9898ee8 7806
d9898ee8 7807fi
8d138742
CE
7808if test -z "$ac_cv_prog_OTOOL"; then
7809 ac_ct_OTOOL=$OTOOL
7810 # Extract the first word of "otool", so it can be a program name with args.
7811set dummy otool; ac_word=$2
7812{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7816else
7817 if test -n "$ac_ct_OTOOL"; then
7818 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_ac_ct_OTOOL="otool"
7828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833IFS=$as_save_IFS
d9898ee8 7834
8d138742
CE
7835fi
7836fi
7837ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7838if test -n "$ac_ct_OTOOL"; then
7839 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7840$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 7841else
8d138742
CE
7842 { $as_echo "$as_me:$LINENO: result: no" >&5
7843$as_echo "no" >&6; }
d9898ee8 7844fi
7845
8d138742
CE
7846 if test "x$ac_ct_OTOOL" = x; then
7847 OTOOL=":"
d9898ee8 7848 else
8d138742
CE
7849 case $cross_compiling:$ac_tool_warned in
7850yes:)
7851{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853ac_tool_warned=yes ;;
7854esac
7855 OTOOL=$ac_ct_OTOOL
d9898ee8 7856 fi
8d138742
CE
7857else
7858 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 7859fi
7860
8d138742
CE
7861 if test -n "$ac_tool_prefix"; then
7862 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7863set dummy ${ac_tool_prefix}otool64; ac_word=$2
7864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if test "${ac_cv_prog_OTOOL64+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7868else
7869 if test -n "$OTOOL64"; then
7870 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
d9898ee8 7882 fi
8d138742
CE
7883done
7884done
7885IFS=$as_save_IFS
d9898ee8 7886
8d138742
CE
7887fi
7888fi
7889OTOOL64=$ac_cv_prog_OTOOL64
7890if test -n "$OTOOL64"; then
7891 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7892$as_echo "$OTOOL64" >&6; }
7893else
7894 { $as_echo "$as_me:$LINENO: result: no" >&5
7895$as_echo "no" >&6; }
dd184caf 7896fi
d9898ee8 7897
d9898ee8 7898
8d138742
CE
7899fi
7900if test -z "$ac_cv_prog_OTOOL64"; then
7901 ac_ct_OTOOL64=$OTOOL64
7902 # Extract the first word of "otool64", so it can be a program name with args.
7903set dummy otool64; ac_word=$2
7904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7908else
7909 if test -n "$ac_ct_OTOOL64"; then
7910 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_prog_ac_ct_OTOOL64="otool64"
7920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
7924done
7925IFS=$as_save_IFS
d9898ee8 7926
8d138742
CE
7927fi
7928fi
7929ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7930if test -n "$ac_ct_OTOOL64"; then
7931 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7932$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 7933else
8d138742
CE
7934 { $as_echo "$as_me:$LINENO: result: no" >&5
7935$as_echo "no" >&6; }
dd184caf 7936fi
7937
8d138742
CE
7938 if test "x$ac_ct_OTOOL64" = x; then
7939 OTOOL64=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942yes:)
7943{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945ac_tool_warned=yes ;;
7946esac
7947 OTOOL64=$ac_ct_OTOOL64
7948 fi
7949else
7950 OTOOL64="$ac_cv_prog_OTOOL64"
7951fi
7952
7953
7954
d9898ee8 7955
d9898ee8 7956
7957
d9898ee8 7958
d9898ee8 7959
d9898ee8 7960
d9898ee8 7961
7962
d9898ee8 7963
d9898ee8 7964
d9898ee8 7965
7966
d9898ee8 7967
d9898ee8 7968
7969
7970
d9898ee8 7971
d9898ee8 7972
7973
d9898ee8 7974
8d138742
CE
7975
7976
7977
7978
7979 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7980$as_echo_n "checking for -single_module linker flag... " >&6; }
7981if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7982 $as_echo_n "(cached) " >&6
7983else
7984 lt_cv_apple_cc_single_mod=no
7985 if test -z "${LT_MULTI_MODULE}"; then
7986 # By default we will add the -single_module flag. You can override
7987 # by either setting the environment variable LT_MULTI_MODULE
7988 # non-empty at configure time, or by adding -multi_module to the
7989 # link flags.
7990 rm -rf libconftest.dylib*
7991 echo "int foo(void){return 1;}" > conftest.c
7992 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7993-dynamiclib -Wl,-single_module conftest.c" >&5
7994 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7995 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7996 _lt_result=$?
7997 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7998 lt_cv_apple_cc_single_mod=yes
7999 else
8000 cat conftest.err >&5
8001 fi
8002 rm -rf libconftest.dylib*
8003 rm -f conftest.*
8004 fi
d9898ee8 8005fi
8d138742
CE
8006{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8007$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8008 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8009$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8010if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8011 $as_echo_n "(cached) " >&6
8012else
8013 lt_cv_ld_exported_symbols_list=no
8014 save_LDFLAGS=$LDFLAGS
8015 echo "_main" > conftest.sym
8016 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8017 cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
d9898ee8 8023
8d138742
CE
8024int
8025main ()
8026{
8027
8028 ;
8029 return 0;
8030}
8031_ACEOF
8032rm -f conftest.$ac_objext conftest$ac_exeext
8033if { (ac_try="$ac_link"
8034case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037esac
8038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8039$as_echo "$ac_try_echo") >&5
8040 (eval "$ac_link") 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest$ac_exeext && {
8050 test "$cross_compiling" = yes ||
8051 $as_test_x conftest$ac_exeext
8052 }; then
8053 lt_cv_ld_exported_symbols_list=yes
d9898ee8 8054else
8d138742
CE
8055 $as_echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 lt_cv_ld_exported_symbols_list=no
d9898ee8 8059fi
8060
8d138742
CE
8061rm -rf conftest.dSYM
8062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8063 conftest$ac_exeext conftest.$ac_ext
8064 LDFLAGS="$save_LDFLAGS"
8065
d9898ee8 8066fi
8d138742
CE
8067{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8068$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8069 case $host_os in
8070 rhapsody* | darwin1.[012])
8071 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8072 darwin1.*)
8073 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8074 darwin*) # darwin 5.x on
8075 # if running on 10.5 or later, the deployment target defaults
8076 # to the OS version, if on x86, and 10.4, the deployment
8077 # target defaults to 10.4. Don't you love it?
8078 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8079 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8080 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8081 10.[012]*)
8082 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8083 10.*)
8084 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8085 esac
8086 ;;
8087 esac
8088 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8089 _lt_dar_single_mod='$single_module'
8090 fi
8091 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8092 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8093 else
8094 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8095 fi
8096 if test "$DSYMUTIL" != ":"; then
8097 _lt_dsymutil='~$DSYMUTIL $lib || :'
8098 else
8099 _lt_dsymutil=
8100 fi
8101 ;;
8102 esac
d9898ee8 8103
d9898ee8 8104
8d138742
CE
8105for ac_header in dlfcn.h
8106do
8107as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8109$as_echo_n "checking for $ac_header... " >&6; }
8110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 $as_echo_n "(cached) " >&6
8112else
8113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119$ac_includes_default
d9898ee8 8120
8d138742
CE
8121#include <$ac_header>
8122_ACEOF
8123rm -f conftest.$ac_objext
8124if { (ac_try="$ac_compile"
8125case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8130$as_echo "$ac_try_echo") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
8141 eval "$as_ac_Header=yes"
8142else
8143 $as_echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8145
8d138742
CE
8146 eval "$as_ac_Header=no"
8147fi
d9898ee8 8148
8d138742
CE
8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150fi
8151ac_res=`eval 'as_val=${'$as_ac_Header'}
8152 $as_echo "$as_val"'`
8153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8154$as_echo "$ac_res" >&6; }
8155as_val=`eval 'as_val=${'$as_ac_Header'}
8156 $as_echo "$as_val"'`
8157 if test "x$as_val" = x""yes; then
8158 cat >>confdefs.h <<_ACEOF
8159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160_ACEOF
d9898ee8 8161
8d138742 8162fi
d9898ee8 8163
8d138742 8164done
d9898ee8 8165
d9898ee8 8166
d9898ee8 8167
8d138742 8168# Set options
d9898ee8 8169
d9898ee8 8170
d9898ee8 8171
8d138742
CE
8172 enable_dlopen=no
8173
8174
8175 enable_win32_dll=no
8176
8177
8178 # Check whether --enable-shared was given.
8179if test "${enable_shared+set}" = set; then
8180 enableval=$enable_shared; p=${PACKAGE-default}
8181 case $enableval in
8182 yes) enable_shared=yes ;;
8183 no) enable_shared=no ;;
d9898ee8 8184 *)
8d138742
CE
8185 enable_shared=no
8186 # Look at the argument we got. We use all the common list separators.
8187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188 for pkg in $enableval; do
8189 IFS="$lt_save_ifs"
8190 if test "X$pkg" = "X$p"; then
8191 enable_shared=yes
8192 fi
8193 done
8194 IFS="$lt_save_ifs"
d9898ee8 8195 ;;
8196 esac
8d138742
CE
8197else
8198 enable_shared=yes
8199fi
d9898ee8 8200
d9898ee8 8201
d9898ee8 8202
d9898ee8 8203
d9898ee8 8204
d9898ee8 8205
ac40fd9e 8206
d9898ee8 8207
d9898ee8 8208
8d138742
CE
8209 # Check whether --enable-static was given.
8210if test "${enable_static+set}" = set; then
8211 enableval=$enable_static; p=${PACKAGE-default}
8212 case $enableval in
8213 yes) enable_static=yes ;;
8214 no) enable_static=no ;;
8215 *)
8216 enable_static=no
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for pkg in $enableval; do
8220 IFS="$lt_save_ifs"
8221 if test "X$pkg" = "X$p"; then
8222 enable_static=yes
8223 fi
8224 done
8225 IFS="$lt_save_ifs"
d9898ee8 8226 ;;
8d138742
CE
8227 esac
8228else
8229 enable_static=yes
8230fi
d9898ee8 8231
d9898ee8 8232
d9898ee8 8233
d9898ee8 8234
d9898ee8 8235
d9898ee8 8236
d9898ee8 8237
d9898ee8 8238
d9898ee8 8239
d9898ee8 8240
8d138742
CE
8241# Check whether --with-pic was given.
8242if test "${with_pic+set}" = set; then
8243 withval=$with_pic; pic_mode="$withval"
d9898ee8 8244else
8d138742 8245 pic_mode=default
d9898ee8 8246fi
8247
d9898ee8 8248
8d138742 8249test -z "$pic_mode" && pic_mode=default
d9898ee8 8250
d9898ee8 8251
8d138742
CE
8252
8253
8254
8255
8256
8257 # Check whether --enable-fast-install was given.
8258if test "${enable_fast_install+set}" = set; then
8259 enableval=$enable_fast_install; p=${PACKAGE-default}
8260 case $enableval in
8261 yes) enable_fast_install=yes ;;
8262 no) enable_fast_install=no ;;
8263 *)
8264 enable_fast_install=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8268 IFS="$lt_save_ifs"
8269 if test "X$pkg" = "X$p"; then
8270 enable_fast_install=yes
8271 fi
8272 done
8273 IFS="$lt_save_ifs"
8274 ;;
8275 esac
d9898ee8 8276else
8d138742 8277 enable_fast_install=yes
d9898ee8 8278fi
8279
8280
d9898ee8 8281
d9898ee8 8282
d9898ee8 8283
8284
d9898ee8 8285
d9898ee8 8286
d9898ee8 8287
d9898ee8 8288
d9898ee8 8289
8d138742
CE
8290# This can be used to rebuild libtool when needed
8291LIBTOOL_DEPS="$ltmain"
d9898ee8 8292
8d138742
CE
8293# Always use our own libtool.
8294LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 8295
d9898ee8 8296
d9898ee8 8297
d9898ee8 8298
d9898ee8 8299
d9898ee8 8300
d9898ee8 8301
d9898ee8 8302
d9898ee8 8303
d9898ee8 8304
d9898ee8 8305
d9898ee8 8306
d9898ee8 8307
d9898ee8 8308
d9898ee8 8309
d9898ee8 8310
d9898ee8 8311
d9898ee8 8312
d9898ee8 8313
d9898ee8 8314
d9898ee8 8315
d9898ee8 8316
d9898ee8 8317
d9898ee8 8318
d9898ee8 8319
8d138742 8320test -z "$LN_S" && LN_S="ln -s"
d9898ee8 8321
d9898ee8 8322
d9898ee8 8323
d9898ee8 8324
d9898ee8 8325
d9898ee8 8326
dd184caf 8327
dd184caf 8328
d9898ee8 8329
d9898ee8 8330
d9898ee8 8331
d9898ee8 8332
8d138742
CE
8333
8334
8335if test -n "${ZSH_VERSION+set}" ; then
8336 setopt NO_GLOB_SUBST
ac40fd9e 8337fi
8d138742
CE
8338
8339{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8340$as_echo_n "checking for objdir... " >&6; }
8341if test "${lt_cv_objdir+set}" = set; then
8342 $as_echo_n "(cached) " >&6
d9898ee8 8343else
8d138742
CE
8344 rm -f .libs 2>/dev/null
8345mkdir .libs 2>/dev/null
8346if test -d .libs; then
8347 lt_cv_objdir=.libs
8348else
8349 # MS-DOS does not allow filenames that begin with a dot.
8350 lt_cv_objdir=_libs
8351fi
8352rmdir .libs 2>/dev/null
8353fi
8354{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8355$as_echo "$lt_cv_objdir" >&6; }
8356objdir=$lt_cv_objdir
d9898ee8 8357
dd184caf 8358
dd184caf 8359
d9898ee8 8360
d9898ee8 8361
8d138742
CE
8362cat >>confdefs.h <<_ACEOF
8363#define LT_OBJDIR "$lt_cv_objdir/"
8364_ACEOF
d9898ee8 8365
d9898ee8 8366
d9898ee8 8367
d9898ee8 8368
d9898ee8 8369
d9898ee8 8370
d9898ee8 8371
d9898ee8 8372
d9898ee8 8373
d9898ee8 8374
d9898ee8 8375
d9898ee8 8376
d9898ee8 8377
d9898ee8 8378
d9898ee8 8379
d9898ee8 8380
d9898ee8 8381
8d138742
CE
8382case $host_os in
8383aix3*)
8384 # AIX sometimes has problems with the GCC collect2 program. For some
8385 # reason, if we set the COLLECT_NAMES environment variable, the problems
8386 # vanish in a puff of smoke.
8387 if test "X${COLLECT_NAMES+set}" != Xset; then
8388 COLLECT_NAMES=
8389 export COLLECT_NAMES
8390 fi
8391 ;;
8392esac
d9898ee8 8393
8d138742
CE
8394# Sed substitution that helps us do robust quoting. It backslashifies
8395# metacharacters that are still active within double-quoted strings.
8396sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 8397
8d138742
CE
8398# Same as above, but do not quote variable references.
8399double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 8400
8d138742
CE
8401# Sed substitution to delay expansion of an escaped shell variable in a
8402# double_quote_subst'ed string.
8403delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d9898ee8 8404
8d138742
CE
8405# Sed substitution to delay expansion of an escaped single quote.
8406delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 8407
8d138742
CE
8408# Sed substitution to avoid accidental globbing in evaled expressions
8409no_glob_subst='s/\*/\\\*/g'
d9898ee8 8410
8d138742
CE
8411# Global variables:
8412ofile=libtool
8413can_build_shared=yes
d9898ee8 8414
8d138742
CE
8415# All known linkers require a `.a' archive for static linking (except MSVC,
8416# which needs '.lib').
8417libext=a
d9898ee8 8418
8d138742 8419with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 8420
8d138742
CE
8421old_CC="$CC"
8422old_CFLAGS="$CFLAGS"
d9898ee8 8423
8d138742
CE
8424# Set sane defaults for various variables
8425test -z "$CC" && CC=cc
8426test -z "$LTCC" && LTCC=$CC
8427test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8428test -z "$LD" && LD=ld
8429test -z "$ac_objext" && ac_objext=o
d9898ee8 8430
8d138742
CE
8431for cc_temp in $compiler""; do
8432 case $cc_temp in
8433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8435 \-*) ;;
8436 *) break;;
8437 esac
8438done
8439cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 8440
d9898ee8 8441
8d138742
CE
8442# Only perform the check for file, if the check method requires it
8443test -z "$MAGIC_CMD" && MAGIC_CMD=file
8444case $deplibs_check_method in
8445file_magic*)
8446 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8447 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8448$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8449if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8451else
8452 case $MAGIC_CMD in
8453[\\/*] | ?:[\\/]*)
8454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8455 ;;
8456*)
8457 lt_save_MAGIC_CMD="$MAGIC_CMD"
8458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460 for ac_dir in $ac_dummy; do
8461 IFS="$lt_save_ifs"
8462 test -z "$ac_dir" && ac_dir=.
8463 if test -f $ac_dir/${ac_tool_prefix}file; then
8464 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8465 if test -n "$file_magic_test_file"; then
8466 case $deplibs_check_method in
8467 "file_magic "*)
8468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471 $EGREP "$file_magic_regex" > /dev/null; then
8472 :
8473 else
8474 cat <<_LT_EOF 1>&2
8475
8476*** Warning: the command libtool uses to detect shared libraries,
8477*** $file_magic_cmd, produces output that libtool cannot recognize.
8478*** The result is that libtool may fail to recognize shared libraries
8479*** as such. This will affect the creation of libtool libraries that
8480*** depend on shared libraries, but programs linked with such libtool
8481*** libraries will work regardless of this problem. Nevertheless, you
8482*** may want to report the problem to your system manager and/or to
8483*** bug-libtool@gnu.org
8484
8485_LT_EOF
8486 fi ;;
8487 esac
d9898ee8 8488 fi
8d138742
CE
8489 break
8490 fi
8491 done
8492 IFS="$lt_save_ifs"
8493 MAGIC_CMD="$lt_save_MAGIC_CMD"
8494 ;;
8495esac
8496fi
d9898ee8 8497
8d138742
CE
8498MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499if test -n "$MAGIC_CMD"; then
8500 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8501$as_echo "$MAGIC_CMD" >&6; }
8502else
8503 { $as_echo "$as_me:$LINENO: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
d9898ee8 8506
d9898ee8 8507
d9898ee8 8508
d9898ee8 8509
d9898ee8 8510
8d138742
CE
8511if test -z "$lt_cv_path_MAGIC_CMD"; then
8512 if test -n "$ac_tool_prefix"; then
8513 { $as_echo "$as_me:$LINENO: checking for file" >&5
8514$as_echo_n "checking for file... " >&6; }
8515if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8516 $as_echo_n "(cached) " >&6
8517else
8518 case $MAGIC_CMD in
8519[\\/*] | ?:[\\/]*)
8520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d9898ee8 8521 ;;
8d138742
CE
8522*)
8523 lt_save_MAGIC_CMD="$MAGIC_CMD"
8524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8526 for ac_dir in $ac_dummy; do
8527 IFS="$lt_save_ifs"
8528 test -z "$ac_dir" && ac_dir=.
8529 if test -f $ac_dir/file; then
8530 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8531 if test -n "$file_magic_test_file"; then
8532 case $deplibs_check_method in
8533 "file_magic "*)
8534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8537 $EGREP "$file_magic_regex" > /dev/null; then
8538 :
8539 else
8540 cat <<_LT_EOF 1>&2
d9898ee8 8541
8d138742
CE
8542*** Warning: the command libtool uses to detect shared libraries,
8543*** $file_magic_cmd, produces output that libtool cannot recognize.
8544*** The result is that libtool may fail to recognize shared libraries
8545*** as such. This will affect the creation of libtool libraries that
8546*** depend on shared libraries, but programs linked with such libtool
8547*** libraries will work regardless of this problem. Nevertheless, you
8548*** may want to report the problem to your system manager and/or to
8549*** bug-libtool@gnu.org
ac40fd9e 8550
8d138742
CE
8551_LT_EOF
8552 fi ;;
8553 esac
8554 fi
8555 break
ac40fd9e 8556 fi
8557 done
8d138742
CE
8558 IFS="$lt_save_ifs"
8559 MAGIC_CMD="$lt_save_MAGIC_CMD"
8560 ;;
8561esac
8562fi
8563
8564MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565if test -n "$MAGIC_CMD"; then
8566 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8567$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8568else
8d138742
CE
8569 { $as_echo "$as_me:$LINENO: result: no" >&5
8570$as_echo "no" >&6; }
d9898ee8 8571fi
d9898ee8 8572
d9898ee8 8573
8d138742
CE
8574 else
8575 MAGIC_CMD=:
8576 fi
8577fi
d9898ee8 8578
8d138742 8579 fi
d9898ee8 8580 ;;
8d138742 8581esac
d9898ee8 8582
8d138742 8583# Use C for the default configuration in the libtool script
d9898ee8 8584
8d138742
CE
8585lt_save_CC="$CC"
8586ac_ext=c
8587ac_cpp='$CPP $CPPFLAGS'
8588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8590ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 8591
d9898ee8 8592
8d138742
CE
8593# Source file extension for C test sources.
8594ac_ext=c
d9898ee8 8595
8d138742
CE
8596# Object file extension for compiled C test sources.
8597objext=o
8598objext=$objext
d9898ee8 8599
8d138742
CE
8600# Code to be used in simple compile tests
8601lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 8602
8d138742
CE
8603# Code to be used in simple link tests
8604lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 8605
d9898ee8 8606
ac40fd9e 8607
d9898ee8 8608
d9898ee8 8609
d9898ee8 8610
d9898ee8 8611
8d138742
CE
8612# If no C compiler was specified, use CC.
8613LTCC=${LTCC-"$CC"}
d9898ee8 8614
8d138742
CE
8615# If no C compiler flags were specified, use CFLAGS.
8616LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 8617
8d138742
CE
8618# Allow CC to be a program name with arguments.
8619compiler=$CC
d9898ee8 8620
8d138742
CE
8621# Save the default compiler, since it gets overwritten when the other
8622# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8623compiler_DEFAULT=$CC
d9898ee8 8624
8d138742
CE
8625# save warnings/boilerplate of simple test code
8626ac_outfile=conftest.$ac_objext
8627echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629_lt_compiler_boilerplate=`cat conftest.err`
8630$RM conftest*
d9898ee8 8631
8d138742
CE
8632ac_outfile=conftest.$ac_objext
8633echo "$lt_simple_link_test_code" >conftest.$ac_ext
8634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635_lt_linker_boilerplate=`cat conftest.err`
8636$RM -r conftest*
d9898ee8 8637
d9898ee8 8638
8d138742 8639if test -n "$compiler"; then
d9898ee8 8640
8d138742 8641lt_prog_compiler_no_builtin_flag=
d9898ee8 8642
8d138742
CE
8643if test "$GCC" = yes; then
8644 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 8645
8d138742
CE
8646 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8647$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8648if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8649 $as_echo_n "(cached) " >&6
8650else
8651 lt_cv_prog_compiler_rtti_exceptions=no
8652 ac_outfile=conftest.$ac_objext
8653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654 lt_compiler_flag="-fno-rtti -fno-exceptions"
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 # The option is referenced via a variable to avoid confusing sed.
8660 lt_compile=`echo "$ac_compile" | $SED \
8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663 -e 's:$: $lt_compiler_flag:'`
8664 (eval echo "\"\$as_me:8664: $lt_compile\"" >&5)
8665 (eval "$lt_compile" 2>conftest.err)
8666 ac_status=$?
8667 cat conftest.err >&5
8668 echo "$as_me:8668: \$? = $ac_status" >&5
8669 if (exit $ac_status) && test -s "$ac_outfile"; then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings other than the usual output.
8672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_rtti_exceptions=yes
8676 fi
8677 fi
8678 $RM conftest*
d9898ee8 8679
8d138742
CE
8680fi
8681{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8682$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8683
8d138742
CE
8684if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8685 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8686else
8687 :
8688fi
ac40fd9e 8689
8d138742 8690fi
d9898ee8 8691
d9898ee8 8692
d9898ee8 8693
d9898ee8 8694
d9898ee8 8695
d9898ee8 8696
8d138742
CE
8697 lt_prog_compiler_wl=
8698lt_prog_compiler_pic=
8699lt_prog_compiler_static=
d9898ee8 8700
8d138742
CE
8701{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8702$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 8703
8d138742
CE
8704 if test "$GCC" = yes; then
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_static='-static'
d9898ee8 8707
8d138742
CE
8708 case $host_os in
8709 aix*)
8710 # All AIX code is PIC.
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 now supports IA64 processor
8713 lt_prog_compiler_static='-Bstatic'
8714 fi
8715 ;;
d9898ee8 8716
8d138742
CE
8717 amigaos*)
8718 case $host_cpu in
8719 powerpc)
8720 # see comment about AmigaOS4 .so support
8721 lt_prog_compiler_pic='-fPIC'
8722 ;;
8723 m68k)
8724 # FIXME: we need at least 68020 code to build shared libraries, but
8725 # adding the `-m68020' flag to GCC prevents building anything better,
8726 # like `-m68040'.
8727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8728 ;;
8729 esac
8730 ;;
d9898ee8 8731
8d138742
CE
8732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8733 # PIC is the default for these OSes.
8734 ;;
d9898ee8 8735
8d138742
CE
8736 mingw* | cygwin* | pw32* | os2* | cegcc*)
8737 # This hack is so that the source file can tell whether it is being
8738 # built for inclusion in a dll (and should export symbols for example).
8739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8740 # (--disable-auto-import) libraries
8741 lt_prog_compiler_pic='-DDLL_EXPORT'
8742 ;;
d9898ee8 8743
8d138742
CE
8744 darwin* | rhapsody*)
8745 # PIC is the default on this platform
8746 # Common symbols not allowed in MH_DYLIB files
8747 lt_prog_compiler_pic='-fno-common'
8748 ;;
d9898ee8 8749
8d138742
CE
8750 hpux*)
8751 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8752 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8753 # sets the default TLS model and affects inlining.
8754 case $host_cpu in
8755 hppa*64*)
8756 # +Z the default
8757 ;;
8758 *)
8759 lt_prog_compiler_pic='-fPIC'
8760 ;;
8761 esac
8762 ;;
d9898ee8 8763
8d138742
CE
8764 interix[3-9]*)
8765 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8766 # Instead, we relocate shared libraries at runtime.
8767 ;;
d9898ee8 8768
8d138742
CE
8769 msdosdjgpp*)
8770 # Just because we use GCC doesn't mean we suddenly get shared libraries
8771 # on systems that don't support them.
8772 lt_prog_compiler_can_build_shared=no
8773 enable_shared=no
8774 ;;
d9898ee8 8775
8d138742
CE
8776 *nto* | *qnx*)
8777 # QNX uses GNU C++, but need to define -shared option too, otherwise
8778 # it will coredump.
8779 lt_prog_compiler_pic='-fPIC -shared'
8780 ;;
d9898ee8 8781
8d138742
CE
8782 sysv4*MP*)
8783 if test -d /usr/nec; then
8784 lt_prog_compiler_pic=-Kconform_pic
8785 fi
8786 ;;
dd184caf 8787
8d138742
CE
8788 *)
8789 lt_prog_compiler_pic='-fPIC'
8790 ;;
8791 esac
8792 else
8793 # PORTME Check for flag to pass linker flags through the system compiler.
8794 case $host_os in
8795 aix*)
8796 lt_prog_compiler_wl='-Wl,'
8797 if test "$host_cpu" = ia64; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8800 else
8801 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8802 fi
8803 ;;
d9898ee8 8804
8d138742
CE
8805 mingw* | cygwin* | pw32* | os2* | cegcc*)
8806 # This hack is so that the source file can tell whether it is being
8807 # built for inclusion in a dll (and should export symbols for example).
8808 lt_prog_compiler_pic='-DDLL_EXPORT'
8809 ;;
d9898ee8 8810
8d138742
CE
8811 hpux9* | hpux10* | hpux11*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8814 # not for PA HP-UX.
8815 case $host_cpu in
8816 hppa*64*|ia64*)
8817 # +Z the default
8818 ;;
8819 *)
8820 lt_prog_compiler_pic='+Z'
8821 ;;
8822 esac
8823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8824 lt_prog_compiler_static='${wl}-a ${wl}archive'
8825 ;;
d9898ee8 8826
8d138742
CE
8827 irix5* | irix6* | nonstopux*)
8828 lt_prog_compiler_wl='-Wl,'
8829 # PIC (with -KPIC) is the default.
8830 lt_prog_compiler_static='-non_shared'
8831 ;;
d9898ee8 8832
8d138742
CE
8833 linux* | k*bsd*-gnu)
8834 case $cc_basename in
8835 # old Intel for x86_64 which still supported -KPIC.
8836 ecc*)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-static'
8840 ;;
8841 # icc used to be incompatible with GCC.
8842 # ICC 10 doesn't accept -KPIC any more.
8843 icc* | ifort*)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-fPIC'
8846 lt_prog_compiler_static='-static'
8847 ;;
8848 # Lahey Fortran 8.1.
8849 lf95*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='--shared'
8852 lt_prog_compiler_static='--static'
8853 ;;
8854 pgcc* | pgf77* | pgf90* | pgf95*)
8855 # Portland Group compilers (*not* the Pentium gcc compiler,
8856 # which looks to be a dead project)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-fpic'
8859 lt_prog_compiler_static='-Bstatic'
8860 ;;
8861 ccc*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # All Alpha code is PIC.
8864 lt_prog_compiler_static='-non_shared'
8865 ;;
8866 xl*)
8867 # IBM XL C 8.0/Fortran 10.1 on PPC
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-qpic'
8870 lt_prog_compiler_static='-qstaticlink'
8871 ;;
8872 *)
8873 case `$CC -V 2>&1 | sed 5q` in
8874 *Sun\ C*)
8875 # Sun C 5.9
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8879 ;;
8880 *Sun\ F*)
8881 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl=''
8885 ;;
8886 esac
8887 ;;
8888 esac
8889 ;;
d9898ee8 8890
8d138742
CE
8891 newsos6)
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
d9898ee8 8895
8d138742
CE
8896 *nto* | *qnx*)
8897 # QNX uses GNU C++, but need to define -shared option too, otherwise
8898 # it will coredump.
8899 lt_prog_compiler_pic='-fPIC -shared'
8900 ;;
d9898ee8 8901
8d138742
CE
8902 osf3* | osf4* | osf5*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # All OSF/1 code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
d9898ee8 8907
8d138742
CE
8908 rdos*)
8909 lt_prog_compiler_static='-non_shared'
8910 ;;
d9898ee8 8911
8d138742
CE
8912 solaris*)
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8915 case $cc_basename in
8916 f77* | f90* | f95*)
8917 lt_prog_compiler_wl='-Qoption ld ';;
8918 *)
8919 lt_prog_compiler_wl='-Wl,';;
8920 esac
8921 ;;
8922
8923 sunos4*)
8924 lt_prog_compiler_wl='-Qoption ld '
8925 lt_prog_compiler_pic='-PIC'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928
8929 sysv4 | sysv4.2uw2* | sysv4.3*)
8930 lt_prog_compiler_wl='-Wl,'
8931 lt_prog_compiler_pic='-KPIC'
8932 lt_prog_compiler_static='-Bstatic'
8933 ;;
8934
8935 sysv4*MP*)
8936 if test -d /usr/nec ;then
8937 lt_prog_compiler_pic='-Kconform_pic'
8938 lt_prog_compiler_static='-Bstatic'
8939 fi
8940 ;;
8941
8942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8946 ;;
8947
8948 unicos*)
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_can_build_shared=no
8951 ;;
8952
8953 uts4*)
8954 lt_prog_compiler_pic='-pic'
8955 lt_prog_compiler_static='-Bstatic'
8956 ;;
8957
8958 *)
8959 lt_prog_compiler_can_build_shared=no
8960 ;;
8961 esac
8962 fi
8963
8964case $host_os in
8965 # For platforms which do not support PIC, -DPIC is meaningless:
8966 *djgpp*)
8967 lt_prog_compiler_pic=
8968 ;;
8969 *)
8970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8971 ;;
dd184caf 8972esac
8d138742
CE
8973{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8974$as_echo "$lt_prog_compiler_pic" >&6; }
8975
8976
8977
8978
8979
8980
8981#
8982# Check to make sure the PIC flag actually works.
8983#
8984if test -n "$lt_prog_compiler_pic"; then
8985 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8986$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8987if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8988 $as_echo_n "(cached) " >&6
d9898ee8 8989else
8d138742
CE
8990 lt_cv_prog_compiler_pic_works=no
8991 ac_outfile=conftest.$ac_objext
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8994 # Insert the option either (1) after the last *FLAGS variable, or
8995 # (2) before a word containing "conftest.", or (3) at the end.
8996 # Note that $ac_compile itself does not contain backslashes and begins
8997 # with a dollar sign (not a hyphen), so the echo should work correctly.
8998 # The option is referenced via a variable to avoid confusing sed.
8999 lt_compile=`echo "$ac_compile" | $SED \
9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002 -e 's:$: $lt_compiler_flag:'`
9003 (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
9004 (eval "$lt_compile" 2>conftest.err)
9005 ac_status=$?
9006 cat conftest.err >&5
9007 echo "$as_me:9007: \$? = $ac_status" >&5
9008 if (exit $ac_status) && test -s "$ac_outfile"; then
9009 # The compiler can only warn and ignore the option if not recognized
9010 # So say no if there are warnings other than the usual output.
9011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9014 lt_cv_prog_compiler_pic_works=yes
9015 fi
9016 fi
9017 $RM conftest*
d9898ee8 9018
d9898ee8 9019fi
8d138742
CE
9020{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9021$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
dd184caf 9022
8d138742
CE
9023if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9024 case $lt_prog_compiler_pic in
9025 "" | " "*) ;;
9026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9027 esac
d9898ee8 9028else
8d138742
CE
9029 lt_prog_compiler_pic=
9030 lt_prog_compiler_can_build_shared=no
9031fi
d9898ee8 9032
8d138742
CE
9033fi
9034
9035
9036
9037
9038
9039
9040#
9041# Check to make sure the static flag actually works.
9042#
9043wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9044{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9045$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9046if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9047 $as_echo_n "(cached) " >&6
d9898ee8 9048else
8d138742
CE
9049 lt_cv_prog_compiler_static_works=no
9050 save_LDFLAGS="$LDFLAGS"
9051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9054 # The linker can only warn and ignore the option if not recognized
9055 # So say no if there are warnings
9056 if test -s conftest.err; then
9057 # Append any errors to the config.log.
9058 cat conftest.err 1>&5
9059 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_static_works=yes
9063 fi
9064 else
9065 lt_cv_prog_compiler_static_works=yes
9066 fi
9067 fi
9068 $RM -r conftest*
9069 LDFLAGS="$save_LDFLAGS"
d9898ee8 9070
d9898ee8 9071fi
8d138742
CE
9072{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9073$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
dd184caf 9074
8d138742
CE
9075if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9076 :
d9898ee8 9077else
8d138742
CE
9078 lt_prog_compiler_static=
9079fi
d9898ee8 9080
d9898ee8 9081
d9898ee8 9082
d9898ee8 9083
d9898ee8 9084
d9898ee8 9085
dd184caf 9086
8d138742
CE
9087 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9088$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9089if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9090 $as_echo_n "(cached) " >&6
d9898ee8 9091else
8d138742
CE
9092 lt_cv_prog_compiler_c_o=no
9093 $RM -r conftest 2>/dev/null
9094 mkdir conftest
9095 cd conftest
9096 mkdir out
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9098
8d138742
CE
9099 lt_compiler_flag="-o out/conftest2.$ac_objext"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:9108: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>out/conftest.err)
9110 ac_status=$?
9111 cat out/conftest.err >&5
9112 echo "$as_me:9112: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9114 then
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings
9117 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_c_o=yes
9121 fi
9122 fi
9123 chmod u+w . 2>&5
9124 $RM conftest*
9125 # SGI C++ compiler will create directory out/ii_files/ for
9126 # template instantiation
9127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9128 $RM out/* && rmdir out
9129 cd ..
9130 $RM -r conftest
9131 $RM conftest*
d9898ee8 9132
d9898ee8 9133fi
8d138742
CE
9134{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9135$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
dd184caf 9136
d9898ee8 9137
d9898ee8 9138
dd184caf 9139
d9898ee8 9140
8d138742
CE
9141
9142 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9143$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9144if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9145 $as_echo_n "(cached) " >&6
d9898ee8 9146else
8d138742
CE
9147 lt_cv_prog_compiler_c_o=no
9148 $RM -r conftest 2>/dev/null
9149 mkdir conftest
9150 cd conftest
9151 mkdir out
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9153
8d138742
CE
9154 lt_compiler_flag="-o out/conftest2.$ac_objext"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 lt_compile=`echo "$ac_compile" | $SED \
9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162 -e 's:$: $lt_compiler_flag:'`
9163 (eval echo "\"\$as_me:9163: $lt_compile\"" >&5)
9164 (eval "$lt_compile" 2>out/conftest.err)
9165 ac_status=$?
9166 cat out/conftest.err >&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9169 then
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings
9172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_c_o=yes
9176 fi
9177 fi
9178 chmod u+w . 2>&5
9179 $RM conftest*
9180 # SGI C++ compiler will create directory out/ii_files/ for
9181 # template instantiation
9182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9183 $RM out/* && rmdir out
9184 cd ..
9185 $RM -r conftest
9186 $RM conftest*
dd184caf 9187
d9898ee8 9188fi
8d138742
CE
9189{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9190$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 9191
9192
d9898ee8 9193
9194
8d138742
CE
9195hard_links="nottested"
9196if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9197 # do not overwrite the value of need_locks provided by the user
9198 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9199$as_echo_n "checking if we can lock with hard links... " >&6; }
9200 hard_links=yes
9201 $RM conftest*
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203 touch conftest.a
9204 ln conftest.a conftest.b 2>&5 || hard_links=no
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9207$as_echo "$hard_links" >&6; }
9208 if test "$hard_links" = no; then
9209 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9210$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9211 need_locks=warn
9212 fi
9213else
9214 need_locks=no
9215fi
d9898ee8 9216
9217
d9898ee8 9218
9219
d9898ee8 9220
9221
8d138742
CE
9222 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9223$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9224
9225 runpath_var=
9226 allow_undefined_flag=
9227 always_export_symbols=no
9228 archive_cmds=
9229 archive_expsym_cmds=
9230 compiler_needs_object=no
9231 enable_shared_with_static_runtimes=no
9232 export_dynamic_flag_spec=
9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9234 hardcode_automatic=no
9235 hardcode_direct=no
9236 hardcode_direct_absolute=no
9237 hardcode_libdir_flag_spec=
9238 hardcode_libdir_flag_spec_ld=
9239 hardcode_libdir_separator=
9240 hardcode_minus_L=no
9241 hardcode_shlibpath_var=unsupported
9242 inherit_rpath=no
9243 link_all_deplibs=unknown
9244 module_cmds=
9245 module_expsym_cmds=
9246 old_archive_from_new_cmds=
9247 old_archive_from_expsyms_cmds=
9248 thread_safe_flag_spec=
9249 whole_archive_flag_spec=
9250 # include_expsyms should be a list of space-separated symbols to be *always*
9251 # included in the symbol list
9252 include_expsyms=
9253 # exclude_expsyms can be an extended regexp of symbols to exclude
9254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9256 # as well as any symbol that contains `d'.
9257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9259 # platforms (ab)use it in PIC code, but their linkers get confused if
9260 # the symbol is explicitly referenced. Since portable code cannot
9261 # rely on this symbol name, it's probably fine to never include it in
9262 # preloaded symbol tables.
9263 # Exclude shared library initialization/finalization symbols.
9264 extract_expsyms_cmds=
d9898ee8 9265
8d138742
CE
9266 case $host_os in
9267 cygwin* | mingw* | pw32* | cegcc*)
9268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9269 # When not using gcc, we currently assume that we are using
9270 # Microsoft Visual C++.
9271 if test "$GCC" != yes; then
9272 with_gnu_ld=no
9273 fi
9274 ;;
9275 interix*)
9276 # we just hope/assume this is gcc and not c89 (= MSVC++)
9277 with_gnu_ld=yes
9278 ;;
9279 openbsd*)
9280 with_gnu_ld=no
d9898ee8 9281 ;;
9282 esac
9283
8d138742
CE
9284 ld_shlibs=yes
9285 if test "$with_gnu_ld" = yes; then
9286 # If archive_cmds runs LD, not CC, wlarc should be empty
9287 wlarc='${wl}'
d9898ee8 9288
8d138742
CE
9289 # Set some defaults for GNU ld with shared library support. These
9290 # are reset later if shared libraries are not supported. Putting them
9291 # here allows them to be overridden if necessary.
9292 runpath_var=LD_RUN_PATH
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 export_dynamic_flag_spec='${wl}--export-dynamic'
9295 # ancient GNU ld didn't support --whole-archive et. al.
9296 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9297 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9298 else
9299 whole_archive_flag_spec=
9300 fi
9301 supports_anon_versioning=no
9302 case `$LD -v 2>&1` in
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9306 *\ 2.11.*) ;; # other 2.11 versions
9307 *) supports_anon_versioning=yes ;;
9308 esac
d9898ee8 9309
8d138742
CE
9310 # See if GNU ld supports shared libraries.
9311 case $host_os in
9312 aix[3-9]*)
9313 # On AIX/PPC, the GNU linker is very broken
9314 if test "$host_cpu" != ia64; then
9315 ld_shlibs=no
9316 cat <<_LT_EOF 1>&2
d9898ee8 9317
8d138742
CE
9318*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9319*** to be unable to reliably create shared libraries on AIX.
9320*** Therefore, libtool is disabling shared libraries support. If you
9321*** really care for shared libraries, you may want to modify your PATH
9322*** so that a non-GNU linker is found, and then restart.
d9898ee8 9323
8d138742
CE
9324_LT_EOF
9325 fi
9326 ;;
d9898ee8 9327
8d138742
CE
9328 amigaos*)
9329 case $host_cpu in
9330 powerpc)
9331 # see comment about AmigaOS4 .so support
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds=''
9334 ;;
9335 m68k)
9336 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)'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_minus_L=yes
9339 ;;
9340 esac
9341 ;;
d9898ee8 9342
8d138742
CE
9343 beos*)
9344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345 allow_undefined_flag=unsupported
9346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9347 # support --undefined. This deserves some investigation. FIXME
9348 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 else
9350 ld_shlibs=no
9351 fi
9352 ;;
d9898ee8 9353
8d138742
CE
9354 cygwin* | mingw* | pw32* | cegcc*)
9355 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9356 # as there is no search path for DLLs.
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 allow_undefined_flag=unsupported
9359 always_export_symbols=no
9360 enable_shared_with_static_runtimes=yes
9361 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 9362
8d138742
CE
9363 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9365 # If the export-symbols file already is a .def file (1st line
9366 # is EXPORTS), use it as is; otherwise, prepend...
9367 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9368 cp $export_symbols $output_objdir/$soname.def;
9369 else
9370 echo EXPORTS > $output_objdir/$soname.def;
9371 cat $export_symbols >> $output_objdir/$soname.def;
9372 fi~
9373 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9374 else
9375 ld_shlibs=no
9376 fi
9377 ;;
d9898ee8 9378
8d138742
CE
9379 interix[3-9]*)
9380 hardcode_direct=no
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383 export_dynamic_flag_spec='${wl}-E'
9384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9385 # Instead, shared libraries are loaded at an image base (0x10000000 by
9386 # default) and relocated if they conflict, which is a slow very memory
9387 # consuming and fragmenting process. To avoid this, we pick a random,
9388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9391 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'
9392 ;;
d9898ee8 9393
8d138742
CE
9394 gnu* | linux* | tpf* | k*bsd*-gnu)
9395 tmp_diet=no
9396 if test "$host_os" = linux-dietlibc; then
9397 case $cc_basename in
9398 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9399 esac
9400 fi
9401 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9402 && test "$tmp_diet" = no
9403 then
9404 tmp_addflag=
9405 tmp_sharedflag='-shared'
9406 case $cc_basename,$host_cpu in
9407 pgcc*) # Portland Group C compiler
9408 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'
9409 tmp_addflag=' $pic_flag'
9410 ;;
9411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9412 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'
9413 tmp_addflag=' $pic_flag -Mnomain' ;;
9414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9415 tmp_addflag=' -i_dynamic' ;;
9416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9417 tmp_addflag=' -i_dynamic -nofor_main' ;;
9418 ifc* | ifort*) # Intel Fortran compiler
9419 tmp_addflag=' -nofor_main' ;;
9420 lf95*) # Lahey Fortran 8.1
9421 whole_archive_flag_spec=
9422 tmp_sharedflag='--shared' ;;
9423 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9424 tmp_sharedflag='-qmkshrobj'
9425 tmp_addflag= ;;
9426 esac
9427 case `$CC -V 2>&1 | sed 5q` in
9428 *Sun\ C*) # Sun C 5.9
9429 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'
9430 compiler_needs_object=yes
9431 tmp_sharedflag='-G' ;;
9432 *Sun\ F*) # Sun Fortran 8.3
9433 tmp_sharedflag='-G' ;;
9434 esac
9435 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 9436
8d138742
CE
9437 if test "x$supports_anon_versioning" = xyes; then
9438 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9440 echo "local: *; };" >> $output_objdir/$libname.ver~
9441 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9442 fi
d9898ee8 9443
8d138742
CE
9444 case $cc_basename in
9445 xlf*)
9446 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9447 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9448 hardcode_libdir_flag_spec=
9449 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9450 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9451 if test "x$supports_anon_versioning" = xyes; then
9452 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9454 echo "local: *; };" >> $output_objdir/$libname.ver~
9455 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9456 fi
9457 ;;
9458 esac
9459 else
9460 ld_shlibs=no
9461 fi
9462 ;;
d9898ee8 9463
8d138742
CE
9464 netbsd*)
9465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9466 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9467 wlarc=
9468 else
9469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9471 fi
9472 ;;
d9898ee8 9473
8d138742
CE
9474 solaris*)
9475 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9476 ld_shlibs=no
9477 cat <<_LT_EOF 1>&2
d9898ee8 9478
8d138742
CE
9479*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9480*** create shared libraries on Solaris systems. Therefore, libtool
9481*** is disabling shared libraries support. We urge you to upgrade GNU
9482*** binutils to release 2.9.1 or newer. Another option is to modify
9483*** your PATH or compiler configuration so that the native linker is
9484*** used, and then restart.
d9898ee8 9485
8d138742
CE
9486_LT_EOF
9487 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9490 else
9491 ld_shlibs=no
9492 fi
9493 ;;
d9898ee8 9494
8d138742
CE
9495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9496 case `$LD -v 2>&1` in
9497 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9498 ld_shlibs=no
9499 cat <<_LT_EOF 1>&2
d9898ee8 9500
8d138742
CE
9501*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9502*** reliably create shared libraries on SCO systems. Therefore, libtool
9503*** is disabling shared libraries support. We urge you to upgrade GNU
9504*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9505*** your PATH or compiler configuration so that the native linker is
9506*** used, and then restart.
d9898ee8 9507
8d138742
CE
9508_LT_EOF
9509 ;;
9510 *)
9511 # For security reasons, it is highly recommended that you always
9512 # use absolute paths for naming shared libraries, and exclude the
9513 # DT_RUNPATH tag from executables and libraries. But doing so
9514 # requires that you compile everything twice, which is a pain.
9515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519 else
9520 ld_shlibs=no
9521 fi
9522 ;;
9523 esac
9524 ;;
d9898ee8 9525
8d138742
CE
9526 sunos4*)
9527 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9528 wlarc=
9529 hardcode_direct=yes
9530 hardcode_shlibpath_var=no
d9898ee8 9531 ;;
8d138742 9532
d9898ee8 9533 *)
8d138742
CE
9534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9537 else
9538 ld_shlibs=no
9539 fi
d9898ee8 9540 ;;
9541 esac
d9898ee8 9542
8d138742
CE
9543 if test "$ld_shlibs" = no; then
9544 runpath_var=
9545 hardcode_libdir_flag_spec=
9546 export_dynamic_flag_spec=
9547 whole_archive_flag_spec=
9548 fi
9549 else
9550 # PORTME fill in a description of your system's linker (not GNU ld)
9551 case $host_os in
9552 aix3*)
9553 allow_undefined_flag=unsupported
9554 always_export_symbols=yes
9555 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'
9556 # Note: this linker hardcodes the directories in LIBPATH if there
9557 # are no directories specified by -L.
9558 hardcode_minus_L=yes
9559 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9560 # Neither direct hardcoding nor static linking is supported with a
9561 # broken collect2.
9562 hardcode_direct=unsupported
9563 fi
9564 ;;
d9898ee8 9565
8d138742
CE
9566 aix[4-9]*)
9567 if test "$host_cpu" = ia64; then
9568 # On IA64, the linker does run time linking by default, so we don't
9569 # have to do anything special.
9570 aix_use_runtimelinking=no
9571 exp_sym_flag='-Bexport'
9572 no_entry_flag=""
9573 else
9574 # If we're using GNU nm, then we don't want the "-C" option.
9575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9576 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9577 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'
9578 else
9579 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'
9580 fi
9581 aix_use_runtimelinking=no
d9898ee8 9582
8d138742
CE
9583 # Test if we are trying to use run time linking or normal
9584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9585 # need to do runtime linking.
9586 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9587 for ld_flag in $LDFLAGS; do
9588 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9589 aix_use_runtimelinking=yes
9590 break
9591 fi
9592 done
9593 ;;
9594 esac
d9898ee8 9595
8d138742
CE
9596 exp_sym_flag='-bexport'
9597 no_entry_flag='-bnoentry'
9598 fi
d9898ee8 9599
8d138742
CE
9600 # When large executables or shared objects are built, AIX ld can
9601 # have problems creating the table of contents. If linking a library
9602 # or program results in "error TOC overflow" add -mminimal-toc to
9603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 9605
8d138742
CE
9606 archive_cmds=''
9607 hardcode_direct=yes
9608 hardcode_direct_absolute=yes
9609 hardcode_libdir_separator=':'
9610 link_all_deplibs=yes
9611 file_list_spec='${wl}-f,'
d9898ee8 9612
8d138742
CE
9613 if test "$GCC" = yes; then
9614 case $host_os in aix4.[012]|aix4.[012].*)
9615 # We only want to do this on AIX 4.2 and lower, the check
9616 # below for broken collect2 doesn't work under 4.3+
9617 collect2name=`${CC} -print-prog-name=collect2`
9618 if test -f "$collect2name" &&
9619 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9620 then
9621 # We have reworked collect2
9622 :
9623 else
9624 # We have old collect2
9625 hardcode_direct=unsupported
9626 # It fails to find uninstalled libraries when the uninstalled
9627 # path is not listed in the libpath. Setting hardcode_minus_L
9628 # to unsupported forces relinking
9629 hardcode_minus_L=yes
9630 hardcode_libdir_flag_spec='-L$libdir'
9631 hardcode_libdir_separator=
9632 fi
9633 ;;
9634 esac
9635 shared_flag='-shared'
9636 if test "$aix_use_runtimelinking" = yes; then
9637 shared_flag="$shared_flag "'${wl}-G'
9638 fi
9639 else
9640 # not using gcc
9641 if test "$host_cpu" = ia64; then
9642 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9643 # chokes on -Wl,-G. The following line is correct:
9644 shared_flag='-G'
9645 else
9646 if test "$aix_use_runtimelinking" = yes; then
9647 shared_flag='${wl}-G'
9648 else
9649 shared_flag='${wl}-bM:SRE'
9650 fi
9651 fi
9652 fi
d9898ee8 9653
8d138742
CE
9654 export_dynamic_flag_spec='${wl}-bexpall'
9655 # It seems that -bexpall does not export symbols beginning with
9656 # underscore (_), so it is better to generate a list of symbols to export.
9657 always_export_symbols=yes
9658 if test "$aix_use_runtimelinking" = yes; then
9659 # Warning - without using the other runtime loading flags (-brtl),
9660 # -berok will link without error, but may produce a broken library.
9661 allow_undefined_flag='-berok'
9662 # Determine the default libpath from the value encoded in an
9663 # empty executable.
9664 cat >conftest.$ac_ext <<_ACEOF
9665/* confdefs.h. */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h. */
d9898ee8 9670
8d138742
CE
9671int
9672main ()
9673{
d9898ee8 9674
8d138742
CE
9675 ;
9676 return 0;
9677}
9678_ACEOF
9679rm -f conftest.$ac_objext conftest$ac_exeext
9680if { (ac_try="$ac_link"
9681case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684esac
9685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9686$as_echo "$ac_try_echo") >&5
9687 (eval "$ac_link") 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest$ac_exeext && {
9697 test "$cross_compiling" = yes ||
9698 $as_test_x conftest$ac_exeext
9699 }; then
d9898ee8 9700
8d138742
CE
9701lt_aix_libpath_sed='
9702 /Import File Strings/,/^$/ {
9703 /^0/ {
9704 s/^0 *\(.*\)$/\1/
9705 p
9706 }
9707 }'
9708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709# Check for a 64-bit object if we didn't find anything.
9710if test -z "$aix_libpath"; then
9711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712fi
9713else
9714 $as_echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9716
d9898ee8 9717
8d138742 9718fi
d9898ee8 9719
8d138742
CE
9720rm -rf conftest.dSYM
9721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722 conftest$ac_exeext conftest.$ac_ext
9723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 9724
8d138742
CE
9725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 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"
9727 else
9728 if test "$host_cpu" = ia64; then
9729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9730 allow_undefined_flag="-z nodefs"
9731 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"
9732 else
9733 # Determine the default libpath from the value encoded in an
9734 # empty executable.
9735 cat >conftest.$ac_ext <<_ACEOF
9736/* confdefs.h. */
9737_ACEOF
9738cat confdefs.h >>conftest.$ac_ext
9739cat >>conftest.$ac_ext <<_ACEOF
9740/* end confdefs.h. */
d9898ee8 9741
8d138742
CE
9742int
9743main ()
9744{
d9898ee8 9745
8d138742
CE
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext conftest$ac_exeext
9751if { (ac_try="$ac_link"
9752case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9757$as_echo "$ac_try_echo") >&5
9758 (eval "$ac_link") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext && {
9768 test "$cross_compiling" = yes ||
9769 $as_test_x conftest$ac_exeext
9770 }; then
d9898ee8 9771
8d138742
CE
9772lt_aix_libpath_sed='
9773 /Import File Strings/,/^$/ {
9774 /^0/ {
9775 s/^0 *\(.*\)$/\1/
9776 p
9777 }
9778 }'
9779aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9780# Check for a 64-bit object if we didn't find anything.
9781if test -z "$aix_libpath"; then
9782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9783fi
9784else
9785 $as_echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9787
d9898ee8 9788
8d138742 9789fi
d9898ee8 9790
8d138742
CE
9791rm -rf conftest.dSYM
9792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9793 conftest$ac_exeext conftest.$ac_ext
9794if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 9795
8d138742
CE
9796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9797 # Warning - without using the other run time loading flags,
9798 # -berok will link without error, but may produce a broken library.
9799 no_undefined_flag=' ${wl}-bernotok'
9800 allow_undefined_flag=' ${wl}-berok'
9801 # Exported symbols can be pulled into shared objects from archives
9802 whole_archive_flag_spec='$convenience'
9803 archive_cmds_need_lc=yes
9804 # This is similar to how AIX traditionally builds its shared libraries.
9805 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'
9806 fi
9807 fi
9808 ;;
d9898ee8 9809
8d138742
CE
9810 amigaos*)
9811 case $host_cpu in
9812 powerpc)
9813 # see comment about AmigaOS4 .so support
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 archive_expsym_cmds=''
9816 ;;
9817 m68k)
9818 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)'
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9821 ;;
9822 esac
9823 ;;
d9898ee8 9824
8d138742
CE
9825 bsdi[45]*)
9826 export_dynamic_flag_spec=-rdynamic
9827 ;;
d9898ee8 9828
8d138742
CE
9829 cygwin* | mingw* | pw32* | cegcc*)
9830 # When not using gcc, we currently assume that we are using
9831 # Microsoft Visual C++.
9832 # hardcode_libdir_flag_spec is actually meaningless, as there is
9833 # no search path for DLLs.
9834 hardcode_libdir_flag_spec=' '
9835 allow_undefined_flag=unsupported
9836 # Tell ltmain to make .lib files, not .a files.
9837 libext=lib
9838 # Tell ltmain to make .dll files, not .so files.
9839 shrext_cmds=".dll"
9840 # FIXME: Setting linknames here is a bad hack.
9841 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9842 # The linker will automatically build a .lib file if we build a DLL.
9843 old_archive_from_new_cmds='true'
9844 # FIXME: Should let the user specify the lib program.
9845 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9846 fix_srcfile_path='`cygpath -w "$srcfile"`'
9847 enable_shared_with_static_runtimes=yes
9848 ;;
d9898ee8 9849
8d138742 9850 darwin* | rhapsody*)
d9898ee8 9851
d9898ee8 9852
8d138742
CE
9853 archive_cmds_need_lc=no
9854 hardcode_direct=no
9855 hardcode_automatic=yes
9856 hardcode_shlibpath_var=unsupported
9857 whole_archive_flag_spec=''
9858 link_all_deplibs=yes
9859 allow_undefined_flag="$_lt_dar_allow_undefined"
9860 case $cc_basename in
9861 ifort*) _lt_dar_can_shared=yes ;;
9862 *) _lt_dar_can_shared=$GCC ;;
9863 esac
9864 if test "$_lt_dar_can_shared" = "yes"; then
9865 output_verbose_link_cmd=echo
9866 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9867 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9868 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}"
9869 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 9870
8d138742
CE
9871 else
9872 ld_shlibs=no
9873 fi
d9898ee8 9874
8d138742 9875 ;;
d9898ee8 9876
8d138742
CE
9877 dgux*)
9878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879 hardcode_libdir_flag_spec='-L$libdir'
9880 hardcode_shlibpath_var=no
9881 ;;
d9898ee8 9882
8d138742
CE
9883 freebsd1*)
9884 ld_shlibs=no
9885 ;;
d9898ee8 9886
8d138742
CE
9887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9888 # support. Future versions do this automatically, but an explicit c++rt0.o
9889 # does not break anything, and helps significantly (at the cost of a little
9890 # extra space).
9891 freebsd2.2*)
9892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9893 hardcode_libdir_flag_spec='-R$libdir'
9894 hardcode_direct=yes
9895 hardcode_shlibpath_var=no
9896 ;;
d9898ee8 9897
8d138742
CE
9898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9899 freebsd2*)
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_direct=yes
9902 hardcode_minus_L=yes
9903 hardcode_shlibpath_var=no
9904 ;;
d9898ee8 9905
8d138742
CE
9906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9907 freebsd* | dragonfly*)
9908 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9909 hardcode_libdir_flag_spec='-R$libdir'
9910 hardcode_direct=yes
9911 hardcode_shlibpath_var=no
9912 ;;
d9898ee8 9913
8d138742
CE
9914 hpux9*)
9915 if test "$GCC" = yes; then
9916 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'
9917 else
9918 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'
9919 fi
9920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921 hardcode_libdir_separator=:
9922 hardcode_direct=yes
d9898ee8 9923
8d138742
CE
9924 # hardcode_minus_L: Not really in the search PATH,
9925 # but as the default location of the library.
9926 hardcode_minus_L=yes
9927 export_dynamic_flag_spec='${wl}-E'
9928 ;;
d9898ee8 9929
8d138742
CE
9930 hpux10*)
9931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9932 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9933 else
9934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9935 fi
9936 if test "$with_gnu_ld" = no; then
9937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9938 hardcode_libdir_flag_spec_ld='+b $libdir'
9939 hardcode_libdir_separator=:
9940 hardcode_direct=yes
9941 hardcode_direct_absolute=yes
9942 export_dynamic_flag_spec='${wl}-E'
9943 # hardcode_minus_L: Not really in the search PATH,
9944 # but as the default location of the library.
9945 hardcode_minus_L=yes
9946 fi
9947 ;;
d9898ee8 9948
8d138742
CE
9949 hpux11*)
9950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9951 case $host_cpu in
9952 hppa*64*)
9953 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954 ;;
9955 ia64*)
9956 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9957 ;;
9958 *)
9959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9960 ;;
9961 esac
9962 else
9963 case $host_cpu in
9964 hppa*64*)
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9966 ;;
9967 ia64*)
9968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969 ;;
9970 *)
9971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972 ;;
9973 esac
9974 fi
9975 if test "$with_gnu_ld" = no; then
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
d9898ee8 9978
8d138742
CE
9979 case $host_cpu in
9980 hppa*64*|ia64*)
9981 hardcode_direct=no
9982 hardcode_shlibpath_var=no
9983 ;;
9984 *)
9985 hardcode_direct=yes
9986 hardcode_direct_absolute=yes
9987 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9988
8d138742
CE
9989 # hardcode_minus_L: Not really in the search PATH,
9990 # but as the default location of the library.
9991 hardcode_minus_L=yes
9992 ;;
9993 esac
9994 fi
9995 ;;
d9898ee8 9996
8d138742
CE
9997 irix5* | irix6* | nonstopux*)
9998 if test "$GCC" = yes; then
9999 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'
10000 # Try to use the -exported_symbol ld option, if it does not
10001 # work, assume that -exports_file does not work either and
10002 # implicitly export all symbols.
10003 save_LDFLAGS="$LDFLAGS"
10004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10005 cat >conftest.$ac_ext <<_ACEOF
10006int foo(void) {}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (ac_try="$ac_link"
10010case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013esac
10014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10015$as_echo "$ac_try_echo") >&5
10016 (eval "$ac_link") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && {
10023 test -z "$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 } && test -s conftest$ac_exeext && {
10026 test "$cross_compiling" = yes ||
10027 $as_test_x conftest$ac_exeext
10028 }; then
10029 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 10030
8d138742
CE
10031else
10032 $as_echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10034
d9898ee8 10035
8d138742 10036fi
d9898ee8 10037
8d138742
CE
10038rm -rf conftest.dSYM
10039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LDFLAGS="$save_LDFLAGS"
10042 else
10043 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'
10044 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'
10045 fi
10046 archive_cmds_need_lc='no'
10047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10048 hardcode_libdir_separator=:
10049 inherit_rpath=yes
10050 link_all_deplibs=yes
10051 ;;
d9898ee8 10052
8d138742
CE
10053 netbsd*)
10054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10056 else
10057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10058 fi
10059 hardcode_libdir_flag_spec='-R$libdir'
10060 hardcode_direct=yes
10061 hardcode_shlibpath_var=no
10062 ;;
d9898ee8 10063
8d138742
CE
10064 newsos6)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=yes
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 hardcode_libdir_separator=:
10069 hardcode_shlibpath_var=no
10070 ;;
d9898ee8 10071
8d138742
CE
10072 *nto* | *qnx*)
10073 ;;
d9898ee8 10074
8d138742
CE
10075 openbsd*)
10076 if test -f /usr/libexec/ld.so; then
10077 hardcode_direct=yes
10078 hardcode_shlibpath_var=no
10079 hardcode_direct_absolute=yes
10080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10084 export_dynamic_flag_spec='${wl}-E'
10085 else
10086 case $host_os in
10087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-R$libdir'
10090 ;;
10091 *)
10092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10094 ;;
10095 esac
10096 fi
10097 else
10098 ld_shlibs=no
10099 fi
10100 ;;
d9898ee8 10101
8d138742
CE
10102 os2*)
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_minus_L=yes
10105 allow_undefined_flag=unsupported
10106 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'
10107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10108 ;;
d9898ee8 10109
8d138742
CE
10110 osf3*)
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 else
10115 allow_undefined_flag=' -expect_unresolved \*'
10116 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'
10117 fi
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 ;;
d9898ee8 10122
8d138742
CE
10123 osf4* | osf5*) # as osf3* with the addition of -msym flag
10124 if test "$GCC" = yes; then
10125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10126 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'
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 else
10129 allow_undefined_flag=' -expect_unresolved \*'
10130 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'
10131 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~
10132 $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 10133
8d138742
CE
10134 # Both c and cxx compiler support -rpath directly
10135 hardcode_libdir_flag_spec='-rpath $libdir'
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_separator=:
10139 ;;
d9898ee8 10140
8d138742
CE
10141 solaris*)
10142 no_undefined_flag=' -z defs'
10143 if test "$GCC" = yes; then
10144 wlarc='${wl}'
10145 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10148 else
10149 case `$CC -V 2>&1` in
10150 *"Compilers 5.0"*)
10151 wlarc=''
10152 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10155 ;;
10156 *)
10157 wlarc='${wl}'
10158 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10160 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10161 ;;
10162 esac
10163 fi
10164 hardcode_libdir_flag_spec='-R$libdir'
10165 hardcode_shlibpath_var=no
10166 case $host_os in
10167 solaris2.[0-5] | solaris2.[0-5].*) ;;
10168 *)
10169 # The compiler driver will combine and reorder linker options,
10170 # but understands `-z linker_flag'. GCC discards it without `$wl',
10171 # but is careful enough not to reorder.
10172 # Supported since Solaris 2.6 (maybe 2.5.1?)
10173 if test "$GCC" = yes; then
10174 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10175 else
10176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10177 fi
10178 ;;
10179 esac
10180 link_all_deplibs=yes
10181 ;;
d9898ee8 10182
8d138742
CE
10183 sunos4*)
10184 if test "x$host_vendor" = xsequent; then
10185 # Use $CC to link under sequent, because it throws in some extra .o
10186 # files that make .init and .fini sections work.
10187 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10188 else
10189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10190 fi
10191 hardcode_libdir_flag_spec='-L$libdir'
10192 hardcode_direct=yes
10193 hardcode_minus_L=yes
10194 hardcode_shlibpath_var=no
10195 ;;
d9898ee8 10196
8d138742
CE
10197 sysv4)
10198 case $host_vendor in
10199 sni)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=yes # is this really true???
10202 ;;
10203 siemens)
10204 ## LD is ld it makes a PLAMLIB
10205 ## CC just makes a GrossModule.
10206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10207 reload_cmds='$CC -r -o $output$reload_objs'
10208 hardcode_direct=no
10209 ;;
10210 motorola)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10213 ;;
10214 esac
10215 runpath_var='LD_RUN_PATH'
10216 hardcode_shlibpath_var=no
10217 ;;
d9898ee8 10218
8d138742
CE
10219 sysv4.3*)
10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 hardcode_shlibpath_var=no
10222 export_dynamic_flag_spec='-Bexport'
10223 ;;
d9898ee8 10224
8d138742
CE
10225 sysv4*MP*)
10226 if test -d /usr/nec; then
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_shlibpath_var=no
10229 runpath_var=LD_RUN_PATH
10230 hardcode_runpath_var=yes
10231 ld_shlibs=yes
10232 fi
10233 ;;
d9898ee8 10234
8d138742
CE
10235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10236 no_undefined_flag='${wl}-z,text'
10237 archive_cmds_need_lc=no
10238 hardcode_shlibpath_var=no
10239 runpath_var='LD_RUN_PATH'
d9898ee8 10240
8d138742
CE
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 fi
10248 ;;
d9898ee8 10249
8d138742
CE
10250 sysv5* | sco3.2v5* | sco5v6*)
10251 # Note: We can NOT use -z defs as we might desire, because we do not
10252 # link with -lc, and that would cause any symbols used from libc to
10253 # always be unresolved, which means just about no library would
10254 # ever link correctly. If we're not using GNU ld we use -z text
10255 # though, which does catch some bad symbols but isn't as heavy-handed
10256 # as -z defs.
10257 no_undefined_flag='${wl}-z,text'
10258 allow_undefined_flag='${wl}-z,nodefs'
10259 archive_cmds_need_lc=no
10260 hardcode_shlibpath_var=no
10261 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 export_dynamic_flag_spec='${wl}-Bexport'
10265 runpath_var='LD_RUN_PATH'
d9898ee8 10266
8d138742
CE
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 fi
10274 ;;
d9898ee8 10275
8d138742
CE
10276 uts4*)
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_libdir_flag_spec='-L$libdir'
10279 hardcode_shlibpath_var=no
10280 ;;
d9898ee8 10281
8d138742
CE
10282 *)
10283 ld_shlibs=no
10284 ;;
10285 esac
d9898ee8 10286
8d138742
CE
10287 if test x$host_vendor = xsni; then
10288 case $host in
10289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10290 export_dynamic_flag_spec='${wl}-Blargedynsym'
10291 ;;
10292 esac
10293 fi
10294 fi
d9898ee8 10295
8d138742
CE
10296{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10297$as_echo "$ld_shlibs" >&6; }
10298test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 10299
8d138742 10300with_gnu_ld=$with_gnu_ld
d9898ee8 10301
d9898ee8 10302
d9898ee8 10303
d9898ee8 10304
d9898ee8 10305
d9898ee8 10306
d9898ee8 10307
d9898ee8 10308
d9898ee8 10309
d9898ee8 10310
d9898ee8 10311
d9898ee8 10312
d9898ee8 10313
d9898ee8 10314
d9898ee8 10315
8d138742
CE
10316#
10317# Do we need to explicitly link libc?
10318#
10319case "x$archive_cmds_need_lc" in
10320x|xyes)
10321 # Assume -lc should be added
10322 archive_cmds_need_lc=yes
d9898ee8 10323
8d138742
CE
10324 if test "$enable_shared" = yes && test "$GCC" = yes; then
10325 case $archive_cmds in
10326 *'~'*)
10327 # FIXME: we may have to deal with multi-command sequences.
10328 ;;
10329 '$CC '*)
10330 # Test whether the compiler implicitly links with -lc since on some
10331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10332 # to ld, don't add -lc before -lgcc.
10333 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10334$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10335 $RM conftest*
10336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10337
8d138742
CE
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10340 ac_status=$?
10341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } 2>conftest.err; then
10343 soname=conftest
10344 lib=conftest
10345 libobjs=conftest.$ac_objext
10346 deplibs=
10347 wl=$lt_prog_compiler_wl
10348 pic_flag=$lt_prog_compiler_pic
10349 compiler_flags=-v
10350 linker_flags=-v
10351 verstring=
10352 output_objdir=.
10353 libname=conftest
10354 lt_save_allow_undefined_flag=$allow_undefined_flag
10355 allow_undefined_flag=
10356 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10357 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10358 ac_status=$?
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }
10361 then
10362 archive_cmds_need_lc=no
10363 else
10364 archive_cmds_need_lc=yes
10365 fi
10366 allow_undefined_flag=$lt_save_allow_undefined_flag
10367 else
10368 cat conftest.err 1>&5
10369 fi
10370 $RM conftest*
10371 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10372$as_echo "$archive_cmds_need_lc" >&6; }
10373 ;;
10374 esac
10375 fi
10376 ;;
10377esac
d9898ee8 10378
d9898ee8 10379
d9898ee8 10380
d9898ee8 10381
d9898ee8 10382
d9898ee8 10383
d9898ee8 10384
d9898ee8 10385
d9898ee8 10386
d9898ee8 10387
d9898ee8 10388
d9898ee8 10389
d9898ee8 10390
d9898ee8 10391
d9898ee8 10392
d9898ee8 10393
10394
d9898ee8 10395
d9898ee8 10396
d9898ee8 10397
d9898ee8 10398
d9898ee8 10399
10400
d9898ee8 10401
d9898ee8 10402
10403
dd184caf 10404
d9898ee8 10405
d9898ee8 10406
d9898ee8 10407
d9898ee8 10408
d9898ee8 10409
d9898ee8 10410
d9898ee8 10411
d9898ee8 10412
d9898ee8 10413
d9898ee8 10414
d9898ee8 10415
d9898ee8 10416
d9898ee8 10417
10418
d9898ee8 10419
d9898ee8 10420
10421
d9898ee8 10422
10423
d9898ee8 10424
d9898ee8 10425
10426
dd184caf 10427
d9898ee8 10428
d9898ee8 10429
10430
10431
d9898ee8 10432
d9898ee8 10433
d9898ee8 10434
d9898ee8 10435
d9898ee8 10436
d9898ee8 10437
d9898ee8 10438
d9898ee8 10439
d9898ee8 10440
d9898ee8 10441
d9898ee8 10442
d9898ee8 10443
d9898ee8 10444
dd184caf 10445
dd184caf 10446
d9898ee8 10447
d9898ee8 10448
d9898ee8 10449
d9898ee8 10450
d9898ee8 10451
d9898ee8 10452
dd184caf 10453
dd184caf 10454
d9898ee8 10455
d9898ee8 10456
d9898ee8 10457
d9898ee8 10458
d9898ee8 10459
d9898ee8 10460
d9898ee8 10461
d9898ee8 10462
d9898ee8 10463
d9898ee8 10464
d9898ee8 10465
d9898ee8 10466
d9898ee8 10467
d9898ee8 10468
d9898ee8 10469
d9898ee8 10470
d9898ee8 10471
d9898ee8 10472
d9898ee8 10473
d9898ee8 10474
d9898ee8 10475
d9898ee8 10476
d9898ee8 10477
d9898ee8 10478
10479
d9898ee8 10480
d9898ee8 10481
d9898ee8 10482
d9898ee8 10483
d9898ee8 10484
d9898ee8 10485
d9898ee8 10486
d9898ee8 10487
d9898ee8 10488
ac40fd9e 10489
ac40fd9e 10490
d9898ee8 10491
10492
d9898ee8 10493
d9898ee8 10494
d9898ee8 10495
d9898ee8 10496
d9898ee8 10497
d9898ee8 10498
d9898ee8 10499
d9898ee8 10500
d9898ee8 10501
d9898ee8 10502
d9898ee8 10503
d9898ee8 10504
d9898ee8 10505
d9898ee8 10506
10507
d9898ee8 10508
d9898ee8 10509
d9898ee8 10510
10511
d9898ee8 10512
d9898ee8 10513
d9898ee8 10514
d9898ee8 10515
d9898ee8 10516
d9898ee8 10517
d9898ee8 10518
ac40fd9e 10519
d9898ee8 10520
d9898ee8 10521
d9898ee8 10522
d9898ee8 10523
8d138742
CE
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10536$as_echo_n "checking dynamic linker characteristics... " >&6; }
10537
10538if test "$GCC" = yes; then
10539 case $host_os in
10540 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10541 *) lt_awk_arg="/^libraries:/" ;;
10542 esac
10543 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10544 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10545 # if the path contains ";" then we assume it to be the separator
10546 # otherwise default to the standard path separator (i.e. ":") - it is
10547 # assumed that no part of a normal pathname contains ";" but that should
10548 # okay in the real world where ";" in dirpaths is itself problematic.
10549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10550 else
10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10552 fi
10553 # Ok, now we have the path, separated by spaces, we can step through it
10554 # and add multilib dir if necessary.
10555 lt_tmp_lt_search_path_spec=
10556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557 for lt_sys_path in $lt_search_path_spec; do
10558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10560 else
10561 test -d "$lt_sys_path" && \
10562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10563 fi
10564 done
10565 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10566BEGIN {RS=" "; FS="/|\n";} {
10567 lt_foo="";
10568 lt_count=0;
10569 for (lt_i = NF; lt_i > 0; lt_i--) {
10570 if ($lt_i != "" && $lt_i != ".") {
10571 if ($lt_i == "..") {
10572 lt_count++;
10573 } else {
10574 if (lt_count == 0) {
10575 lt_foo="/" $lt_i lt_foo;
10576 } else {
10577 lt_count--;
10578 }
10579 }
10580 }
10581 }
10582 if (lt_foo != "") { lt_freq[lt_foo]++; }
10583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10584}'`
10585 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10586else
10587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10588fi
10589library_names_spec=
10590libname_spec='lib$name'
10591soname_spec=
10592shrext_cmds=".so"
10593postinstall_cmds=
10594postuninstall_cmds=
10595finish_cmds=
10596finish_eval=
10597shlibpath_var=
10598shlibpath_overrides_runpath=unknown
10599version_type=none
10600dynamic_linker="$host_os ld.so"
10601sys_lib_dlsearch_path_spec="/lib /usr/lib"
10602need_lib_prefix=unknown
10603hardcode_into_libs=no
10604
10605# when you set need_version to no, make sure it does not cause -set_version
10606# flags to be left without arguments
10607need_version=unknown
10608
10609case $host_os in
10610aix3*)
10611 version_type=linux
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10613 shlibpath_var=LIBPATH
10614
10615 # AIX 3 has no versioning support, so we append a major version to the name.
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 ;;
10618
10619aix[4-9]*)
10620 version_type=linux
10621 need_lib_prefix=no
10622 need_version=no
10623 hardcode_into_libs=yes
10624 if test "$host_cpu" = ia64; then
10625 # AIX 5 supports IA64
10626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 else
10629 # With GCC up to 2.95.x, collect2 would create an import file
10630 # for dependence libraries. The import file would start with
10631 # the line `#! .'. This would cause the generated library to
10632 # depend on `.', always an invalid library. This was fixed in
10633 # development snapshots of GCC prior to 3.0.
10634 case $host_os in
10635 aix4 | aix4.[01] | aix4.[01].*)
d9898ee8 10636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10637 echo ' yes '
8d138742 10638 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 10639 :
10640 else
10641 can_build_shared=no
10642 fi
10643 ;;
10644 esac
10645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10646 # soname into executable. Probably we can add versioning support to
10647 # collect2, so additional links can be useful in future.
10648 if test "$aix_use_runtimelinking" = yes; then
10649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10650 # instead of lib<name>.a to let people know that these are not
10651 # typical AIX shared libraries.
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 else
10654 # We preserve .a as extension for shared libraries through AIX4.2
10655 # and later when we are not doing run time linking.
10656 library_names_spec='${libname}${release}.a $libname.a'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 fi
10659 shlibpath_var=LIBPATH
10660 fi
10661 ;;
10662
10663amigaos*)
8d138742
CE
10664 case $host_cpu in
10665 powerpc)
10666 # Since July 2007 AmigaOS4 officially supports .so libraries.
10667 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 ;;
10670 m68k)
10671 library_names_spec='$libname.ixlibrary $libname.a'
10672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10673 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'
10674 ;;
10675 esac
d9898ee8 10676 ;;
10677
10678beos*)
10679 library_names_spec='${libname}${shared_ext}'
10680 dynamic_linker="$host_os ld.so"
10681 shlibpath_var=LIBRARY_PATH
10682 ;;
10683
10684bsdi[45]*)
10685 version_type=linux
10686 need_version=no
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10693 # the default ld.so.conf also contains /usr/contrib/lib and
10694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10695 # libtool to hard-code these into programs
10696 ;;
10697
8d138742 10698cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10699 version_type=windows
10700 shrext_cmds=".dll"
10701 need_version=no
10702 need_lib_prefix=no
10703
10704 case $GCC,$host_os in
8d138742 10705 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 10706 library_names_spec='$libname.dll.a'
10707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10708 postinstall_cmds='base_file=`basename \${file}`~
8d138742 10709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 10710 dldir=$destdir/`dirname \$dlpath`~
10711 test -d \$dldir || mkdir -p \$dldir~
10712 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10713 chmod a+x \$dldir/$dlname~
10714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10716 fi'
d9898ee8 10717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10718 dlpath=$dir/\$dldll~
8d138742 10719 $RM \$dlpath'
d9898ee8 10720 shlibpath_overrides_runpath=yes
10721
10722 case $host_os in
10723 cygwin*)
10724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10727 ;;
8d138742 10728 mingw* | cegcc*)
d9898ee8 10729 # MinGW DLLs use traditional 'lib' prefix
10730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
10731 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 10733 # It is most probably a Windows format PATH printed by
10734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10735 # path with ; separators, and with drive letters. We can handle the
10736 # drive letters (cygwin fileutils understands them), so leave them,
10737 # especially as we might pass files found there to a mingw objdump,
10738 # which wouldn't understand a cygwinified path. Ahh.
8d138742 10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 10740 else
8d138742 10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 10742 fi
10743 ;;
10744 pw32*)
10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
10746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 ;;
10748 esac
10749 ;;
10750
10751 *)
10752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10753 ;;
10754 esac
10755 dynamic_linker='Win32 ld.exe'
10756 # FIXME: first we should search . and the directory the executable is in
10757 shlibpath_var=PATH
10758 ;;
10759
10760darwin* | rhapsody*)
10761 dynamic_linker="$host_os dyld"
10762 version_type=darwin
10763 need_lib_prefix=no
10764 need_version=no
8d138742 10765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 10766 soname_spec='${libname}${release}${major}$shared_ext'
10767 shlibpath_overrides_runpath=yes
10768 shlibpath_var=DYLD_LIBRARY_PATH
10769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10770
8d138742 10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10773 ;;
10774
10775dgux*)
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 ;;
10783
10784freebsd1*)
10785 dynamic_linker=no
10786 ;;
10787
d9898ee8 10788freebsd* | dragonfly*)
10789 # DragonFly does not have aout. When/if they implement a new
10790 # versioning mechanism, adjust this.
10791 if test -x /usr/bin/objformat; then
10792 objformat=`/usr/bin/objformat`
10793 else
10794 case $host_os in
10795 freebsd[123]*) objformat=aout ;;
10796 *) objformat=elf ;;
10797 esac
10798 fi
10799 version_type=freebsd-$objformat
10800 case $version_type in
10801 freebsd-elf*)
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 need_version=no
10804 need_lib_prefix=no
10805 ;;
10806 freebsd-*)
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10808 need_version=yes
10809 ;;
10810 esac
10811 shlibpath_var=LD_LIBRARY_PATH
10812 case $host_os in
10813 freebsd2*)
10814 shlibpath_overrides_runpath=yes
10815 ;;
10816 freebsd3.[01]* | freebsdelf3.[01]*)
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10819 ;;
10820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10822 shlibpath_overrides_runpath=no
10823 hardcode_into_libs=yes
10824 ;;
ac40fd9e 10825 *) # from 4.6 on, and DragonFly
d9898ee8 10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 esac
10830 ;;
10831
10832gnu*)
10833 version_type=linux
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 hardcode_into_libs=yes
10840 ;;
10841
10842hpux9* | hpux10* | hpux11*)
10843 # Give a soname corresponding to the major version so that dld.sl refuses to
10844 # link against other versions.
10845 version_type=sunos
10846 need_lib_prefix=no
10847 need_version=no
10848 case $host_cpu in
10849 ia64*)
10850 shrext_cmds='.so'
10851 hardcode_into_libs=yes
10852 dynamic_linker="$host_os dld.so"
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 if test "X$HPUX_IA64_MODE" = X32; then
10858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10859 else
10860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10861 fi
10862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10863 ;;
8d138742
CE
10864 hppa*64*)
10865 shrext_cmds='.sl'
10866 hardcode_into_libs=yes
10867 dynamic_linker="$host_os dld.sl"
10868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10874 ;;
10875 *)
d9898ee8 10876 shrext_cmds='.sl'
10877 dynamic_linker="$host_os dld.sl"
10878 shlibpath_var=SHLIB_PATH
10879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 ;;
10883 esac
10884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10885 postinstall_cmds='chmod 555 $lib'
10886 ;;
10887
ac40fd9e 10888interix[3-9]*)
d9898ee8 10889 version_type=linux
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=no
10897 hardcode_into_libs=yes
10898 ;;
10899
10900irix5* | irix6* | nonstopux*)
10901 case $host_os in
10902 nonstopux*) version_type=nonstopux ;;
10903 *)
10904 if test "$lt_cv_prog_gnu_ld" = yes; then
10905 version_type=linux
10906 else
10907 version_type=irix
10908 fi ;;
10909 esac
10910 need_lib_prefix=no
10911 need_version=no
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10914 case $host_os in
10915 irix5* | nonstopux*)
10916 libsuff= shlibsuff=
10917 ;;
10918 *)
10919 case $LD in # libtool.m4 will add one of these switches to LD
10920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10921 libsuff= shlibsuff= libmagic=32-bit;;
10922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10923 libsuff=32 shlibsuff=N32 libmagic=N32;;
10924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10926 *) libsuff= shlibsuff= libmagic=never-match;;
10927 esac
10928 ;;
10929 esac
10930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10931 shlibpath_overrides_runpath=no
10932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10934 hardcode_into_libs=yes
10935 ;;
10936
10937# No shared lib support for Linux oldld, aout, or coff.
10938linux*oldld* | linux*aout* | linux*coff*)
10939 dynamic_linker=no
10940 ;;
10941
10942# This must be Linux ELF.
ac40fd9e 10943linux* | k*bsd*-gnu)
d9898ee8 10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 shlibpath_overrides_runpath=no
8d138742
CE
10952 # Some binutils ld are patched to set DT_RUNPATH
10953 save_LDFLAGS=$LDFLAGS
10954 save_libdir=$libdir
10955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10957 cat >conftest.$ac_ext <<_ACEOF
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
10962/* end confdefs.h. */
10963
10964int
10965main ()
10966{
10967
10968 ;
10969 return 0;
10970}
10971_ACEOF
10972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10979$as_echo "$ac_try_echo") >&5
10980 (eval "$ac_link") 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_c_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest$ac_exeext && {
10990 test "$cross_compiling" = yes ||
10991 $as_test_x conftest$ac_exeext
10992 }; then
10993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10994 shlibpath_overrides_runpath=yes
10995fi
10996
10997else
10998 $as_echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001
11002fi
11003
11004rm -rf conftest.dSYM
11005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LDFLAGS=$save_LDFLAGS
11008 libdir=$save_libdir
11009
d9898ee8 11010 # This implies no fast_install, which is unacceptable.
11011 # Some rework will be needed to allow for fast_install
11012 # before this can be enabled.
11013 hardcode_into_libs=yes
8d138742
CE
11014
11015 # Add ABI-specific directories to the system library path.
11016 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 11017
11018 # Append ld.so.conf contents to the search path
11019 if test -f /etc/ld.so.conf; then
8d138742 11020 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 11021 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 11022 fi
11023
11024 # We used to test for /lib/ld.so.1 and disable shared libraries on
11025 # powerpc, because MkLinux only supported shared libraries with the
11026 # GNU dynamic linker. Since this was broken with cross compilers,
11027 # most powerpc-linux boxes support dynamic linking these days and
11028 # people can always --disable-shared, the test was removed, and we
11029 # assume the GNU/Linux dynamic linker is in use.
11030 dynamic_linker='GNU/Linux ld.so'
11031 ;;
11032
d9898ee8 11033netbsd*)
11034 version_type=sunos
11035 need_lib_prefix=no
11036 need_version=no
8d138742 11037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11040 dynamic_linker='NetBSD (a.out) ld.so'
11041 else
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 dynamic_linker='NetBSD ld.elf_so'
11045 fi
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11049 ;;
11050
11051newsos6)
11052 version_type=linux
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=yes
11056 ;;
11057
8d138742
CE
11058*nto* | *qnx*)
11059 version_type=qnx
d9898ee8 11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
11065 shlibpath_overrides_runpath=no
11066 hardcode_into_libs=yes
11067 dynamic_linker='ldqnx.so'
d9898ee8 11068 ;;
11069
11070openbsd*)
11071 version_type=sunos
11072 sys_lib_dlsearch_path_spec="/usr/lib"
11073 need_lib_prefix=no
11074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11075 case $host_os in
8d138742
CE
11076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11077 *) need_version=no ;;
d9898ee8 11078 esac
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 shlibpath_var=LD_LIBRARY_PATH
8d138742 11082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 11083 case $host_os in
11084 openbsd2.[89] | openbsd2.[89].*)
11085 shlibpath_overrides_runpath=no
11086 ;;
11087 *)
11088 shlibpath_overrides_runpath=yes
11089 ;;
11090 esac
11091 else
11092 shlibpath_overrides_runpath=yes
11093 fi
11094 ;;
11095
11096os2*)
11097 libname_spec='$name'
11098 shrext_cmds=".dll"
11099 need_lib_prefix=no
11100 library_names_spec='$libname${shared_ext} $libname.a'
11101 dynamic_linker='OS/2 ld.exe'
11102 shlibpath_var=LIBPATH
11103 ;;
11104
11105osf3* | osf4* | osf5*)
11106 version_type=osf
11107 need_lib_prefix=no
11108 need_version=no
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11114 ;;
11115
ac40fd9e 11116rdos*)
11117 dynamic_linker=no
11118 ;;
11119
d9898ee8 11120solaris*)
11121 version_type=linux
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 hardcode_into_libs=yes
11129 # ldd complains unless libraries are executable
11130 postinstall_cmds='chmod +x $lib'
11131 ;;
11132
11133sunos4*)
11134 version_type=sunos
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 if test "$with_gnu_ld" = yes; then
11140 need_lib_prefix=no
11141 fi
11142 need_version=yes
11143 ;;
11144
11145sysv4 | sysv4.3*)
11146 version_type=linux
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 case $host_vendor in
11151 sni)
11152 shlibpath_overrides_runpath=no
11153 need_lib_prefix=no
d9898ee8 11154 runpath_var=LD_RUN_PATH
11155 ;;
11156 siemens)
11157 need_lib_prefix=no
11158 ;;
11159 motorola)
11160 need_lib_prefix=no
11161 need_version=no
11162 shlibpath_overrides_runpath=no
11163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11164 ;;
11165 esac
11166 ;;
11167
11168sysv4*MP*)
11169 if test -d /usr/nec ;then
11170 version_type=linux
11171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11172 soname_spec='$libname${shared_ext}.$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 fi
11175 ;;
11176
11177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11178 version_type=freebsd-elf
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
8d138742 11184 shlibpath_overrides_runpath=yes
d9898ee8 11185 hardcode_into_libs=yes
11186 if test "$with_gnu_ld" = yes; then
11187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 11188 else
11189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 11190 case $host_os in
11191 sco3.2v5*)
11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11193 ;;
11194 esac
11195 fi
11196 sys_lib_dlsearch_path_spec='/usr/lib'
11197 ;;
11198
8d138742
CE
11199tpf*)
11200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11201 version_type=linux
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11208 ;;
11209
d9898ee8 11210uts4*)
11211 version_type=linux
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 ;;
11216
11217*)
11218 dynamic_linker=no
11219 ;;
11220esac
8d138742
CE
11221{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11222$as_echo "$dynamic_linker" >&6; }
d9898ee8 11223test "$dynamic_linker" = no && can_build_shared=no
11224
11225variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11226if test "$GCC" = yes; then
11227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11228fi
11229
8d138742
CE
11230if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 11232fi
8d138742
CE
11233if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 11235fi
11236
11237
d9898ee8 11238
d9898ee8 11239
d9898ee8 11240
d9898ee8 11241
d9898ee8 11242
d9898ee8 11243
d9898ee8 11244
d9898ee8 11245
d9898ee8 11246
d9898ee8 11247
d9898ee8 11248
d9898ee8 11249
d9898ee8 11250
d9898ee8 11251
d9898ee8 11252
d9898ee8 11253
d9898ee8 11254
d9898ee8 11255
d9898ee8 11256
d9898ee8 11257
d9898ee8 11258
d9898ee8 11259
d9898ee8 11260
d9898ee8 11261
d9898ee8 11262
d9898ee8 11263
d9898ee8 11264
d9898ee8 11265
d9898ee8 11266
d9898ee8 11267
d9898ee8 11268
d9898ee8 11269
d9898ee8 11270
d9898ee8 11271
d9898ee8 11272
d9898ee8 11273
d9898ee8 11274
d9898ee8 11275
d9898ee8 11276
d9898ee8 11277
d9898ee8 11278
d9898ee8 11279
d9898ee8 11280
d9898ee8 11281
d9898ee8 11282
d9898ee8 11283
d9898ee8 11284
d9898ee8 11285
d9898ee8 11286
d9898ee8 11287
d9898ee8 11288
d9898ee8 11289
d9898ee8 11290
d9898ee8 11291
d9898ee8 11292
d9898ee8 11293
d9898ee8 11294
d9898ee8 11295
d9898ee8 11296
d9898ee8 11297
d9898ee8 11298
d9898ee8 11299
d9898ee8 11300
d9898ee8 11301
d9898ee8 11302
d9898ee8 11303
d9898ee8 11304
d9898ee8 11305
d9898ee8 11306
d9898ee8 11307
d9898ee8 11308
d9898ee8 11309
d9898ee8 11310
d9898ee8 11311
d9898ee8 11312
d9898ee8 11313
d9898ee8 11314
d9898ee8 11315
d9898ee8 11316
d9898ee8 11317
d9898ee8 11318
d9898ee8 11319
d9898ee8 11320
d9898ee8 11321
d9898ee8 11322
8d138742
CE
11323 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11324$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11325hardcode_action=
11326if test -n "$hardcode_libdir_flag_spec" ||
11327 test -n "$runpath_var" ||
11328 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 11329
8d138742
CE
11330 # We can hardcode non-existent directories.
11331 if test "$hardcode_direct" != no &&
11332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11333 # have to relink, otherwise we might link with an installed library
11334 # when we should be linking with a yet-to-be-installed one
11335 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11336 test "$hardcode_minus_L" != no; then
11337 # Linking always hardcodes the temporary library directory.
11338 hardcode_action=relink
11339 else
11340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11341 hardcode_action=immediate
d9898ee8 11342 fi
8d138742
CE
11343else
11344 # We cannot hardcode anything, or else we can only hardcode existing
11345 # directories.
11346 hardcode_action=unsupported
d9898ee8 11347fi
8d138742
CE
11348{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11349$as_echo "$hardcode_action" >&6; }
d9898ee8 11350
8d138742
CE
11351if test "$hardcode_action" = relink ||
11352 test "$inherit_rpath" = yes; then
11353 # Fast installation is not supported
11354 enable_fast_install=no
11355elif test "$shlibpath_overrides_runpath" = yes ||
11356 test "$enable_shared" = no; then
11357 # Fast installation is not necessary
11358 enable_fast_install=needless
11359fi
d9898ee8 11360
d9898ee8 11361
d9898ee8 11362
d9898ee8 11363
d9898ee8 11364
d9898ee8 11365
8d138742
CE
11366 if test "x$enable_dlopen" != xyes; then
11367 enable_dlopen=unknown
11368 enable_dlopen_self=unknown
11369 enable_dlopen_self_static=unknown
11370else
11371 lt_cv_dlopen=no
11372 lt_cv_dlopen_libs=
d9898ee8 11373
8d138742
CE
11374 case $host_os in
11375 beos*)
11376 lt_cv_dlopen="load_add_on"
11377 lt_cv_dlopen_libs=
11378 lt_cv_dlopen_self=yes
11379 ;;
d9898ee8 11380
8d138742
CE
11381 mingw* | pw32* | cegcc*)
11382 lt_cv_dlopen="LoadLibrary"
11383 lt_cv_dlopen_libs=
11384 ;;
d9898ee8 11385
8d138742
CE
11386 cygwin*)
11387 lt_cv_dlopen="dlopen"
11388 lt_cv_dlopen_libs=
11389 ;;
d9898ee8 11390
8d138742
CE
11391 darwin*)
11392 # if libdl is installed we need to link against it
11393 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11394$as_echo_n "checking for dlopen in -ldl... " >&6; }
11395if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11396 $as_echo_n "(cached) " >&6
11397else
11398 ac_check_lib_save_LIBS=$LIBS
11399LIBS="-ldl $LIBS"
11400cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
d9898ee8 11406
8d138742
CE
11407/* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413char dlopen ();
11414int
11415main ()
11416{
11417return dlopen ();
11418 ;
11419 return 0;
11420}
11421_ACEOF
11422rm -f conftest.$ac_objext conftest$ac_exeext
11423if { (ac_try="$ac_link"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11429$as_echo "$ac_try_echo") >&5
11430 (eval "$ac_link") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest$ac_exeext && {
11440 test "$cross_compiling" = yes ||
11441 $as_test_x conftest$ac_exeext
11442 }; then
11443 ac_cv_lib_dl_dlopen=yes
11444else
11445 $as_echo "$as_me: failed program was:" >&5
11446sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11447
8d138742
CE
11448 ac_cv_lib_dl_dlopen=no
11449fi
d9898ee8 11450
8d138742
CE
11451rm -rf conftest.dSYM
11452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11454LIBS=$ac_check_lib_save_LIBS
11455fi
11456{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11457$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11458if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11460else
d9898ee8 11461
8d138742
CE
11462 lt_cv_dlopen="dyld"
11463 lt_cv_dlopen_libs=
11464 lt_cv_dlopen_self=yes
d9898ee8 11465
8d138742 11466fi
d9898ee8 11467
8d138742 11468 ;;
d9898ee8 11469
8d138742
CE
11470 *)
11471 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11472$as_echo_n "checking for shl_load... " >&6; }
11473if test "${ac_cv_func_shl_load+set}" = set; then
11474 $as_echo_n "(cached) " >&6
11475else
11476 cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11484#define shl_load innocuous_shl_load
d9898ee8 11485
8d138742
CE
11486/* System header to define __stub macros and hopefully few prototypes,
11487 which can conflict with char shl_load (); below.
11488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11489 <limits.h> exists even on freestanding compilers. */
d9898ee8 11490
8d138742
CE
11491#ifdef __STDC__
11492# include <limits.h>
11493#else
11494# include <assert.h>
11495#endif
d9898ee8 11496
8d138742 11497#undef shl_load
d9898ee8 11498
8d138742
CE
11499/* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502#ifdef __cplusplus
11503extern "C"
11504#endif
11505char shl_load ();
11506/* The GNU C library defines this for functions which it implements
11507 to always fail with ENOSYS. Some functions are actually named
11508 something starting with __ and the normal name is an alias. */
11509#if defined __stub_shl_load || defined __stub___shl_load
11510choke me
11511#endif
d9898ee8 11512
8d138742
CE
11513int
11514main ()
11515{
11516return shl_load ();
11517 ;
11518 return 0;
11519}
11520_ACEOF
11521rm -f conftest.$ac_objext conftest$ac_exeext
11522if { (ac_try="$ac_link"
11523case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
d9898ee8 11526esac
8d138742
CE
11527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11528$as_echo "$ac_try_echo") >&5
11529 (eval "$ac_link") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest$ac_exeext && {
11539 test "$cross_compiling" = yes ||
11540 $as_test_x conftest$ac_exeext
11541 }; then
11542 ac_cv_func_shl_load=yes
11543else
11544 $as_echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11546
8d138742 11547 ac_cv_func_shl_load=no
d9898ee8 11548fi
11549
8d138742
CE
11550rm -rf conftest.dSYM
11551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11552 conftest$ac_exeext conftest.$ac_ext
11553fi
11554{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11555$as_echo "$ac_cv_func_shl_load" >&6; }
11556if test "x$ac_cv_func_shl_load" = x""yes; then
11557 lt_cv_dlopen="shl_load"
11558else
11559 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11560$as_echo_n "checking for shl_load in -ldld... " >&6; }
11561if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11562 $as_echo_n "(cached) " >&6
11563else
11564 ac_check_lib_save_LIBS=$LIBS
11565LIBS="-ldld $LIBS"
11566cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
d9898ee8 11572
8d138742
CE
11573/* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579char shl_load ();
11580int
11581main ()
11582{
11583return shl_load ();
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588rm -f conftest.$ac_objext conftest$ac_exeext
11589if { (ac_try="$ac_link"
11590case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593esac
11594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11595$as_echo "$ac_try_echo") >&5
11596 (eval "$ac_link") 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest$ac_exeext && {
11606 test "$cross_compiling" = yes ||
11607 $as_test_x conftest$ac_exeext
11608 }; then
11609 ac_cv_lib_dld_shl_load=yes
d9898ee8 11610else
8d138742
CE
11611 $as_echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11613
8d138742 11614 ac_cv_lib_dld_shl_load=no
d9898ee8 11615fi
11616
8d138742
CE
11617rm -rf conftest.dSYM
11618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11619 conftest$ac_exeext conftest.$ac_ext
11620LIBS=$ac_check_lib_save_LIBS
11621fi
11622{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11623$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11624if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11626else
11627 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11628$as_echo_n "checking for dlopen... " >&6; }
11629if test "${ac_cv_func_dlopen+set}" = set; then
11630 $as_echo_n "(cached) " >&6
11631else
11632 cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640#define dlopen innocuous_dlopen
d9898ee8 11641
8d138742
CE
11642/* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char dlopen (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
d9898ee8 11646
8d138742
CE
11647#ifdef __STDC__
11648# include <limits.h>
11649#else
11650# include <assert.h>
11651#endif
d9898ee8 11652
8d138742 11653#undef dlopen
d9898ee8 11654
8d138742
CE
11655/* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658#ifdef __cplusplus
11659extern "C"
11660#endif
11661char dlopen ();
11662/* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665#if defined __stub_dlopen || defined __stub___dlopen
11666choke me
11667#endif
d9898ee8 11668
8d138742
CE
11669int
11670main ()
11671{
11672return dlopen ();
11673 ;
11674 return 0;
11675}
11676_ACEOF
11677rm -f conftest.$ac_objext conftest$ac_exeext
11678if { (ac_try="$ac_link"
11679case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682esac
11683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684$as_echo "$ac_try_echo") >&5
11685 (eval "$ac_link") 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } && {
11692 test -z "$ac_c_werror_flag" ||
11693 test ! -s conftest.err
11694 } && test -s conftest$ac_exeext && {
11695 test "$cross_compiling" = yes ||
11696 $as_test_x conftest$ac_exeext
11697 }; then
11698 ac_cv_func_dlopen=yes
11699else
11700 $as_echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11702
8d138742
CE
11703 ac_cv_func_dlopen=no
11704fi
d9898ee8 11705
8d138742
CE
11706rm -rf conftest.dSYM
11707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11709fi
11710{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11711$as_echo "$ac_cv_func_dlopen" >&6; }
11712if test "x$ac_cv_func_dlopen" = x""yes; then
11713 lt_cv_dlopen="dlopen"
11714else
11715 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11716$as_echo_n "checking for dlopen in -ldl... " >&6; }
11717if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11718 $as_echo_n "(cached) " >&6
11719else
11720 ac_check_lib_save_LIBS=$LIBS
11721LIBS="-ldl $LIBS"
11722cat >conftest.$ac_ext <<_ACEOF
11723/* confdefs.h. */
11724_ACEOF
11725cat confdefs.h >>conftest.$ac_ext
11726cat >>conftest.$ac_ext <<_ACEOF
11727/* end confdefs.h. */
d9898ee8 11728
8d138742
CE
11729/* Override any GCC internal prototype to avoid an error.
11730 Use char because int might match the return type of a GCC
11731 builtin and then its argument prototype would still apply. */
11732#ifdef __cplusplus
11733extern "C"
11734#endif
11735char dlopen ();
11736int
11737main ()
11738{
11739return dlopen ();
11740 ;
11741 return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext conftest$ac_exeext
11745if { (ac_try="$ac_link"
11746case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11751$as_echo "$ac_try_echo") >&5
11752 (eval "$ac_link") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext && {
11762 test "$cross_compiling" = yes ||
11763 $as_test_x conftest$ac_exeext
11764 }; then
11765 ac_cv_lib_dl_dlopen=yes
11766else
11767 $as_echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11769
8d138742
CE
11770 ac_cv_lib_dl_dlopen=no
11771fi
d9898ee8 11772
8d138742
CE
11773rm -rf conftest.dSYM
11774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775 conftest$ac_exeext conftest.$ac_ext
11776LIBS=$ac_check_lib_save_LIBS
11777fi
11778{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11779$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11780if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11782else
11783 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11784$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11785if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11786 $as_echo_n "(cached) " >&6
11787else
11788 ac_check_lib_save_LIBS=$LIBS
11789LIBS="-lsvld $LIBS"
11790cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
d9898ee8 11796
8d138742
CE
11797/* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803char dlopen ();
11804int
11805main ()
11806{
11807return dlopen ();
11808 ;
11809 return 0;
11810}
11811_ACEOF
11812rm -f conftest.$ac_objext conftest$ac_exeext
11813if { (ac_try="$ac_link"
11814case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11819$as_echo "$ac_try_echo") >&5
11820 (eval "$ac_link") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest$ac_exeext && {
11830 test "$cross_compiling" = yes ||
11831 $as_test_x conftest$ac_exeext
11832 }; then
11833 ac_cv_lib_svld_dlopen=yes
11834else
11835 $as_echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11837
8d138742
CE
11838 ac_cv_lib_svld_dlopen=no
11839fi
d9898ee8 11840
8d138742
CE
11841rm -rf conftest.dSYM
11842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11843 conftest$ac_exeext conftest.$ac_ext
11844LIBS=$ac_check_lib_save_LIBS
11845fi
11846{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11847$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11848if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11850else
11851 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11852$as_echo_n "checking for dld_link in -ldld... " >&6; }
11853if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11854 $as_echo_n "(cached) " >&6
11855else
11856 ac_check_lib_save_LIBS=$LIBS
11857LIBS="-ldld $LIBS"
11858cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
d9898ee8 11864
8d138742
CE
11865/* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11868#ifdef __cplusplus
11869extern "C"
11870#endif
11871char dld_link ();
11872int
11873main ()
11874{
11875return dld_link ();
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext conftest$ac_exeext
11881if { (ac_try="$ac_link"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11887$as_echo "$ac_try_echo") >&5
11888 (eval "$ac_link") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest$ac_exeext && {
11898 test "$cross_compiling" = yes ||
11899 $as_test_x conftest$ac_exeext
11900 }; then
11901 ac_cv_lib_dld_dld_link=yes
11902else
11903 $as_echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11905
8d138742
CE
11906 ac_cv_lib_dld_dld_link=no
11907fi
d9898ee8 11908
8d138742
CE
11909rm -rf conftest.dSYM
11910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11911 conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11915$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11916if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11918fi
d9898ee8 11919
d9898ee8 11920
8d138742 11921fi
d9898ee8 11922
d9898ee8 11923
8d138742 11924fi
d9898ee8 11925
d9898ee8 11926
8d138742 11927fi
d9898ee8 11928
d9898ee8 11929
8d138742 11930fi
d9898ee8 11931
d9898ee8 11932
8d138742 11933fi
d9898ee8 11934
8d138742
CE
11935 ;;
11936 esac
d9898ee8 11937
8d138742
CE
11938 if test "x$lt_cv_dlopen" != xno; then
11939 enable_dlopen=yes
11940 else
11941 enable_dlopen=no
11942 fi
d9898ee8 11943
8d138742
CE
11944 case $lt_cv_dlopen in
11945 dlopen)
11946 save_CPPFLAGS="$CPPFLAGS"
11947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11948
8d138742
CE
11949 save_LDFLAGS="$LDFLAGS"
11950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11951
8d138742
CE
11952 save_LIBS="$LIBS"
11953 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11954
8d138742
CE
11955 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11956$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11957if test "${lt_cv_dlopen_self+set}" = set; then
11958 $as_echo_n "(cached) " >&6
11959else
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self=cross
11962else
11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964 lt_status=$lt_dlunknown
11965 cat > conftest.$ac_ext <<_LT_EOF
11966#line 11966 "configure"
11967#include "confdefs.h"
d9898ee8 11968
8d138742
CE
11969#if HAVE_DLFCN_H
11970#include <dlfcn.h>
11971#endif
d9898ee8 11972
8d138742 11973#include <stdio.h>
d9898ee8 11974
8d138742
CE
11975#ifdef RTLD_GLOBAL
11976# define LT_DLGLOBAL RTLD_GLOBAL
11977#else
11978# ifdef DL_GLOBAL
11979# define LT_DLGLOBAL DL_GLOBAL
11980# else
11981# define LT_DLGLOBAL 0
11982# endif
11983#endif
d9898ee8 11984
8d138742
CE
11985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986 find out it does not work in some platform. */
11987#ifndef LT_DLLAZY_OR_NOW
11988# ifdef RTLD_LAZY
11989# define LT_DLLAZY_OR_NOW RTLD_LAZY
11990# else
11991# ifdef DL_LAZY
11992# define LT_DLLAZY_OR_NOW DL_LAZY
11993# else
11994# ifdef RTLD_NOW
11995# define LT_DLLAZY_OR_NOW RTLD_NOW
11996# else
11997# ifdef DL_NOW
11998# define LT_DLLAZY_OR_NOW DL_NOW
11999# else
12000# define LT_DLLAZY_OR_NOW 0
12001# endif
12002# endif
12003# endif
12004# endif
12005#endif
d9898ee8 12006
8d138742
CE
12007void fnord() { int i=42;}
12008int main ()
12009{
12010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12011 int status = $lt_dlunknown;
d9898ee8 12012
8d138742
CE
12013 if (self)
12014 {
12015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12017 /* dlclose (self); */
12018 }
12019 else
12020 puts (dlerror ());
d9898ee8 12021
8d138742
CE
12022 return status;
12023}
12024_LT_EOF
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>&5
12027 ac_status=$?
12028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12030 (./conftest; exit; ) >&5 2>/dev/null
12031 lt_status=$?
12032 case x$lt_status in
12033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12036 esac
12037 else :
12038 # compilation failed
12039 lt_cv_dlopen_self=no
12040 fi
12041fi
12042rm -fr conftest*
d9898ee8 12043
d9898ee8 12044
8d138742
CE
12045fi
12046{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12047$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 12048
8d138742
CE
12049 if test "x$lt_cv_dlopen_self" = xyes; then
12050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12051 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12052$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12053if test "${lt_cv_dlopen_self_static+set}" = set; then
12054 $as_echo_n "(cached) " >&6
12055else
12056 if test "$cross_compiling" = yes; then :
12057 lt_cv_dlopen_self_static=cross
12058else
12059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12060 lt_status=$lt_dlunknown
12061 cat > conftest.$ac_ext <<_LT_EOF
12062#line 12062 "configure"
12063#include "confdefs.h"
d9898ee8 12064
8d138742
CE
12065#if HAVE_DLFCN_H
12066#include <dlfcn.h>
12067#endif
d9898ee8 12068
8d138742 12069#include <stdio.h>
d9898ee8 12070
8d138742
CE
12071#ifdef RTLD_GLOBAL
12072# define LT_DLGLOBAL RTLD_GLOBAL
12073#else
12074# ifdef DL_GLOBAL
12075# define LT_DLGLOBAL DL_GLOBAL
12076# else
12077# define LT_DLGLOBAL 0
12078# endif
12079#endif
d9898ee8 12080
8d138742
CE
12081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12082 find out it does not work in some platform. */
12083#ifndef LT_DLLAZY_OR_NOW
12084# ifdef RTLD_LAZY
12085# define LT_DLLAZY_OR_NOW RTLD_LAZY
12086# else
12087# ifdef DL_LAZY
12088# define LT_DLLAZY_OR_NOW DL_LAZY
12089# else
12090# ifdef RTLD_NOW
12091# define LT_DLLAZY_OR_NOW RTLD_NOW
12092# else
12093# ifdef DL_NOW
12094# define LT_DLLAZY_OR_NOW DL_NOW
12095# else
12096# define LT_DLLAZY_OR_NOW 0
12097# endif
12098# endif
12099# endif
12100# endif
12101#endif
d9898ee8 12102
8d138742
CE
12103void fnord() { int i=42;}
12104int main ()
12105{
12106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12107 int status = $lt_dlunknown;
d9898ee8 12108
8d138742
CE
12109 if (self)
12110 {
12111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12113 /* dlclose (self); */
12114 }
12115 else
12116 puts (dlerror ());
d9898ee8 12117
8d138742
CE
12118 return status;
12119}
12120_LT_EOF
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12126 (./conftest; exit; ) >&5 2>/dev/null
12127 lt_status=$?
12128 case x$lt_status in
12129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12131 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12132 esac
12133 else :
12134 # compilation failed
12135 lt_cv_dlopen_self_static=no
12136 fi
12137fi
12138rm -fr conftest*
d9898ee8 12139
d9898ee8 12140
8d138742
CE
12141fi
12142{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12143$as_echo "$lt_cv_dlopen_self_static" >&6; }
12144 fi
d9898ee8 12145
8d138742
CE
12146 CPPFLAGS="$save_CPPFLAGS"
12147 LDFLAGS="$save_LDFLAGS"
12148 LIBS="$save_LIBS"
12149 ;;
12150 esac
d9898ee8 12151
8d138742
CE
12152 case $lt_cv_dlopen_self in
12153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12154 *) enable_dlopen_self=unknown ;;
12155 esac
d9898ee8 12156
8d138742
CE
12157 case $lt_cv_dlopen_self_static in
12158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12159 *) enable_dlopen_self_static=unknown ;;
12160 esac
12161fi
d9898ee8 12162
d9898ee8 12163
d9898ee8 12164
d9898ee8 12165
d9898ee8 12166
d9898ee8 12167
d9898ee8 12168
d9898ee8 12169
d9898ee8 12170
d9898ee8 12171
d9898ee8 12172
d9898ee8 12173
d9898ee8 12174
d9898ee8 12175
d9898ee8 12176
d9898ee8 12177
d9898ee8 12178
8d138742
CE
12179striplib=
12180old_striplib=
12181{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12182$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12183if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12185 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12186 { $as_echo "$as_me:$LINENO: result: yes" >&5
12187$as_echo "yes" >&6; }
12188else
12189# FIXME - insert some real tests, host_os isn't really good enough
12190 case $host_os in
12191 darwin*)
12192 if test -n "$STRIP" ; then
12193 striplib="$STRIP -x"
12194 old_striplib="$STRIP -S"
12195 { $as_echo "$as_me:$LINENO: result: yes" >&5
12196$as_echo "yes" >&6; }
12197 else
12198 { $as_echo "$as_me:$LINENO: result: no" >&5
12199$as_echo "no" >&6; }
12200 fi
12201 ;;
12202 *)
12203 { $as_echo "$as_me:$LINENO: result: no" >&5
12204$as_echo "no" >&6; }
12205 ;;
12206 esac
12207fi
d9898ee8 12208
d9898ee8 12209
d9898ee8 12210
d9898ee8 12211
d9898ee8 12212
d9898ee8 12213
d9898ee8 12214
d9898ee8 12215
d9898ee8 12216
d9898ee8 12217
d9898ee8 12218
d9898ee8 12219
8d138742
CE
12220 # Report which library types will actually be built
12221 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12222$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12223 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12224$as_echo "$can_build_shared" >&6; }
d9898ee8 12225
8d138742
CE
12226 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12227$as_echo_n "checking whether to build shared libraries... " >&6; }
12228 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 12229
8d138742
CE
12230 # On AIX, shared libraries and static libraries use the same namespace, and
12231 # are all built from PIC.
12232 case $host_os in
12233 aix3*)
12234 test "$enable_shared" = yes && enable_static=no
12235 if test -n "$RANLIB"; then
12236 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12237 postinstall_cmds='$RANLIB $lib'
12238 fi
12239 ;;
d9898ee8 12240
8d138742
CE
12241 aix[4-9]*)
12242 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12243 test "$enable_shared" = yes && enable_static=no
12244 fi
12245 ;;
12246 esac
12247 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12248$as_echo "$enable_shared" >&6; }
d9898ee8 12249
8d138742
CE
12250 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12251$as_echo_n "checking whether to build static libraries... " >&6; }
12252 # Make sure either enable_shared or enable_static is yes.
12253 test "$enable_shared" = yes || enable_static=yes
12254 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12255$as_echo "$enable_static" >&6; }
d9898ee8 12256
d9898ee8 12257
d9898ee8 12258
12259
d9898ee8 12260fi
d9898ee8 12261ac_ext=c
12262ac_cpp='$CPP $CPPFLAGS'
12263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265ac_compiler_gnu=$ac_cv_c_compiler_gnu
12266
12267CC="$lt_save_CC"
12268
d9898ee8 12269
d9898ee8 12270
12271
d9898ee8 12272
d9898ee8 12273
d9898ee8 12274
d9898ee8 12275
d9898ee8 12276
d9898ee8 12277
d9898ee8 12278
d9898ee8 12279
12280
8d138742 12281 ac_config_commands="$ac_config_commands libtool"
d9898ee8 12282
d9898ee8 12283
12284
d9898ee8 12285
8d138742 12286# Only expand once:
d9898ee8 12287
d9898ee8 12288
d9898ee8 12289
8d138742
CE
12290if test "$PS" = "ps"
12291then
12292 { { $as_echo "$as_me:$LINENO: error: Cannot find pathname to ps" >&5
12293$as_echo "$as_me: error: Cannot find pathname to ps" >&2;}
12294 { (exit 1); exit 1; }; }
12295fi
d9898ee8 12296
8d138742
CE
12297if test x$GXX = xyes
12298then
12299 CFLAGS="-Wall $CFLAGS"
12300fi
d9898ee8 12301
8d138742 12302CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
d9898ee8 12303
d9898ee8 12304
8d138742
CE
12305{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12306$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12307if test "${ac_cv_header_sys_wait_h+set}" = set; then
12308 $as_echo_n "(cached) " >&6
12309else
12310 cat >conftest.$ac_ext <<_ACEOF
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316#include <sys/types.h>
12317#include <sys/wait.h>
12318#ifndef WEXITSTATUS
12319# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12320#endif
12321#ifndef WIFEXITED
12322# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12323#endif
12324
12325int
12326main ()
12327{
12328 int s;
12329 wait (&s);
12330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12331 ;
12332 return 0;
12333}
12334_ACEOF
12335rm -f conftest.$ac_objext
12336if { (ac_try="$ac_compile"
12337case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340esac
12341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12342$as_echo "$ac_try_echo") >&5
12343 (eval "$ac_compile") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest.$ac_objext; then
12353 ac_cv_header_sys_wait_h=yes
12354else
12355 $as_echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 ac_cv_header_sys_wait_h=no
12359fi
12360
12361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362fi
12363{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12364$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12365if test $ac_cv_header_sys_wait_h = yes; then
12366
12367cat >>confdefs.h <<\_ACEOF
12368#define HAVE_SYS_WAIT_H 1
12369_ACEOF
12370
12371fi
d9898ee8 12372
d9898ee8 12373
d9898ee8 12374
8d138742
CE
12375for ac_header in unistd.h fcntl.h
12376do
12377as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12380$as_echo_n "checking for $ac_header... " >&6; }
12381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 $as_echo_n "(cached) " >&6
12383fi
12384ac_res=`eval 'as_val=${'$as_ac_Header'}
12385 $as_echo "$as_val"'`
12386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12387$as_echo "$ac_res" >&6; }
12388else
12389 # Is the header compilable?
12390{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12391$as_echo_n "checking $ac_header usability... " >&6; }
12392cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h. */
12398$ac_includes_default
12399#include <$ac_header>
12400_ACEOF
12401rm -f conftest.$ac_objext
12402if { (ac_try="$ac_compile"
12403case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12408$as_echo "$ac_try_echo") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.$ac_objext; then
12419 ac_header_compiler=yes
12420else
12421 $as_echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_header_compiler=no
12425fi
12426
12427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12429$as_echo "$ac_header_compiler" >&6; }
d9898ee8 12430
8d138742
CE
12431# Is the header present?
12432{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12433$as_echo_n "checking $ac_header presence... " >&6; }
12434cat >conftest.$ac_ext <<_ACEOF
12435/* confdefs.h. */
12436_ACEOF
12437cat confdefs.h >>conftest.$ac_ext
12438cat >>conftest.$ac_ext <<_ACEOF
12439/* end confdefs.h. */
12440#include <$ac_header>
12441_ACEOF
12442if { (ac_try="$ac_cpp conftest.$ac_ext"
12443case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12448$as_echo "$ac_try_echo") >&5
12449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } >/dev/null && {
12456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 }; then
12459 ac_header_preproc=yes
12460else
12461 $as_echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12463
8d138742
CE
12464 ac_header_preproc=no
12465fi
d9898ee8 12466
8d138742
CE
12467rm -f conftest.err conftest.$ac_ext
12468{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12469$as_echo "$ac_header_preproc" >&6; }
d9898ee8 12470
8d138742
CE
12471# So? What about this header?
12472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12473 yes:no: )
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12475$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12477$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12478 ac_header_preproc=yes
12479 ;;
12480 no:yes:* )
12481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12482$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12484$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12486$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12488$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12490$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12492$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12493 ( cat <<\_ASBOX
12494## -------------------------------------------------- ##
12495## Report this to courier-users@lists.sourceforge.net ##
12496## -------------------------------------------------- ##
12497_ASBOX
12498 ) | sed "s/^/$as_me: WARNING: /" >&2
12499 ;;
12500esac
12501{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12502$as_echo_n "checking for $ac_header... " >&6; }
12503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 $as_echo_n "(cached) " >&6
12505else
12506 eval "$as_ac_Header=\$ac_header_preproc"
12507fi
12508ac_res=`eval 'as_val=${'$as_ac_Header'}
12509 $as_echo "$as_val"'`
12510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12511$as_echo "$ac_res" >&6; }
d9898ee8 12512
8d138742
CE
12513fi
12514as_val=`eval 'as_val=${'$as_ac_Header'}
12515 $as_echo "$as_val"'`
12516 if test "x$as_val" = x""yes; then
12517 cat >>confdefs.h <<_ACEOF
12518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12519_ACEOF
d9898ee8 12520
8d138742 12521fi
d9898ee8 12522
8d138742 12523done
d9898ee8 12524
d9898ee8 12525
8d138742
CE
12526{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12527$as_echo_n "checking for pid_t... " >&6; }
12528if test "${ac_cv_type_pid_t+set}" = set; then
12529 $as_echo_n "(cached) " >&6
12530else
12531 ac_cv_type_pid_t=no
12532cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h. */
12538$ac_includes_default
12539int
12540main ()
12541{
12542if (sizeof (pid_t))
12543 return 0;
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext
12549if { (ac_try="$ac_compile"
12550case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553esac
12554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12555$as_echo "$ac_try_echo") >&5
12556 (eval "$ac_compile") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest.$ac_objext; then
12566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572$ac_includes_default
12573int
12574main ()
12575{
12576if (sizeof ((pid_t)))
12577 return 0;
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext
12583if { (ac_try="$ac_compile"
12584case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587esac
12588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12589$as_echo "$ac_try_echo") >&5
12590 (eval "$ac_compile") 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.$ac_objext; then
12600 :
12601else
12602 $as_echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12604
8d138742
CE
12605 ac_cv_type_pid_t=yes
12606fi
d9898ee8 12607
8d138742
CE
12608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609else
12610 $as_echo "$as_me: failed program was:" >&5
12611sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12612
d9898ee8 12613
8d138742 12614fi
d9898ee8 12615
8d138742
CE
12616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617fi
12618{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12619$as_echo "$ac_cv_type_pid_t" >&6; }
12620if test "x$ac_cv_type_pid_t" = x""yes; then
12621 :
12622else
d9898ee8 12623
8d138742
CE
12624cat >>confdefs.h <<_ACEOF
12625#define pid_t int
12626_ACEOF
d9898ee8 12627
8d138742 12628fi
d9898ee8 12629
d9898ee8 12630
d9898ee8 12631
8d138742
CE
12632# Check whether --with-random was given.
12633if test "${with_random+set}" = set; then
12634 withval=$with_random; random="$withval"
12635else
12636 random="y"
12637fi
d9898ee8 12638
d9898ee8 12639
8d138742
CE
12640case "$random" in
12641/*)
12642 ;;
12643y*|1*)
12644 { $as_echo "$as_me:$LINENO: checking for random source" >&5
12645$as_echo_n "checking for random source... " >&6; }
12646if test "${random_cv_RANDOM+set}" = set; then
12647 $as_echo_n "(cached) " >&6
12648else
12649 if test -c /dev/urandom
12650 then
12651 random_cv_RANDOM=/dev/urandom
12652 else
12653 if test -c /dev/random
12654 then
12655 random_cv_RANDOM=/dev/random
12656 else
12657 random_cv_RANDOM="none"
12658 fi
12659 fi
d9898ee8 12660
8d138742
CE
12661fi
12662{ $as_echo "$as_me:$LINENO: result: $random_cv_RANDOM" >&5
12663$as_echo "$random_cv_RANDOM" >&6; }
12664 random="$random_cv_RANDOM"
12665 ;;
12666*)
12667 random="none"
12668 ;;
12669esac
d9898ee8 12670
8d138742
CE
12671if test "$random" != "none"
12672then
d9898ee8 12673
8d138742
CE
12674cat >>confdefs.h <<_ACEOF
12675#define RANDOM "$random"
12676_ACEOF
d9898ee8 12677
8d138742 12678fi
d9898ee8 12679
8d138742
CE
12680{ $as_echo "$as_me:$LINENO: checking for some good options for ps" >&5
12681$as_echo_n "checking for some good options for ps... " >&6; }
12682if test "${random_cv_PS_OPTIONS+set}" = set; then
12683 $as_echo_n "(cached) " >&6
12684else
12685 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
12686 do
12687 ps $opts >/dev/null 2>/dev/null || continue
12688 break
12689 done
12690 random_cv_PS_OPTIONS="$opts"
d9898ee8 12691
8d138742
CE
12692fi
12693{ $as_echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
12694$as_echo "$random_cv_PS_OPTIONS" >&6; }
d9898ee8 12695
d9898ee8 12696
8d138742
CE
12697cat >>confdefs.h <<_ACEOF
12698#define PS_OPTIONS "$random_cv_PS_OPTIONS"
12699_ACEOF
d9898ee8 12700
d9898ee8 12701
8d138742
CE
12702cat >>confdefs.h <<_ACEOF
12703#define PS "$PS"
12704_ACEOF
d9898ee8 12705
d9898ee8 12706
8d138742
CE
12707if test "$W" != "w"
12708then
d9898ee8 12709
8d138742
CE
12710cat >>confdefs.h <<_ACEOF
12711#define W "$w"
12712_ACEOF
d9898ee8 12713
8d138742 12714fi
d9898ee8 12715
8d138742 12716ac_config_files="$ac_config_files Makefile"
d9898ee8 12717
8d138742
CE
12718cat >confcache <<\_ACEOF
12719# This file is a shell script that caches the results of configure
12720# tests run on this system so they can be shared between configure
12721# scripts and configure runs, see configure's option --config-cache.
12722# It is not useful on other systems. If it contains results you don't
12723# want to keep, you may remove or edit it.
12724#
12725# config.status only pays attention to the cache file if you give it
12726# the --recheck option to rerun configure.
12727#
12728# `ac_cv_env_foo' variables (set or unset) will be overridden when
12729# loading this file, other *unset* `ac_cv_foo' will be assigned the
12730# following values.
d9898ee8 12731
8d138742 12732_ACEOF
d9898ee8 12733
8d138742
CE
12734# The following way of writing the cache mishandles newlines in values,
12735# but we know of no workaround that is simple, portable, and efficient.
12736# So, we kill variables containing newlines.
12737# Ultrix sh set writes to stderr and can't be redirected directly,
12738# and sets the high bit in the cache file unless we assign to the vars.
12739(
12740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12741 eval ac_val=\$$ac_var
12742 case $ac_val in #(
12743 *${as_nl}*)
12744 case $ac_var in #(
12745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12746$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12747 esac
12748 case $ac_var in #(
12749 _ | IFS | as_nl) ;; #(
12750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12751 *) $as_unset $ac_var ;;
12752 esac ;;
12753 esac
12754 done
d9898ee8 12755
8d138742
CE
12756 (set) 2>&1 |
12757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12758 *${as_nl}ac_space=\ *)
12759 # `set' does not quote correctly, so add quotes (double-quote
12760 # substitution turns \\\\ into \\, and sed turns \\ into \).
12761 sed -n \
12762 "s/'/'\\\\''/g;
12763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12764 ;; #(
12765 *)
12766 # `set' quotes correctly as required by POSIX, so do not add quotes.
12767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12768 ;;
12769 esac |
12770 sort
12771) |
12772 sed '
12773 /^ac_cv_env_/b end
12774 t clear
12775 :clear
12776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12777 t end
12778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12779 :end' >>confcache
12780if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12781 if test -w "$cache_file"; then
12782 test "x$cache_file" != "x/dev/null" &&
12783 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12784$as_echo "$as_me: updating cache $cache_file" >&6;}
12785 cat confcache >$cache_file
12786 else
12787 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12788$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12789 fi
12790fi
12791rm -f confcache
d9898ee8 12792
8d138742
CE
12793test "x$prefix" = xNONE && prefix=$ac_default_prefix
12794# Let make expand exec_prefix.
12795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 12796
8d138742 12797DEFS=-DHAVE_CONFIG_H
d9898ee8 12798
8d138742
CE
12799ac_libobjs=
12800ac_ltlibobjs=
12801for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12802 # 1. Remove the extension, and $U if already installed.
12803 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12804 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12806 # will be set to the directory where LIBOBJS objects are built.
12807 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12808 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12809done
12810LIBOBJS=$ac_libobjs
d9898ee8 12811
8d138742 12812LTLIBOBJS=$ac_ltlibobjs
d9898ee8 12813
d9898ee8 12814
8d138742
CE
12815 if test -n "$EXEEXT"; then
12816 am__EXEEXT_TRUE=
12817 am__EXEEXT_FALSE='#'
12818else
12819 am__EXEEXT_TRUE='#'
12820 am__EXEEXT_FALSE=
12821fi
d9898ee8 12822
8d138742
CE
12823if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12824 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12825Usually this means the macro was only invoked conditionally." >&5
12826$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12827Usually this means the macro was only invoked conditionally." >&2;}
12828 { (exit 1); exit 1; }; }
12829fi
12830if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12831 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12832Usually this means the macro was only invoked conditionally." >&5
12833$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12834Usually this means the macro was only invoked conditionally." >&2;}
12835 { (exit 1); exit 1; }; }
12836fi
12837if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12838 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12839Usually this means the macro was only invoked conditionally." >&5
12840$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12841Usually this means the macro was only invoked conditionally." >&2;}
12842 { (exit 1); exit 1; }; }
12843fi
d9898ee8 12844
8d138742
CE
12845: ${CONFIG_STATUS=./config.status}
12846ac_write_fail=0
12847ac_clean_files_save=$ac_clean_files
12848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12849{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12850$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12851cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12852#! $SHELL
12853# Generated by $as_me.
12854# Run this file to recreate the current configuration.
12855# Compiler output produced by configure, useful for debugging
12856# configure, is in config.log if it exists.
d9898ee8 12857
8d138742
CE
12858debug=false
12859ac_cs_recheck=false
12860ac_cs_silent=false
12861SHELL=\${CONFIG_SHELL-$SHELL}
12862_ACEOF
d9898ee8 12863
8d138742
CE
12864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12865## --------------------- ##
12866## M4sh Initialization. ##
12867## --------------------- ##
d9898ee8 12868
8d138742
CE
12869# Be more Bourne compatible
12870DUALCASE=1; export DUALCASE # for MKS sh
12871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12872 emulate sh
12873 NULLCMD=:
12874 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12875 # is contrary to our usage. Disable this feature.
12876 alias -g '${1+"$@"}'='"$@"'
12877 setopt NO_GLOB_SUBST
12878else
12879 case `(set -o) 2>/dev/null` in
12880 *posix*) set -o posix ;;
12881esac
d9898ee8 12882
8d138742 12883fi
d9898ee8 12884
d9898ee8 12885
d9898ee8 12886
d9898ee8 12887
8d138742
CE
12888# PATH needs CR
12889# Avoid depending upon Character Ranges.
12890as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12891as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12892as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12893as_cr_digits='0123456789'
12894as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12895
8d138742
CE
12896as_nl='
12897'
12898export as_nl
12899# Printing a long string crashes Solaris 7 /usr/bin/printf.
12900as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12903if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12904 as_echo='printf %s\n'
12905 as_echo_n='printf %s'
12906else
12907 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12908 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12909 as_echo_n='/usr/ucb/echo -n'
12910 else
12911 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12912 as_echo_n_body='eval
12913 arg=$1;
12914 case $arg in
12915 *"$as_nl"*)
12916 expr "X$arg" : "X\\(.*\\)$as_nl";
12917 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12918 esac;
12919 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12920 '
12921 export as_echo_n_body
12922 as_echo_n='sh -c $as_echo_n_body as_echo'
12923 fi
12924 export as_echo_body
12925 as_echo='sh -c $as_echo_body as_echo'
12926fi
d9898ee8 12927
8d138742
CE
12928# The user is always right.
12929if test "${PATH_SEPARATOR+set}" != set; then
12930 PATH_SEPARATOR=:
12931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12932 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12933 PATH_SEPARATOR=';'
12934 }
12935fi
d9898ee8 12936
8d138742
CE
12937# Support unset when possible.
12938if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12939 as_unset=unset
12940else
12941 as_unset=false
12942fi
d9898ee8 12943
d9898ee8 12944
8d138742
CE
12945# IFS
12946# We need space, tab and new line, in precisely that order. Quoting is
12947# there to prevent editors from complaining about space-tab.
12948# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12949# splitting by setting IFS to empty value.)
12950IFS=" "" $as_nl"
d9898ee8 12951
8d138742
CE
12952# Find who we are. Look in the path if we contain no directory separator.
12953case $0 in
12954 *[\\/]* ) as_myself=$0 ;;
12955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956for as_dir in $PATH
12957do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12961done
12962IFS=$as_save_IFS
d9898ee8 12963
8d138742
CE
12964 ;;
12965esac
12966# We did not find ourselves, most probably we were run as `sh COMMAND'
12967# in which case we are not to be found in the path.
12968if test "x$as_myself" = x; then
12969 as_myself=$0
12970fi
12971if test ! -f "$as_myself"; then
12972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12973 { (exit 1); exit 1; }
12974fi
d9898ee8 12975
8d138742
CE
12976# Work around bugs in pre-3.0 UWIN ksh.
12977for as_var in ENV MAIL MAILPATH
12978do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12979done
12980PS1='$ '
12981PS2='> '
12982PS4='+ '
d9898ee8 12983
8d138742
CE
12984# NLS nuisances.
12985LC_ALL=C
12986export LC_ALL
12987LANGUAGE=C
12988export LANGUAGE
d9898ee8 12989
8d138742
CE
12990# Required to use basename.
12991if expr a : '\(a\)' >/dev/null 2>&1 &&
12992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12993 as_expr=expr
12994else
12995 as_expr=false
12996fi
d9898ee8 12997
8d138742
CE
12998if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12999 as_basename=basename
13000else
13001 as_basename=false
13002fi
d9898ee8 13003
d9898ee8 13004
8d138742
CE
13005# Name of the executable.
13006as_me=`$as_basename -- "$0" ||
13007$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13008 X"$0" : 'X\(//\)$' \| \
13009 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13010$as_echo X/"$0" |
13011 sed '/^.*\/\([^/][^/]*\)\/*$/{
13012 s//\1/
13013 q
13014 }
13015 /^X\/\(\/\/\)$/{
13016 s//\1/
13017 q
13018 }
13019 /^X\/\(\/\).*/{
13020 s//\1/
13021 q
13022 }
13023 s/.*/./; q'`
d9898ee8 13024
8d138742
CE
13025# CDPATH.
13026$as_unset CDPATH
d9898ee8 13027
d9898ee8 13028
d9898ee8 13029
8d138742
CE
13030 as_lineno_1=$LINENO
13031 as_lineno_2=$LINENO
13032 test "x$as_lineno_1" != "x$as_lineno_2" &&
13033 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 13034
8d138742
CE
13035 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13036 # uniformly replaced by the line number. The first 'sed' inserts a
13037 # line-number line after each line using $LINENO; the second 'sed'
13038 # does the real work. The second script uses 'N' to pair each
13039 # line-number line with the line containing $LINENO, and appends
13040 # trailing '-' during substitution so that $LINENO is not a special
13041 # case at line end.
13042 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13043 # scripts with optimization help from Paolo Bonzini. Blame Lee
13044 # E. McMahon (1931-1989) for sed's syntax. :-)
13045 sed -n '
13046 p
13047 /[$]LINENO/=
13048 ' <$as_myself |
13049 sed '
13050 s/[$]LINENO.*/&-/
13051 t lineno
13052 b
13053 :lineno
13054 N
13055 :loop
13056 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13057 t loop
13058 s/-\n.*//
13059 ' >$as_me.lineno &&
13060 chmod +x "$as_me.lineno" ||
13061 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13062 { (exit 1); exit 1; }; }
d9898ee8 13063
8d138742
CE
13064 # Don't try to exec as it changes $[0], causing all sort of problems
13065 # (the dirname of $[0] is not the place where we might find the
13066 # original and so on. Autoconf is especially sensitive to this).
13067 . "./$as_me.lineno"
13068 # Exit status is that of the last command.
13069 exit
13070}
d9898ee8 13071
d9898ee8 13072
8d138742
CE
13073if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13074 as_dirname=dirname
13075else
13076 as_dirname=false
13077fi
d9898ee8 13078
8d138742
CE
13079ECHO_C= ECHO_N= ECHO_T=
13080case `echo -n x` in
13081-n*)
13082 case `echo 'x\c'` in
13083 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13084 *) ECHO_C='\c';;
13085 esac;;
13086*)
13087 ECHO_N='-n';;
13088esac
13089if expr a : '\(a\)' >/dev/null 2>&1 &&
13090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13091 as_expr=expr
13092else
13093 as_expr=false
13094fi
d9898ee8 13095
8d138742
CE
13096rm -f conf$$ conf$$.exe conf$$.file
13097if test -d conf$$.dir; then
13098 rm -f conf$$.dir/conf$$.file
13099else
13100 rm -f conf$$.dir
13101 mkdir conf$$.dir 2>/dev/null
13102fi
13103if (echo >conf$$.file) 2>/dev/null; then
13104 if ln -s conf$$.file conf$$ 2>/dev/null; then
13105 as_ln_s='ln -s'
13106 # ... but there are two gotchas:
13107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13109 # In both cases, we have to default to `cp -p'.
13110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13111 as_ln_s='cp -p'
13112 elif ln conf$$.file conf$$ 2>/dev/null; then
13113 as_ln_s=ln
13114 else
13115 as_ln_s='cp -p'
13116 fi
13117else
13118 as_ln_s='cp -p'
13119fi
13120rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13121rmdir conf$$.dir 2>/dev/null
d9898ee8 13122
8d138742
CE
13123if mkdir -p . 2>/dev/null; then
13124 as_mkdir_p=:
13125else
13126 test -d ./-p && rmdir ./-p
13127 as_mkdir_p=false
13128fi
d9898ee8 13129
8d138742
CE
13130if test -x / >/dev/null 2>&1; then
13131 as_test_x='test -x'
13132else
13133 if ls -dL / >/dev/null 2>&1; then
13134 as_ls_L_option=L
13135 else
13136 as_ls_L_option=
13137 fi
13138 as_test_x='
13139 eval sh -c '\''
13140 if test -d "$1"; then
13141 test -d "$1/.";
13142 else
13143 case $1 in
13144 -*)set "./$1";;
13145 esac;
13146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13147 ???[sx]*):;;*)false;;esac;fi
13148 '\'' sh
13149 '
13150fi
13151as_executable_p=$as_test_x
d9898ee8 13152
8d138742
CE
13153# Sed expression to map a string onto a valid CPP name.
13154as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13155
8d138742
CE
13156# Sed expression to map a string onto a valid variable name.
13157as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13158
d9898ee8 13159
8d138742 13160exec 6>&1
d9898ee8 13161
8d138742
CE
13162# Save the log message, to keep $[0] and so on meaningful, and to
13163# report actual input values of CONFIG_FILES etc. instead of their
13164# values after options handling.
13165ac_log="
13166This file was extended by random128 $as_me 0.10, which was
13167generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 13168
8d138742
CE
13169 CONFIG_FILES = $CONFIG_FILES
13170 CONFIG_HEADERS = $CONFIG_HEADERS
13171 CONFIG_LINKS = $CONFIG_LINKS
13172 CONFIG_COMMANDS = $CONFIG_COMMANDS
13173 $ $0 $@
d9898ee8 13174
8d138742
CE
13175on `(hostname || uname -n) 2>/dev/null | sed 1q`
13176"
d9898ee8 13177
8d138742 13178_ACEOF
d9898ee8 13179
8d138742
CE
13180case $ac_config_files in *"
13181"*) set x $ac_config_files; shift; ac_config_files=$*;;
13182esac
d9898ee8 13183
8d138742
CE
13184case $ac_config_headers in *"
13185"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13186esac
d9898ee8 13187
d9898ee8 13188
8d138742
CE
13189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190# Files that config.status was made for.
13191config_files="$ac_config_files"
13192config_headers="$ac_config_headers"
13193config_commands="$ac_config_commands"
d9898ee8 13194
8d138742 13195_ACEOF
d9898ee8 13196
8d138742
CE
13197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198ac_cs_usage="\
13199\`$as_me' instantiates files from templates according to the
13200current configuration.
d9898ee8 13201
8d138742 13202Usage: $0 [OPTION]... [FILE]...
d9898ee8 13203
8d138742
CE
13204 -h, --help print this help, then exit
13205 -V, --version print version number and configuration settings, then exit
13206 -q, --quiet, --silent
13207 do not print progress messages
13208 -d, --debug don't remove temporary files
13209 --recheck update $as_me by reconfiguring in the same conditions
13210 --file=FILE[:TEMPLATE]
13211 instantiate the configuration file FILE
13212 --header=FILE[:TEMPLATE]
13213 instantiate the configuration header FILE
d9898ee8 13214
8d138742
CE
13215Configuration files:
13216$config_files
d9898ee8 13217
8d138742
CE
13218Configuration headers:
13219$config_headers
d9898ee8 13220
8d138742
CE
13221Configuration commands:
13222$config_commands
d9898ee8 13223
8d138742 13224Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 13225
8d138742
CE
13226_ACEOF
13227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13228ac_cs_version="\\
13229random128 config.status 0.10
13230configured by $0, generated by GNU Autoconf 2.63,
13231 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 13232
8d138742
CE
13233Copyright (C) 2008 Free Software Foundation, Inc.
13234This config.status script is free software; the Free Software Foundation
13235gives unlimited permission to copy, distribute and modify it."
d9898ee8 13236
8d138742
CE
13237ac_pwd='$ac_pwd'
13238srcdir='$srcdir'
13239INSTALL='$INSTALL'
13240MKDIR_P='$MKDIR_P'
13241AWK='$AWK'
13242test -n "\$AWK" || AWK=awk
13243_ACEOF
d9898ee8 13244
8d138742
CE
13245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13246# The default lists apply if the user does not specify any file.
13247ac_need_defaults=:
13248while test $# != 0
13249do
13250 case $1 in
13251 --*=*)
13252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13254 ac_shift=:
13255 ;;
13256 *)
13257 ac_option=$1
13258 ac_optarg=$2
13259 ac_shift=shift
13260 ;;
13261 esac
d9898ee8 13262
8d138742
CE
13263 case $ac_option in
13264 # Handling of the options.
13265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13266 ac_cs_recheck=: ;;
13267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13268 $as_echo "$ac_cs_version"; exit ;;
13269 --debug | --debu | --deb | --de | --d | -d )
13270 debug=: ;;
13271 --file | --fil | --fi | --f )
13272 $ac_shift
13273 case $ac_optarg in
13274 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13275 esac
13276 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13277 ac_need_defaults=false;;
13278 --header | --heade | --head | --hea )
13279 $ac_shift
13280 case $ac_optarg in
13281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13282 esac
13283 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13284 ac_need_defaults=false;;
13285 --he | --h)
13286 # Conflict between --help and --header
13287 { $as_echo "$as_me: error: ambiguous option: $1
13288Try \`$0 --help' for more information." >&2
13289 { (exit 1); exit 1; }; };;
13290 --help | --hel | -h )
13291 $as_echo "$ac_cs_usage"; exit ;;
13292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13293 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13294 ac_cs_silent=: ;;
d9898ee8 13295
8d138742
CE
13296 # This is an error.
13297 -*) { $as_echo "$as_me: error: unrecognized option: $1
13298Try \`$0 --help' for more information." >&2
13299 { (exit 1); exit 1; }; } ;;
d9898ee8 13300
8d138742
CE
13301 *) ac_config_targets="$ac_config_targets $1"
13302 ac_need_defaults=false ;;
d9898ee8 13303
8d138742
CE
13304 esac
13305 shift
13306done
d9898ee8 13307
8d138742 13308ac_configure_extra_args=
d9898ee8 13309
8d138742
CE
13310if $ac_cs_silent; then
13311 exec 6>/dev/null
13312 ac_configure_extra_args="$ac_configure_extra_args --silent"
13313fi
d9898ee8 13314
8d138742
CE
13315_ACEOF
13316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13317if \$ac_cs_recheck; then
13318 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13319 shift
13320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13321 CONFIG_SHELL='$SHELL'
13322 export CONFIG_SHELL
13323 exec "\$@"
13324fi
d9898ee8 13325
8d138742
CE
13326_ACEOF
13327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13328exec 5>>config.log
13329{
13330 echo
13331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13332## Running $as_me. ##
13333_ASBOX
13334 $as_echo "$ac_log"
13335} >&5
d9898ee8 13336
8d138742
CE
13337_ACEOF
13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339#
13340# INIT-COMMANDS
13341#
13342AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13343
13344
8d138742
CE
13345# The HP-UX ksh and POSIX shell print the target directory to stdout
13346# if CDPATH is set.
13347(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13348
8d138742
CE
13349sed_quote_subst='$sed_quote_subst'
13350double_quote_subst='$double_quote_subst'
13351delay_variable_subst='$delay_variable_subst'
13352macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13353macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13354enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13355enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13356pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13357enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13358host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13359host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13360host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13361build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13362build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13363build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13364SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13365Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13366GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13367EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13368FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13369LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13370NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13371LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13372max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13373ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13374exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13375lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13376lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13377lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13378reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13379reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13380OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13381deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13382file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13383AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13384AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13385STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13386RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13387old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13388old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13389old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13390CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13391CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13392compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13393GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13394lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13395lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13396lt_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"`'
13397lt_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"`'
13398objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13399SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13400ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13401MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13402lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13403lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13404lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13405lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13406lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13407need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13408DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13409NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13410LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13411OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13412OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13413libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13414shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13415extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13416archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13417enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13418export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13419whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13420compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13421old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13422old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13424archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13425module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13426module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13427with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13428allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13429no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13430hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13431hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13432hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13433hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13434hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13435hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13436hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13437hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13438inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13439link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13440fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13441always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13442export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13443exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13444include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13445prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13447variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13448need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13449need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13450version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13451runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13452shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13453shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13454libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13455library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13456soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13457postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13458postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13459finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13460finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13461hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13462sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13463sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13464hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13465enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13466enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13467enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13468old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13469striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13470
13471LTCC='$LTCC'
13472LTCFLAGS='$LTCFLAGS'
13473compiler='$compiler_DEFAULT'
13474
13475# Quote evaled strings.
13476for var in SED \
13477GREP \
13478EGREP \
13479FGREP \
13480LD \
13481NM \
13482LN_S \
13483lt_SP2NL \
13484lt_NL2SP \
13485reload_flag \
13486OBJDUMP \
13487deplibs_check_method \
13488file_magic_cmd \
13489AR \
13490AR_FLAGS \
13491STRIP \
13492RANLIB \
13493CC \
13494CFLAGS \
13495compiler \
13496lt_cv_sys_global_symbol_pipe \
13497lt_cv_sys_global_symbol_to_cdecl \
13498lt_cv_sys_global_symbol_to_c_name_address \
13499lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13500SHELL \
13501ECHO \
13502lt_prog_compiler_no_builtin_flag \
13503lt_prog_compiler_wl \
13504lt_prog_compiler_pic \
13505lt_prog_compiler_static \
13506lt_cv_prog_compiler_c_o \
13507need_locks \
13508DSYMUTIL \
13509NMEDIT \
13510LIPO \
13511OTOOL \
13512OTOOL64 \
13513shrext_cmds \
13514export_dynamic_flag_spec \
13515whole_archive_flag_spec \
13516compiler_needs_object \
13517with_gnu_ld \
13518allow_undefined_flag \
13519no_undefined_flag \
13520hardcode_libdir_flag_spec \
13521hardcode_libdir_flag_spec_ld \
13522hardcode_libdir_separator \
13523fix_srcfile_path \
13524exclude_expsyms \
13525include_expsyms \
13526file_list_spec \
13527variables_saved_for_relink \
13528libname_spec \
13529library_names_spec \
13530soname_spec \
13531finish_eval \
13532old_striplib \
13533striplib; do
13534 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13535 *[\\\\\\\`\\"\\\$]*)
13536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13537 ;;
13538 *)
13539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13540 ;;
13541 esac
13542done
d9898ee8 13543
8d138742
CE
13544# Double-quote double-evaled strings.
13545for var in reload_cmds \
13546old_postinstall_cmds \
13547old_postuninstall_cmds \
13548old_archive_cmds \
13549extract_expsyms_cmds \
13550old_archive_from_new_cmds \
13551old_archive_from_expsyms_cmds \
13552archive_cmds \
13553archive_expsym_cmds \
13554module_cmds \
13555module_expsym_cmds \
13556export_symbols_cmds \
13557prelink_cmds \
13558postinstall_cmds \
13559postuninstall_cmds \
13560finish_cmds \
13561sys_lib_search_path_spec \
13562sys_lib_dlsearch_path_spec; do
13563 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13564 *[\\\\\\\`\\"\\\$]*)
13565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13566 ;;
13567 *)
13568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13569 ;;
13570 esac
13571done
d9898ee8 13572
8d138742
CE
13573# Fix-up fallback echo if it was mangled by the above quoting rules.
13574case \$lt_ECHO in
13575*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13576 ;;
13577esac
d9898ee8 13578
8d138742
CE
13579ac_aux_dir='$ac_aux_dir'
13580xsi_shell='$xsi_shell'
13581lt_shell_append='$lt_shell_append'
d9898ee8 13582
8d138742
CE
13583# See if we are running on zsh, and set the options which allow our
13584# commands through without removal of \ escapes INIT.
13585if test -n "\${ZSH_VERSION+set}" ; then
13586 setopt NO_GLOB_SUBST
d9898ee8 13587fi
13588
d9898ee8 13589
8d138742
CE
13590 PACKAGE='$PACKAGE'
13591 VERSION='$VERSION'
13592 TIMESTAMP='$TIMESTAMP'
13593 RM='$RM'
13594 ofile='$ofile'
d9898ee8 13595
d9898ee8 13596
dd184caf 13597
d9898ee8 13598
d9898ee8 13599_ACEOF
13600
8d138742 13601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13602
8d138742
CE
13603# Handling of arguments.
13604for ac_config_target in $ac_config_targets
13605do
13606 case $ac_config_target in
13607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13608 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13609 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 13611
8d138742
CE
13612 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13613$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13614 { (exit 1); exit 1; }; };;
13615 esac
13616done
d9898ee8 13617
d9898ee8 13618
8d138742
CE
13619# If the user did not use the arguments to specify the items to instantiate,
13620# then the envvar interface is used. Set only those that are not.
13621# We use the long form for the default assignment because of an extremely
13622# bizarre bug on SunOS 4.1.3.
13623if $ac_need_defaults; then
13624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 13627fi
dd184caf 13628
8d138742
CE
13629# Have a temporary directory for convenience. Make it in the build tree
13630# simply because there is no reason against having it here, and in addition,
13631# creating and moving files from /tmp can sometimes cause problems.
13632# Hook for its removal unless debugging.
13633# Note that there is a small window in which the directory will not be cleaned:
13634# after its creation but before its name has been assigned to `$tmp'.
13635$debug ||
13636{
13637 tmp=
13638 trap 'exit_status=$?
13639 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13640' 0
13641 trap '{ (exit 1); exit 1; }' 1 2 13 15
13642}
13643# Create a (secure) tmp directory for tmp files.
d9898ee8 13644
8d138742
CE
13645{
13646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13647 test -n "$tmp" && test -d "$tmp"
13648} ||
13649{
13650 tmp=./conf$$-$RANDOM
13651 (umask 077 && mkdir "$tmp")
13652} ||
13653{
13654 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13655 { (exit 1); exit 1; }
13656}
d9898ee8 13657
8d138742
CE
13658# Set up the scripts for CONFIG_FILES section.
13659# No need to generate them if there are no CONFIG_FILES.
13660# This happens for instance with `./config.status config.h'.
13661if test -n "$CONFIG_FILES"; then
dd184caf 13662
d9898ee8 13663
8d138742
CE
13664ac_cr='\r'
13665ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13666if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13667 ac_cs_awk_cr='\\r'
d9898ee8 13668else
8d138742 13669 ac_cs_awk_cr=$ac_cr
d9898ee8 13670fi
d9898ee8 13671
8d138742 13672echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 13673_ACEOF
13674
d9898ee8 13675
8d138742
CE
13676{
13677 echo "cat >conf$$subs.awk <<_ACEOF" &&
13678 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13679 echo "_ACEOF"
13680} >conf$$subs.sh ||
13681 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13682$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13683 { (exit 1); exit 1; }; }
13684ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13685ac_delim='%!_!# '
13686for ac_last_try in false false false false false :; do
13687 . ./conf$$subs.sh ||
13688 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13689$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13690 { (exit 1); exit 1; }; }
d9898ee8 13691
8d138742
CE
13692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13693 if test $ac_delim_n = $ac_delim_num; then
13694 break
13695 elif $ac_last_try; then
13696 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13697$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13698 { (exit 1); exit 1; }; }
13699 else
13700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13701 fi
13702done
13703rm -f conf$$subs.sh
13704
13705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13707_ACEOF
13708sed -n '
13709h
13710s/^/S["/; s/!.*/"]=/
13711p
13712g
13713s/^[^!]*!//
13714:repl
13715t repl
13716s/'"$ac_delim"'$//
13717t delim
13718:nl
13719h
13720s/\(.\{148\}\).*/\1/
13721t more1
13722s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13723p
13724n
13725b repl
13726:more1
13727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13728p
13729g
13730s/.\{148\}//
13731t nl
13732:delim
13733h
13734s/\(.\{148\}\).*/\1/
13735t more2
13736s/["\\]/\\&/g; s/^/"/; s/$/"/
13737p
13738b
13739:more2
13740s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13741p
13742g
13743s/.\{148\}//
13744t delim
13745' <conf$$subs.awk | sed '
13746/^[^""]/{
13747 N
13748 s/\n//
13749}
13750' >>$CONFIG_STATUS || ac_write_fail=1
13751rm -f conf$$subs.awk
13752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13753_ACAWK
13754cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13755 for (key in S) S_is_set[key] = 1
13756 FS = "\a"
d9898ee8 13757
8d138742 13758}
d9898ee8 13759{
8d138742
CE
13760 line = $ 0
13761 nfields = split(line, field, "@")
13762 substed = 0
13763 len = length(field[1])
13764 for (i = 2; i < nfields; i++) {
13765 key = field[i]
13766 keylen = length(key)
13767 if (S_is_set[key]) {
13768 value = S[key]
13769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13770 len += length(value) + length(field[++i])
13771 substed = 1
13772 } else
13773 len += 1 + keylen
13774 }
13775
13776 print line
d9898ee8 13777}
8d138742
CE
13778
13779_ACAWK
13780_ACEOF
13781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13782if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13784else
8d138742
CE
13785 cat
13786fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13787 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13788$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13789 { (exit 1); exit 1; }; }
13790_ACEOF
d9898ee8 13791
8d138742
CE
13792# VPATH may cause trouble with some makes, so we remove $(srcdir),
13793# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13794# trailing colons and then remove the whole line if VPATH becomes empty
13795# (actually we leave an empty line to preserve line numbers).
13796if test "x$srcdir" = x.; then
13797 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13798s/:*\$(srcdir):*/:/
13799s/:*\${srcdir}:*/:/
13800s/:*@srcdir@:*/:/
13801s/^\([^=]*=[ ]*\):*/\1/
13802s/:*$//
13803s/^[^=]*=[ ]*$//
13804}'
d9898ee8 13805fi
dd184caf 13806
8d138742
CE
13807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13808fi # test -n "$CONFIG_FILES"
d9898ee8 13809
8d138742
CE
13810# Set up the scripts for CONFIG_HEADERS section.
13811# No need to generate them if there are no CONFIG_HEADERS.
13812# This happens for instance with `./config.status Makefile'.
13813if test -n "$CONFIG_HEADERS"; then
13814cat >"$tmp/defines.awk" <<\_ACAWK ||
13815BEGIN {
d9898ee8 13816_ACEOF
13817
8d138742
CE
13818# Transform confdefs.h into an awk script `defines.awk', embedded as
13819# here-document in config.status, that substitutes the proper values into
13820# config.h.in to produce config.h.
d9898ee8 13821
8d138742
CE
13822# Create a delimiter string that does not exist in confdefs.h, to ease
13823# handling of long lines.
13824ac_delim='%!_!# '
13825for ac_last_try in false false :; do
13826 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13827 if test -z "$ac_t"; then
13828 break
13829 elif $ac_last_try; then
13830 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13831$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13832 { (exit 1); exit 1; }; }
13833 else
13834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13835 fi
13836done
d9898ee8 13837
8d138742
CE
13838# For the awk script, D is an array of macro values keyed by name,
13839# likewise P contains macro parameters if any. Preserve backslash
13840# newline sequences.
d9898ee8 13841
8d138742
CE
13842ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13843sed -n '
13844s/.\{148\}/&'"$ac_delim"'/g
13845t rset
13846:rset
13847s/^[ ]*#[ ]*define[ ][ ]*/ /
13848t def
13849d
13850:def
13851s/\\$//
13852t bsnl
13853s/["\\]/\\&/g
13854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13855D["\1"]=" \3"/p
13856s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13857d
13858:bsnl
13859s/["\\]/\\&/g
13860s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13861D["\1"]=" \3\\\\\\n"\\/p
13862t cont
13863s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13864t cont
13865d
13866:cont
13867n
13868s/.\{148\}/&'"$ac_delim"'/g
13869t clear
13870:clear
13871s/\\$//
13872t bsnlc
13873s/["\\]/\\&/g; s/^/"/; s/$/"/p
13874d
13875:bsnlc
13876s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13877b cont
13878' <confdefs.h | sed '
13879s/'"$ac_delim"'/"\\\
13880"/g' >>$CONFIG_STATUS || ac_write_fail=1
13881
13882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13883 for (key in D) D_is_set[key] = 1
13884 FS = "\a"
13885}
13886/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13887 line = \$ 0
13888 split(line, arg, " ")
13889 if (arg[1] == "#") {
13890 defundef = arg[2]
13891 mac1 = arg[3]
13892 } else {
13893 defundef = substr(arg[1], 2)
13894 mac1 = arg[2]
13895 }
13896 split(mac1, mac2, "(") #)
13897 macro = mac2[1]
13898 prefix = substr(line, 1, index(line, defundef) - 1)
13899 if (D_is_set[macro]) {
13900 # Preserve the white space surrounding the "#".
13901 print prefix "define", macro P[macro] D[macro]
13902 next
13903 } else {
13904 # Replace #undef with comments. This is necessary, for example,
13905 # in the case of _POSIX_SOURCE, which is predefined and required
13906 # on some systems where configure will not decide to define it.
13907 if (defundef == "undef") {
13908 print "/*", prefix defundef, macro, "*/"
13909 next
13910 }
13911 }
13912}
13913{ print }
13914_ACAWK
13915_ACEOF
13916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13917 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13918$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13919 { (exit 1); exit 1; }; }
13920fi # test -n "$CONFIG_HEADERS"
dd184caf 13921
d9898ee8 13922
8d138742
CE
13923eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13924shift
13925for ac_tag
13926do
13927 case $ac_tag in
13928 :[FHLC]) ac_mode=$ac_tag; continue;;
13929 esac
13930 case $ac_mode$ac_tag in
13931 :[FHL]*:*);;
13932 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13933$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13934 { (exit 1); exit 1; }; };;
13935 :[FH]-) ac_tag=-:-;;
13936 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13937 esac
13938 ac_save_IFS=$IFS
13939 IFS=:
13940 set x $ac_tag
13941 IFS=$ac_save_IFS
13942 shift
13943 ac_file=$1
13944 shift
d9898ee8 13945
8d138742
CE
13946 case $ac_mode in
13947 :L) ac_source=$1;;
13948 :[FH])
13949 ac_file_inputs=
13950 for ac_f
13951 do
13952 case $ac_f in
13953 -) ac_f="$tmp/stdin";;
13954 *) # Look for the file first in the build tree, then in the source tree
13955 # (if the path is not absolute). The absolute path cannot be DOS-style,
13956 # because $ac_f cannot contain `:'.
13957 test -f "$ac_f" ||
13958 case $ac_f in
13959 [\\/$]*) false;;
13960 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13961 esac ||
13962 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13963$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13964 { (exit 1); exit 1; }; };;
13965 esac
13966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13967 ac_file_inputs="$ac_file_inputs '$ac_f'"
13968 done
13969
13970 # Let's still pretend it is `configure' which instantiates (i.e., don't
13971 # use $as_me), people would be surprised to read:
13972 # /* config.h. Generated by config.status. */
13973 configure_input='Generated from '`
13974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13975 `' by configure.'
13976 if test x"$ac_file" != x-; then
13977 configure_input="$ac_file. $configure_input"
13978 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13979$as_echo "$as_me: creating $ac_file" >&6;}
13980 fi
13981 # Neutralize special characters interpreted by sed in replacement strings.
13982 case $configure_input in #(
13983 *\&* | *\|* | *\\* )
13984 ac_sed_conf_input=`$as_echo "$configure_input" |
13985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13986 *) ac_sed_conf_input=$configure_input;;
13987 esac
13988
13989 case $ac_tag in
13990 *:-:* | *:-) cat >"$tmp/stdin" \
13991 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13992$as_echo "$as_me: error: could not create $ac_file" >&2;}
13993 { (exit 1); exit 1; }; } ;;
13994 esac
13995 ;;
13996 esac
13997
13998 ac_dir=`$as_dirname -- "$ac_file" ||
13999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14000 X"$ac_file" : 'X\(//\)[^/]' \| \
14001 X"$ac_file" : 'X\(//\)$' \| \
14002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14003$as_echo X"$ac_file" |
14004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14005 s//\1/
14006 q
14007 }
14008 /^X\(\/\/\)[^/].*/{
14009 s//\1/
14010 q
14011 }
14012 /^X\(\/\/\)$/{
14013 s//\1/
14014 q
14015 }
14016 /^X\(\/\).*/{
14017 s//\1/
14018 q
14019 }
14020 s/.*/./; q'`
14021 { as_dir="$ac_dir"
14022 case $as_dir in #(
14023 -*) as_dir=./$as_dir;;
14024 esac
14025 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14026 as_dirs=
14027 while :; do
14028 case $as_dir in #(
14029 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14030 *) as_qdir=$as_dir;;
14031 esac
14032 as_dirs="'$as_qdir' $as_dirs"
14033 as_dir=`$as_dirname -- "$as_dir" ||
14034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14035 X"$as_dir" : 'X\(//\)[^/]' \| \
14036 X"$as_dir" : 'X\(//\)$' \| \
14037 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14038$as_echo X"$as_dir" |
14039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14040 s//\1/
14041 q
14042 }
14043 /^X\(\/\/\)[^/].*/{
14044 s//\1/
14045 q
14046 }
14047 /^X\(\/\/\)$/{
14048 s//\1/
14049 q
14050 }
14051 /^X\(\/\).*/{
14052 s//\1/
14053 q
14054 }
14055 s/.*/./; q'`
14056 test -d "$as_dir" && break
14057 done
14058 test -z "$as_dirs" || eval "mkdir $as_dirs"
14059 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14060$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14061 { (exit 1); exit 1; }; }; }
14062 ac_builddir=.
14063
14064case "$ac_dir" in
14065.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
d9898ee8 14066*)
8d138742
CE
14067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14068 # A ".." for each directory in $ac_dir_suffix.
14069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14070 case $ac_top_builddir_sub in
14071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14073 esac ;;
d9898ee8 14074esac
8d138742
CE
14075ac_abs_top_builddir=$ac_pwd
14076ac_abs_builddir=$ac_pwd$ac_dir_suffix
14077# for backward compatibility:
14078ac_top_builddir=$ac_top_build_prefix
d9898ee8 14079
8d138742
CE
14080case $srcdir in
14081 .) # We are building in place.
14082 ac_srcdir=.
14083 ac_top_srcdir=$ac_top_builddir_sub
14084 ac_abs_top_srcdir=$ac_pwd ;;
14085 [\\/]* | ?:[\\/]* ) # Absolute name.
14086 ac_srcdir=$srcdir$ac_dir_suffix;
14087 ac_top_srcdir=$srcdir
14088 ac_abs_top_srcdir=$srcdir ;;
14089 *) # Relative name.
14090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14091 ac_top_srcdir=$ac_top_build_prefix$srcdir
14092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14093esac
14094ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 14095
d9898ee8 14096
8d138742
CE
14097 case $ac_mode in
14098 :F)
14099 #
14100 # CONFIG_FILE
14101 #
d9898ee8 14102
8d138742
CE
14103 case $INSTALL in
14104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14106 esac
14107 ac_MKDIR_P=$MKDIR_P
14108 case $MKDIR_P in
14109 [\\/$]* | ?:[\\/]* ) ;;
14110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14111 esac
14112_ACEOF
d9898ee8 14113
8d138742
CE
14114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14115# If the template does not know about datarootdir, expand it.
14116# FIXME: This hack should be removed a few years after 2.60.
14117ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 14118
8d138742
CE
14119ac_sed_dataroot='
14120/datarootdir/ {
14121 p
14122 q
14123}
14124/@datadir@/p
14125/@docdir@/p
14126/@infodir@/p
14127/@localedir@/p
14128/@mandir@/p
14129'
14130case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14131*datarootdir*) ac_datarootdir_seen=yes;;
14132*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14133 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14134$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14135_ACEOF
14136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14137 ac_datarootdir_hack='
14138 s&@datadir@&$datadir&g
14139 s&@docdir@&$docdir&g
14140 s&@infodir@&$infodir&g
14141 s&@localedir@&$localedir&g
14142 s&@mandir@&$mandir&g
14143 s&\\\${datarootdir}&$datarootdir&g' ;;
14144esac
14145_ACEOF
d9898ee8 14146
8d138742
CE
14147# Neutralize VPATH when `$srcdir' = `.'.
14148# Shell code in configure.ac might set extrasub.
14149# FIXME: do we really want to maintain this feature?
14150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14151ac_sed_extra="$ac_vpsub
14152$extrasub
d9898ee8 14153_ACEOF
8d138742
CE
14154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155:t
14156/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14157s|@configure_input@|$ac_sed_conf_input|;t t
14158s&@top_builddir@&$ac_top_builddir_sub&;t t
14159s&@top_build_prefix@&$ac_top_build_prefix&;t t
14160s&@srcdir@&$ac_srcdir&;t t
14161s&@abs_srcdir@&$ac_abs_srcdir&;t t
14162s&@top_srcdir@&$ac_top_srcdir&;t t
14163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14164s&@builddir@&$ac_builddir&;t t
14165s&@abs_builddir@&$ac_abs_builddir&;t t
14166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14167s&@INSTALL@&$ac_INSTALL&;t t
14168s&@MKDIR_P@&$ac_MKDIR_P&;t t
14169$ac_datarootdir_hack
14170"
14171eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14172 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14173$as_echo "$as_me: error: could not create $ac_file" >&2;}
14174 { (exit 1); exit 1; }; }
d9898ee8 14175
8d138742
CE
14176test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14177 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14179 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14180which seems to be undefined. Please make sure it is defined." >&5
14181$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14182which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 14183
8d138742
CE
14184 rm -f "$tmp/stdin"
14185 case $ac_file in
14186 -) cat "$tmp/out" && rm -f "$tmp/out";;
14187 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14188 esac \
14189 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14190$as_echo "$as_me: error: could not create $ac_file" >&2;}
14191 { (exit 1); exit 1; }; }
14192 ;;
14193 :H)
14194 #
14195 # CONFIG_HEADER
14196 #
14197 if test x"$ac_file" != x-; then
14198 {
14199 $as_echo "/* $configure_input */" \
14200 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14201 } >"$tmp/config.h" \
14202 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14203$as_echo "$as_me: error: could not create $ac_file" >&2;}
14204 { (exit 1); exit 1; }; }
14205 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14206 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14207$as_echo "$as_me: $ac_file is unchanged" >&6;}
14208 else
14209 rm -f "$ac_file"
14210 mv "$tmp/config.h" "$ac_file" \
14211 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14212$as_echo "$as_me: error: could not create $ac_file" >&2;}
14213 { (exit 1); exit 1; }; }
14214 fi
14215 else
14216 $as_echo "/* $configure_input */" \
14217 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14218 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14219$as_echo "$as_me: error: could not create -" >&2;}
14220 { (exit 1); exit 1; }; }
14221 fi
14222# Compute "$ac_file"'s index in $config_headers.
14223_am_arg="$ac_file"
14224_am_stamp_count=1
14225for _am_header in $config_headers :; do
14226 case $_am_header in
14227 $_am_arg | $_am_arg:* )
14228 break ;;
14229 * )
14230 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14231 esac
14232done
14233echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14234$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14235 X"$_am_arg" : 'X\(//\)[^/]' \| \
14236 X"$_am_arg" : 'X\(//\)$' \| \
14237 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14238$as_echo X"$_am_arg" |
14239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14240 s//\1/
14241 q
14242 }
14243 /^X\(\/\/\)[^/].*/{
14244 s//\1/
14245 q
14246 }
14247 /^X\(\/\/\)$/{
14248 s//\1/
14249 q
14250 }
14251 /^X\(\/\).*/{
14252 s//\1/
14253 q
14254 }
14255 s/.*/./; q'`/stamp-h$_am_stamp_count
14256 ;;
d9898ee8 14257
8d138742
CE
14258 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14259$as_echo "$as_me: executing $ac_file commands" >&6;}
14260 ;;
14261 esac
d9898ee8 14262
d9898ee8 14263
8d138742
CE
14264 case $ac_file$ac_mode in
14265 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14266 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14267 # are listed without --file. Let's play safe and only enable the eval
14268 # if we detect the quoting.
14269 case $CONFIG_FILES in
14270 *\'*) eval set x "$CONFIG_FILES" ;;
14271 *) set x $CONFIG_FILES ;;
14272 esac
14273 shift
14274 for mf
14275 do
14276 # Strip MF so we end up with the name of the file.
14277 mf=`echo "$mf" | sed -e 's/:.*$//'`
14278 # Check whether this is an Automake generated Makefile or not.
14279 # We used to match only the files named `Makefile.in', but
14280 # some people rename them; so instead we look at the file content.
14281 # Grep'ing the first line is not enough: some people post-process
14282 # each Makefile.in and add a new line on top of each file to say so.
14283 # Grep'ing the whole file is not good either: AIX grep has a line
14284 # limit of 2048, but all sed's we know have understand at least 4000.
14285 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14286 dirpart=`$as_dirname -- "$mf" ||
14287$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14288 X"$mf" : 'X\(//\)[^/]' \| \
14289 X"$mf" : 'X\(//\)$' \| \
14290 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14291$as_echo X"$mf" |
14292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14293 s//\1/
14294 q
14295 }
14296 /^X\(\/\/\)[^/].*/{
14297 s//\1/
14298 q
14299 }
14300 /^X\(\/\/\)$/{
14301 s//\1/
14302 q
14303 }
14304 /^X\(\/\).*/{
14305 s//\1/
14306 q
14307 }
14308 s/.*/./; q'`
14309 else
14310 continue
14311 fi
14312 # Extract the definition of DEPDIR, am__include, and am__quote
14313 # from the Makefile without running `make'.
14314 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14315 test -z "$DEPDIR" && continue
14316 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14317 test -z "am__include" && continue
14318 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14319 # When using ansi2knr, U may be empty or an underscore; expand it
14320 U=`sed -n 's/^U = //p' < "$mf"`
14321 # Find all dependency output files, they are included files with
14322 # $(DEPDIR) in their names. We invoke sed twice because it is the
14323 # simplest approach to changing $(DEPDIR) to its actual value in the
14324 # expansion.
14325 for file in `sed -n "
14326 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14327 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14328 # Make sure the directory exists.
14329 test -f "$dirpart/$file" && continue
14330 fdir=`$as_dirname -- "$file" ||
14331$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14332 X"$file" : 'X\(//\)[^/]' \| \
14333 X"$file" : 'X\(//\)$' \| \
14334 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14335$as_echo X"$file" |
14336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14337 s//\1/
14338 q
14339 }
14340 /^X\(\/\/\)[^/].*/{
14341 s//\1/
14342 q
14343 }
14344 /^X\(\/\/\)$/{
14345 s//\1/
14346 q
14347 }
14348 /^X\(\/\).*/{
14349 s//\1/
14350 q
14351 }
14352 s/.*/./; q'`
14353 { as_dir=$dirpart/$fdir
14354 case $as_dir in #(
14355 -*) as_dir=./$as_dir;;
14356 esac
14357 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14358 as_dirs=
14359 while :; do
14360 case $as_dir in #(
14361 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14362 *) as_qdir=$as_dir;;
14363 esac
14364 as_dirs="'$as_qdir' $as_dirs"
14365 as_dir=`$as_dirname -- "$as_dir" ||
14366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14367 X"$as_dir" : 'X\(//\)[^/]' \| \
14368 X"$as_dir" : 'X\(//\)$' \| \
14369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14370$as_echo X"$as_dir" |
14371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14372 s//\1/
14373 q
14374 }
14375 /^X\(\/\/\)[^/].*/{
14376 s//\1/
14377 q
14378 }
14379 /^X\(\/\/\)$/{
14380 s//\1/
14381 q
14382 }
14383 /^X\(\/\).*/{
14384 s//\1/
14385 q
14386 }
14387 s/.*/./; q'`
14388 test -d "$as_dir" && break
14389 done
14390 test -z "$as_dirs" || eval "mkdir $as_dirs"
14391 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14392$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14393 { (exit 1); exit 1; }; }; }
14394 # echo "creating $dirpart/$file"
14395 echo '# dummy' > "$dirpart/$file"
14396 done
14397 done
14398}
14399 ;;
14400 "libtool":C)
d9898ee8 14401
8d138742
CE
14402 # See if we are running on zsh, and set the options which allow our
14403 # commands through without removal of \ escapes.
14404 if test -n "${ZSH_VERSION+set}" ; then
14405 setopt NO_GLOB_SUBST
14406 fi
d9898ee8 14407
8d138742
CE
14408 cfgfile="${ofile}T"
14409 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14410 $RM "$cfgfile"
dd184caf 14411
8d138742
CE
14412 cat <<_LT_EOF >> "$cfgfile"
14413#! $SHELL
14414
14415# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14416# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14417# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14418# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14419#
8d138742
CE
14420# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14421# 2006, 2007, 2008 Free Software Foundation, Inc.
14422# Written by Gordon Matzigkeit, 1996
d9898ee8 14423#
8d138742
CE
14424# This file is part of GNU Libtool.
14425#
14426# GNU Libtool is free software; you can redistribute it and/or
14427# modify it under the terms of the GNU General Public License as
14428# published by the Free Software Foundation; either version 2 of
14429# the License, or (at your option) any later version.
14430#
14431# As a special exception to the GNU General Public License,
14432# if you distribute this file as part of a program or library that
14433# is built using GNU Libtool, you may include this file under the
14434# same distribution terms that you use for the rest of that program.
14435#
14436# GNU Libtool is distributed in the hope that it will be useful,
14437# but WITHOUT ANY WARRANTY; without even the implied warranty of
14438# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14439# GNU General Public License for more details.
14440#
14441# You should have received a copy of the GNU General Public License
14442# along with GNU Libtool; see the file COPYING. If not, a copy
14443# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14444# obtained by writing to the Free Software Foundation, Inc.,
14445# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14446
d9898ee8 14447
8d138742
CE
14448# The names of the tagged configurations supported by this script.
14449available_tags=""
dd184caf 14450
8d138742 14451# ### BEGIN LIBTOOL CONFIG
d9898ee8 14452
8d138742
CE
14453# Which release of libtool.m4 was used?
14454macro_version=$macro_version
14455macro_revision=$macro_revision
d9898ee8 14456
8d138742
CE
14457# Whether or not to build shared libraries.
14458build_libtool_libs=$enable_shared
d9898ee8 14459
8d138742
CE
14460# Whether or not to build static libraries.
14461build_old_libs=$enable_static
d9898ee8 14462
8d138742
CE
14463# What type of objects to build.
14464pic_mode=$pic_mode
d9898ee8 14465
8d138742
CE
14466# Whether or not to optimize for fast installation.
14467fast_install=$enable_fast_install
d9898ee8 14468
8d138742
CE
14469# The host system.
14470host_alias=$host_alias
14471host=$host
14472host_os=$host_os
d9898ee8 14473
8d138742
CE
14474# The build system.
14475build_alias=$build_alias
14476build=$build
14477build_os=$build_os
d9898ee8 14478
8d138742
CE
14479# A sed program that does not truncate output.
14480SED=$lt_SED
d9898ee8 14481
8d138742
CE
14482# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14483Xsed="\$SED -e 1s/^X//"
d9898ee8 14484
8d138742
CE
14485# A grep program that handles long lines.
14486GREP=$lt_GREP
dd184caf 14487
8d138742
CE
14488# An ERE matcher.
14489EGREP=$lt_EGREP
dd184caf 14490
8d138742
CE
14491# A literal string matcher.
14492FGREP=$lt_FGREP
dd184caf 14493
8d138742
CE
14494# A BSD- or MS-compatible name lister.
14495NM=$lt_NM
dd184caf 14496
8d138742
CE
14497# Whether we need soft or hard links.
14498LN_S=$lt_LN_S
dd184caf 14499
8d138742
CE
14500# What is the maximum length of a command?
14501max_cmd_len=$max_cmd_len
dd184caf 14502
8d138742
CE
14503# Object file suffix (normally "o").
14504objext=$ac_objext
d9898ee8 14505
8d138742
CE
14506# Executable file suffix (normally "").
14507exeext=$exeext
d9898ee8 14508
8d138742
CE
14509# whether the shell understands "unset".
14510lt_unset=$lt_unset
d9898ee8 14511
8d138742
CE
14512# turn spaces into newlines.
14513SP2NL=$lt_lt_SP2NL
dd184caf 14514
8d138742
CE
14515# turn newlines into spaces.
14516NL2SP=$lt_lt_NL2SP
dd184caf 14517
8d138742
CE
14518# How to create reloadable object files.
14519reload_flag=$lt_reload_flag
14520reload_cmds=$lt_reload_cmds
dd184caf 14521
8d138742
CE
14522# An object symbol dumper.
14523OBJDUMP=$lt_OBJDUMP
d9898ee8 14524
8d138742
CE
14525# Method to check whether dependent libraries are shared objects.
14526deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14527
8d138742
CE
14528# Command to use when deplibs_check_method == "file_magic".
14529file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14530
8d138742
CE
14531# The archiver.
14532AR=$lt_AR
14533AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14534
8d138742
CE
14535# A symbol stripping program.
14536STRIP=$lt_STRIP
d9898ee8 14537
8d138742
CE
14538# Commands used to install an old-style archive.
14539RANLIB=$lt_RANLIB
14540old_postinstall_cmds=$lt_old_postinstall_cmds
14541old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14542
8d138742
CE
14543# A C compiler.
14544LTCC=$lt_CC
d9898ee8 14545
8d138742
CE
14546# LTCC compiler flags.
14547LTCFLAGS=$lt_CFLAGS
d9898ee8 14548
8d138742
CE
14549# Take the output of nm and produce a listing of raw symbols and C names.
14550global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14551
8d138742
CE
14552# Transform the output of nm in a proper C declaration.
14553global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14554
8d138742
CE
14555# Transform the output of nm in a C name address pair.
14556global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14557
8d138742
CE
14558# Transform the output of nm in a C name address pair when lib prefix is needed.
14559global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14560
8d138742
CE
14561# The name of the directory that contains temporary libtool files.
14562objdir=$objdir
d9898ee8 14563
8d138742
CE
14564# Shell to use when invoking shell scripts.
14565SHELL=$lt_SHELL
dd184caf 14566
8d138742
CE
14567# An echo program that does not interpret backslashes.
14568ECHO=$lt_ECHO
d9898ee8 14569
8d138742
CE
14570# Used to examine libraries when file_magic_cmd begins with "file".
14571MAGIC_CMD=$MAGIC_CMD
d9898ee8 14572
8d138742
CE
14573# Must we lock files when doing compilation?
14574need_locks=$lt_need_locks
d9898ee8 14575
8d138742
CE
14576# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14577DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14578
8d138742
CE
14579# Tool to change global to local symbols on Mac OS X.
14580NMEDIT=$lt_NMEDIT
d9898ee8 14581
8d138742
CE
14582# Tool to manipulate fat objects and archives on Mac OS X.
14583LIPO=$lt_LIPO
d9898ee8 14584
8d138742
CE
14585# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14586OTOOL=$lt_OTOOL
d9898ee8 14587
8d138742
CE
14588# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14589OTOOL64=$lt_OTOOL64
d9898ee8 14590
8d138742
CE
14591# Old archive suffix (normally "a").
14592libext=$libext
d9898ee8 14593
8d138742
CE
14594# Shared library suffix (normally ".so").
14595shrext_cmds=$lt_shrext_cmds
d9898ee8 14596
8d138742
CE
14597# The commands to extract the exported symbol list from a shared archive.
14598extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14599
8d138742
CE
14600# Variables whose values should be saved in libtool wrapper scripts and
14601# restored at link time.
14602variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14603
8d138742
CE
14604# Do we need the "lib" prefix for modules?
14605need_lib_prefix=$need_lib_prefix
d9898ee8 14606
8d138742
CE
14607# Do we need a version for libraries?
14608need_version=$need_version
d9898ee8 14609
8d138742
CE
14610# Library versioning type.
14611version_type=$version_type
d9898ee8 14612
8d138742
CE
14613# Shared library runtime path variable.
14614runpath_var=$runpath_var
d9898ee8 14615
8d138742
CE
14616# Shared library path variable.
14617shlibpath_var=$shlibpath_var
d9898ee8 14618
8d138742
CE
14619# Is shlibpath searched before the hard-coded library search path?
14620shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14621
8d138742
CE
14622# Format of library name prefix.
14623libname_spec=$lt_libname_spec
d9898ee8 14624
8d138742
CE
14625# List of archive names. First name is the real one, the rest are links.
14626# The last name is the one that the linker finds with -lNAME
14627library_names_spec=$lt_library_names_spec
d9898ee8 14628
8d138742
CE
14629# The coded name of the library, if different from the real name.
14630soname_spec=$lt_soname_spec
d9898ee8 14631
8d138742
CE
14632# Command to use after installation of a shared archive.
14633postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14634
8d138742
CE
14635# Command to use after uninstallation of a shared archive.
14636postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14637
8d138742
CE
14638# Commands used to finish a libtool library installation in a directory.
14639finish_cmds=$lt_finish_cmds
dd184caf 14640
8d138742
CE
14641# As "finish_cmds", except a single script fragment to be evaled but
14642# not shown.
14643finish_eval=$lt_finish_eval
d9898ee8 14644
8d138742
CE
14645# Whether we should hardcode library paths into libraries.
14646hardcode_into_libs=$hardcode_into_libs
d9898ee8 14647
8d138742
CE
14648# Compile-time system search path for libraries.
14649sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14650
8d138742
CE
14651# Run-time system search path for libraries.
14652sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14653
8d138742
CE
14654# Whether dlopen is supported.
14655dlopen_support=$enable_dlopen
d9898ee8 14656
8d138742
CE
14657# Whether dlopen of programs is supported.
14658dlopen_self=$enable_dlopen_self
d9898ee8 14659
8d138742
CE
14660# Whether dlopen of statically linked programs is supported.
14661dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14662
8d138742
CE
14663# Commands to strip libraries.
14664old_striplib=$lt_old_striplib
14665striplib=$lt_striplib
d9898ee8 14666
d9898ee8 14667
8d138742
CE
14668# The linker used to build libraries.
14669LD=$lt_LD
d9898ee8 14670
8d138742
CE
14671# Commands used to build an old-style archive.
14672old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14673
8d138742
CE
14674# A language specific compiler.
14675CC=$lt_compiler
d9898ee8 14676
8d138742
CE
14677# Is the compiler the GNU compiler?
14678with_gcc=$GCC
dd184caf 14679
8d138742
CE
14680# Compiler flag to turn off builtin functions.
14681no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14682
8d138742
CE
14683# How to pass a linker flag through the compiler.
14684wl=$lt_lt_prog_compiler_wl
d9898ee8 14685
8d138742
CE
14686# Additional compiler flags for building library objects.
14687pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14688
8d138742
CE
14689# Compiler flag to prevent dynamic linking.
14690link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14691
8d138742
CE
14692# Does compiler simultaneously support -c and -o options?
14693compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14694
14695# Whether or not to add -lc for building shared libraries.
14696build_libtool_need_lc=$archive_cmds_need_lc
14697
14698# Whether or not to disallow shared libs when runtime libs are static.
14699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14700
14701# Compiler flag to allow reflexive dlopens.
14702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14703
8d138742
CE
14704# Compiler flag to generate shared objects directly from archives.
14705whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14706
8d138742
CE
14707# Whether the compiler copes with passing no objects directly.
14708compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14709
8d138742
CE
14710# Create an old-style archive from a shared archive.
14711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14712
8d138742
CE
14713# Create a temporary old-style archive to link instead of a shared archive.
14714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14715
8d138742
CE
14716# Commands used to build a shared archive.
14717archive_cmds=$lt_archive_cmds
14718archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14719
8d138742
CE
14720# Commands used to build a loadable module if different from building
14721# a shared archive.
14722module_cmds=$lt_module_cmds
14723module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14724
8d138742
CE
14725# Whether we are building with GNU ld or not.
14726with_gnu_ld=$lt_with_gnu_ld
dd184caf 14727
8d138742
CE
14728# Flag that allows shared libraries with undefined symbols to be built.
14729allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14730
8d138742
CE
14731# Flag that enforces no undefined symbols.
14732no_undefined_flag=$lt_no_undefined_flag
dd184caf 14733
8d138742
CE
14734# Flag to hardcode \$libdir into a binary during linking.
14735# This must work even if \$libdir does not exist
14736hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14737
8d138742
CE
14738# If ld is used when linking, flag to hardcode \$libdir into a binary
14739# during linking. This must work even if \$libdir does not exist.
14740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 14741
8d138742
CE
14742# Whether we need a single "-rpath" flag with a separated argument.
14743hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14744
8d138742
CE
14745# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14746# DIR into the resulting binary.
14747hardcode_direct=$hardcode_direct
dd184caf 14748
8d138742
CE
14749# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14750# DIR into the resulting binary and the resulting library dependency is
14751# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14752# library is relocated.
14753hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 14754
8d138742
CE
14755# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14756# into the resulting binary.
14757hardcode_minus_L=$hardcode_minus_L
dd184caf 14758
8d138742
CE
14759# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14760# into the resulting binary.
14761hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14762
8d138742
CE
14763# Set to "yes" if building a shared library automatically hardcodes DIR
14764# into the library and all subsequent libraries and executables linked
14765# against it.
14766hardcode_automatic=$hardcode_automatic
dd184caf 14767
8d138742
CE
14768# Set to yes if linker adds runtime paths of dependent libraries
14769# to runtime path list.
14770inherit_rpath=$inherit_rpath
dd184caf 14771
8d138742
CE
14772# Whether libtool must link a program against all its dependency libraries.
14773link_all_deplibs=$link_all_deplibs
dd184caf 14774
8d138742
CE
14775# Fix the shell variable \$srcfile for the compiler.
14776fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 14777
8d138742
CE
14778# Set to "yes" if exported symbols are required.
14779always_export_symbols=$always_export_symbols
d9898ee8 14780
8d138742
CE
14781# The commands to list exported symbols.
14782export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14783
8d138742
CE
14784# Symbols that should not be listed in the preloaded symbols.
14785exclude_expsyms=$lt_exclude_expsyms
dd184caf 14786
8d138742
CE
14787# Symbols that must always be exported.
14788include_expsyms=$lt_include_expsyms
d9898ee8 14789
8d138742
CE
14790# Commands necessary for linking programs (against libraries) with templates.
14791prelink_cmds=$lt_prelink_cmds
d9898ee8 14792
8d138742
CE
14793# Specify filename containing input files.
14794file_list_spec=$lt_file_list_spec
14795
14796# How to hardcode a shared library path into an executable.
14797hardcode_action=$hardcode_action
d9898ee8 14798
8d138742 14799# ### END LIBTOOL CONFIG
d9898ee8 14800
8d138742 14801_LT_EOF
d9898ee8 14802
8d138742
CE
14803 case $host_os in
14804 aix3*)
14805 cat <<\_LT_EOF >> "$cfgfile"
14806# AIX sometimes has problems with the GCC collect2 program. For some
14807# reason, if we set the COLLECT_NAMES environment variable, the problems
14808# vanish in a puff of smoke.
14809if test "X${COLLECT_NAMES+set}" != Xset; then
14810 COLLECT_NAMES=
14811 export COLLECT_NAMES
14812fi
14813_LT_EOF
14814 ;;
dd184caf 14815 esac
8d138742
CE
14816
14817
14818ltmain="$ac_aux_dir/ltmain.sh"
14819
14820
14821 # We use sed instead of cat because bash on DJGPP gets confused if
14822 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14823 # text mode, it properly converts lines to CR/LF. This bash problem
14824 # is reportedly fixed, but why not run on old versions too?
14825 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14826 || (rm -f "$cfgfile"; exit 1)
14827
14828 case $xsi_shell in
14829 yes)
14830 cat << \_LT_EOF >> "$cfgfile"
14831
14832# func_dirname file append nondir_replacement
14833# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14834# otherwise set result to NONDIR_REPLACEMENT.
14835func_dirname ()
14836{
14837 case ${1} in
14838 */*) func_dirname_result="${1%/*}${2}" ;;
14839 * ) func_dirname_result="${3}" ;;
d9898ee8 14840 esac
8d138742 14841}
d9898ee8 14842
8d138742
CE
14843# func_basename file
14844func_basename ()
14845{
14846 func_basename_result="${1##*/}"
14847}
dd184caf 14848
8d138742
CE
14849# func_dirname_and_basename file append nondir_replacement
14850# perform func_basename and func_dirname in a single function
14851# call:
14852# dirname: Compute the dirname of FILE. If nonempty,
14853# add APPEND to the result, otherwise set result
14854# to NONDIR_REPLACEMENT.
14855# value returned in "$func_dirname_result"
14856# basename: Compute filename of FILE.
14857# value retuned in "$func_basename_result"
14858# Implementation must be kept synchronized with func_dirname
14859# and func_basename. For efficiency, we do not delegate to
14860# those functions but instead duplicate the functionality here.
14861func_dirname_and_basename ()
14862{
14863 case ${1} in
14864 */*) func_dirname_result="${1%/*}${2}" ;;
14865 * ) func_dirname_result="${3}" ;;
14866 esac
14867 func_basename_result="${1##*/}"
dd184caf 14868}
dd184caf 14869
8d138742
CE
14870# func_stripname prefix suffix name
14871# strip PREFIX and SUFFIX off of NAME.
14872# PREFIX and SUFFIX must not contain globbing or regex special
14873# characters, hashes, percent signs, but SUFFIX may contain a leading
14874# dot (in which case that matches only a dot).
14875func_stripname ()
14876{
14877 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14878 # positional parameters, so assign one to ordinary parameter first.
14879 func_stripname_result=${3}
14880 func_stripname_result=${func_stripname_result#"${1}"}
14881 func_stripname_result=${func_stripname_result%"${2}"}
14882}
dd184caf 14883
8d138742
CE
14884# func_opt_split
14885func_opt_split ()
14886{
14887 func_opt_split_opt=${1%%=*}
14888 func_opt_split_arg=${1#*=}
14889}
dd184caf 14890
8d138742
CE
14891# func_lo2o object
14892func_lo2o ()
14893{
14894 case ${1} in
14895 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14896 *) func_lo2o_result=${1} ;;
d9898ee8 14897 esac
8d138742 14898}
d9898ee8 14899
8d138742
CE
14900# func_xform libobj-or-source
14901func_xform ()
14902{
14903 func_xform_result=${1%.*}.lo
14904}
d9898ee8 14905
8d138742
CE
14906# func_arith arithmetic-term...
14907func_arith ()
14908{
14909 func_arith_result=$(( $* ))
14910}
14911
14912# func_len string
14913# STRING may not start with a hyphen.
14914func_len ()
14915{
14916 func_len_result=${#1}
14917}
14918
14919_LT_EOF
14920 ;;
14921 *) # Bourne compatible functions.
14922 cat << \_LT_EOF >> "$cfgfile"
14923
14924# func_dirname file append nondir_replacement
14925# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14926# otherwise set result to NONDIR_REPLACEMENT.
14927func_dirname ()
14928{
14929 # Extract subdirectory from the argument.
14930 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14931 if test "X$func_dirname_result" = "X${1}"; then
14932 func_dirname_result="${3}"
d9898ee8 14933 else
8d138742 14934 func_dirname_result="$func_dirname_result${2}"
d9898ee8 14935 fi
8d138742 14936}
d9898ee8 14937
8d138742
CE
14938# func_basename file
14939func_basename ()
14940{
14941 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14942}
14943
14944
14945# func_stripname prefix suffix name
14946# strip PREFIX and SUFFIX off of NAME.
14947# PREFIX and SUFFIX must not contain globbing or regex special
14948# characters, hashes, percent signs, but SUFFIX may contain a leading
14949# dot (in which case that matches only a dot).
14950# func_strip_suffix prefix name
14951func_stripname ()
14952{
14953 case ${2} in
14954 .*) func_stripname_result=`$ECHO "X${3}" \
14955 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14956 *) func_stripname_result=`$ECHO "X${3}" \
14957 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 14958 esac
8d138742 14959}
d9898ee8 14960
8d138742
CE
14961# sed scripts:
14962my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14963my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 14964
8d138742
CE
14965# func_opt_split
14966func_opt_split ()
14967{
14968 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14969 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14970}
14971
14972# func_lo2o object
14973func_lo2o ()
14974{
14975 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14976}
14977
14978# func_xform libobj-or-source
14979func_xform ()
14980{
14981 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14982}
14983
14984# func_arith arithmetic-term...
14985func_arith ()
14986{
14987 func_arith_result=`expr "$@"`
14988}
14989
14990# func_len string
14991# STRING may not start with a hyphen.
14992func_len ()
14993{
14994 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14995}
14996
14997_LT_EOF
14998esac
14999
15000case $lt_shell_append in
15001 yes)
15002 cat << \_LT_EOF >> "$cfgfile"
15003
15004# func_append var value
15005# Append VALUE to the end of shell variable VAR.
15006func_append ()
15007{
15008 eval "$1+=\$2"
15009}
15010_LT_EOF
15011 ;;
15012 *)
15013 cat << \_LT_EOF >> "$cfgfile"
15014
15015# func_append var value
15016# Append VALUE to the end of shell variable VAR.
15017func_append ()
15018{
15019 eval "$1=\$$1\$2"
15020}
15021
15022_LT_EOF
15023 ;;
dd184caf 15024 esac
8d138742
CE
15025
15026
15027 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15028 || (rm -f "$cfgfile"; exit 1)
15029
15030 mv -f "$cfgfile" "$ofile" ||
15031 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15032 chmod +x "$ofile"
15033
d9898ee8 15034 ;;
dd184caf 15035
d9898ee8 15036 esac
dd184caf 15037done # for ac_tag
d9898ee8 15038
d9898ee8 15039
15040{ (exit 0); exit 0; }
15041_ACEOF
15042chmod +x $CONFIG_STATUS
15043ac_clean_files=$ac_clean_files_save
15044
8d138742
CE
15045test $ac_write_fail = 0 ||
15046 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15047$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15048 { (exit 1); exit 1; }; }
15049
d9898ee8 15050
15051# configure is writing to config.log, and then calls config.status.
15052# config.status does its own redirection, appending to config.log.
15053# Unfortunately, on DOS this fails, as config.log is still kept open
15054# by configure, so config.status won't be able to write to it; its
15055# output is simply discarded. So we exec the FD to /dev/null,
15056# effectively closing config.log, so it can be properly (re)opened and
15057# appended to by config.status. When coming back to configure, we
15058# need to make the FD available again.
15059if test "$no_create" != yes; then
15060 ac_cs_success=:
15061 ac_config_status_args=
15062 test "$silent" = yes &&
15063 ac_config_status_args="$ac_config_status_args --quiet"
15064 exec 5>/dev/null
15065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15066 exec 5>>config.log
15067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15068 # would make configure fail if this is the last instruction.
15069 $ac_cs_success || { (exit 1); exit 1; }
15070fi
8d138742
CE
15071if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15072 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15073$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15074fi
d9898ee8 15075